Electronic device and accessories and control method, system and storage medium thereof
By adopting a multi-contact group communication method in the camera equipment, using SPI and I2C communication methods, the problems of current leakage and attachment of multiple accessories are solved, achieving efficient current management and system flexibility.
Patent Information
- Application Number
- CN202210422949.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-04-23
- Filing Date
- 2022-04-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-21
AI Technical Summary
In the prior art, communication between the camera device and the accessories causes current leakage in the electronic device, and the attachment of various accessories cannot be effectively maintained.
Using a multi-contact group communication method, SPI communication is performed through the first contact group, and I2C communication is performed through the second contact group. The accessory processing unit controls the second communication method based on the information of the first communication method to ensure current management and Attachment of various accessories.
It effectively avoids current leakage in electronic devices and supports the attachment and control of a variety of accessories, improving the efficiency and flexibility of the system.
Smart Images

Figure CN115242988B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to electronic equipment such as a camera device to which accessories can be attached. Background Art
[0002] Accessories such as a strobe (flash) device and a microphone device are attached to the imaging apparatus. Japanese Patent Laid-Open ("JP") 2013-238875 discloses a system in which power is supplied to the accessories from the imaging apparatus and control signals are sent from the imaging apparatus through SPI communication to control the accessories.
[0003] However, in the system of JP 2013-238875A, the logic of the CS (Chip Select) signal for selecting a communication partner from a camera device or an accessory becoming active is fixedly set to low active, and the CS is set to a high level before the start of communication. As a result, current may leak in the camera device. On the other hand, if the logic of the CS signal is set to high active, and the CS signal is set to a low level before the start of communication, an accessory whose logic of the CS signal is low active cannot be used. Summary of the invention
[0004] The present invention provides an accessory, an electronic device, a system, a control method, and a storage medium, each of which can avoid current leakage in an electronic device and maintain the number of types of accessories that can be attached to the electronic device.
[0005] According to another aspect of the present invention, an accessory is detachably attached to an electronic device, the accessory comprising: at least one processor; and at least one memory coupled to the at least one processor for storing instructions, the instructions, when executed by the at least one processor, causing the at least one processor to function as an accessory processing unit, the accessory processing unit being capable of communicating with the electronic device through a first communication method as communication via a first contact group and through a second communication method as communication via a second contact group different from the first contact group. The accessory processing unit controls communication through the second communication method based on information communicated through the first communication method. In the second communication method, in response to a change in a signal level of a signal through a first contact included in the second contact group from a first signal level to a second signal level, the accessory processing unit performs communication through a second contact included in the second contact group. The accessory processing unit performs communication through the second communication method based on information related to the second signal level included in the information communicated through the first communication method. A system including the above-mentioned accessory, a control method for the above-mentioned accessory, and a program (storage medium storing) for causing a computer to execute the above-mentioned control method also constitute another aspect of the present invention.
[0006] According to an aspect of the present invention, an electronic device is capable of detachably attaching an accessory, the electronic device comprising: at least one processor; and at least one memory coupled to the at least one processor for storing instructions, the instructions, when executed by the at least one processor, causing the at least one processor to function as a device processing unit, the device processing unit being capable of communicating with the accessory through a first communication method as communication via a first contact group and through a second communication method as communication via a second contact group different from the first contact group. The device processing unit controls communication through the second communication method based on information communicated through the first communication method. In the second communication method, in response to a signal level of a signal through a first contact included in the second contact group changing from a first signal level to a second signal level, the device processing unit performs communication through a second contact included in the second contact group. The device processing unit performs communication through the second communication method based on information related to the second signal level included in the information communicated through the first communication method. A system including the above electronic device, a control method for the above electronic device, and a program (storage medium storing) for causing a computer to execute the above control method also constitute another aspect of the present invention.
[0007] An accessory that can be detachably attached to an electronic device, the accessory including an accessory processing unit that can communicate with the electronic device through a first communication method that is communication through a first contact group and through a second communication method that is communication through a second contact group that is different from the first contact group. The accessory processing unit controls communication through the second communication method based on information communicated through the first communication method, wherein in the second communication method, in response to a signal level of a signal through a first contact included in the second contact group changing from a first signal level to a second signal level, the accessory processing unit performs communication through a second contact included in the second contact group, and wherein the accessory processing unit performs communication through the second communication method based on information related to the second signal level included in the information communicated through the first communication method.
[0008] A system comprises: the accessory described above; and an electronic device to which the accessory can be detachably attached.
[0009] An electronic device capable of detachably attaching an accessory, the electronic device including a device processing unit capable of communicating with the accessory through a first communication method as communication through a first contact group and through a second communication method as communication through a second contact group different from the first contact group. The device processing unit controls communication through the second communication method based on information communicated through the first communication method, wherein in the second communication method, in response to a signal level of a signal through a first contact included in the second contact group changing from a first signal level to a second signal level, the device processing unit performs communication through a second contact included in the second contact group, and wherein the device processing unit performs communication through the second communication method based on information related to the second signal level included in the information communicated through the first communication method.
[0010] A system comprises: the electronic device described above; and an accessory detachably attached to the electronic device.
[0011] A method for controlling an accessory, wherein the accessory can be detachably attached to an electronic device and can communicate with the electronic device through a first communication method as communication via a first contact group and through a second communication method as communication via a second contact group different from the first contact group, the control method comprising the following steps: controlling communication through the second communication method based on information communicated through the first communication method; in the second communication method, performing communication through a second contact included in the second contact group in response to a signal level of a signal through a first contact included in the second contact group changing from a first signal level to a second signal level; and performing communication through the second communication method based on information related to the second signal level included in the information communicated through the first communication method.
[0012] A control method for an electronic device, the electronic device being capable of detachably attaching an accessory, the electronic device being capable of communicating with the accessory through a first communication method being communication via a first contact group and through a second communication method being communication via a second contact group different from the first contact group, the control method comprising the following steps: controlling communication through the second communication method based on information communicated through the first communication method; in the second communication method, performing communication through the second contact included in the second contact group in response to a change in a signal level of a signal through the first contact included in the second contact group from a first signal level to a second signal level; and performing communication through the second communication method based on information related to the second signal level included in the information communicated through the first communication method.
[0013] A non-transitory computer-readable storage medium stores a program, wherein the program enables a computer to execute the above control method.
[0014] A non-transitory computer-readable storage medium stores a program, wherein the program enables a computer to execute the above control method.
[0015] Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 The structure of the camera system (including a camera, a lens unit, and accessories) in the first embodiment is illustrated.
[0017] Figure 2A and Figure 2B The protocol of the SPI communication in the first embodiment is exemplified.
[0018] FIG. 3A to FIG. 3D A flowchart illustrating processing to be performed by the camera and the accessory in the first embodiment is illustrated.
[0019] Figure 4 Communication data in the SPI communication in the first embodiment is exemplified.
[0020] Figure 5 The accessory information in the first embodiment is exemplified.
[0021] Figure 6 The processing sequence of the camera system in the first embodiment is illustrated.
[0022] Figure 7 The accessory type information in the first embodiment is exemplified.
[0023] Figure 8 Factors for generating a communication request in the first embodiment are exemplified.
[0024] Fig.9A and Fig. 9B The communication interval in the SPI communication in the first embodiment is exemplified.
[0025] Fig.10 A flowchart illustrating a startup process to be performed by the camera (camera control circuit A) in the first embodiment is shown.
[0026] Fig.11 A flowchart illustrating a startup process to be performed by the camera (camera control circuit B) in the first embodiment is shown.
[0027] Fig.12 A flowchart illustrating processing to be performed by the accessory in the first embodiment is illustrated.
[0028] Fig.13A and Fig. 13B An example of the configuration of the camera and accessories related to CS in the first embodiment is illustrated.
[0029] Fig.14 Another configuration example of the camera and accessories related to CS in the first embodiment is illustrated.
[0030] Fig.15 is a flowchart showing processing to be performed by the accessory in the first embodiment.
[0031] Fig.16A and Fig. 16B An example of an I2C communication waveform is shown.
[0032] Fig.17 The following illustrates a process to be performed by the camera in the first embodiment when N-byte data is transmitted from the camera to the accessory.
[0033] Fig.18 The processing to be performed by the camera in the first embodiment when the camera receives N-byte data from the accessory is illustrated.
[0034] Fig.19A and Fig.19B The following illustrates processing to be performed by the accessory in the case where N bytes of data are communicated between the camera and the accessory in the first embodiment. DETAILED DESCRIPTION
[0035] Embodiments according to the present invention will now be described with reference to the accompanying drawings.
[0036] First embodiment
[0037] Figure 1 An electrical structure of an imaging system is illustrated, which includes an imaging apparatus (hereinafter referred to as a camera) 100 as an electronic device according to a first embodiment of the present invention and an accessory 200 detachably attached to the imaging apparatus. The accessory 200 is, for example, a microphone device or a lighting (strobe / flash) device, and includes various devices that can be attached to the camera 100. The camera 100 and the accessory 200 are electrically connected via one-to-one contact between a plurality of contacts (terminals) TC01 to TC21 of a camera connector 141 provided in the camera 100 and a plurality of contacts TA01 to TA21 of an accessory connector 211 provided in the accessory 200, respectively. The accessory 200 may not have a part of the plurality of contacts TA01 to TA21.
[0038] The camera 100 is powered by a battery 111. The battery 111 is attachable to and detachable from the camera 100. A camera control circuit A 101 as a first processing unit (device processing unit) and a receiving unit and a camera control circuit B 102 as a second processing unit (device processing unit) in the camera 100 are circuits that control the entire camera 100 and include a processor (microcomputer) such as a CPU. The camera control circuit A 101 and the camera control circuit B 102 perform various controls and processes according to a computer program.
[0039] The camera control circuit A 101 monitors the operation of switches and the like used for camera operation, not shown, and controls the system power supply according to the operation of the user. The camera control circuit A 101 includes a low-power type processor that can operate even when the camera 100 is in a power saving state (standby state) which is a low power consumption state. On the other hand, the camera control circuit B 102 is responsible for controlling the image sensor 122 and the display circuit 127, etc. The camera control circuit B 102 includes a processor that stops operating in the low power consumption state but operates in the normal operation state.
[0040] Although the camera control circuit A 101 and the camera control circuit B 102 include separate processors in the present embodiment, these two circuits may be provided in a single processor.
[0041] The system power supply circuit 112 is a circuit that generates power to be supplied to each circuit in the camera 100, and includes a DC / DC converter circuit, a Low Drop Out (LDO), a charge pump circuit, and the like. A voltage of 1.8 V generated by the system power supply circuit 112 that receives power from the battery 111 is constantly supplied to the camera control circuit A 101 as a camera microcomputer power supply VMCU_C. Several types of voltages generated by the system power supply circuit 112 are supplied to the camera control circuit B 102 at arbitrary timings as a camera microcomputer power supply VMCU2_C. The camera control circuit A 101 controls the on and off of power supply to each circuit in the camera 100 by controlling the system power supply circuit 112.
[0042] The optical lens 121 is attachable to and detachable from the camera 100. Light from a subject incident through the optical lens 121 is imaged on an image sensor 122 including a CMOS sensor or a CCD sensor or the like. The optical lens 121 and the camera 100 may be integrated. The subject image formed on the image sensor 122 is encoded as a digital camera signal. The image processing circuit 123 performs image processing such as noise reduction processing and white balance processing on the digital camera signal to generate image data, and converts the image data into an image file in a JPEG format or the like to record the image data in a recording memory 126. The image processing circuit 123 generates VRAM image data to be displayed on the display circuit 127 from the image data.
[0043] The memory control circuit 124 controls the transmission and reception of image data and other data generated by the image processing circuit 123 and the like. The volatile memory 125 is a memory capable of high-speed reading and writing, such as DDR3 SDRAM, and is used as a workspace for image processing performed by the image processing circuit 123. The recording memory 126 is a readable and writable recording medium such as an SD card or a CFExpress card that is attachable to and detachable from the camera 100 via a connector not shown. The display circuit 127 is a display arranged on the back of the camera 100, and includes an LCD panel, an organic EL display panel, and the like. The backlight circuit 128 adjusts the brightness of the display circuit 127 by changing the light amount of the backlight of the display circuit 127.
[0044] In the present embodiment, the accessory power supply circuit A (hereinafter referred to as the accessory power supply circuit A) 131 and the accessory power supply circuit B (hereinafter referred to as the accessory power supply circuit B) 132 as the power supply unit are each a voltage conversion circuit that converts the voltage supplied from the system power supply circuit 112 into a predetermined voltage and generates 3.3 V as the accessory power supply VACC. This configuration can convert a voltage into another voltage.
[0045] The accessory power supply circuit A 131 is a power supply circuit that includes an LDO and the like and has low self-power consumption. The accessory power supply circuit B 132 includes a DC / DC converter circuit and the like and can pass a current larger than that of the accessory power supply circuit A 131. The self-power consumption of the accessory power supply circuit B 132 is larger than that of the accessory power supply circuit A 131. Therefore, when the load current is small, the accessory power supply circuit A 131 is more efficient than the accessory power supply circuit B 132, and when the load current is large, the accessory power supply circuit B 132 is more efficient than the accessory power supply circuit A 131. The camera control circuit A 101 controls the on and off of the voltage outputs of the accessory power supply circuits A 131 and B 132 according to the operating state of the accessory 200.
[0046] The protection circuit 133 includes a current fuse element, or an electronic fuse circuit in which multiple switching elements or resistors, amplifiers, and switching elements are combined, or the like. When the power supply current value supplied from the accessory power supply circuits A 131 and B 132 to the accessory 200 is higher than a predetermined value and becomes excessive (abnormal), the protection circuit 133 outputs an overcurrent detection signal DET_OVC. In the present embodiment, the protection circuit 133 is an electronic fuse circuit, and in the case where a current of 1A or more flows, the overcurrent detection signal DET_OVC is notified to the camera control circuit A 101. The overcurrent detection signal DET_OVC indicates an overcurrent by becoming a high level. The predetermined value may be different from 1A.
[0047] The camera connector 141 is a connector for electrically connecting to the accessory 200 via 21 contacts TC01 to TC21 arranged in a row. The contacts TC01 to TC21 are arranged in order of the contacts TC01 to TC21 from one end to the other end in the arrangement direction.
[0048] TC01 is connected to the ground terminal (GND), and serves not only as a reference potential contact but also as a contact for controlling wiring impedance of the differential signals D1N and D1P. TC01 corresponds to a third ground contact.
[0049] The differential signal D1N connected to TC02 and the differential signal D1P connected to TC03 are differential data communication signals for data communication in pairs, and are connected to the camera control circuit B 102. TC02, TC03, TC07 to TC10, TC12 to TC17, TC19, and TC20 to be described below are communication contacts.
[0050] TC04 as a first ground contact is connected to GND and serves as a reference potential contact for the camera 100 and the accessory 200. TC04 is arranged outside TC05 described below in the contact arrangement direction.
[0051] The accessory power VACC generated by the accessory power circuits A 131 and B 132 is connected to TC05 as a power contact via the protection circuit 133.
[0052] The accessory attachment detection signal / ACC_DET is connected to TC06 as an attachment detection contact. The accessory attachment detection signal / ACC_DET is pulled up to the camera microcomputer power supply VMCU_C via a resistor element RP134 (such as 10 kΩ, etc.). The camera control circuit A101 can detect whether the accessory 200 is attached by reading the signal level of the accessory attachment detection signal / ACC_DET. If the signal level (potential) of the accessory attachment detection signal / ACC_DET is high (predetermined potential), it is detected that the accessory 200 is not attached, and if the signal level (potential) of the accessory attachment detection signal / ACC_DET is a low level (GND potential) as an activation potential, it is detected that the accessory 200 is attached.
[0053] The signal level (potential) of the accessory attachment detection signal / ACC_DET is changed from a high level (Hi) to a low level (Lo) when the camera 100 is powered on, which triggers various transmissions between the camera 100 and the accessory 200 via the contacts.
[0054] The camera control circuit 101 supplies power to the accessory 200 via TC05 as a power supply contact in response to detecting attachment of the accessory 200.
[0055] SCLK connected to TC07 as a communication contact, MOSI connected to TC08, MISO connected to TC09, and Chip Select (CS) connected to TC10 are signals used for communication by a serial peripheral interface (SPI) communication method as a second communication method (hereinafter referred to as SPI communication) in which the camera control circuit B102 becomes a communication master. SCLK is a clock signal, MOSI is a transmission signal, MISO is a reception signal, and CS is a communication selection signal used as a signal for selecting a communication partner. In the present embodiment, the SPI communication has a communication clock frequency of 1 MHz, a data length of 8 bits (1 byte) and a bit order of MSB first, and a full-duplex communication method.
[0056] In the present embodiment, the camera 100 and the accessory 200 support two types of communication protocols of the SPI communication method. Communication protocol A is a communication method in which the camera 100 does not confirm whether the accessory 200 is in a communicable state before outputting SCLK, and is referred to as SPI protocol A in the following description. Figure 2A The following diagram illustrates an outline of the communication waveform of SPI protocol A. The diagram illustrates that the logic for CS to become valid (activated) is low active.
[0057] The camera control circuit B 102 changes CS to low level (active) at timing A1 , and requests SPI communication to the accessory control circuit 201 .
[0058] At timing A2 a predetermined time T_CS after timing A1, the camera control circuit B 102 starts outputting SCLK and MOSI. When the accessory control circuit 201 detects the trailing edge of SCLK, the accessory control circuit 201 starts outputting MISO.
[0059] The camera control circuit B 102 stops outputting SCLK at timing A3 when outputting 1-byte SCLK is completed.
[0060] The camera control circuit B 102 stops outputting SCLK for a predetermined time T_INTERVAL at timing A3 , restarts outputting SCLK at timing A4 after T_INTERVAL has elapsed, and performs the next 1-byte communication.
[0061] Figure 3A The flowchart in exemplifies processing to be performed by the camera control circuit B 102 in the SPI protocol A. S represents a step.
[0062] In S101, the camera control circuit B 102 stores a numerical value indicating the number of bytes to be communicated in an internal variable N. For example, 3 is stored in the case of 3-byte communication.
[0063] In S102 , the camera control circuit B 102 changes CS to a low level and requests SPI communication.
[0064] In S103, the camera control circuit B 102 performs a waiting process until a predetermined time T_CS has passed after CS has changed to a low level. After the predetermined time T_CS has passed, the flow proceeds to S104.
[0065] In S104, the camera control circuit B 102 controls the SCLK output, the MOSI data output, and the MISO data input, and performs 1-byte data communication.
[0066] In S105 , the camera control circuit B 102 confirms whether the internal variable N indicating the number of communication bytes is 0. When the internal variable N is 0, the flow proceeds to S106 , and when the internal variable N is not 0, the flow proceeds to S107 .
[0067] In S107 , the camera control circuit B 102 stores, as a new internal variable N, a value obtained by decrementing the numerical value of the internal variable N indicating the number of communication bytes by 1.
[0068] In S108, the camera control circuit B 102 performs a waiting process until a predetermined time T_INTERVAL has passed after the 1-byte data communication in S104 is completed. Then, after the predetermined time T_INTERVAL has passed, the flow returns to the process of S104, and the same process is executed again.
[0069] In S106, the camera control circuit B 102 changes CS to a high level and ends a series of SPI communications.
[0070] Figure 3B The flowchart in exemplifies the processing to be performed by the accessory control circuit 201 in SPI protocol A.
[0071] In S201, the accessory control circuit 201 confirms whether CS changes to a low level. In the case where CS changes to a low level, the flow proceeds to S202, and in the case where CS does not change to a low level, the flow returns to S211.
[0072] In S202, the accessory control circuit 201 performs 1-byte data communication through MOSI data input control and MISO data output control in response to the input of the SCLK signal.
[0073] In S203, the accessory control circuit 201 confirms whether CS changes to high level. If CS changes to high level, it is determined that the SPI communication is completed, and if CS does not change to high level, the flow returns to S202 to perform the next 1-byte communication.
[0074] The communication protocol B in the SPI communication method is a communication method in which the camera 100 confirms whether the accessory 200 is in a communicable state before outputting SCLK, and is referred to as SPI protocol B in the following description. Figure 2B An overview of the communication waveform of SPI protocol B is shown below.
[0075] The camera control circuit B 102 changes CS to low level at timing B1, and requests SPI communication to the accessory control circuit 201. The camera control circuit B 102 confirms the potential of MISO together with the communication request. If MISO is at high level, it is determined that the accessory control circuit 201 is in a communicable state, and if MISO is at low level, it is determined that the accessory control circuit 201 is in a non-communicable state.
[0076] On the other hand, when the accessory control circuit 201 detects the trailing edge of CS at timing B2, the accessory control circuit 201 performs control for changing MISO to high level if SPI communication is available, and performs control for changing MISO to low level if the communication is not available.
[0077] When the camera control circuit B 102 confirms that MISO is at a high level at timing B3, the camera control circuit B 102 starts outputting SCLK and MOSI. The accessory control circuit 201 starts outputting MISO when detecting the trailing edge of SCLK.
[0078] When the output of 1 byte of SCLK is completed at timing B4, the camera control circuit B 102 stops outputting SCLK.
[0079] After 1-byte communication, as shown in timings B5 and B6, the accessory control circuit 201 performs control for changing MISO to a high level if SPI communication is available, and performs control for changing MISO to a low level if SPI communication is not available.
[0080] The camera control circuit B 102 checks the potential of MISO at timing B7. If MISO is at a high level, it is determined that the accessory control circuit 201 is in a communicable state, and if MISO is at a low level, it is determined that the accessory control circuit 201 is in a non-communicable state.
[0081] Figure 3C The flowchart in exemplifies the processing to be performed by the camera control circuit B 102 in the SPI protocol B.
[0082] In S111, the camera control circuit B 102 stores a numerical value indicating the number of bytes to be communicated in an internal variable N. For example, 3 is stored in the case of 3-byte communication.
[0083] In S112, the camera control circuit B 102 changes CS to low level and requests SPI communication.
[0084] In S113, the camera control circuit B 102 confirms whether MISO has changed to a high level. If MISO is at a high level, the flow proceeds to S114, and if MISO has not yet been at a high level, the flow returns to S113.
[0085] In S114, the camera control circuit B 102 controls the SCLK output, MOSI data output, and MISO data input to perform 1-byte data communication.
[0086] In S115, the camera control circuit B 102 confirms whether communication of all data is completed (whether the internal variable N indicating the number of communication bytes is 0). If the internal variable N is 0, the flow proceeds to S116, and if the internal variable N is not 0, the flow proceeds to S117.
[0087] In S117, the camera control circuit B 102 stores, as a new internal variable N, a value obtained by decrementing the numerical value of the internal variable N indicating the number of communication bytes by 1.
[0088] In S118, the camera control circuit B 102 confirms whether MISO has changed to a high level. In the case where MISO is at a high level, the flow proceeds to S114, and in the case where MISO is not at a high level, the flow returns to S118.
[0089] In S116, the camera control circuit B 102 changes CS to high level and ends a series of SPI communications.
[0090] Figure 3D The flowchart in exemplifies the processing to be performed by the accessory control circuit 201 in the SPI protocol B.
[0091] In S211, the accessory control circuit 201 confirms whether CS changes to a low level. In the case where CS changes to a low level, the flow proceeds to S212, and in the case where CS does not change to a low level, the flow returns to S211.
[0092] In S212, the accessory control circuit 201 confirms whether SPI communication is available. In the case that SPI communication is available, the process proceeds to S213, and in the case that SPI communication is not available, the process proceeds to S214.
[0093] In S213, the accessory control circuit 201 performs control for changing MISO to a high level, and the flow proceeds to S215.
[0094] In S214, the accessory control circuit 201 performs control for changing MISO to the low level, and the flow returns to S212.
[0095] In S215, the accessory control circuit 201 controls the MOSI data input and the MISO data output in response to the SCLK signal input, and performs 1-byte data communication.
[0096] In S216, the accessory control circuit 201 confirms whether CS changes to a high level. If CS changes to a high level, it is determined that the SPI communication is completed, and if CS does not change to a high level, the flow returns to S212 for the next 1-byte communication.
[0097] Figure 4 The content of communication when an operation execution instruction (command) is notified from the camera 100 to the accessory 200 by SPI communication in the present embodiment is exemplified.
[0098] The camera control circuit B 102 transmits information CMD indicating a command number as MOSI data in the 1st byte communication to the accessory control circuit 201. The accessory control circuit 201 transmits a value 0xA5 as information indicating a communicable state as MISO data to the camera control circuit B 102. When the 1st byte communication process cannot be executed, the accessory control circuit 201 transmits a value other than 0xA5 as MISO data to the camera control circuit B 102.
[0099] The camera control circuit B 102 transmits the argument MOSI_DATA1 corresponding to the command number CMD in the 2nd byte communication to the accessory control circuit 201. Then, from the 3rd byte to the (N-2)th byte, the arguments MOSI_DATA2 to MOSI_DATA[N-3] corresponding to the command number CMD are similarly transmitted to the accessory control circuit 201.
[0100] The accessory control circuit 201 transmits the command number CMD received in the 1st byte as MISO data in the 2nd byte communication to the camera control circuit B 102. This configuration enables the camera control circuit B 102 to determine that the accessory control circuit 201 has correctly received the MOSI data.
[0101] The accessory control circuit 201 transmits the return value MISO_DATA1 corresponding to the command number CMD as MISO data in the 3rd byte communication to the camera control circuit B 102. Then, from the 4th byte to the (N-2)th byte, the return values MISO_DATA2 to MISO_DATA[N-4] corresponding to the command number CMD are similarly transmitted to the camera control circuit B 102.
[0102] It is assumed that the number of arguments and the number of return values are predetermined for each command No. One or both of the arguments and the return values may be omitted.
[0103] The camera control circuit B 102 transmits the checksum data CheckSum_C as MOSI data in the (N-1)th byte communication to the accessory control circuit 201. The checksum data CheckSum_C is a value calculated by the following expression.
[0104] CheckSum_C=EXOR(AND(SUM(CMD,MOSI_DATA1,…,MOSI_DATA[N-3]),0xFF),0xFF)
[0105] The accessory control circuit 201 transmits 0x00 as MISO data.
[0106] Next, the camera control circuit B 102 transmits 0x00 as MOSI data to the accessory control circuit 201 in the N-th byte communication.
[0107] The accessory control circuit 201 transmits the checksum data CheckSum_A as MISO data. The checksum data CheckSum_A is calculated by the following expression when the value of CheckSum_C received by the camera control circuit B 102 and the value of CheckSum_C calculated by the camera control circuit B 102 in the (N-1)th byte communication coincide with each other.
[0108] CheckSum_A=EXOR(AND(SUM(0xA5,CMD,MIS0_DATA1,…,MOSI_DATA[N-4]),0xFF),0xFF)
[0109] On the other hand, if the value of CheckSum_C received by the camera control circuit B 102 and the value of CheckSum_C calculated by the camera control circuit B 102 do not coincide with each other in the (N-1)th byte communication, the value is calculated by the following expression.
[0110] CheckSum_A=AND(SUM(0xA5,CMD,MIS0_DATA1,…,MOSI_DATA[N-4]),0xFF)
[0111] Figure 1 The TC11 shown as a signal contact (communication request contact) is connected to a communication request signal (second input signal) / WAKE for requesting communication from the accessory 200 to the camera 100 (camera control circuit A 101). The communication request signal / WAKE is pulled up to the camera microcomputer power supply VMCU_C via a resistor. The camera control circuit A 101 can detect a communication request from the accessory 200 by detecting a change (trailing edge) of the communication request signal / WAKE.
[0112] SDA connected to TC12 as a communication contact and SCL connected to TC13 are signals for performing inter-integrated circuit (I2C) communication (hereinafter referred to as I2C communication) as a first communication method in which the camera control circuit A101 is a communication master. SDA is a data signal and SCL is a clock signal. SDA and SCL are open drain communication pulled up by the camera microcomputer power supply VMCU_C, and have a communication frequency of 100 kbps in this embodiment.
[0113] In the I2C communication, both data transmission from the camera 100 and data transmission from the accessory 200 are performed via SDA. When SPI communication and I2C communication are compared with each other, the communication speed of I2C communication is lower than that of SPI communication. The communication speed of SPI communication is higher than that of I2C communication, and is therefore suitable for communication of information having a large amount of data. Therefore, in the communication between the camera 100 and the accessory 200 in the present embodiment, information having a large amount of data is communicated by using SPI communication, and information having a small amount of data is communicated by using I2C communication. For example, data is first communicated by using I2C communication, and in a case where SPI communication is available or is required to be performed based on the data, control may be performed to further perform SPI communication.
[0114] Fig.16A and Fig. 16B An example of an I2C communication waveform is shown. Fig.16A An example of a waveform is shown in the case where the camera sends N bytes of data (DATA[1] to DATA[N]) to the accessory, and Fig. 16B An example of a waveform is shown in the case where the camera receives N bytes of data (DATA[1] to DATA[N]) from the accessory. Fig.16A and Fig. 16B , the upper waveform illustrates SCL, and the lower waveform illustrates SDA.
[0115] Below the SDA waveform, the meaning of each timing signal and whether the control circuit for controlling the output level of the SDA signal is the camera control circuit A 101 or the accessory control circuit 201 are illustrated. The communication data includes 1-byte unit data and 1-bit information indicating a response. The upper part of each figure illustrates the number of bytes of data from the start of communication.
[0116] Since the following will refer to Figures 17 to 19A and Fig.19B To explain the details of the communication content, reference will be made to Fig.16A and Fig. 16B To explain the outline.
[0117] exist Fig.16A In the 1st byte communication and the 2nd byte communication, the camera control circuit A 101 notifies the accessory control circuit 201 of storage address information related to the data to be transmitted. In the 3rd byte communication to the (N+2)th byte communication, the camera control circuit A 101 transmits N-byte data (DATA[address] to DATA[address+N]) to the accessory control circuit 201.
[0118] exist Fig. 16BIn the 1st byte communication and the 2nd byte communication, the camera control circuit A 101 notifies the accessory control circuit 201 of storage address information related to the data to be received. In the 3rd byte communication to the (N+3)th byte communication, the camera control circuit A 101 receives N bytes of data (DATA[address] to DATA[address+N]) from the accessory control circuit 201.
[0119] Fig.17 The flowchart in exemplifies processing to be performed by the camera control circuit A 101 in the case where the camera control circuit A 101 sends N-byte data to the accessory control circuit 201.
[0120] In S3001, the camera control circuit A 101 stores a numerical value indicating the number of bytes to be transmitted in an internal variable N. For example, in the case of transmitting 3 bytes, 3 is stored. In the present embodiment, 3 is stored.
[0121] In S3002, the camera control circuit A 101 changes SDA to a low level (START condition) while SCL is at a high level. Thus, the accessory control circuit 201 is notified of the start of communication.
[0122] In S3003, the camera control circuit A 101 sets slave address information indicating the slave address of the accessory control circuit 201 to the upper 7 bits of the transmission data. In the present embodiment, it is assumed that the slave address of the accessory control circuit 201 is 1010000 in binary.
[0123] In S3004, the camera control circuit A 101 sets information indicating write communication to the lower 1 bit of the transmission data. Setting this bit to 0 means write communication.
[0124] In S3005, the camera control circuit A 101 transmits the data set as transmission data in S3003 and S3004 (10100000 in binary and 0xA0 in hexadecimal) to the accessory control circuit 201.
[0125] In S3006, after transmitting 1 byte of data, the camera control circuit A 101 outputs SCL for one clock and checks the signal level of SDA. When the signal level of SDA is low, it is determined to be a data reception notification (ACK) from the accessory control circuit 201, and the flow proceeds to S3007. On the other hand, when the signal level of SDA is high, it is determined that the accessory control circuit 201 has not received the data normally, and the flow proceeds to S3014.
[0126] In S3007, the camera control circuit A 101 sets, to the transmission data, storage address information (start address information) of data to be transmitted to the accessory control circuit 201. In the present embodiment, the size of the start address information is 1 byte, and the value is 0x00.
[0127] In S3008 , the camera control circuit A 101 sends the set 1-byte start address information (value 0x00) to the accessory control circuit 201 .
[0128] In S3009, after transmitting the start address information data of 1 byte, the camera control circuit A 101 outputs SCL for one clock and confirms the signal level of SDA. When the signal level of SDA is low, it is determined to be a data reception notification (ACK) from the accessory control circuit 201, and the flow proceeds to S3010. On the other hand, when the signal level of SDA is high, it is determined that the accessory control circuit 201 has not received the data normally, and the flow proceeds to S3014.
[0129] In S3010, the camera control circuit A 101 stores 1 in an internal variable M. The internal variable M is a variable for counting the number of transmission data.
[0130] In S3011, the camera control circuit A 101 outputs 1-byte data to the accessory control circuit 201 by outputting 1-byte SCL and by changing SDA to a desired signal level during SCL being at a low level. Here, the start address information is 0x00 and the internal variable M is 1, so 1-byte data corresponding to address 0x00 is transmitted.
[0131] In S3012, after transmitting 1 byte of data, the camera control circuit A 101 outputs SCL for one clock and checks the signal level of SDA. When the signal level of SDA is low, it is determined to be a data reception notification (ACK) from the accessory control circuit 201, and the flow proceeds to S3013. On the other hand, when the signal level of SDA is high, it is determined that the accessory control circuit 201 has not received the data normally, and the flow proceeds to S3014.
[0132] In S3013, the camera control circuit A 101 confirms whether the internal variable M has the same value as the internal variable N. In the case where the internal variable M has the same value as the internal variable N, it is determined that the transmission of all data is completed, and the flow proceeds to S3014. In the case where the internal variable M is not the same value as the internal variable N, it is determined that there is still data to be transmitted, and the flow proceeds to S3015.
[0133] In S3015, the camera control circuit A 101 adds 1 to the internal variable M, and the flow returns to S3011.
[0134] Therefore, after the flow returns to S3011, the camera control circuit A 101 sequentially increments the address of the data to be transmitted, and transmits 1-byte data corresponding to each address. In this way, the camera control circuit A 101 transmits N-byte data to the accessory control circuit 201 by repeatedly transmitting 1-byte data until the internal variable M and the internal variable N have the same value in the process of S3013. In the case where the internal variable N is set to 3 as in the present embodiment, 3-byte data can be transmitted.
[0135] In S3014, the camera control circuit A 101 changes SDA to a high level (STOP condition) while SCL is at a high level. Thus, the accessory control circuit 201 is notified of the end of communication.
[0136] Fig.18 The flowchart in exemplifies processing to be performed by the camera control circuit A 101 in the case where the camera control circuit A 101 receives N-byte data from the accessory control circuit 201.
[0137] In S3101, the camera control circuit A 101 stores a numerical value indicating the number of bytes to be received in an internal variable N. For example, in the case where 3-byte data is received, 3 is stored. In the present embodiment, 3 is stored.
[0138] In S3102 to S3106, the camera control circuit A 101 performs the same processing as S3002 to S3006, respectively, and thus description thereof will be omitted.
[0139] In S3107, the camera control circuit A 101 sets, to the transmission data, the storage address information (start address information) of the data received from the accessory control circuit 201. In the present embodiment, the size of the start address information is 1 byte, and the value is 0x00.
[0140] In S3108 , the camera control circuit A 101 sends the set 1-byte start address information (value 0x00) to the accessory control circuit 201 .
[0141] In S3109, after transmitting the start address information data of 1 byte, the camera control circuit A 101 outputs SCL for one clock and checks the signal level of SDA. When the signal level of SDA is low, it is determined to be a data reception notification (ACK) from the accessory control circuit 201, and the flow proceeds to S3110. On the other hand, when the signal level of SDA is high, it is determined that the accessory control circuit 201 has not received the data normally, and the flow proceeds to S3122.
[0142] In S3110, as in S3102, the camera control circuit A 101 changes SDA to low level while SCL is at high level, and notifies the accessory control circuit 201 of the start condition.
[0143] In S3111, the camera control circuit A 101 sets slave address information indicating the slave address of the accessory control circuit 201 to the upper 7 bits of the transmission data. In the present embodiment, it is assumed that the slave address of the accessory control circuit 201 is 1010000 in binary.
[0144] In S3112, the camera control circuit A 101 sets information indicating read communication to the lower 1 bit of the transmission data. Setting this bit to 1 means read communication.
[0145] In S3113, the camera control circuit A 101 transmits the data set as transmission data in S3003 and S3004 (10100001 in the case of binary and 0xA1 in the case of hexadecimal) to the accessory control circuit 201.
[0146] In S3114, after transmitting 1 byte of data, the camera control circuit A 101 outputs SCL for one clock and checks the signal level of SDA. When the signal level of SDA is low, it is determined to be a data reception notification (ACK) from the accessory control circuit 201, and the flow proceeds to S3115. On the other hand, when the signal level of SDA is high, it is determined that the accessory control circuit 201 has not received the data normally, and the flow proceeds to S3122.
[0147] In S3115, the camera control circuit A 101 stores 1 in the internal variable M. The internal variable M is a variable for counting the number of received data.
[0148] At S3116, the camera control circuit A 101 outputs 1-byte SCL, and reads the signal level of SDA at the timing when SCL changes from low level to high level. This configuration enables 1-byte data to be received from the accessory control circuit 201. The received 1-byte data can be stored in the volatile memory 125 as data corresponding to address 0x00 or used for predetermined processing.
[0149] In S3117, the camera control circuit A 101 determines whether the 1-byte data is received normally. If the data is received normally, the flow proceeds to S3118. If the data is not received normally, the flow proceeds to S3119.
[0150] In S3118, the camera control circuit A 101 confirms whether the internal variable M has the same value as the value of the internal variable N. If the internal variable M has the same value as the value of the internal variable N, it is determined that the reception of all data is completed, and the flow proceeds to S3119. If the internal variable M is not the same value as the value of the internal variable N, it is determined that there is still data to be received, and the flow proceeds to S3120.
[0151] In S3120, the camera control circuit A 101 provides a data reception notification (ACK) to the accessory control circuit 201, and notifies the accessory control circuit 201 of continuous data communication by outputting SCL of 1 byte and by performing control for changing SDA to the low level.
[0152] In S3121, the camera control circuit A 101 adds 1 to the internal variable M, and the flow returns to S3116.
[0153] Therefore, after the flow returns to S3116, the camera control circuit A 101 sequentially increments the address of the data to be received, and receives 1-byte data corresponding to each address. In this way, the camera control circuit A 101 receives N-byte data from the accessory control circuit 201 by repeatedly receiving 1-byte data until the internal variable M and the internal variable N have the same value in the process of S3118. In the case where the internal variable N is set to 3 as in the present embodiment, 3-byte data can be received.
[0154] In S3119, the camera control circuit A 101 outputs SCL of 1 byte, and performs control for changing SDA to a high level to notify the accessory control circuit 201 of the completion of data communication (NACK).
[0155] In S3122, the camera control circuit A 101 changes SDA to a high level (stop condition) while SCL is at a high level. Thus, the accessory control circuit 201 is notified of the end of communication.
[0156] Fig.19A and Fig.19B The flowchart in exemplifies processing to be performed by the accessory control circuit 201 when the camera control circuit A 101 sends N-byte data to the accessory control circuit 201 and when the camera control circuit A 101 receives N-byte data from the accessory control circuit 201.
[0157] In S3201, the accessory control circuit 201 waits for SDA to change to a low level (start condition) while SCL is at a high level. When the accessory control circuit 201 detects the start condition, the flow proceeds to S3202.
[0158] In S3202, the accessory control circuit 201 stores 0 in the internal variable M. The internal variable M is a variable for counting the number of transmission data and the number of reception data.
[0159] In S3203, the accessory control circuit 201 receives the 1-byte data transmitted from the camera control circuit A 101.
[0160] In S3204, the accessory control circuit 201 determines whether the upper 7 bits of the 1-byte data received in S3203 are consistent with the slave device address (0x50 in this embodiment) of the accessory control circuit 201. If the address is consistent with the slave device address of the accessory control circuit 201, the process proceeds to S3205. If the address is inconsistent with the slave device address of the accessory control circuit 201, the process proceeds to S3221.
[0161] In S3205, the accessory control circuit 201 provides a data reception notification (ACK) to the camera control circuit A 101 by performing control for changing SDA to the low level for the next SCL clock output after receiving 1-byte data.
[0162] In S3206, the accessory control circuit 201 determines the type of data used for the next 1-byte communication based on the lower 1-bit data of the 1-byte data received in S3203. When the lower 1-bit data is 0, it is determined that the data for the next 1-byte communication is the start address information from the camera control circuit A 101 to the accessory control circuit 201, and the flow proceeds to S3207. When the lower 1-bit data is 1, it is determined that the data for the next 1-byte communication is the transmission data from the accessory control circuit 201 to the camera control circuit A 101, and the flow proceeds to S3209.
[0163] In S3207, the accessory control circuit 201 receives the 1-byte data transmitted from the camera control circuit A 101. The received 1-byte data is information indicating the address storing the data to be transmitted and received in the subsequent communication. Fig.17 and Fig.18 As described above, it is assumed that the start address information is 0x00.
[0164] On the other hand, in S3209, the accessory control circuit 201 uses address information pre-stored in the accessory control circuit 201 or address information notified in advance from the camera control circuit A 101 for the start address information.
[0165] In S3208, if the accessory control circuit 201 determines that the 1-byte data can be received normally, the flow proceeds to S3210. If it is determined that the 1-byte data cannot be received normally, the flow proceeds to S3221.
[0166] In S3210, the accessory control circuit 201 provides the camera control circuit A 101 with a data reception notification (ACK) by performing control for changing SDA to the low level for the next SCL clock output after receiving 1-byte data.
[0167] In S3211, the accessory control circuit 201 confirms whether SDA changes to a low level (start condition) while SCL is at a high level. In the case where the accessory control circuit 201 detects the start condition, the accessory control circuit 201 determines that the 1-byte data to be communicated next is data to be sent from the camera control circuit A 101 to the accessory control circuit 201 and indicates the slave device address and the communication type. Then, the flow proceeds to S3212. In the case where the accessory control circuit 201 does not detect the start condition, the accessory control circuit 201 determines that the 1-byte data to be communicated next is data information received by the accessory control circuit 201 from the camera control circuit A 101. Then, the flow proceeds to S3216.
[0168] In S3212, the accessory control circuit 201 receives the 1-byte data transmitted from the camera control circuit A 101.
[0169] In S3213, the accessory control circuit 201 determines whether the upper 7 bits of the 1-byte data received in S3212 are consistent with the slave device address (0x50 in this embodiment) of the accessory control circuit 201. If the upper 7 bits are consistent with the slave device address of the accessory control circuit 201, the process proceeds to S3214. If the upper 7 bits are inconsistent with the slave device address of the accessory control circuit 201, the process proceeds to S3221.
[0170] In S3214, the accessory control circuit 201 determines the data type used for the next 1-byte communication based on the lower 1-bit data of the 1-byte data received in S3203. When the lower 1-bit data is 0, the flow proceeds to S3221. When the lower 1-bit data is 1, it is determined that the data for the next 1-byte communication is transmission data from the accessory control circuit 201 to the camera control circuit A101, and the flow proceeds to S3215.
[0171] In S3215, the accessory control circuit 201 provides the camera control circuit A 101 with a data reception notification (ACK) by performing control for changing SDA to the low level for the next SCL clock output after receiving 1-byte data.
[0172] In S3222, the accessory control circuit 201 transmits, to the camera control circuit A101, 1-byte data corresponding to the start address information received from the camera control circuit A101 in S3207 or the start address information determined in S3209.
[0173] In S3223, the accessory control circuit 201 adds 1 to the internal variable M, and the flow proceeds to S3224.
[0174] In S3224, the accessory control circuit 201 confirms the signal level of SDA after transmitting 1-byte data. In the case where the signal level of SDA is high, the camera control circuit A 101 determines that this is a notification (NACK) that all data has been received, and the flow proceeds to S3225. On the other hand, in the case where the signal level of SDA is low, it is determined that the camera control circuit A 101 continues to request data transmission from the accessory control circuit 201, and the flow returns to S3222. Therefore, after the flow returns to S3222, the accessory control circuit 201 sequentially increments the address of the data to be transmitted, and transmits 1-byte data corresponding to each address. Therefore, by repeatedly transmitting 1-byte data from the camera control circuit A 101 until NACK is notified in the process of S3224, the accessory control circuit 201 transmits N-byte data to the camera control circuit A 101.
[0175] In S3225, the accessory control circuit 201 waits for a stop condition in which SDA changes to a high level while SCL is at a high level. When the accessory control circuit 201 detects the stop condition, communication is terminated.
[0176] On the other hand, in S3216, the accessory control circuit 201 receives 1-byte data and stores the 1-byte data in a non-volatile memory not shown as data corresponding to the start address information received from the camera control circuit A 101 in S3207, or uses the 1-byte data for predetermined processing.
[0177] In S3217, the accessory control circuit 201 adds 1 to the internal variable M, and the flow proceeds to S3218.
[0178] In S3218, if the accessory control circuit 201 determines that the 1-byte data can be received normally, the flow goes to S3219. If it is determined that the 1-byte data cannot be received normally, the flow goes to S3221.
[0179] In S3219, the accessory control circuit 201 provides the camera control circuit A101 with a data reception notification (ACK) by performing control for changing SDA to the low level for the next SCL clock output after receiving 1-byte data.
[0180] In S3230, the accessory control circuit 201 confirms whether it has detected a stop condition in which SDA changes to a high level while SCL is at a high level. In the case where the accessory control circuit 201 detects the stop condition, the accessory control circuit 201 terminates the communication. On the other hand, in the case where the accessory control circuit 201 does not detect the stop condition, the accessory control circuit 201 determines that data will be continuously transmitted from the camera control circuit A 101 to the accessory control circuit 201. Then, the flow returns to S3216.
[0181] Therefore, after the flow returns to S3216, the accessory control circuit 201 sequentially increments the address of the data to be received and receives 1-byte data corresponding to each address. By repeatedly receiving 1-byte data until the stop condition is notified in S3220, the accessory control circuit 201 receives N-byte data from the camera control circuit A 101.
[0182] Therefore, the camera connector 141 includes a contact TC12 for a data signal by the I2C communication method, and a contact TC13 for a clock signal by the I2C communication method arranged on one side of the contact TC12 for the data signal (adjacent to each other on one side). The camera connector 141 also includes a contact TC11 for a second input signal, a contact TC10 for an input selection signal by the SPI communication method, a contact TC09 for reception by the SPI communication method, a contact TC08 for transmission by the SPI communication, a contact TC07 for a clock signal by the SPI communication method, a contact TC06 for a first input signal, and a contact TC05 for an output signal, which are arranged on the other side of the contact TC12 for the data signal (arranged in order from positions adjacent to each other on the other side).
[0183] The accessory 200 stores the accessory information in a nonvolatile memory not shown. The accessory information is information for allowing the camera 100 to recognize the type of the accessory 200 and specifications related to communication and operation (function) of the accessory 200. Figure 5 An example of accessory information is illustrated. The accessory information is mapped in the memory space at addresses 0x00 to 0x0F, and the accessory information can be read out from the accessory 200 through I2C communication. The details of the accessory information will be described below. In the I2C communication according to this embodiment, a checksum value for the read data is added as the final data of the communication.
[0184] Connect to Figure 1 The FNC1 signal of TC14, the FNC2 signal connected to TC15, the FNC3 signal connected to TC16, and the FNC4 signal connected to TC17 shown as communication contacts are functional signals whose functions are variable depending on the type of attached accessory 200. For example, in the case where accessory 200 is a microphone device, the signal communicated via TC15 is a signal related to voice data, and in the case where accessory 200 is a flash device, the signal communicated via TC14 is a signal notifying light emission timing.
[0185] Signals for implementing different functions can be communicated via the same contact depending on the type of accessory attached. For example, in the case where accessory 200 is an accessory other than a lighting device, a synchronization signal for controlling a timing different from the light-emitting timing can be communicated via TC14. TC14 to TC17 correspond to functional signal contacts. Communication using at least one of the functional signal contacts will also be referred to as functional signal communication. Functional signal communication can be performed in parallel with I2C communication and SPI communication at a timing independent of I2C communication and SPI communication.
[0186] The accessory type as used herein means the microphone device, lighting device, etc. mentioned above. Accessories that achieve the same purpose (such as lighting devices with different performances, etc.) belong to the same type of accessories. Accessories that achieve different purposes (such as microphone devices and lighting devices, etc.) are accessories of different types. Functional signal communication is performed based on information acquired through I2C communication or SPI communication. TC18, which is a second ground contact, is also connected to GND, and, similar to TC04, is a contact used as a reference potential for the camera 100 and the accessory 200. The differential signal D2N connected to TC19 and the differential signal D2P connected to TC20 are data communication signals for data communication between the two in pairs, and are connected to the camera control circuit B 102. For example, USB communication can be performed via TC19 and TC20.
[0187] TC21 is connected to GND, and can be used not only as a reference potential contact but also as a contact for controlling the wiring impedance of the differential signals D2N and D2P. TC21 corresponds to the fourth ground contact. The contacts TC01, TC04, TC06, TC18, and TC21 are connected to, for example, a GND portion of a flexible printed circuit (FPC) substrate, and the GND portion of the FPC substrate is fixed to a metal member used as a GND level of the camera 100 by screws or the like. The metal member used as the GND level includes, for example, a coupling member that can be coupled with the accessory 200 in the accessory shoe portion, and a bottom plate not shown inside the camera 100, etc.
[0188] In the present embodiment, the attachment detection contact TC06 to which the accessory attachment detection signal / ACC_DET is connected is arranged next to the contact (first clock contact) TC07 that sends the clock signal SCLK (first clock signal). Typically, noise (clock noise) associated with potential fluctuations in the clock signal is sent to the contact adjacent to the contact of the clock signal, which may cause a malfunction. In particular, this effect is significant in a configuration with many contacts and a short distance between the contacts, as in the present embodiment. Therefore, by arranging the attachment detection contact TC06 next to the SCLK contact TC07, the influence of the clock noise can be suppressed.
[0189] The accessory attachment detection signal / ACC_DET is pulled up before the accessory is attached, but is set to the GND potential after the accessory is attached. On the other hand, before the accessory is attached, the potential does not fluctuate because the SCLK contact TC07 for sending the clock signal does not send the clock signal. Only after the accessory is attached, the potential fluctuates due to the sending of the clock signal.
[0190] When the SCLK contact TC07 sends a clock signal, the attachment detection contact TC06 is at the GND potential. Therefore, even if the attachment detection contact TC06 receives clock noise, the potential of the control circuit of the camera 100 and the accessory 200 is unlikely to fluctuate, thereby preventing malfunction. In addition, it is possible to suppress the clock noise from being sent to a position farther than the accessory detection contact TC06. As a result, it is not necessary to provide a GND terminal, so the influence of the clock noise can be suppressed without increasing the number of contacts.
[0191] SCL (second clock signal) as a clock signal is also sent to the contact (second clock contact) TC13. However, the SCLK sent to the SCLK contact TC07 has a higher frequency than the frequency of SCL, and the SCLK contact TC07 generates more clock noise than the SCL contact TC13. Therefore, it is more effective to arrange the attachment detection contact TC06 next to the SCLK contact TC07 rather than next to the SCL contact TC13 in preventing malfunctions caused by clock noise.
[0192] In addition to the difference in frequency, the SCL sent by the SCL contact TC13 is a clock signal of the I2C communication standard, and the voltage fluctuation of the signal line is driven by the open drain connection. On the other hand, the SCLK sent by the SCLK contact TC07 is a clock signal of the SPI communication standard, and the voltage fluctuation of the signal line is driven by the CMOS output. Therefore, compared with the edge of the voltage fluctuation of the SCLK contact TC07, the edge of the voltage fluctuation of the SCL contact TC13 is often smoother, and clock noise is less likely to occur. Therefore, it is more effective to arrange the attachment detection contact TC06 next to the SCLK contact TC07 instead of next to the SCL contact TC13, which is more effective in preventing malfunctions caused by clock noise.
[0193] The differential signals D1N and D1P may be sent in pairs to the first differential signal contact TC19 and the second differential signal contact TC20 to send a clock signal. In this case, a clock signal (third clock signal) having a frequency higher than that of the SCLK contact TC07 and the SCL contact TC13 may be sent. However, the differential signals D1N and D1P are paired signals, so the clock noise emission is smaller than the clock noise emission of the SCLK contact TC07 and the SCL contact TC13 that send a single-ended signal. Therefore, it is more effective to prevent malfunctions caused by clock noise by arranging the attachment detection contact TC06 next to the SCLK contact TC07 instead of next to the first differential signal contact TC19 and the second differential signal contact TC20.
[0194] The contact (first data contact) TC08 arranged next to the SCLK contact TC07 on the opposite side to the attachment detection contact TC06 transmits MOSI (first data signal). Since MOSI is a data signal, MOSI seems to be susceptible to clock noise. However, MOSI is a data signal of the SPI communication standard that is the same as the clock signal transmitted by the SCLK contact TC07, so the potential fluctuation timing is synchronized with the clock signal and is less likely to be affected by clock noise. Therefore, the contact TC08 does not have to be fixed to the GND potential and can be used as a MOSI contact.
[0195] The accessory 200 has a battery 205 and receives power from the battery 205, and also receives power from the camera 100 via the camera connector 141 and the accessory connector 211. The accessory control circuit 201, which is an accessory processing unit in the accessory 200, is a circuit that controls the entire accessory 200, and includes a processor (microcomputer) such as a CPU, etc. The accessory control circuit 201 performs various controls and processes according to a computer program.
[0196] The accessory power supply circuit 202 is a circuit that generates power for supplying power to each circuit in the accessory 200, and includes a DC / DC converter circuit, an LDO, a charge pump circuit, etc. The 1.8V voltage generated by the accessory power supply circuit 202 is constantly supplied to the accessory control circuit 201 as the accessory microcomputer power supply VMCU_A. Control of the accessory power supply circuit 202 can provide on and off control of power supply to each circuit in the accessory 200. The voltage generated by the accessory power supply circuit 202 may be different from 1.8V.
[0197] The charging circuit 204 is a circuit that charges the battery 205 using the power supplied from the camera 100. When the accessory control circuit 201 can determine that sufficient power is supplied from the camera 100 for a charging operation, the accessory control circuit 201 controls the charging circuit 204 to charge the battery 205. In the present embodiment, the battery 205 is attached to the accessory 200, but the accessory 200 may operate only by supplying power from the camera 100 to the accessory power supply circuit 202 without attaching the battery 205. In this case, the charging circuit 204 is unnecessary.
[0198] The differential communication circuit 207 is a circuit for differential communication with the camera 100, and can communicate data with the camera 100. The external communication IF circuit 208 is an IF circuit for data communication with an external device not shown, such as an Ethernet communication IF, a wireless LAN communication IF, and a public network communication IF. The accessory control circuit 201 controls the differential communication circuit 207 and the external communication IF circuit 208 to transmit data received from the camera 100 to the external device, and transmit data received from the external device to the camera 100.
[0199] Function circuit 206 is a circuit having different functions depending on the type of accessory 200. When accessory 200 is a flash device, function circuit 206 is, for example, a lighting circuit or a charging circuit. When accessory 200 is a microphone device, accessory 200 is a voice codec circuit or a microphone circuit.
[0200] The external connection terminal 209 is a connector terminal for connection to an external device, and is a USB TYPE-C connector in this embodiment. The connection detection circuit 210 is a circuit for detecting that an external device has been connected to the external connection terminal 209. The accessory control circuit 201 can detect the connection of the external device to the external connection terminal 209 by receiving an output signal of the connection detection circuit 210.
[0201] The power switch 203 is a switch operable by a user to turn on and off the power (ie, operation) of the accessory 200. The accessory control circuit 201 can detect the on position and the off position by reading the signal level of the terminal to which the power switch 203 is connected.
[0202] The operation switch 212 is a switch that can be operated by the user to give various instructions to the accessory 200 and make various settings, and includes a button, a cross key, a slide switch, a dial switch, a touch sensor, etc. When the operation switch 212 is operated, the accessory control circuit 201 detects the operation and performs predetermined processing according to the operation.
[0203] The accessory connector 211 is a connector electrically connectable to the camera 100 via 21 contacts TA01 to TA21 arranged in a row. The contacts TA01 to TA21 are arranged in order of the contacts TA01 to TA21 from one end to the other end in the arrangement direction.
[0204] TA01 is connected to GND, and serves not only as a reference potential contact but also as a contact for controlling wiring impedance of differential signals D1N and D1P. TA01 corresponds to a third ground contact.
[0205] The differential signal D1N connected to TA02 and the differential signal D1P connected to TA03 are data communication signals for data communication between the two in pairs, and are connected to the differential communication circuit 207. TA02, TA03, TA07 to TA10, TA12 to TA17, TA19, and TA20 described below are communication contacts.
[0206] TA04 as a first ground contact is connected to GND, and serves as a reference potential contact for the camera 100 and the accessory 200. TA04 is arranged outside TA05 described below in the arrangement direction of the contacts.
[0207] The accessory power supply circuit 202 and the charging circuit 204 are connected to TA05 as a power supply contact, and the accessory power supply VACC supplied from the camera 100 is connected to TA05 .
[0208] TA06 as an attachment detection contact is directly connected to GND. When the accessory 200 is attached to the camera 100, the accessory control circuit 201 sets the above-mentioned accessory attachment detection signal / ACC_DET to a low level (GND potential) as an activation potential. Thus, the camera 100 can detect the attachment of the accessory 200.
[0209] SCLK connected to TA07 as a communication contact, MOSI connected to TA08, MISO connected to TA09, and CS connected to TA10 are signals for the accessory control circuit 201 to use as a communication slave to perform SPI communication.
[0210] A communication request signal / WAKE for requesting communication from the accessory control circuit 201 to the camera 100 is connected to TA11 as a signal contact (communication request contact). When the accessory control circuit 201 determines that communication with the camera 100 is required, the accessory control circuit 201 requests communication from the camera 100 by changing the communication request signal / WAKE from a high level to a low level.
[0211] When power is supplied from the camera control circuit 101 to the accessory 200 via TC5 in response to detecting attachment of the accessory 200, the accessory control circuit 201 notifies the camera control circuit 101 that power has been received by changing the signal level of the communication request signal / WAKE (by changing the potential of the communication request signal / WAKE) from a high level to a low level.
[0212] Even if there is no request from the camera, the accessory control circuit 201 can notify that there is a factor causing the accessory 200 to communicate with the camera 100 by changing the signal level (potential) of the communication request signal / WAKE from a high level to a low level. With this configuration, the camera control circuit 101 can omit an operation of periodically checking whether the accessory 200 has a factor requiring communication by polling. When the communication requiring factor occurs, the accessory 200 can communicate with the camera 100 in real time.
[0213] SDA connected to TA12 as a communication contact and SCL connected to TA13 are signals for the accessory control circuit 201 to perform I2C communication as a communication slave.
[0214] Therefore, the accessory connector 211 includes a contact TA12 for a data signal by the I2C communication method, and a contact TA13 for a clock signal by the I2C communication method arranged on one side of the contact TA12 for the data signal (adjacent to the contact TA12 for the data signal on one side). The accessory connector 211 also includes a contact TA11 for a second input signal, a contact TA10 for an input selection signal by the SPI communication method, a contact TA09 for transmission by the SPI communication method, a contact TA08 for reception by the SPI communication method, a contact TA07 for a clock signal by the SPI communication method, a contact TA06 for a first input signal, and a contact TA06 for an output signal on the other side of the contact TA12 for the data signal (in order from a position adjacent to the contact TA12 for the data signal on the other side).
[0215] The FNC1 signal connected to TA14 as a communication contact (function signal contact), the FNC2 signal connected to TA15, the FNC3 signal connected to TA16, and the FNC4 signal connected to TA17 are function signals whose functions are variable depending on the type of accessory 200. For example, in the case where accessory 200 is a microphone device, these signals may be signals related to voice data, and in the case where accessory 200 is a flash device, these signals may be signals for notifying light emission timing.
[0216] TA18 as a second ground contact is also connected to GND, and similar to TA04, is a reference potential contact for the camera 100 and the accessory 200. The differential signal D2N connected to TA19 and the differential signal D2P connected to TA20 are data communication signals for data communication between the two in pairs, and are connected to the external connection terminal 209.
[0217] TA21 is connected to GND, and can be used not only as a reference potential contact but also as a terminal for controlling wiring impedance of differential signals D2N and D2P. TA21 corresponds to a fourth ground contact.
[0218] The contacts TA01, TA04, TA06, TA18, and TA21 are connected to, for example, a GND portion of an FPC substrate, and the GND portion of the FPC substrate is fixed to a metal member serving as a GND level of the accessory 200 with screws not shown. The metal member serving as the GND level includes, for example, a socket attachment leg engageable with the accessory socket portion of the camera 100, a bottom plate not shown inside the accessory 200, and the like.
[0219] Figure 6 A processing sequence to be performed when the accessory 200 is attached to the camera 100 is illustrated. An overview of each of the processing of the camera 100 (camera control circuits A 101 and B 102) and the accessory 200 (accessory control circuit 201) will now be described, and details will be described below.
[0220] When the accessory 200 is attached to the camera 100, the accessory attachment detection signal / ACC_DET becomes at a low level. Thus, the camera control circuit A 101 determines that the accessory 200 is attached to the camera 100. The camera control circuit A 101, which determines that the accessory 200 is attached, sets the power control signal CNT_VACC1 to a high level to turn on the output of the accessory power circuit A 131. When the power control signal CNT_VACC1 becomes at a high level, the accessory power circuit A 131 outputs the accessory power VACC.
[0221] The accessory power supply circuit 202 that has received VACC generates a power supply VMCU_A for the accessory control circuit 201. Thus, the accessory control circuit 201 is activated. The activated accessory control circuit 201 initializes each block in the accessory 200. Thereafter, when the accessory control circuit 201 is ready to communicate with the camera 100, the accessory control circuit 201 sets the communication request signal / WAKE to a low level.
[0222] When the communication request signal / WAKE becomes at a low level, the camera control circuit A 101 detects that the accessory 200 is in a communicable state. The camera control circuit A 101 requests the accessory 200 to communicate accessory information through I2C communication. The accessory control circuit 201 that has received the accessory information request transmits the accessory information to the camera control circuit A 101. The accessory control circuit 201 that has transmitted the accessory information sets the communication request signal / WAKE to a high level.
[0223] The camera control circuit A 101 determines whether the attached accessory is controllable based on the received accessory information. The camera control circuit A 101 turns on the accessory power circuit B 132. Then, the camera control circuit A 101 performs various settings of the camera 100, and when these settings are completed, the camera control circuit A 101 notifies the camera control circuit B 102 of the accessory information.
[0224] The camera control circuit B 102 notifies the accessory 200 of a control command (accessory control communication) or performs control corresponding to a function signal (function signal control) through SPI communication based on the notified accessory information. That is, the camera control circuit B 102 controls the accessory 200 through SPI communication.
[0225] The accessory control circuit 201 responds to a control command from the camera 100 through SPI communication, and operates according to a function signal.
[0226] Now we will explain Figure 5 The data of D7-D0 at address 0x00 is information indicating the type of the accessory (hereinafter referred to as accessory type information). Figure 7 Examples of accessory type information are illustrated. For example, 0x81 represents a flash device, 0x82 represents an interface conversion adapter device, 0x83 represents a microphone device, and 0x84 represents a multi-accessory connection adapter device for attaching multiple accessory devices to the camera 100.
[0227] The adapter device is an intermediate accessory attached between the camera 100 and an accessory such as a flash device and a microphone device. The interface conversion adapter device is an adapter device that converts interfaces to provide compatibility between the camera 100 and the accessory in a case where the interface of the camera 100 and the interface of the accessory are different. The multi-accessory connection adapter device is an adapter device to which a plurality of accessories can be attached.
[0228] Figure 5 The data D7-D0 at address 0x01 in is information indicating the model (type) of the accessory 200 (hereinafter referred to as accessory type information). The type and model of the accessory can be identified by the above-mentioned accessory type information and this information.
[0229] The data D7 to D0 at address 0x02 is information indicating the firmware version of the accessory 200 .
[0230] The data D7-D6 at the address 0x03 is specification information (hereinafter referred to as power-off power supply required / unrequired information) indicating whether to request the supply of (electric power) to the accessory power source VACC of the accessory 200 in the power-off state (first power saving state) in which the power switch (not shown) of the camera 100 is turned off. When the information is 0, power supply is not requested. When the information is 1, power supply is requested by the accessory power supply circuit A 131. When the information is 2, power supply is requested by the accessory power supply circuit B 132.
[0231] The D5-D4 data at the address 0x03 is specification information (hereinafter referred to as automatic power-off power supply required / unrequired information) indicating whether to request the accessory power source VACC to the accessory 200 when the camera 100 is in a power saving state (a second power saving state; hereinafter referred to as the automatic power-off state) by the automatic power-off function. The camera 100 has an automatic power-off function to save power, and the automatic power-off function automatically turns off the power when a non-operating state in which no operation is performed continues for a predetermined time. In the case where this information is 0, this means that power supply is not required. In the case where this information is 1, this means that there is power supply requested by the accessory power supply circuit A 131. In the case where this information is 2, this means that there is power supply requested by the accessory power supply circuit B 132.
[0232] The D3-D2 data at address 0x03 is specification information indicating whether the accessory 200 has the battery 205. In the case where this information is 0, this means that the accessory 200 does not have a battery, and in the case where this information is 1, this means that the accessory 200 has a battery.
[0233] The D1-D0 data at address 0x03 is specification information (hereinafter referred to as charging support information) indicating whether the accessory 200 has a charging function for the battery 205. When this information is 0, it means that the accessory 200 does not have a charging function, and when this information is 1, it means that the accessory 200 has a charging function.
[0234] The D7-D0 data at address 0x04 is specification information indicating the required power of the accessory power supply VACC supplied from the camera 100 to the accessory 200. For example, a value obtained by multiplying the information by 10 indicates a current value. In the case where the information is 10, this means 100 mA, and in the case where the information is 100, this means 1 A. In order to reduce the amount of information of the information, the information may be simply associated with the current value. For example, in the case where the information is 0, this may mean 100 mA, in the case where the information is 1, this may mean 300 mA, in the case where the information is 3, this may mean 450 mA, and in the case where the information is 4, this may mean 600 mA.
[0235] The D7 data at address 0x05 is specification information indicating whether the accessory 200 is in the firmware update mode. When the information is 0, it means that the accessory 200 is not in the firmware update mode, and when the information is 1, it means that the accessory 200 is in the firmware update mode.
[0236] The D6 data at address 0x05 is specification information indicating whether the accessory 200 has a firmware update function. When this information is 0, it means that the accessory 200 does not have a firmware update function. When this information is 1, it means that the accessory 200 has a firmware update function.
[0237] The D5-D4 data at address 0x05 is specification information indicating whether the operation of the accessory 200 attached to the intermediate (connection) accessory is permitted. If the information is 0, it means that the operation is not permitted, and if the information is 1, it means that the operation is permitted.
[0238] The D3-D2 data at address 0x05 is specification information indicating whether the accessory 200 requires the camera 100 to confirm the attachment of the intermediate accessory when the camera 100 is activated. If this information is 0, it means that confirmation is unnecessary, and if this information is 1, it means that confirmation is necessary.
[0239] The D1-D0 data at address 0x05 is specification information indicating whether the accessory 200 supports command notification by I2C communication. In the case where the information is 0, this means that command notification is not supported, and in the case where the information is 1, this means that command notification is supported.
[0240] The D5-D4 data at address 0x06 is specification information indicating a communication request factor acquisition method (communication method used: hereinafter referred to as factor acquisition method) as a communication method that can be used to notify the camera 100 of the generation factor of the communication request after the accessory 200 notifies the camera 100 of the communication request signal / WAKE. In the case where this information is 0, it means that the I2C communication method is the factor acquisition method. In the case where this information is 1, it means that the SPI communication method is the factor acquisition method. In the case where this information is 2, it means that the I2C communication method and the SPI communication method are each the factor acquisition method.
[0241] The D3-D0 data at address 0x06 is specification information indicating whether the accessory 200 has functions corresponding to the FNC1 signal (function signal 1), the FNC2 signal (function signal 2), the FNC3 signal (function signal 3), and the FNC4 signal (function signal 4). The D0 data corresponds to the FNC1 signal, the D1 data corresponds to the FNC2 signal, the D2 data corresponds to the FNC3 signal, and the D3 data corresponds to the FNC4 signal. In the case where the value is 0, this means that the accessory 200 does not have the function. In the case where the value is 1, the accessory 200 has the function.
[0242] The D7 data at address 0x0A is specification information indicating whether the accessory 200 requests activation of the camera 100 when the accessory 200 notifies the camera 100 of the communication request signal / WAKE. If the information is 0, this means activation is requested, and if the information is 1, this means activation is not requested.
[0243] The data D6-D0 at the address 0x0A is information indicating a generation factor of the communication request signal / WAKE which the accessory 200 notifies the camera 100 of.
[0244] Figure 8 An example of a factor for generating a communication request signal / WAKE (hereinafter also referred to as a communication request factor) is illustrated. Here, an example is illustrated in the case where the accessory 200 is a microphone device. For example, factor number 0x00 is a number indicating that the menu call switch in the operation switch 212 has been operated (pressed). Factor number 0x01 is a number indicating that the accessory 200 has completed the output control of the audio signal. Factor number 0x02 is a number indicating that the accessory 200 has completed the mute processing (unmuting) of the audio signal. As described above, in the present embodiment, information related to the communication request factor (number) used as information related to the generation factor of the communication request signal / WAKE can be notified (sent) from the accessory 200 to the camera 100 as accessory information.
[0245] exist Figure 5 In the example, the D1 data at address 0x0C is the specification information of the SPI communication protocol supported by accessory 200, and when the information is 0, it means that accessory 200 supports SPI protocol A, and when the information is 1, it means that accessory 200 supports SPI protocol B.
[0246] The D0 data at the address 0x0C is specification information indicating the logic that CS becomes active in the SPI communication supported by the accessory 200. When the information is 0, it means that CS is low active logic, and when the information is 1, it means that CS is high active logic.
[0247] The D7-D0 data at address 0x0D is specification information indicating the time required as a communication byte interval when accessory 200 communicates according to SPI protocol A and the D7 data at address 0x05 is 0 or accessory 200 is not in the firmware update mode.
[0248] The D7-D0 data at address 0x0E is specification information indicating the time required as a communication byte interval when the accessory 200 communicates according to SPI protocol A and the D7 data at address 0x05 is 1 or the accessory 200 is in the firmware update mode.
[0249] Fig.9A and Fig. 9B The time (communication interval) of the communication byte interval corresponding to the data (0 to 7) at the addresses 0x0D and 0x0E is illustrated. Fig.9A illustrates the communication interval for data at address 0x0D, and Fig. 9B The communication interval for data at address 0x0E is illustrated.
[0250] exist Figure 5 , the data at address 0x0F is data indicating a checksum value of the sum of the values at addresses 0x00 to 0x0E.
[0251] Fig.10 The startup process to be performed by the camera control circuit A 101 until the accessory 200 is attached to the camera 100 and the function of the accessory 200 is enabled is illustrated.
[0252] In S401, the camera control circuit A 101 monitors the signal level of the accessory attachment detection signal / ACC_DET, and determines (detects) whether the accessory 200 is attached. If the signal level of the accessory attachment detection signal / ACC_DET is high, the camera control circuit A 101 determines that the accessory 200 is not attached, and the flow returns to S401. Therefore, the camera control circuit A 101 determines again whether the accessory 200 is attached. If the signal level is low, the camera control circuit A 101 determines that the accessory 200 is attached, and the flow proceeds to S402.
[0253] In S402, the camera control circuit A 101 performs control for changing the power control signal CNT_VACC1 to a high level to turn on the output of the accessory power circuit A 131. Then, the flow proceeds to S403. When the power control signal CNT_VACC1 is at a high level, the accessory power circuit A 131 outputs the accessory power VACC.
[0254] In S403, the camera control circuit A 101 monitors the signal level of the overcurrent detection signal DET_OVC and determines whether an overcurrent is flowing. If the signal level of DET_OVC is low, the camera control circuit A 101 determines that no overcurrent is flowing, and the process proceeds to S404, and if the signal level is high, the camera control circuit A 101 determines that an overcurrent is flowing, and the process proceeds to S405 for error processing.
[0255] In S404, the camera control circuit A 101 monitors the signal level of the communication request signal / WAKE as a notification signal from the accessory 200, and determines whether the initialization of the accessory 200 is completed. If the signal level of the communication request signal / WAKE is low (active), the camera control circuit A 101 determines that the initialization is completed, and the flow proceeds to S406. If the signal level is high, the camera control circuit A 101 determines that the initialization has not been completed, and the flow returns to S404 so that the camera control circuit A 101 determines again whether the initialization is completed.
[0256] In S406, the camera control circuit A 101 performs I2C communication with the accessory 200 as initial communication, and reads out 15 bytes of accessory information. Then, the flow proceeds to S407.
[0257] In S407, the camera control circuit A 101 determines, based on the accessory information read out in S406, whether the attached accessory 200 is a compatible device (compatible accessory) with the camera 100. In a case where the camera control circuit A 101 determines that the attached accessory 200 is a compatible accessory, the flow proceeds to S408, and in a case where the camera control circuit A 101 determines that the attached accessory 200 is not a compatible accessory, the flow proceeds to S409 for error processing.
[0258] In S408, the camera control circuit A 101 performs control for changing the power control signal CNT_VACC2 to a high level to turn on the output of the accessory power circuit B 132. Then, the flow proceeds to S410. When the power control signal CNT_VACC2 is at a high level, the accessory power circuit B 132 outputs the accessory power VACC. In the present embodiment, when both the power control signals CNT_VACC1 and CNT_VACC2 are at a high level, the output from the accessory power circuit B 132 is supplied to the accessory power VACC.
[0259] In S410, the camera control circuit A 101 notifies the camera control circuit B 102 of the accessory information read out in S406. Thus, the activation process of the camera 100 in response to the attachment of the accessory 200 is completed.
[0260] Fig.11 The flowchart in exemplifies activation processing to be performed by the camera control circuit B 102 until the accessory 200 is attached to the camera 100 and the function of the accessory 200 is activated.
[0261] In S501, the camera control circuit B 102 determines whether the accessory information has been notified from the camera control circuit A 101. If the accessory information has not been notified, the flow returns to S501, and the camera control circuit B 102 determines again whether the accessory information has been notified. If the accessory information has been notified, the flow proceeds to S502.
[0262] In S502, the camera control circuit B 102 sets the function signals FNC1 to FNC4 based on the accessory information notified from the camera control circuit A 101. For example, in the case where it is notified that the accessory 200 is a microphone device, FNC1 is set to be used as the voice data clock signal BCLK, FNC2 is set to be used as the voice data channel signal LRCLK, and FNC3 is set to be used as the voice data signal SDAT. As another example, in the case where it is notified that the accessory 200 is a flash device, FNC4 is set to be used as the flash emission synchronization signal XOUT. For the function signal that does not require the control of the accessory 200, a predetermined setting is made so as not to interfere with the operations of the camera 100 and the accessory 200.
[0263] In S503 , the camera control circuit B 102 sets the CS control logic in the SPI communication based on the accessory information notified from the camera control circuit A 101 .
[0264] In S504, the camera control circuit B 102 determines whether a predetermined event for the accessory 200 has occurred. If the event has not occurred, the flow returns to S504, and the camera control circuit B 102 determines again whether the event has occurred. If the event has occurred, the flow proceeds to S505.
[0265] In S505, the camera control circuit B 102 determines whether the event determined in S504 is an event requiring SPI communication with the accessory 200. If the event requires SPI communication, the flow proceeds to S506, otherwise the flow proceeds to S507.
[0266] In S507, the camera control circuit B 102 determines whether the event determined in S504 is an event that requires control of the accessory 200 using a function signal. If the event requires control using a function signal, the flow proceeds to S508, otherwise the flow proceeds to S509.
[0267] In S506, the camera control circuit B 102 performs SPI communication with the accessory 200. In the case where the accessory 200 is a microphone device, the SPI communication performed here includes, for example, communication of an instruction to turn on the microphone operation, communication of an instruction to turn off the microphone operation, communication of an instruction to switch the sound collection directivity of the microphone, and communication of an instruction to switch the equalizer function of the microphone. In the case where the accessory 200 is a flash device, the SPI communication includes communication for reading out setting information related to the flash device, and communication for notifying the flash device of the setting information. When the SPI communication in S506 is completed, the flow returns to S504, and the camera control circuit B 102 determines again whether an event has occurred.
[0268] In S508, the camera control circuit B 102 controls the accessory 200 using the function signal. For example, in the case where the accessory 200 is a microphone device, the camera control circuit B 102 outputs the audio data clock signal BCLK of FNC1 and the audio data channel signal LRCLK of FNC2, and accepts the audio data signal SDAT of FNC3. Thus, the camera 100 can acquire voice data from the microphone device. In the case where the accessory 200 is a flash device, the camera control circuit B 102 outputs the flash emission synchronization signal XOUT of FNC4 at a predetermined timing. Thus, the camera 100 can instruct the flash device to emit light. When the control using the function signal is completed in this way, the flow returns to S504, and the camera control circuit B 102 determines again whether an event has occurred.
[0269] In S509, the camera control circuit B 102 performs predetermined in-camera control according to the event determined in S504. In the case where the accessory 200 is a microphone device, the in-camera control includes, for example, control for starting or ending recording of voice data in the recording memory 126, and control for performing equalizer processing on the voice data, etc. In the case where the accessory 200 is a flash device, the in-camera control includes photometry control for accumulating and acquiring light emitted by the flash device using the image sensor 122, and control for calculating an indication value of the amount of light emitted by the flash device, etc. When the in-camera control is thus completed, the flow returns to S504, and the camera control circuit B 102 determines again whether an event has occurred.
[0270] Through the above-described start-up processing by the camera control circuit A 101 and the enablement processing by the camera control circuit B 102 , the accessory 200 attached to the camera 100 can be controlled.
[0271] Fig.12The flowchart in exemplifies processing to be executed by the accessory control circuit 201 from when the accessory 200 is attached to the camera 100 until when various functional operations of the accessory 200 are enabled.
[0272] In S601, the accessory control circuit 201 waits for the accessory power VACC from the camera 100 to be turned on. In the case where the accessory 200 does not have the battery 205, the turning on of the accessory power VACC may be detected when power is supplied to the accessory control circuit 201 and the operation of the accessory control circuit 201 itself starts. In the case where the accessory 200 has the battery 205, the accessory control circuit 201 may monitor the voltage value of the accessory power VACC to detect that the accessory power VACC is turned on.
[0273] In S602, the accessory control circuit 201 performs predetermined initial settings. For example, the accessory control circuit 201 sets the operating frequency of the microcomputer, the input / output control port of the microcomputer, the initialization of the timer function of the microcomputer, and the initialization of the interrupt function of the microcomputer.
[0274] When the initial setting in S602 is completed, the accessory control circuit 201 performs control for changing the communication request signal / WAKE to a low level in S603. Thus, the camera 100 is notified of the completion of the initial setting.
[0275] In S604, the accessory control circuit 201 responds to the I2C communication from the camera 100 and sends 15 bytes of accessory information to the camera 100 as initial communication. The accessory information includes Figure 5 Various information displayed.
[0276] When the initial communication of S604 is completed, the accessory control circuit 201 controls the communication request signal / WAKE to a high level in S605.
[0277] In S606, the accessory control circuit 201 determines whether a predetermined event has occurred. If no event has occurred, the flow returns to S606, and the accessory control circuit 201 determines again whether an event has occurred, and if an event has occurred, the flow proceeds to S607.
[0278] In S607, the accessory control circuit 201 determines whether the event determined in S606 is an event requiring SPI communication with the camera 100. If the event requires SPI communication, the flow proceeds to S608, otherwise the flow proceeds to S609.
[0279] In S609, the accessory control circuit 201 determines whether the event determined in S606 is an event requiring I2C communication with the camera 100. If the event requires I2C communication, the flow proceeds to S610, otherwise the flow proceeds to S611.
[0280] In S611, the accessory control circuit 201 determines whether the event determined in S606 is an event that requires control using a function signal. If the event requires control using a function signal, the process proceeds to S612, otherwise the process proceeds to S613.
[0281] In S613, the accessory control circuit 201 determines whether the event determined in S606 is an event that needs to be notified to the camera 100 via the communication request signal / WAKE. If the event needs to be notified to the camera 100 via the communication request signal / WAKE, the flow proceeds to S614, otherwise the flow proceeds to S615.
[0282] In S608, the accessory control circuit 201 performs SPI communication with the camera 100. In the case where the communication request signal / WAKE is at a low level when the accessory control circuit 201 performs SPI communication, the accessory control circuit 201 performs control for changing the communication request signal / WAKE to a high level after the SPI communication. In the case where the accessory 200 is a microphone device, the SPI communication performed here includes, for example, communication of an instruction to turn on the microphone operation from the camera 100, communication of an instruction to turn off the microphone operation, and communication of an instruction to switch the sound collection directivity of the microphone. The SPI communication also includes communication of an instruction to switch the equalizer function of the microphone. In the case where the accessory 200 is a flash device, the SPI communication includes communication for reading out setting information related to the flash device, communication for notifying the flash device of the setting information, and the like. When the predetermined SPI communication in S608 is completed, the flow returns to S606, and the accessory control circuit 201 determines again whether an event has occurred.
[0283] In S610, the accessory control circuit 201 performs I2C communication with the camera 100. In the case where the communication request signal / WAKE is at a low level when the I2C communication is performed, control for changing the communication request signal / WAKE to a high level is performed after the I2C communication. The I2C communication performed here includes, for example, communication for reading out a communication request factor (number) of the communication request signal / WAKE that the accessory control circuit 201 has notified the camera 100. When the I2C communication in S610 is completed, the flow returns to S606, and the accessory control circuit 201 determines again whether an event has occurred.
[0284] In S612, the accessory control circuit 201 controls the camera 100 using the function signal. In the case where the accessory 200 is a microphone device, the control performed here includes, for example, reception control of the audio data clock signal BCLK of FNC1 and the audio data channel signal LRCLK of FNC2 output from the camera 100. The control also includes output control of the voice data signal SDAT of FNC3 synchronized with these signals. In the case where the accessory 200 is a flash device, the control includes reception control of the flash emission synchronization signal XOUT of FNC4 and corresponding flash emission control. When the control using the function signal in S612 is completed, the flow returns to S606, and the accessory control circuit 201 determines again whether an event has occurred.
[0285] In S614, the accessory control circuit 201 stores the communication request factor number to the camera 100 in response to the event determined in S606 in a volatile memory not shown in the accessory 200, and performs control for changing the communication request signal / WAKE to a low level. Figure 8 As shown, the communication request factor number is a unique number assigned to each factor content. When the low level control of the communication request signal / WAKE in S614 is completed, the flow returns to S606, and the accessory control circuit 201 determines again whether an event has occurred.
[0286] In S615, the accessory control circuit 201 performs accessory control according to the event determined in S606. In the case where the accessory 200 includes the battery 205, the accessory control performed here includes control for detecting the remaining battery power, control for detecting the operation of the operation switch 212, etc. When the accessory control in S615 is completed, the flow returns to S606, and the accessory control circuit 201 determines again whether an event has occurred.
[0287] Through the above-described processing using the accessory control circuit 201 , after the accessory 200 is attached to the camera 100 , the accessory 200 can perform various functional operations.
[0288] The logic of the signal level indicating that CS becomes active in the SPI communication according to the present embodiment (hereinafter referred to as CS logic) will now be described in detail. The CS logic in the SPI communication is determined according to the type and model of the accessory, and is stored in a nonvolatile memory within the accessory. However, depending on the combination of the hardware structure of the accessory and the CS logic, current may leak in the camera control circuit B 102 or in a circuit within the accessory. Therefore, the present embodiment makes the CS logic different according to the type and model of the accessory.
[0289] An accessory such as a wireless flash device or a relay adapter having a function of waking up the camera 100 in the power saving state by the communication request signal / WAKE will now be described as an accessory whose CS logic is high and active.
[0290] Fig.13A The hardware configuration of the camera 100 and the accessory 200 is illustrated when the CS logic is activated high.
[0291] The communication request signal / WAKE of the TA11 connected to the accessory 200 has a function of waking up the camera control circuit B 102 via the camera control circuit A 101 controlled by the accessory control circuit 201 in addition to the above-mentioned functions.
[0292] Since CS connected to TA10 is set to low level except when it is activated, it is pulled down to GND potential via resistance element Rd1001. In the camera 100, CS is connected to the camera microcomputer power supply VMCU2_C in the camera control circuit B 102 via protection devices 1002 and 1003.
[0293] exist Fig.13A , the electrical states of the accessory 200 and the camera 100 when the camera 100 is awakened by the communication request signal / WAKE will be described. When the accessory control circuit 201 is supplied with the accessory microcomputer power VMCU_A generated by the accessory power circuit 202, the accessory 200 is in an operable state. On the other hand, the camera 100 is in a standby state (power saving state), and becomes operable when the camera control circuit A 101 is supplied with the camera microcomputer power VMCU_C from the system power circuit 112. However, the camera control circuit B 102 is set to the GND potential without the supply of the camera microcomputer power VMCU2_C from the system power circuit 112, and is therefore in a deactivated (operation stop) state.
[0294] As described later Fig. 13B When the CS of the camera control circuit B 102 is at a high level except when it is activated, a forward bias is applied to both ends (CS-VMCU2_C) of the protection device 1003 and current leaks. Fig.13A As in the accessory 200 having the structure shown, when CS is active low, CS is always active, and the accessory control circuit 201 continuously requests the camera 100 for SPI communication.
[0295] To prevent the above-mentioned current leakage and constant activation of CS, Fig.13AThe illustrated CS is configured at a low level except when it is activated, and the CS logic of high activation of CS is stored in the above-mentioned nonvolatile memory within the accessory 200. Then, the accessory control circuit 201 transmits the CS logic (high activation) information to the camera 100 through I2C communication using SDA and SCL.
[0296] Reference now Fig.10 and Fig.11 101 and B 102 will be described. Fig.10 and Fig.11 The flowchart is an illustration of what has been described.
[0297] exist Fig.10 In S406 of FIG. 1 , the camera control circuit A101 receives CS logic (active high) information read from the nonvolatile memory and transmitted by the accessory 200 in the initial communication by I2C communication.
[0298] exist Fig.11 In S503 of the embodiment, the camera control circuit B 102 receives the CS logic information received from the camera control circuit A 101 in S406, and sets the CS logic information as the CS logic in the SPI communication with the accessory 200. Then, in S506, the camera control circuit B 102 performs SPI communication with the accessory 200 according to the CS logic set in S503. Thus, the CS logic in the SPI communication is set in the camera 100.
[0299] The accessory control circuit 201 wakes up the camera control circuit B 102 via the camera control circuit A 101 by setting the communication request signal / WAKE to a low level to notify the camera control circuit A 101 of the wakeup.
[0300] Now we will explain how Fig. 13B The hardware structure shown is when CS logic is active low.
[0301] The communication request signal / WAKE of the TA11 connected to the accessory 200 does not have a function of waking up the camera 100 .
[0302] Since the CS connected to the TA10 is at a high level except when it is activated, the CS is pulled up to the accessory microcomputer power supply VMCU_A via the resistance element Rp1004.
[0303] and Fig.13A Similarly, in the camera 100 , CS is connected to the camera microcomputer power supply VMCU2_C within the camera control circuit B 102 via protection devices 1002 and 1003 .
[0304] exist Fig. 13B In the structure of FIG. 1 , the electrical states of the accessory 200 and the camera 100 in a case where the accessory 200 does not have a function of waking up the camera 100 by the communication request signal / WAKE will be described.
[0305] The accessory 200 is in an operable state when the accessory control circuit 201 is supplied with the accessory microcomputer power VMCU_A generated by the accessory power circuit 202. The camera 100 is in a normally operable state when the camera control circuit A 101 is supplied with the camera microcomputer power VMCU_C and the camera control circuit B 102 is supplied with the camera microcomputer power VMCU2_C.
[0306] On the other hand, when the camera 100 is in the standby state and the camera microcomputer power supply VMCU2_C is not supplied to the camera control circuit B 102, the accessory power supply VACC is not supplied from the camera 100 to the accessory 200, and the accessory control circuit 201 is also in the standby state. In this state, since both ends (CS-VMCU2_C) of the protection device 1003 in the camera control circuit B 102 have the same potential, current leakage does not occur.
[0307] Therefore, if the accessory 200 does not have a function of waking up the camera 100 by the communication request signal / WAKE, the CS logic may be low-activated or high-activated. However, a general accessory supports a low-activated CS logic in SPI communication, and thus it is desirable to set a low-activated CS logic in the present embodiment as well. Therefore, the present embodiment stores the low-activated CS logic in the nonvolatile memory of the accessory 200, and transmits the CS logic information to the camera 100 through I2C communication. The processing performed by the camera control circuits A 101 and B 102 in this case is the same as that in the case of the high-activated CS logic described above.
[0308] As described above, the present embodiment determines the CS logic in the SPI communication based on whether the accessory has a function of waking up the camera in the standby state by the communication request signal / WAKE. Thus, current leakage and constant activated CS can be avoided when the accessory has the above function, and an accessory that does not have the above function can be attached to the camera and used.
[0309] Now refer to Fig.14 The accessory 200 is described in which the CS logic in the SPI communication is active high, and the SPI communication and the I2C communication are performed by different circuits. Fig.14Illustrated are the hardware configurations of the accessory 200 and the camera 100 in the case where the accessory control circuit 201 (first accessory processing unit) of the accessory 200 communicates with the camera 100 (camera control circuit A 101) by I2C communication using SDA connected to TA12 and SCL connected to TA13.
[0310] The analog circuit (second accessory processing unit) 2001 of the accessory 200 communicates with the camera 100 (camera control circuit B 102) by using SPI communication connected to SCLK of TA07, MOSI of TA08, MISO of TA09, and CS of TA10. Since CS is set to a low level except when it is activated, it is pulled down to the GND potential via the resistor element Rd2004. The analog circuit 2001 includes a voice IC, a TOF sensor, an OLED device, and the like.
[0311] The power supply VIC_A is supplied from the accessory power supply circuit 202 to the analog circuit 2001. In the analog circuit 2001, CS is connected to the power supply VIC_A via protection devices 2002 and 2003.
[0312] The accessory control circuit 201 performs control to switch the analog circuit 2001 between an operating state and a standby state. The operating state of the analog circuit 2001 is a state in which the analog circuit 2001 operates and the functions of the accessory 200 are enabled. The standby state is a state in which the functions of the accessory 200 are disabled by turning off the power supply of the analog circuit 2001 and the analog circuit 2001 stands by with low power consumption.
[0313] Fig.15 The flowchart illustrates processing related to switching between the operating state and the standby state of the analog circuit 2001 to be performed by the accessory control circuit 201.
[0314] In S701, the accessory control circuit 201 determines whether the analog circuit 2001 is in an operating state or a standby state, and if the analog circuit 2001 is in an operating state, the process enters S702, and if the analog circuit 2001 is in a standby state, the process enters S703.
[0315] In S702, the accessory control circuit 201 determines whether the analog circuit 2001 is to be switched to the standby state. When the user does not perform an operation for a predetermined time or there is a request from the camera 100 to disable the function of the accessory 200, the switch is made to the standby state. When it is determined that the analog circuit 2001 is to be switched to the standby state, the flow proceeds to S704, and when it is determined that the analog circuit 2001 is not to be switched to the standby state, the accessory control circuit 201 repeats the determination of S702.
[0316] In S703, the accessory control circuit 201 determines whether the analog circuit 2001 is to be switched to the operating state. In the case where the user performs an operation or there is a request from the camera 100 to enable the function of the accessory 200, the analog circuit 2001 is switched to the operating state. In the case where it is determined that the analog circuit 2001 is to be switched to the operating state, the flow proceeds to S705, and in the case where it is determined that the analog circuit 2001 is not to be switched to the operating state, the accessory control circuit 201 repeats the determination of S703.
[0317] In S704, the accessory control circuit 201 sets the power control signal CNT_VIC_A for the accessory power circuit 202 to a low level, and sets the voltage of the power supply VIC_A to the analog circuit 2001 to a GND level. Thus, the power supply to the analog circuit 2001 is stopped, and the analog circuit 2001 becomes a standby state.
[0318] In S705, the accessory control circuit 201 sets the power control signal CNT_VIC_A for the accessory power circuit 202 to a high level, and supplies the power VIC_A to the analog circuit 2001. Thus, the analog circuit 2001 becomes in an operating state.
[0319] When the analog circuit 200 is in the standby state, the power supply VIC_A becomes at the GND potential, a forward bias is applied to the protection device 2003 when CS is at the Hi level, and current leaks. To avoid this situation, the present embodiment sets CS to the low level except when it is activated, stores the high-activated CS logic in the nonvolatile memory within the accessory 200, and transmits the CS logic information to the camera 100 through I2C communication.
[0320] The processing to be executed by the camera control circuits A 101 and B 102 in the camera 100 is the same as that in the case where the CS logic is active high as described above.
[0321] As described above, in this embodiment, the CS logic in SPI communication is determined based on whether the accessory performs SPI communication and I2C communication in different circuits. Therefore, current leakage and constant CS activation can be avoided in the case where the accessory has these circuits, and accessories without the above circuits can be attached to the camera and used.
[0322] In the above-described respective embodiments, the first communication method is the I2C communication method and the second communication method is the SPI communication method, but the first communication method and the second communication method may be communication methods other than the I2C communication method and the SPI communication method.
[0323] In each of the above-described embodiments, the electronic device is an image pickup device, but the electronic device according to the present invention may include various electronic devices other than an image pickup device.
[0324] In the above-described various embodiments, the accessory 200 is directly attached to the camera 100, but another attachment form may be used. For example, the camera 100 and a main accessory corresponding to the accessory 200 may communicate with each other via an intermediate accessory such as an adapter device attached to the camera 100 and the main accessory. In this case, the intermediate accessory may perform communication control similar to at least a part of the communication control performed by the accessory 200 and the communication control performed by the camera 100 described in the above-described embodiments. The intermediate accessory may be used as an information transmission path so that the accessory outputs information corresponding to the information input from the camera 100 to the main accessory, and the main accessory outputs information corresponding to the input information to the camera 100. Therefore, accessories according to embodiments of the present invention include various accessories such as a microphone device, a lighting device, and an adapter device. In addition, the adapter device may also be included in the electronic device.
[0325] The above-described embodiments may each provide an accessory, an electronic device, a system, a control method, and a storage medium, each of which may prevent current leakage in an electronic device and maintain the number of types of accessories that may be attached to the electronic device.
[0326] Other embodiments
[0327] The embodiments of the present invention may also be implemented by the following method, that is, the software (program) for executing the functions of the above-mentioned embodiments is supplied to a system or device through a network or various storage media, and the computer or central processing unit (CPU) or microprocessing unit (MPU) of the system or device reads and executes the program.
[0328] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications, equivalent structures and functions.
Claims
1. An accessory that can be detachably attached to an electronic device, the accessory comprising an accessory processing unit that can communicate with the electronic device through a first communication method that is communication via a first contact group and through a second communication method that is communication via a second contact group different from the first contact group, It is characterized in that the accessory processing unit controls communication by the second communication method based on information communicated by the first communication method, wherein, in the second communication method, in response to a signal level of a signal via a first contact included in the second contact group changing from a first signal level to a second signal level, the accessory processing unit performs communication via a second contact included in the second contact group, and wherein the accessory processing unit performs communication by the second communication method based on information related to the second signal level included in information communicated by the first communication method.
2. The accessory according to claim 1, characterized in that: The accessory processing unit transmits information related to the second signal level through the first communication method.
3. The accessory according to claim 2, characterized in that: The information about the second signal level indicates that a signal having a higher signal level than the first signal level is used for the second signal level.
4. The accessory according to claim 3, characterized in that: The accessory has a function of waking up the electronic device by outputting a communication request signal to the electronic device in a power saving state.
5. The accessory according to claim 3, characterized in that: The accessory receives power from the electronic device in a power saving state.
6. The accessory according to claim 3, characterized in that: The accessory processing unit includes: a first accessory processing unit configured to perform communication through the first communication method; and a second accessory processing unit configured to perform communication through the second communication method, The first accessory processing unit switches the second accessory processing unit between a state of supplying power and a state of stopping supplying power.
7. The accessory according to claim 2, characterized in that The information about the second signal level indicates that a signal having a lower signal level than the first signal level is used for the second signal level.
8. The accessory according to claim 7, characterized in that The accessory does not have a function of waking up the electronic device by outputting a communication request signal to the electronic device in a power saving state.
9. The accessory according to claim 7, characterized in that The accessory does not receive power from the electronic device in the power saving state.
10. The accessory according to claim 1, characterized in that the first contact point group includes a third contact point and a fourth contact point, and data is communicated via the fourth contact point according to a clock signal received via the third contact point by the first communication method, The second contact group further includes a sixth contact and a seventh contact, and in response to the change, a clock signal is received via the second contact and data is communicated via the sixth contact or the seventh contact.
11. The accessory according to any one of claims 1 to 10, characterized in that The first communication method is I2C communication, and the second communication method is SPI communication.
12. A system comprising: An accessory according to any one of claims 1 to 11; as well as An electronic device to which the accessory can be detachably attached.
13. An electronic device to which an accessory can be detachably attached, the electronic device comprising a device processing unit capable of communicating with the accessory by a first communication method which is communication via a first contact group and by a second communication method which is communication via a second contact group different from the first contact group, It is characterized in that the device processing unit controls communication by the second communication method based on information communicated by the first communication method, wherein, in the second communication method, in response to a signal level of a signal via a first contact included in the second contact group changing from a first signal level to a second signal level, the device processing unit performs communication via a second contact included in the second contact group, and The device processing unit performs communication by the second communication method based on information related to the second signal level included in information communicated by the first communication method.
14. The electronic device according to claim 13, characterized in that: When the information about the second signal level indicates that a signal having a higher signal level than the first signal level is used for the second signal level, the device processing unit supplies power from the electronic device to the accessory when the electronic device is in a power saving state.
15. The electronic device according to claim 13, characterized in that: When the information about the second signal level indicates that a signal having a lower signal level than the first signal level is used for the second signal level, the device processing unit does not supply power from the electronic device to the accessory when the electronic device is in a power saving state.
16. The electronic device according to any one of claims 13 to 15, characterized in that: The first communication method is I2C communication, and the second communication method is SPI communication.
17. A system comprising: The electronic device according to any one of claims 13 to 16; as well as An accessory that is detachably attached to the electronic device.
18. A control method for an accessory, the accessory being detachably attached to an electronic device and being capable of communicating with the electronic device through a first communication method which is communication via a first contact group and through a second communication method which is communication via a second contact group different from the first contact group, the control method comprising the following steps: controlling communication by the second communication method based on information communicated by the first communication method; in the second communication method, in response to a signal level of a signal via a first contact point included in the second contact point group being changed from a first signal level to a second signal level, performing communication via a second contact point included in the second contact point group; as well as Communication by the second communication method is performed based on information about the second signal level included in information communicated by the first communication method.
19. A control method of an electronic device to which an accessory can be detachably attached, the electronic device being capable of communicating with the accessory through a first communication method which is communication via a first contact group and through a second communication method which is communication via a second contact group different from the first contact group, the control method comprising the following steps: controlling communication by the second communication method based on information communicated by the first communication method; in the second communication method, in response to a signal level of a signal via a first contact point included in the second contact point group being changed from a first signal level to a second signal level, performing communication via a second contact point included in the second contact point group; as well as Communication by the second communication method is performed based on information about the second signal level included in information communicated by the first communication method. 20 . A non-transitory computer-readable storage medium storing a program causing a computer to execute the control method according to claim 18 . 21 . A non-transitory computer-readable storage medium storing a program causing a computer to execute the control method according to claim 19 .
