WO2012046634A1 - 電子装置およびシリアルデータ通信方法 - Google Patents

電子装置およびシリアルデータ通信方法 Download PDF

Info

Publication number
WO2012046634A1
WO2012046634A1 PCT/JP2011/072444 JP2011072444W WO2012046634A1 WO 2012046634 A1 WO2012046634 A1 WO 2012046634A1 JP 2011072444 W JP2011072444 W JP 2011072444W WO 2012046634 A1 WO2012046634 A1 WO 2012046634A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
location
writing
storage unit
signal line
Prior art date
Application number
PCT/JP2011/072444
Other languages
English (en)
French (fr)
Inventor
雅博 今井
Original Assignee
シャープ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by シャープ株式会社 filed Critical シャープ株式会社
Priority to SG2013024088A priority Critical patent/SG189197A1/en
Priority to AU2011313404A priority patent/AU2011313404B2/en
Priority to US13/825,870 priority patent/US20130304999A1/en
Publication of WO2012046634A1 publication Critical patent/WO2012046634A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Definitions

  • the present invention relates to a serial data communication method and an electronic device that performs data communication by serial data communication.
  • serial data communication is performed via a data signal line and a clock signal line
  • I2C communication can perform data communication at a relatively high speed
  • a plurality of slave devices for example, Since an IC can be connected, it is generally used for data transmission between a plurality of electronic circuits on a substrate having a plurality of electronic circuits, which is data transmission over a relatively short distance.
  • FIG. 6 is a diagram illustrating an example of a data signal and a clock signal transmitted from a master device to a plurality of slave devices via a data signal line and a clock signal line.
  • FIG. 6A is a diagram illustrating a case where noise is not superimposed on the data signal line and the clock signal line, and as illustrated, in such a case, t1, t2,... HLHLHL is sampled as data at each timing.
  • the output portion of the data signal and the clock signal is composed of an open collector or an open drain device, and is high level with a pull-up resistor. Output is realized.
  • the output impedance of the data signal line and the clock signal line is relatively high and is easily affected by noise.
  • FIG. 6B is a diagram illustrating a case where noise is superimposed on the clock signal line. As illustrated, noise is superimposed on the clock signal line, and between the t2 timing and the t2 ′ timing. In FIG. 3, an unintended voltage level falls.
  • HLLHLHL is sampled as data at each timing of t1, t2, t2 ′,... T6.
  • HLLHLHL which is an erroneous value with bit corruption
  • FIG. 6C is a diagram showing a case where noise is superimposed on the data signal line. As shown in the figure, noise is superimposed on the data signal line, and the data is near the timing t3. An unintended voltage level falls in the signal.
  • H must be sampled as data, but L, which is an incorrect value, is sampled due to the influence of noise.
  • Patent Document 1 describes in detail a configuration that can prevent an erroneous value from being written to a register provided in a slave device due to the influence of external noise n1 or external noise n2 shown in FIG. Yes.
  • FIG. 7 is a diagram for explaining the types of external noise in I2C communication.
  • the external noise n1 is noise that is superimposed on the data signal line SDA and the clock signal line SCL during the data transfer stop period, while the external noise n2 is superimposed on the data signal line SDA and the clock signal line SCL during the data transfer period. Noise.
  • FIG. 8 shows a schematic configuration of a conventional apparatus 300 described in Patent Document 1 that can prevent erroneous values from being written in the register group 202 provided in the slave device 200 due to the influence of the external noise n1.
  • FIG. 8 shows a schematic configuration of a conventional apparatus 300 described in Patent Document 1 that can prevent erroneous values from being written in the register group 202 provided in the slave device 200 due to the influence of the external noise n1.
  • the I2C slave device controller 104 is provided in the master device 100 in order to prevent malfunction due to the external noise n1 during the data transfer stop period shown in FIG.
  • the master device 100 starts data transfer to the slave device 200 (a device that stores data written from the master device 100 in the register group 202 and executes a function implemented in the function block 203 based on the data).
  • the CPU 101 provided in the master device 100 issues a start condition from the start condition issuing unit 105. Specifically, it is realized by changing the data signal from the high state to the low state when the clock signal is in the high state.
  • the signal transmitted from the start condition issuing unit 105 of the CPU 101 is transmitted to the I2C unit 102 and also to the I2C slave device control unit 104.
  • the I2C slave device control unit 104 detects the signal from the start condition issuing unit 105 at the start condition detection unit 107, the I2C slave device control unit 104 enables the I2C unit 201 to enable the I2C unit 201.
  • the signal is sent to the I2C unit 201 via the transmission path 302.
  • the I2C unit 102 provided in the master device 100 and the I2C unit 201 provided in the slave device 200 are electrically connected by an I2C bus transmission line 301 including a data signal line SDA and a clock signal line SCL. .
  • the CPU 101 issues a stop condition from the stop condition issuing unit 106. Specifically, it is realized by changing the data signal from the low state to the high state when the clock signal is in the high state.
  • the signal transmitted by the stop condition issuing unit 106 of the CPU 101 is transmitted to the I2C unit 102 and also to the I2C slave device control unit 104.
  • the I2C slave device control unit 104 detects the signal from the stop condition issuing unit 106 at the stop condition detection unit 108, the I2C slave device control unit 104 disables the I2C unit 201.
  • the signal is sent to the I2C unit 201 via the transmission path 302.
  • the I2C slave device control unit 104 outputs an I2C enable signal that switches between an enable state and a disable state of the I2C unit 201 in accordance with a signal transmitted from the CPU 101.
  • the I2C unit 201 When the I2C unit 201 is in the disabled state, the I2C unit 201 stops operating regardless of the state of the data signal line SDA and the clock signal line SCL. Therefore, when the I2C unit 201 is in the disabled state, the register group Incorrect data is not written in 202.
  • the I2C enable signal is disabled during the data transfer stop period, and the I2C enable signal is enabled during the data transfer period, so that the data signal line SDA and the clock signal line SCL are set during the data transfer stop period. It is described that an erroneous value can be prevented from being written in the register group 202 provided in the slave device 200 due to the influence of the external noise n1, which is a superimposed noise, and the malfunction of the device can be suppressed.
  • FIG. 9 shows a schematic configuration of the conventional device 300a described in Patent Document 1 described above, which can suppress erroneous values from being written to the register group 202 provided in the slave device 200 due to the influence of the external noise n2.
  • FIG. 9 shows a schematic configuration of the conventional device 300a described in Patent Document 1 described above, which can suppress erroneous values from being written to the register group 202 provided in the slave device 200 due to the influence of the external noise n2.
  • the apparatus 300a illustrated in FIG. 9 is configured such that the master device 100 includes an interrupt control unit (error detection notification unit) 109 instead of the I2C slave device control unit 104 in the configuration of the apparatus 300 illustrated in FIG. is there.
  • an interrupt control unit error detection notification unit
  • the slave device 200 is configured to include an error detection unit (error detection notification unit) 220 and an interrupt control unit (error detection notification unit) 221 in addition to the configuration shown in FIG.
  • the error detection unit 220 detects an error that occurs in the slave device 200 during data transfer.
  • the error detection unit 220 receives the signal output from the I2C unit 201. Then, the error detection unit 220 detects an error during data transfer of the data based on the signal. If an error occurs during data transfer, the error detection unit 220 sends control signals (I2C unit reset signal, register write inhibit signal, error interrupt signal) to the I2C unit 201 and the interrupt control unit 221. Is sent out.
  • control signals I2C unit reset signal, register write inhibit signal, error interrupt signal
  • the interrupt control unit 109 is provided in the master device 100
  • the interrupt control unit 221 is provided in the slave device 200
  • the interrupt control unit 109 and the interrupt control unit 221 are connected to the data signal line SDA and the clock signal line. It is connected by a signal line different from SCL.
  • the interrupt control units 109 and 221 are for notifying the master device 100 of errors during data transfer.
  • the error detection unit 220 sends an error interrupt signal as a control signal to the interrupt control unit 221, and the error interrupt signal is transmitted via the interrupt control unit 221 to the interrupt control unit 109. Is input. Accordingly, the master device 100 can recognize that an error has occurred during data transfer.
  • the slave device 200 When no error is detected in the error detection unit 220, the slave device 200 recognizes the data received from the master device 100 as correct, and the I2C reception unit of the I2C unit 201 passes through the register writing unit. The data transferred from the master device 100 temporarily held by itself is written to the corresponding address of the register group 202.
  • the slave device 200 recognizes the data received from the master device 100 as incorrect, and the error detection unit 220 uses the register write inhibit signal as the I2C unit as a control signal.
  • the I2C receiving unit 201 sends an I2C unit reset signal to the I2C unit 201 and an error interrupt signal to the interrupt control unit 221.
  • the I2C reception unit of the I2C unit 201 When the I2C reception unit of the I2C unit 201 receives the register write prohibition signal, the I2C reception unit discards the data transferred from the master device 100 that is temporarily held by the I2C reception unit 201 to the register group 202 of the data. Is designed to prevent writing.
  • Patent Document 1 shown in FIG. 8, as shown in FIG. 10, one master device and a plurality of slave devices (slave devices 1, 2... N) are provided.
  • the start condition and the stop condition issued from the master device are commands common to all the slave devices (slave devices 1, 2... N).
  • the I2C slave device control unit 104 performs I2C in all slave devices (slave devices 1, 2... N) in accordance with a signal (start condition / stop condition) transmitted from the CPU 101.
  • the enable signal / disable signal for outputting the unit 201 to either the enable state or the disable state is output.
  • FIG. 11 is a diagram showing a conventional write sequence.
  • a specific slave device is provided using the conventional write sequence shown in FIG.
  • an attempt is made to write data to a specific address in a group of registers, if an incorrect value is sampled as slave address data due to noise during serial data communication ((b) in FIG. 6 and ((b) in FIG. 6)). c)), writing data to an unintended slave device.
  • the error detection unit 220 provided in the slave device 200 includes a data signal state transition determination unit and a clock signal counter confirmation unit. Yes.
  • the I2C bus transmission line In 301 whether an error has occurred during the data transfer is determined by whether the clock signal counter value is (2 + n) ⁇ 9 ⁇ when the stop condition detection signal is notified to the slave device by the clock signal counter confirmation unit. By checking whether it is 1, it can be grasped.
  • the error detection unit 220 performs a state transition from a high level to a low level (or vice versa from a low level to a high level) while the clock signal is high as illustrated in FIG. In the case where there is no change in the number of pulses of the clock signal, it is not possible to detect that an error has occurred during data transfer even though noise is mixed and an incorrect value is sampled.
  • the present invention has been made in view of the above problems, and provides an electronic device and a serial data communication method capable of suppressing malfunctions caused by writing wrong values without increasing the number of signal lines. With the goal.
  • an electronic device of the present invention is an electronic device including a first device and a second device that perform serial data communication via a data signal line and a clock signal line,
  • the second device includes a storage unit and a control unit.
  • specific data is written in the first location of the storage unit, thereby the control unit.
  • the specific data is written to the first location of the storage unit of the second device, so that the control unit can Since it is possible to write to at least a part of the storage unit other than the location, it is not necessary to provide a signal line other than the data signal line and the clock signal line, which is accompanied by an increase in the number of signal lines. Absent.
  • the serial data communication method of the present invention is a serial data communication method using a data signal line and a clock signal line in order to solve the above-described problem, and the data signal line and the clock signal line, Data that enables writing to at least a part other than the first location of the storage unit in the target device that performs serial data communication is communicated with first data that specifies the target device that performs serial data communication.
  • the second data specifying the first location of the storage unit provided in the specified target device, and the third data written to the first location of the storage unit. It is a feature.
  • the data that enables writing to at least a part other than the first location of the storage unit in the target device that performs the serial data communication is the first that identifies the target device that performs the serial data communication.
  • the serial data communication when an erroneous value is sampled due to the influence of noise, the serial data communication specified by the first data and the second data is performed on the third data. Since it cannot write in the 1st location of the said memory
  • the second device includes the storage unit and the control unit, and specific data is stored in the second storage unit by performing the serial data communication.
  • the control unit is configured to enable writing to at least a part of the storage unit other than the first location.
  • serial data communication method of the present invention other than the first portion of the storage unit in the target device that performs the serial data communication communicated via the data signal line and the clock signal line.
  • the data that enables writing to at least a part specifies the first data that specifies the target device that performs the serial data communication, and the first location of the storage unit provided in the specified target device. 2nd data and 3rd data written in the 1st location of the said memory
  • storage part are provided.
  • FIG. 2 is a diagram illustrating a case where writing to a portion other than an enable / disable register of a register group is disabled in the electronic device according to the embodiment of the present invention illustrated in FIG. 1. It is a figure which shows schematic structure of the electronic device of one embodiment of this invention provided with the master device and N slave devices. It is a figure which shows the write sequence used in the electronic device of one embodiment of this invention. It is a figure which shows an example of the transmission protocol used in the electronic device of one embodiment of this invention. It is a figure which shows an example of the data signal and clock signal which are transmitted via a data signal line and a clock signal line from a master device to several slave devices.
  • FIG. 1 is a block diagram showing a schematic configuration of an electronic device 1 including an I2C bus transmission line 4 that conforms to an interface specification for I2C communication.
  • the master device 2 (first device) and the slave device 3 (second device) in the electronic apparatus 1 are connected by an I2C bus transmission line 4 including a clock signal line SCL and a data signal line SDA. It is connected.
  • the clock signal line SCL is for transmitting a clock signal
  • the data signal line SDA is for transmitting address data, write data, and the like.
  • the master device 2 writes predetermined data to the slave device 3 and reads data stored in the slave device 3.
  • the master device 2 includes a CPU (Central Processing Unit) 5, an I2C unit 6 that operates in accordance with the interface specifications of I2C communication, and a memory (not shown). .
  • CPU Central Processing Unit
  • I2C unit 6 that operates in accordance with the interface specifications of I2C communication
  • memory not shown
  • the CPU 5 controls writing and reading operations between the master device 2 and the slave device 3, and transmits a start condition and a stop condition shown in FIG. 5 to be described later to the I2C unit 6.
  • the I2C unit 6 is connected to the clock signal line SCL and the data signal line SDA, and performs an operation conforming to the interface specification of I2C communication.
  • the slave device 3 includes an I2C unit 7 that performs an operation conforming to the interface specification of I2C communication for performing I2C communication with the master device 2, a register read unit 8, a register write unit 9, and a register group 10 ( A storage unit) and a functional block 12 (control unit).
  • I2C unit 7 that performs an operation conforming to the interface specification of I2C communication for performing I2C communication with the master device 2, a register read unit 8, a register write unit 9, and a register group 10 ( A storage unit) and a functional block 12 (control unit).
  • the slave device 3 stores the data written by the master device 2 in the register group 10 and executes a function implemented in the function block 12 based on the data.
  • the I2C unit 7 includes a bidirectional buffer 13, a buffer 14, a noise removal and synchronization unit 15, an I2C transmission unit 16, an I2C control unit 17, and an I2C reception unit 18.
  • the bidirectional buffer 13 is connected to the data signal line SDA. When a data signal is input from the master device 2, the bidirectional buffer 13 is in a high impedance state, thereby transmitting the input data signal to the internal circuit. It is supposed to be.
  • the operation of transferring the data signal to the master device 2 is performed by outputting a theoretical value Low or in a high impedance state.
  • the bidirectional buffer 13 operates to transmit the input data signal to the internal circuit and the data depending on whether the data signal is input from the master device 2 or the data signal is output to the master device 2. The operation of transferring the signal to the master device 2 is switched.
  • the buffer 14 is connected to the clock signal line SCL and operates to transmit the clock signal input from the master device 2 to the internal circuit.
  • the data signal line SDA is connected to the bidirectional buffer 13 and the clock signal line SCL is connected to the buffer 14, but the present invention is not limited to this.
  • a bidirectional buffer can be used as the buffer 14.
  • the noise removal and synchronization unit 15 performs data input / output operation from the data signal line SDA according to the control content of the I2C control unit 17.
  • the I2C transmission unit 16 receives the data stored in the register group 10 via the register reading unit 8, and the noise removal and synchronization unit 15 The data is transmitted from the data signal line SDA via the bidirectional buffer 13.
  • the I2C control unit 17 controls the bidirectional buffer 13 and switches input / output at a predetermined timing. Accordingly, the timing at which the above-described I2C transmission unit 16 transmits data to the master device 2 and the timing at which an I2C reception unit 18 described later transmits data to the register writing unit 9 are controlled.
  • the I2C reception unit 18 determines whether or not the slave address included in the data received from the master device 2 matches the slave address of the slave device 3.
  • the bidirectional buffer 13 is instructed to the I2C control unit 17. Is set to a high impedance state, and a command to notify the master device 2 of “NACK” is transmitted.
  • the I2C receiving unit 18 writes the data into the register of the register group 10 via the register writing unit 9.
  • the register group 10 is composed of a large number of registers, and data transferred from the master device 2 is written therein. Then, by reading out the data with a read unit (not shown) provided between the register group 10 and the function block 12, the function block 12 realizes a function mounted on itself.
  • an enable / disable register 11 is included in the large number of registers in the register group 10 provided in the slave device 3 of the electronic apparatus 1.
  • the function block 12 When the data transferred from the master device 2 is written in a location other than the enable / disable register 11 of the register group 10, the function block 12 reads the data by the above read unit, so that the function block 12 has a function implemented in itself. On the other hand, when specific data transferred from the master device 2 is written to the enable / disable register 11, the register writing unit is read from the functional block 12 by reading the data with the read unit. 9, an enable signal is output.
  • the register writing unit 9 is set so that only writing to the enable / disable register 11 is possible, and writing to locations other than the enable / disable register 11 of the register group 10 is disabled.
  • predetermined data (enable write data) is written to the enable / disable register 11, and the data is read by the read unit.
  • the enable signal may be output from the functional block 12 to the register writing unit 9.
  • the register writing unit 9 When the register writing unit 9 receives the enable signal from the function block 12, the register writing unit 9 permits writing to a location other than the enable / disable register 11 of the register group 10.
  • the register group 10 may be provided with a portion where writing can be freely performed, regardless of whether predetermined data is written to the enable / disable register 11 as necessary.
  • FIG. 2 is a diagram illustrating a case in which writing to a portion other than the enable / disable register 11 of the register group 10 is disabled in the electronic device 1 illustrated in FIG.
  • a disable signal may be output from the functional block 12 to the register writing unit 9.
  • the register writing unit 9 When the register writing unit 9 receives the disable signal from the functional block 12, the register writing unit 9 disables writing to a location other than the enable / disable register 11 of the register group 10.
  • FIG. 3 is a diagram showing a schematic configuration of an electronic apparatus 1 including a master device 2 and N slave devices 3.
  • FIG. 1 and FIG. 2 only one slave device 3 is shown and the other slave devices 3 are omitted, but the master device 2 and the N slave devices are shown in FIG. 3 are connected by an I2C bus transmission line 4 including a clock signal line SCL and a data signal line SDA.
  • the clock signal line SCL and the data signal line SDA are shared by the N slave devices 3
  • the clock signal line SCL and the data signal line SDA in the master device 2 are shared. Since only two output terminals need be provided, the number of output terminals in the master device 2 can be reduced.
  • the clock signal line SCL and the data signal line SDA are shared by the N slave devices 3, but the present invention is not limited to this.
  • N A clock signal line SCL and a data signal line SDA can be provided from the master device 2 for each slave device 3.
  • predetermined data (enable write data) written to the enable / disable register 11 is N slave devices shown in FIG. It is preferable that every 3 is different.
  • the predetermined data (enable write data) to be written to the enable / disable register 11 is unique to each slave device 3, but is not limited to this.
  • the electronic apparatus 1 By performing serial data communication, the electronic apparatus 1 writes specific data (enable write data) unique to each slave device 3 to the enable / disable register 11 of the register group 10 provided in the slave device 3. Thus, in accordance with the enable signal output from the functional block 12, writing to locations other than the enable / disable register 11 of the register group 10 is enabled.
  • the possibility that specific data (enable write data) unique to each slave device 3 is written to the enable / disable register 11 of the register group 10 of the slave device 3 that is specified by mistake is extremely low. Therefore, according to the said structure, the electronic device 1 which can suppress the malfunction which arises by writing of an incorrect value as much as possible is realizable.
  • serial data communication is performed to perform the specific data (enable write Data other than the enable / disable register 11 of the register group 10 according to the disable signal output from the functional block 12 by writing data (disable write data) different from the data) to the enable / disable register 11 of the register group 10 Can be disabled.
  • a period during which writing to the register group 10 other than the enable / disable register 11 is performed for example, a data transfer stop period in the serial data communication or when the master device 2 is in serial data communication with a specific slave device 3 In the serial data communication period other than the specific slave device 3, the writing to the register group 10 other than the enable / disable register 11 can be disabled.
  • the electronic apparatus 1 that can suppress erroneous writing that may occur during a period other than the period in which writing to the register group 10 provided in the slave device 3 other than the enable / disable register 11 is performed. .
  • the output portion of the data signal and the clock signal is composed of an open collector or an open drain device, and the output impedance becomes relatively high, so that it is easily affected by noise. Since it has a configuration, it is possible to suitably use a configuration that can suppress malfunctions caused by incorrect value writing used in the present embodiment as described above.
  • the function block 12 provided in the slave device 3 can be executed in addition to the function of outputting the enable signal or the disable signal to the register writing unit 9.
  • a liquid crystal display circuit an imaging circuit including a CCD circuit, a D / A conversion circuit, a drive of a storage circuit such as an EEPROM, and the like can be given.
  • FIG. 4 is a diagram showing a write sequence used in the serial data communication method (serial data communication method) of the electronic apparatus 1.
  • one slave device 3 is identified from the N slave devices 3 transmitted from the master device 2 to the N slave devices 3 by performing the serial data communication (the serial device described above).
  • the slave device 3 that performs serial data communication with the master device 2 is specified by the slave address (A) (first data) that specifies a target device that performs data communication.
  • write data (C) third data to the enable / disable register, which is specific data (enable write data) unique to each slave device 3, and is used in the electronic device 1
  • a stage for enabling writing to registers other than the enable / disable register 11 of the register group 10 is configured.
  • the write stage to the register group 10 other than the enable / disable register 11 is the slave address (D) having the same value as the slave address (A) (first Data), address data (E) (fifth data) designating a specific location other than the enable / disable register 11 in the register group 10, and writing to the specific location other than the enable / disable register 11 in the register group 10.
  • the stage of disabling writing to the register group 10 other than the enable / disable register 11 is the same as the slave address (A) and the slave address (D).
  • a slave address (G) (first data) having a value and an enable / disable register specifying the location of the enable / disable register 11 in the register group 10 having the same value as the address data (B) of the enable / disable register
  • Write data (I) (fourth data) to the enable / disable register that is different from the address data (H) (second data) and the specific data (enable write data). And consists of .
  • the address of the enable / disable register 11 is different for each of the N slave devices 3.
  • the address of the enable / disable register 11 is made unique for each slave device 3.
  • the slave address, the address of the enable / disable register 11, and the write data to the enable / disable register 11 serving as specific data (enable write data) are included in every N slave devices 3. Specific to.
  • an erroneous value is sampled as a slave address due to the influence of noise and an unintended slave device 3 is specified, it is not intended as the address of the enable / disable register 11 in the slave device 3 that was originally intended.
  • the address of the enable / disable register 11 in the slave device 3 is different from the specific data in the originally intended slave device 3 and the specific data in the unintended slave device 3. Since the possibility of erroneous writing becomes even lower, it is possible to realize the electronic apparatus 1 that can suppress malfunctions caused by writing incorrect values as much as possible.
  • FIG. 5 is a diagram illustrating an example of a transmission protocol used in the electronic apparatus 1.
  • (A) in FIG. 5 corresponds to a stage in which writing to other than the enable / disable register 11 of the register group 10 in FIG. 4 is enabled.
  • the master device 2 issues a start condition and sends it out. This can be realized by changing the data signal line SDA from High to Low while the clock signal line SCL is High.
  • the N slave devices 3 are transferred from the master device 2 to the slave device 3 together with the start condition described above.
  • a 7-bit slave address (A) for specifying one slave device 3 and a 1-bit write signal (Low signal) are transmitted.
  • the slave device 3 receives the data transferred from the master device 2 via the bidirectional buffer 13 and the noise removal and synchronization unit 15 and receives it by the I2C reception unit 18 (see FIG. 1).
  • the slave device 3 is unique to each slave device 3 while notifying the master device 2 of “ACK” at the timing as shown in FIG.
  • Address data (B) of the enable / disable register that designates the location of the enable / disable register 11 in the register group 10 that is bits, and enable / disable that is specific data that is unique to each slave device 3 that is 8 bits.
  • Write data (C) to the register is received and written to the corresponding address of the enable / disable register 11 of the register group 10.
  • the slave device 3 can notify the master device 2 of the data transfer failure by transmitting “NACK” to the master device 2.
  • the slave device 3 can notify the master device 2 of “NACK” by setting the bidirectional buffer 13 to the high impedance state at the ninth bit of the clock signal.
  • the master device 2 receives the slave addresses (A), (D) from one slave device 3 specified by the slave addresses (A), (D), (G) among the N slave devices 3.
  • the slave addresses (A), (D), and (G) are set to be retransmitted.
  • the enable / disable register 11 of the register group 10 except for the specific slave device 3 among the N slave devices 3. Cannot write to other locations.
  • the slave device 3 that cannot recognize the slave addresses (A) and (D) even when writing to a location other than the enable / disable register 11 of the register group 10 is enabled. Since writing to locations other than the enable / disable register 11 of the register group 10 can be disabled, it is possible to prevent the writable state from being continued, so that malfunctions caused by writing wrong values can be suppressed.
  • the electronic device 1 can be realized.
  • the I2C control unit 17 determines whether or not the I2C reception unit 18 has received the data normally, and issues “ACK” or “NACK” depending on the determination result to remove noise.
  • the data is transmitted to the I2C unit 6 of the master device 2 via the synchronization unit 15 and the bidirectional buffer 13 (see FIG. 1).
  • (B) in FIG. 5 corresponds to a write stage to the register group 10 other than the enable / disable register 11 in FIG.
  • FIG. 5C corresponds to a stage in which writing to the register group 10 other than the enable / disable register 11 in FIG. 4 is disabled.
  • the slave device 3 stops transmitting “ACK” or “NACK” to the master device 2.
  • the master device 2 recognizes this to recognize the end of data transfer.
  • the master device 2 issues a stop condition. This can be realized by changing the data signal line SDA from Low to High while the clock signal line SCL is High.
  • the above stop condition is issued and sent from the CPU 5.
  • the register writing unit 9 when the slave device 3 detects a start condition, the register writing unit 9 is enabled, and writing to the enable / disable register 11 of the register group 10 is enabled.
  • the register writing unit 9 is disabled, and writing to the enable / disable register 11 of the register group 10 is disabled.
  • the number of specific data types specific to each slave device 3 of 8 bits, which enables writing to registers other than the enable / disable register 11 of the register group 10, is the register group. It is set to be smaller than the number of types of data different from the specific data that disables writing to other than 10 enable / disable registers 11.
  • the number of types of specific data unique to each 8-bit slave device 3 that enables writing to registers other than the enable / disable register 11 of the register group 10 can be made one.
  • specific data unique to each slave device 3 of 8 bits that enables writing to registers other than the enable / disable register 11 of the register group 10 has two values of high level and low level. It is preferable that switching from the high level to the low level or from the low level to the high level is included at least twice.
  • specific data unique to each slave device 3 of 8 bits which enables writing to registers other than the enable / disable register 11 of the register group 10, is a high level and a low level for each clock cycle of the clock signal. Is preferably switched.
  • the electronic device of the present invention performs the serial data communication so that data different from the specific data is written to the first location, so that the control unit stores the memory other than the first location. It is preferable to disable writing to at least a part of the section.
  • the serial data communication is performed to perform the identification.
  • the control unit can disable writing to at least a part of the storage unit other than the first location.
  • the storage unit other than the first location It is possible to disable writing to at least a part.
  • an electronic device capable of suppressing erroneous writing that may occur in a period other than a period in which writing to at least a part of the storage unit other than the first location provided in the second device is performed. Can be realized.
  • the number of types of specific data that enables writing to at least a part of the storage unit other than the first location is at least one of the storage units other than the first location.
  • the number is preferably less than the number of types of data different from the specific data that makes it impossible to write to the copy.
  • the number of types of specific data that enables writing to at least a part of the storage unit other than the first location is transferred to at least a part of the storage unit other than the first location. Is set to be less than the number of types of data different from the specific data that disables the writing of.
  • writing to at least a part of the storage unit other than the first location is possible, but writing to at least a part of the storage unit other than the first location is not possible. It is set to be lower than the probability.
  • the number of types of specific data that can be written to at least a part of the storage unit other than the first location is one.
  • the number of types of specific data that enables writing to at least a part of the storage unit other than the first location is one, in serial data communication, due to the influence of noise, Even if an incorrect value is sampled and such an incorrect value is written in the first location, it may be possible to write to at least a part of the storage unit other than the first location. Therefore, an electronic device that can suppress malfunctions caused by writing wrong values as much as possible can be realized.
  • the specific data has a binary value of a high level and a low level, and includes at least twice switching from a high level to a low level or from a low level to a high level. preferable.
  • the specific data is switched between a high level and a low level every clock cycle of a clock signal transmitted from the first device to the second device via the clock signal line. Is preferred.
  • the specific data is configured by data in which the high level and the low level change finely.
  • writing of data to the first location is enabled by a command for starting the serial data communication sent from the first device to the second device. It is preferably disabled by a command to stop the serial data communication sent from the device to the second device.
  • a plurality of the second devices are provided, and the plurality of second devices are sent from the first device to the plurality of second devices by performing the serial data communication. It is preferable that the second device that performs the serial data communication with the first device is specified by a second device specifying signal that specifies one second device from among the second devices.
  • the second device specifying signal that specifies the second device that performs serial data communication with the first device is also transmitted from the first device to the plurality of second devices. Since the data is sent by performing serial data communication, an electronic device that can suppress malfunction caused by writing an incorrect value without increasing the number of signal lines can be realized.
  • the specifying As long as the data is not written to the first location of the storage unit, writing to at least a part of the storage unit other than the first location cannot be performed. It is possible to realize an electronic device that can suppress a malfunction that occurs.
  • a plurality of the second devices are provided, and the plurality of second devices are sent from the first device to the plurality of second devices by performing the serial data communication.
  • a second device specifying signal that specifies one second device from among the second devices is other than the first location. It is preferable that writing to at least a part of the storage unit becomes impossible.
  • writing to at least a part of the storage unit other than the first location is performed.
  • writing to at least a part of the storage unit other than the first location becomes impossible.
  • the first device and the specific second device are in the serial data communication, in the plurality of second devices, in addition to the specific second device, the first device Writing to at least a part of the storage unit other than the part cannot be performed.
  • the second device specifying signal cannot be recognized even when the control unit enables writing to at least a part of the storage unit other than the first location.
  • the second device since writing to at least a part of the storage unit other than the first location can be disabled, it is possible to prevent the writable state from continuing. It is possible to realize an electronic device that can suppress malfunctions caused by writing.
  • the data signal line and the clock signal line are shared by the plurality of second devices.
  • the output portion of the data signal and the clock signal is composed of an open collector or an open drain device, and the output impedance is relatively high, so that it is easily affected by noise.
  • the output impedance is relatively high, so that it is easily affected by noise.
  • the specific data is unique for each of the plurality of second devices.
  • the specific data that enables writing to at least a part of the storage unit other than the first location is different for each second device.
  • the second device specifying signal for specifying one second device among the plurality of second devices and the specific data are unique to each of the plurality of second devices.
  • the unintended second device may erroneously write to at least a part of the storage unit other than the first location. Can be further reduced, so that an electronic device that can suppress malfunction caused by writing an incorrect value as much as possible can be realized.
  • the first portion is unique for each of the plurality of second devices.
  • the first location of the storage unit is different for each second device.
  • the second device specifying signal for specifying one second device among the plurality of second devices and the first location are unique to the plurality of second devices.
  • the unintended second device can erroneously write to at least a part of the storage unit other than the first location. Since the possibility is further reduced, it is possible to realize an electronic device that can suppress malfunctions caused by writing wrong values as much as possible.
  • I2C serial data communication can be used suitably.
  • the data communicated via the data signal line and the clock signal line is the first data in the storage unit in the target device performing the serial data communication in the serial data communication method.
  • the serial data communication method of the present invention after data enabling writing to at least a part other than the first location of the storage unit is sent, the first data and the first of the storage unit are sent. After the write data provided with the fifth data for specifying other than the location and the sixth data written to other than the first location of the storage unit are sent, and after the write data is sent, It is preferable that data that disables writing to at least a portion other than the first location of the storage unit in the target device that performs serial data communication is sent.
  • writing to at least a part other than the first location of the storage unit can be disabled.
  • writing to at least a part of the storage unit other than the first location can be disabled.
  • the present invention can be applied to an electronic apparatus including a master device and a slave device that perform data communication by serial data communication.

Abstract

 シリアルデータ通信を行うことにより、特定のデータ(イネーブルライトデータ)が、スレーブデバイス(3)に備えられたレジスタ群(10)のイネーブル/ディゼーブルレジスタ(11)に書き込まれることによって、機能ブロック(12)から出力されるイネーブル信号に応じて、イネーブル/ディゼーブルレジスタ(11)以外のレジスタ群(10)の少なくとも一部への書き込みを可能にする。

Description

電子装置およびシリアルデータ通信方法
 本発明は、シリアルデータ通信方法およびシリアルデータ通信により、データ通信を行う電子装置に関するものである。
 これまで、複数の電子回路間(マスタデバイスとスレーブデバイス間)において、データの伝送を可能にする数多くのデータ伝送方式(インターフェース仕様)が開発されて来ている。
 その中でも、データ信号線およびクロック信号線を介してシリアルデータ通信を行う、例えば、I2C通信は、比較的高速にデータ通信を行うことができるとともに、一つのマスタデバイスに複数のスレーブデバイス、例えば、ICを接続できることから、比較的短距離のデータ伝送である複数の電子回路を備えた基板における複数の電子回路間のデータの伝送に一般的に用いられている。
 図6は、マスタデバイスから複数のスレーブデバイスにデータ信号線およびクロック信号線を介して送信されるデータ信号とクロック信号との一例を示す図である。
 図6の(a)は、データ信号線およびクロック信号線にノイズが重畳してない場合を示す図であり、図示されているように、このような場合においては、t1、t2・・・t6のそれぞれのタイミングでデータとして、HLHLHLがサンプリングされる。
 しかしながら、I2C通信においては、データ信号とクロック信号とは、各デバイスにおいて共通となるため、データ信号およびクロック信号の出力部は、オープンコレクタやオープンドレインデバイスで構成され、プルアップ抵抗でハイレベルの出力を実現するようになっている。
 したがって、データ信号線およびクロック信号線の出力インピーダンスは比較的高く、ノイズの影響を受けやすくなっている。
 図6の(b)は、クロック信号線にノイズが重畳している場合を示す図であり、図示されているように、クロック信号線にノイズが重畳し、t2タイミングとt2´タイミングとの間において、意図しない電圧レベルの立下りが生じている。
 このように、意図しない電圧レベルの立下りが生じることにより、t1、t2、t2´・・・t6のそれぞれのタイミングでデータとして、HLLHLHLがサンプリングされてしまう。
 本来は、図6の(a)に示すように、データとして、HLHLHLがサンプリングされなければならないが、ノイズの影響により、ビット化けが生じた誤った値であるHLLHLHLがサンプリングされてしまうのである。
 一方、図6の(c)は、データ信号線にノイズが重畳している場合を示す図であり、図示されているように、データ信号線にノイズが重畳し、t3タイミングの近傍において、データ信号に意図しない電圧レベルの立下りが生じている。
 本来は、図6の(a)に示すように、t3タイミングにおいては、データとして、Hがサンプリングされなければならないが、ノイズの影響により、誤った値であるLがサンプリングされてしまうのである。
 以上のように、ノイズの影響により、データとして誤った値がサンプリングされ、このような誤った値が、スレーブデバイス、例えば、ICに備えられたレジスタに書き込まれた場合には、上記ICは誤動作を起こしてしまうという問題がある。
 従来から、このようなスレーブデバイスに備えられたレジスタに誤った値を書き込んでしまい、生じる誤動作を抑制する試みがなされている。
 例えば、特許文献1には、詳しくは後述する図7に示す外来ノイズn1または外来ノイズn2の影響により、スレーブデバイスに備えられたレジスタに誤った値が書き込まれることを抑制できる構成について記載されている。
 図7は、I2C通信における外来ノイズの種類を説明するための図である。
 I2C通信においては、任意のタイミングでデータ転送が可能であるため、図7に示すように、データ転送停止期間とデータ転送期間とを有するのが一般的である。
 外来ノイズn1は、データ転送停止期間中にデータ信号線SDAおよびクロック信号線SCLに重畳するノイズであり、一方、外来ノイズn2は、データ転送期間中にデータ信号線SDAおよびクロック信号線SCLに重畳するノイズである。
 図8は、外来ノイズn1の影響により、スレーブデバイス200に備えられたレジスタ群202に誤った値が書き込まれることを抑制できる上記特許文献1に記載されている従来の装置300の概略構成を示す図である。
 上記従来構成においては、図7で示したデータ転送停止期間中の外来ノイズn1による誤動作を防止するため、図示されているように、マスタデバイス100にI2Cスレーブデバイス制御部104が設けられている。
 マスタデバイス100がスレーブデバイス200(マスタデバイス100より書き込まれたデータをレジスタ群202に記憶し、当該データに基づいて機能ブロック203に実装された機能を実行するもの)へのデータ転送を開始する際には、マスタデバイス100に備えられたCPU101は、スタートコンディション発行部105から、スタートコンディションを発行する。具体的には、クロック信号がHighの状態において、データ信号をHighの状態からLowの状態にすることで実現する。
 そして、図示されているように、スタートコンディションを発行する際には、CPU101のスタートコンディション発行部105が送出した信号を、I2C部102に送信するとともに、I2Cスレーブデバイス制御部104にも送信する。
 それから、I2Cスレーブデバイス制御部104が、スタートコンディション発行部105からの上記信号を、スタートコンディション検出部107にて検出すると、I2Cスレーブデバイス制御部104は、I2C部201をイネーブルにする旨のI2Cイネーブル信号を、伝送経路302を介してI2C部201に送出する。
 なお、マスタデバイス100に備えられたI2C部102とスレーブデバイス200に備えられたI2C部201とは、データ信号線SDAおよびクロック信号線SCLからなるI2Cバス伝送路301によって電気的に接続されている。
 一方、マスタデバイス100がスレーブデバイス200へのデータ転送を終了する際には、CPU101は、ストップコンディション発行部106から、ストップコンディションを発行する。具体的には、クロック信号がHighの状態においてデータ信号をLowの状態からHighの状態にすることで実現する。
 そして、図示されているように、ストップコンディションを発行する際には、CPU101のストップコンディション発行部106が送出した信号を、I2C部102に送信するとともに、I2Cスレーブデバイス制御部104にも送信する。
 それから、I2Cスレーブデバイス制御部104が、ストップコンディション発行部106からの上記信号を、ストップコンディション検出部108にて検出すると、I2Cスレーブデバイス制御部104は、I2C部201をディゼーブルにする旨のI2Cイネーブル信号を、伝送経路302を介してI2C部201に送出する。
 以上のように、I2Cスレーブデバイス制御部104は、CPU101から送出される信号に応じて、I2C部201のイネーブル状態とディゼーブル状態とを切り替えるI2Cイネーブル信号を出力するようになっている。
 そして、I2C部201がディゼーブル状態の場合においては、データ信号線SDAおよびクロック信号線SCLの状態に関らず、I2C部201は動作を停止するので、I2C部201がディゼーブル状態においては、レジスタ群202に誤ったデータは書き込まれないようになっている。
 上記構成によれば、データ転送停止期間においてはI2Cイネーブル信号をディゼーブルにし、データ転送期間においてはI2Cイネーブル信号をイネーブルにしているので、データ転送停止期間中にデータ信号線SDAおよびクロック信号線SCLに重畳するノイズである外来ノイズn1の影響により、スレーブデバイス200に備えられたレジスタ群202に誤った値が書き込まれることを抑制でき、上記装置に誤動作が生じるのを抑制できると記載されている。
 一方、図9は、外来ノイズn2の影響により、スレーブデバイス200に備えられたレジスタ群202に誤った値が書き込まれることを抑制できる上記特許文献1に記載されている従来の装置300aの概略構成を示す図である。
 図9に示す装置300aは、図8に示す装置300の構成において、マスタデバイス100には、I2Cスレーブデバイス制御部104の代わりに割り込み制御部(エラー検出通知手段)109が備えられている構成である。
 さらに、スレーブデバイス200には、図8に示す構成に加えて、エラー検出部(エラー検出通知手段)220と割り込み制御部(エラー検出通知手段)221とが備えられている構成である。
 エラー検出部220は、スレーブデバイス200に発生する、データ転送時におけるエラーを検出するものである。エラー検出部220には、I2C部201から出力された信号が入力される。そしてエラー検出部220は、上記信号を基に、当該データのデータ転送時におけるエラーを検出する。そして、もし、データ転送時においてエラーが発生している場合、エラー検出部220は、I2C部201および割り込み制御部221に対して制御信号(I2C部リセット信号・レジスタ書き込み禁止信号・エラー割り込み信号)を送出する。
 割り込み制御部109・221は、割り込み制御部109がマスタデバイス100に、割り込み制御部221がスレーブデバイス200に設けられ、割り込み制御部109と割り込み制御部221とが、データ信号線SDAおよびクロック信号線SCLとは異なる信号線で接続されている。割り込み制御部109・221は、データ転送時におけるエラーを、マスタデバイス100に通知するためのものである。
 データ転送時においてエラーが発生した場合、エラー検出部220は割り込み制御部221に対して制御信号としてエラー割り込み信号を送出し、当該エラー割り込み信号は、割り込み制御部221を介して、割り込み制御部109に入力される。これによって、データ転送時においてエラーが発生したことを、マスタデバイス100が認識することができる。
 また、エラー検出部220において、エラーが検出されなかった場合、スレーブデバイス200は、マスタデバイス100から受信したデータを正しいものとして認識し、I2C部201のI2C受信部は、レジスタ書き込み部を介して、自身が一時的に保持していたマスタデバイス100から転送されたデータを、レジスタ群202の該当するアドレスに書き込む。
 一方、エラー検出部220でエラーが検出された場合、スレーブデバイス200は、マスタデバイス100から受信したデータを誤ったものとして認識し、エラー検出部220は制御信号として、レジスタ書き込み禁止信号をI2C部201のI2C受信部に、I2C部リセット信号をI2C部201に、エラー割り込み信号を割り込み制御部221に、それぞれ送出する。
 そして、I2C部201のI2C受信部は、レジスタ書き込み禁止信号を受信すると、自身が一時的に保持していた、マスタデバイス100から転送されたデータを破棄することで、当該データのレジスタ群202への書き込みを防止するようになっている。
 したがって、上記構成によれば、外来ノイズn2の影響により、スレーブデバイス200に備えられたレジスタ群202に誤った値が書き込まれることを抑制でき、上記装置に誤動作が生じるのを抑制できると記載されている。
特開2008-197752号公報(2008年8月28日公開)
 しかしながら、図8に示す上記特許文献1の構成を用いて、図10に図示されているように、一つのマスタデバイスと、複数のスレーブデバイス(スレーブデバイス1・2・・・N)とを備えた電子装置を構成する場合、上記マスタデバイスから発行されるスタートコンディションおよびストップコンディションは、全てのスレーブデバイス(スレーブデバイス1・2・・・N)において、共通のコマンドとなる。
 したがって、上記構成によれば、CPU101から送出される信号(スタートコンディション/ストップコンディション)に応じて、I2Cスレーブデバイス制御部104は、全てのスレーブデバイス(スレーブデバイス1・2・・・N)におけるI2C部201を同時に、イネーブル状態または、ディゼーブル状態の何れかにするイネーブル信号/ディゼーブル信号を出力するようになっている。
 よって、上記構成によれば、全てのスレーブデバイス(スレーブデバイス1・2・・・N)が同時に、イネーブル状態となってしまうため、以下のような問題が生じる。
 図11は、従来のライトシーケンスを示す図である。
 図11に示すように、従来においては、スレーブアドレスとアドレスデータとライトデータとからなるライトシーケンスを用いるのが一般的であった。
 上述したような全てのスレーブデバイス(スレーブデバイス1・2・・・N)が同時に、イネーブル状態となってしまう構成において、図11に示す従来のライトシーケンスを用いて、特定のスレーブデバイスに備えられたレジスタ群における特定アドレスにデータを書き込もうとした場合、シリアルデータ通信時におけるノイズの影響により、スレーブアドレスのデータとして、誤った値がサンプリングされると(図6の(b)および図6の(c)参照)、意図しないスレーブデバイスにデータを書き込んでしまうこととなる。
 このような構成においては、全てのスレーブデバイス(スレーブデバイス1・2・・・N)が同時に、イネーブル状態となってしまうので、意図しないスレーブデバイスとの通信により、上記電子装置に誤動作が生じるリスクがあるため、問題となる。
 また、上記図8に示す上記特許文献1の構成においては、データ信号線SDAおよびクロック信号線SCLからなるI2Cバス伝送路301の他に、I2Cイネーブル信号を送出するための伝送経路302も備える必要があるため、マスタデバイスとスレーブデバイス間の信号線の数が増えてしまうという問題もある。
 一方、図9に示す上記特許文献1の構成においては、スレーブデバイス200に備えられたエラー検出部220には、データ信号の状態遷移判定部と、クロック信号のカウンタ確認部と、が備えられている。
 エラー検出部220においては、例えば、7ビットのスレーブアドレスおよび8ビットのアドレスデータの後に、8ビットのライトデータn個が、連続してマスタデバイスからスレーブデバイスに送られた場合、I2Cバス伝送路301において上記データ転送時にエラーが発生したかは、上記クロック信号のカウンタ確認部によって、ストップコンディション検出信号がスレーブデバイスに通知された時点でのクロック信号のカウンタの値が、(2+n)×9-1であるかを確認することにより把握できるようになっている。
 したがって、上記構成によれば、ストップコンディションが入力されないとライトデータの反映ができないため、n個のライトデータの各々を、連続書き込みしながら、書き込み直後に値を反映することができないという問題がある。
 また、エラー検出部220は、図6の(c)に図示されているようなクロック信号がHighの状態でデータ信号がHighからLowへと(または逆にLowからHighへと)状態遷移することなく、クロック信号のパルス数にも変化が生じない場合においては、ノイズが混入され、誤った値がサンプリングされるにも関わらず、データ転送時においてエラーが発生したことを検出できない。
 また、上記図9に示す上記特許文献1の構成においても、データ信号線SDAおよびクロック信号線SCLからなるI2Cバス伝送路301の他に、エラー割り込み信号を送出するための別の信号線を備える必要があるため、マスタデバイスとスレーブデバイス間の信号線の数が増えてしまうという問題がある。
 本発明は、上記の問題点に鑑みてなされたものであり、信号線の数の増加を伴うことなく、誤った値の書き込みによって生じる誤動作を抑制できる電子装置およびシリアルデータ通信方法を提供することを目的とする。
 本発明の電子装置は、上記の課題を解決するために、データ信号線およびクロック信号線を介してシリアルデータ通信を行う第1の装置と第2の装置とを備えた電子装置であって、上記第2の装置には、記憶部と制御部とが備えられており、上記シリアルデータ通信を行うことにより、特定のデータが上記記憶部の第1の箇所に書き込まれることによって、上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能にすることを特徴としている。
 上記構成によれば、上記第2の装置において、特定のデータが上記記憶部の第1の箇所に書き込まれない限りは、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みは不能となっている。
 このような構成であるため、上記シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされた場合でも、上記特定のデータが上記記憶部の第1の箇所に書き込まれない限りは、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みはできないようになっている。
 したがって、上記シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされた場合、上記第1の箇所以外の上記記憶部の少なくとも一部へ誤った値が書き込まれる可能性を抑制することができる。
 また、上記構成によれば、上記シリアルデータ通信を行うことにより、上記第2の装置の上記記憶部の第1の箇所に特定のデータが書き込まれることによって、上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能にする構成であるため、データ信号線およびクロック信号線以外の信号線を設ける必要がないので、信号線の数の増加を伴うことはない。
 よって、信号線の数の増加を伴うことなく、誤った値の書き込みによって生じる誤動作を抑制できる電子装置を実現することができる。
 本発明のシリアルデータ通信方法は、上記の課題を解決するために、データ信号線およびクロック信号線を用いたシリアルデータ通信方法であって、上記データ信号線と上記クロック信号線とを介して、通信される上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータは、上記シリアルデータ通信を行う対象装置を特定する第1のデータと、上記特定された対象装置に備えられた記憶部の第1の箇所を特定する第2のデータと、上記記憶部の第1の箇所に書き込まれる第3のデータと、を備えていることを特徴としている。
 上記方法によれば、上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータは、上記シリアルデータ通信を行う対象装置を特定する第1のデータと、上記特定された対象装置に備えられた記憶部の第1の箇所を特定する第2のデータと、上記記憶部の第1の箇所に書き込まれる第3のデータと、を備えている。
 したがって、上記シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされた場合、上記第3のデータを、上記第1のデータおよび上記第2のデータで特定される上記シリアルデータ通信を行う所定の対象装置における上記記憶部の第1の箇所に書き込むことができないので、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みはできないようになっている。
 よって、上記シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされた場合、上記第1の箇所以外の上記記憶部の少なくとも一部へ誤った値が書き込まれる可能性を抑制することができる。
 また、上記方法によれば、データ信号線およびクロック信号線以外の信号線を設ける必要がないので、信号線の数の増加を伴うことはない。
 よって、信号線の数の増加を伴うことなく、誤った値の書き込みによって生じる誤動作を抑制できるシリアルデータ通信方法を実現することができる。
 本発明の電子装置は、以上のように、上記第2の装置には、記憶部と制御部とが備えられており、上記シリアルデータ通信を行うことにより、特定のデータが上記記憶部の第1の箇所に書き込まれることによって、上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能にする構成である。
 本発明のシリアルデータ通信方法においては、以上のように、上記データ信号線と上記クロック信号線とを介して、通信される上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータは、上記シリアルデータ通信を行う対象装置を特定する第1のデータと、上記特定された対象装置に備えられた記憶部の第1の箇所を特定する第2のデータと、上記記憶部の第1の箇所に書き込まれる第3のデータと、を備えている。
 それゆえ、信号線の数の増加を伴うことなく、誤った値の書き込みによって生じる誤動作を抑制できる電子装置およびシリアルデータ通信方法を実現することができる。
本発明の一実施の形態の電子装置の概略構成を示すブロック図である。 図1に示した本発明の一実施の形態の電子装置において、レジスタ群のイネーブル/ディゼーブルレジスタ以外の箇所への書き込みが不能になっている場合を示す図である。 マスタデバイスと、N個のスレーブデバイスとを備えた本発明の一実施の形態の電子装置の概略構成を示す図である。 本発明の一実施の形態の電子装置において用いられているライトシーケンスを示す図である。 本発明の一実施の形態の電子装置において用いられている伝送プロトコルの一例を示す図である。 マスタデバイスから複数のスレーブデバイスにデータ信号線およびクロック信号線を介して送信されるデータ信号とクロック信号との一例を示す図である。 I2C通信における外来ノイズの種類を説明するための図である。 外来ノイズn1の影響により、スレーブデバイスに備えられたレジスタ群に誤った値が書き込まれることを抑制できる特許文献1に記載されている従来の装置の概略構成を示す図である。 外来ノイズn2の影響により、スレーブデバイスに備えられたレジスタ群に誤った値が書き込まれることを抑制できる特許文献1に記載されている従来の装置の概略構成を示す図である。 一つのマスタデバイスと、N個のスレーブデバイスとを備えた従来の電子装置の構成を示す図である。 従来のライトシーケンスを示す図である。
 以下、図面に基づいて本発明の実施の形態について詳しく説明する。ただし、この実施の形態に記載されている構成部品の寸法、材質、形状、その相対配置などはあくまで一実施形態に過ぎず、これらによってこの発明の範囲が限定解釈されるべきではない。
 図1は、I2C通信のインターフェース仕様に準拠したI2Cバス伝送路4を備えた電子装置1の概略構成を示すブロック図である。
 図示されているように、電子機器1におけるマスタデバイス2(第1の装置)とスレーブデバイス3(第2の装置)とは、クロック信号線SCLおよびデータ信号線SDAからなるI2Cバス伝送路4によって接続されている。
 クロック信号線SCLは、クロック信号を送信するためのものであり、データ信号線SDAは、アドレスデータやライトデータ等を送信するためのものである。
 マスタデバイス2は、スレーブデバイス3に対して所定のデータを書き込んだり、スレーブデバイス3に格納されているデータを読み出したりするものである。
 図示されているように、マスタデバイス2には、CPU(中央処理装置)5と、I2C通信のインターフェース仕様に準拠した動作を行うI2C部6と、メモリ(未図示)と、が備えられている。
 CPU5は、マスタデバイス2とスレーブデバイス3との間の書き込み及び読み出し動作を制御するとともに、後述する図5に示すスタートコンディションやストップコンディションを、I2C部6に送信する。
 I2C部6は、クロック信号線SCLおよびデータ信号線SDAに接続されており、I2C通信のインターフェース仕様に準拠した動作を行うものである。
 そして、上記メモリには、CPU5が実行するプログラムなどを保存することができる。
 一方、スレーブデバイス3には、マスタデバイス2とI2C通信を行うためのI2C通信のインターフェース仕様に準拠した動作を行うI2C部7と、レジスタ読み出し部8と、レジスタ書き込み部9と、レジスタ群10(記憶部)と、機能ブロック12(制御部)と、が備えられている。
 スレーブデバイス3は、マスタデバイス2より書き込まれたデータをレジスタ群10に記憶させ、当該データに基づいて機能ブロック12に実装された機能を実行するものである。
 I2C部7は、双方向バッファ13と、バッファ14と、ノイズ除去および同期化部15と、I2C送信部16と、I2C制御部17と、I2C受信部18と、を備えている。
 双方向バッファ13は、データ信号線SDAに接続されており、マスタデバイス2からデータ信号の入力があった場合、ハイインピーダンス状態となることで、入力されたデータ信号を内部回路に伝送する動作をするようになっている。
 一方、マスタデバイス2にデータ信号を出力する場合は、理論値Low出力もしくはハイインピーダンス状態となることで、データ信号をマスタデバイス2に転送する動作をするようになっている。
 すなわち、この双方向バッファ13は、マスタデバイス2からデータ信号の入力があったか、または、マスタデバイス2にデータ信号を出力するかに応じて、入力されたデータ信号を内部回路に伝送する動作とデータ信号をマスタデバイス2に転送する動作とを切り替えるようになっている。
 そして、バッファ14は、クロック信号線SCLに接続されており、マスタデバイス2から入力されたクロック信号を内部回路に伝送する動作をするようになっている。
 なお、本実施の形態においては、データ信号線SDAは双方向バッファ13に、クロック信号線SCLはバッファ14に、それぞれ接続された構成を用いているが、これに限定されることはなく、例えば、スレーブデバイス3がマスタデバイスに、マスタデバイス2がスレーブデバイスに入れ替わり、スレーブデバイス3からマスタデバイス2へクロック信号の送信が行われる場合には、バッファ14として双方向バッファを用いることもできる。
 ノイズ除去および同期化部15は、I2C制御部17の制御内容に応じて、データ信号線SDAからのデータの入出力動作を行う。
 I2C送信部16は、マスタデバイス2がスレーブデバイス3に蓄積されるデータを読み出す場合において、レジスタ群10に蓄積されたデータを、レジスタ読み出し部8を介して受け取り、ノイズ除去および同期化部15と、双方向バッファ13と、を介して、データ信号線SDAから上記データを送信するようになっている。
 そして、I2C制御部17は、双方向バッファ13を制御しており、所定のタイミングで入出力を切り替える。それに伴い、上述したI2C送信部16が、マスタデバイス2にデータを送信するタイミングと、後述するI2C受信部18がレジスタ書き込み部9にデータを送信するタイミングと、を制御している。
 一方、I2C受信部18は、マスタデバイス2から受信したデータに含まれるスレーブアドレスがスレーブデバイス3のスレーブアドレスと一致するかどうか判定する。そして、受信したスレーブアドレスがスレーブデバイス3のスレーブアドレスと一致しない場合、またはスレーブデバイス3がビジー状態でデータの受信が不可能である場合には、I2C制御部17に対して、双方向バッファ13をハイインピーダンス状態とし、マスタデバイス2に対して「NACK」を通知する旨の指令を送信するようになっている。
 また、I2C受信部18は、マスタデバイス2から受信したデータをスレーブデバイス3に蓄積する場合、レジスタ書き込み部9を介して、レジスタ群10のレジスタに当該データを書き込むようになっている。
 図1に図示されているように、レジスタ群10は、多数のレジスタによって構成され、マスタデバイス2から転送されたデータが書き込まれる。そして当該データをレジスタ群10と機能ブロック12との間に備えられた図示してないリード部で読み出すことにより、機能ブロック12は、自身に実装された機能を実現するようになっている。
 図示されているように、電子装置1のスレーブデバイス3に備えられたレジスタ群10における上記多数のレジスタ中には、イネーブル/ディゼーブルレジスタ11が含まれている構成となっている。
 レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所に、マスタデバイス2から転送されたデータが書き込まれると、当該データを上記リード部で読み出すことにより、機能ブロック12は、自身に実装された機能を実現するようになっているのに対し、イネーブル/ディゼーブルレジスタ11にマスタデバイス2から転送された特定のデータが書き込まれると、当該データを上記リード部で読み出すことにより、機能ブロック12からレジスタ書き込み部9に、イネーブル信号が出力されるようになっている。
 一方、イネーブル/ディゼーブルレジスタ11にマスタデバイス2から転送された上記特定のデータとは異なるデータが書き込まれると、当該データを上記リード部で読み出すことにより、機能ブロック12からレジスタ書き込み部9に、ディスイネーブル信号が出力されるようになっている。
 レジスタ書き込み部9は、初期状態として、イネーブル/ディゼーブルレジスタ11への書き込みのみが可能に設定されており、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みは不能になっている。
 レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを可能にするためには、先ず、イネーブル/ディゼーブルレジスタ11へ所定のデータ(イネーブルライトデータ)を書き込み、当該データを上記リード部で読み出すことにより、機能ブロック12からレジスタ書き込み部9に、イネーブル信号が出力されるようにすればよい。
 レジスタ書き込み部9は、機能ブロック12からイネーブル信号を受信すると、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを許容するようになっている。
 なお、レジスタ群10には、必要に応じて、イネーブル/ディゼーブルレジスタ11に所定のデータが書き込まれることに関係なく、書き込みが自由にできる部分を設けてもよい。
 図2は、図1に示した電子装置1において、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みが不能になっている場合を示す図である。
 図示されているように、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを不能にするためには、イネーブル/ディゼーブルレジスタ11へ所定のデータ(ディゼーブルライトデータ)を書き込み、当該データを上記リード部で読み出すことにより、機能ブロック12からレジスタ書き込み部9に、ディスイネーブル信号が出力されるようにすればよい。
 レジスタ書き込み部9は、機能ブロック12からディスイネーブル信号を受信すると、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを不能にするようになっている。
 図3は、マスタデバイス2と、N個のスレーブデバイス3とを備えた電子装置1の概略構成を示す図である。
 なお、図1および図2においては、スレーブデバイス3を一つのみ図示し、その他のスレーブデバイス3は省略して図示しているが、図3のようにマスタデバイス2と、N個のスレーブデバイス3とが、クロック信号線SCLおよびデータ信号線SDAからなるI2Cバス伝送路4によって接続されているものとする。
 また、本実施の形態においては、図3に図示されているように、一つのマスタデバイス2と、N個のスレーブデバイス3とをI2Cバス伝送路4によって接続させた構成を用いることにより、一つのマスタデバイス2によって、多様な機能を実現できるようにしているが、これに限定されることはなく、スレーブデバイス3を一つのみ設けた構成とすることもできる。
 また、図3に示す構成によれば、クロック信号線SCLおよびデータ信号線SDAは、N個のスレーブデバイス3において共用化されているので、マスタデバイス2におけるクロック信号線SCLおよびデータ信号線SDAの出力端子は、2本のみを設ければよいこととなるので、マスタデバイス2における出力端子の数を減らすことができる。
 なお、本実施の形態においては、上述した理由から、クロック信号線SCLおよびデータ信号線SDAを、N個のスレーブデバイス3において共用化しているが、これに限定されることはなく、例えば、N個のスレーブデバイス3毎に、マスタデバイス2からクロック信号線SCLおよびデータ信号線SDAを設けることもできる。
 また、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを可能にするために、イネーブル/ディゼーブルレジスタ11へ書き込む所定のデータ(イネーブルライトデータ)は、図3に示すN個のスレーブデバイス3毎に異なることが好ましい。
 すなわち、本実施の形態においては、イネーブル/ディゼーブルレジスタ11へ書き込む所定のデータ(イネーブルライトデータ)は、各スレーブデバイス3毎に固有となるようにしているが、これに限定されることはない。
 電子装置1は、シリアルデータ通信を行うことにより、スレーブデバイス3毎に固有である特定のデータ(イネーブルライトデータ)が、スレーブデバイス3に備えられたレジスタ群10のイネーブル/ディゼーブルレジスタ11に書き込まれることによって、機能ブロック12から出力されるイネーブル信号に応じて、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを可能にする構成となっている。
 上記構成によれば、スレーブデバイス3において、スレーブデバイス3毎に固有である特定のデータ(イネーブルライトデータ)がレジスタ群10のイネーブル/ディゼーブルレジスタ11に書き込まれない限りは、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みは不能となっている。
 このような構成であるため、詳しくは後述するN個のスレーブデバイス3からある一つのスレーブデバイス3を特定するスレーブアドレス(第2の装置特定信号)として、ノイズの影響により、誤った値がサンプリングされたとしても、誤って特定されたスレーブデバイス3のレジスタ群10のイネーブル/ディゼーブルレジスタ11に、スレーブデバイス3毎に固有である特定のデータ(イネーブルライトデータ)が書き込まれない限りは、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みは不能となっている。
 以上のように、誤って特定されたスレーブデバイス3のレジスタ群10のイネーブル/ディゼーブルレジスタ11に、スレーブデバイス3毎に固有である特定のデータ(イネーブルライトデータ)が書き込まれる可能性は、極めて低くなるので、上記構成によれば、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置1を実現することができる。
 また、上記構成によれば、データ信号線SDAおよびクロック信号線SCL以外の信号線を設ける必要がないので、信号線の数の増加を伴うことはない。
 また、上記構成によれば、スレーブデバイス3に備えられたレジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを行った後に、シリアルデータ通信を行うことにより、上記特定のデータ(イネーブルライトデータ)とは異なるデータ(ディゼーブルライトデータ)をレジスタ群10のイネーブル/ディゼーブルレジスタ11に書き込むことによって、機能ブロック12から出力されるディスイネーブル信号に応じて、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを不能にすることができる。
 したがって、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを行う期間以外、例えば、上記シリアルデータ通信におけるデータ転送停止期間やマスタデバイス2が特定のスレーブデバイス3と上記シリアルデータ通信中である場合における、上記特定のスレーブデバイス3以外における上記シリアルデータ通信期間などにおいては、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを不能にできる。
 よって、上記構成によれば、スレーブデバイス3に備えられたレジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを行う期間以外において、生じ得る誤書き込みを抑制できる電子装置1を実現することができる。
 なお、図3に図示されているような構成の場合、データ信号およびクロック信号の出力部はオープンコレクタやオープンドレインデバイスなどで構成され、出力インピーダンスが比較的高くなるため、ノイズの影響を受けやすい構成となっているため、上述したような本実施の形態で用いている誤った値の書き込みによって生じる誤動作を抑制できる構成を好適に用いることができる。
 一方、図1および図2に図示されているように、スレーブデバイス3に備えられた機能ブロック12は、レジスタ書き込み部9に、イネーブル信号または、ディスイネーブル信号を出力する機能以外に、実行できる機能の例として、液晶表示回路、CCD回路を含んだ撮像回路、D/A変換回路、EEPROM等の記憶回路の駆動などを挙げることができる。
 以下、図4および図5に基づいて、電子装置1において用いられているライトシーケンスと、伝送プロトコルとについて説明する。
 図4は、電子装置1のシリアルデータ通信方式(シリアルデータ通信方法)において用いられているライトシーケンスを示す図である。
 電子装置1においては、マスタデバイス2からN個のスレーブデバイス3に、上記シリアルデータ通信を行うことにより送られる、N個のスレーブデバイス3の中からある一つのスレーブデバイス3を特定する(上記シリアルデータ通信を行う対象装置を特定する)スレーブアドレス(A)(第1のデータ)によって、マスタデバイス2と上記シリアルデータ通信を行うスレーブデバイス3が特定されるようになっている。
 図4に図示されているように、このようなスレーブアドレス(A)と、レジスタ群10におけるイネーブル/ディゼーブルレジスタ11の箇所を指定するイネーブル/ディゼーブルレジスタのアドレスデータ(B)(第2のデータ)と、各スレーブデバイス3毎に固有である特定のデータ(イネーブルライトデータ)となるイネーブル/ディゼーブルレジスタへのライトデータ(C)(第3のデータ)とで、電子装置1において用いられているライトシーケンスにおいて、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを可能にする段階を構成する。
 そして、電子装置1において用いられているライトシーケンスにおいて、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込み段階は、上記スレーブアドレス(A)と同じ値を有するスレーブアドレス(D)(第1のデータ)と、レジスタ群10においてイネーブル/ディゼーブルレジスタ11以外の特定箇所を指定するアドレスデータ(E)(第5のデータ)と、レジスタ群10においてイネーブル/ディゼーブルレジスタ11以外の上記特定箇所へのライトデータ(F)(第6のデータ)とで、構成される。
 最後に、電子装置1において用いられているライトシーケンスにおいて、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを不能にする段階は、上記スレーブアドレス(A)および上記スレーブアドレス(D)と同じ値を有するスレーブアドレス(G)(第1のデータ)と、イネーブル/ディゼーブルレジスタのアドレスデータ(B)と同じ値を有するレジスタ群10におけるイネーブル/ディゼーブルレジスタ11の箇所を指定するイネーブル/ディゼーブルレジスタのアドレスデータ(H)(第2のデータ)と、上記特定のデータ(イネーブルライトデータ)とは異なるデータ(ディゼーブルライトデータ)となるイネーブル/ディゼーブルレジスタへのライトデータ(I)(第4のデータ)とで、構成される。
 なお、本実施の形態においては、N個のスレーブデバイス3毎にイネーブル/ディゼーブルレジスタ11のアドレスを異なるようにしている。
 すなわち、上記イネーブル/ディゼーブルレジスタ11のアドレスを、各スレーブデバイス3毎に固有にしている。
 このような構成によれば、スレーブアドレスと、イネーブル/ディゼーブルレジスタ11のアドレスと、特定のデータ(イネーブルライトデータ)となるイネーブル/ディゼーブルレジスタ11へのライトデータと、はN個のスレーブデバイス3毎に固有となる。
 よって、スレーブアドレスとして、ノイズの影響により、誤った値がサンプリングされ、意図しないあるスレーブデバイス3が特定されたとしても、本来意図していたスレーブデバイス3におけるイネーブル/ディゼーブルレジスタ11のアドレスと意図しないスレーブデバイス3におけるイネーブル/ディゼーブルレジスタ11のアドレスとは、異なるとともに、本来意図していたスレーブデバイス3における特定のデータと意図しないスレーブデバイス3における特定のデータとも異なるので、意図しないスレーブデバイス3において、誤って、書き込みが可能になる可能性は、さらに低くなるので、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置1を実現することができる。
 図5は、電子装置1において用いられている伝送プロトコルの一例を示す図である。
 図5の(a)は、図4におけるレジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを可能にする段階に対応している。
 先ず、マスタデバイス2がスレーブデバイス3との通信を開始する際には、最初にI2Cバス伝送路4の使用権を獲得する必要がある。
 したがって、図5の(a)に図示されているように、マスタデバイス2がスタートコンディションを発行し、送出する。これはクロック信号線SCLがHighの状態において、データ信号線SDAをHighからLowにすることで実現できる。
 図5の(a)に図示されているように、マスタデバイス2からスレーブデバイス3に書き込む際には、先ず、マスタデバイス2からスレーブデバイス3に、上述したスタートコンディションとともに、N個のスレーブデバイス3の中からある一つのスレーブデバイス3を特定する7ビットのスレーブアドレス(A)と、1ビットのライト信号(Low信号)が送信される。
 スレーブデバイス3は、マスタデバイス2から転送されたデータを双方向バッファ13と、ノイズ除去および同期化部15とを経由させ、I2C受信部18で受信する(図1参照)。
 そして、スレーブデバイス3は、自身が受信可能な状態であれば図5の(a)のようなタイミングで「ACK」をマスタデバイス2に通知しながら、各スレーブデバイス3毎に固有であり、8ビットであるレジスタ群10におけるイネーブル/ディゼーブルレジスタ11の箇所を指定するイネーブル/ディゼーブルレジスタのアドレスデータ(B)と、8ビットである各スレーブデバイス3毎に固有である特定のデータとなるイネーブル/ディゼーブルレジスタへのライトデータ(C)と、を受信し、レジスタ群10のイネーブル/ディゼーブルレジスタ11の該当するアドレスに書き込む。
 一方、データを受け取れなかったときにはスレーブデバイス3は、「NACK」をマスタデバイス2に送信することで、データ転送の不良をマスタデバイス2に知らせることができる。
 なお、スレーブデバイス3は、クロック信号の9ビット目で双方向バッファ13をハイインピーダンス状態にすることで、マスタデバイス2に対して「NACK」を通知することができる。
 本実施の形態においては、N個のスレーブデバイス3の中で、あるスレーブデバイス3が、スレーブアドレス(A)・(D)を受け取れなかったという意味の「NACK」を送信した場合には、スレーブアドレス(A)・(D)を認識できなかった該当スレーブデバイス3においては、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みができないように設定している。
 そして、マスタデバイス2が、N個のスレーブデバイス3の中からスレーブアドレス(A)・(D)・(G)によって特定されるある一つのスレーブデバイス3から、スレーブアドレス(A)・(D)・(G)を受け取れなかったという意味の「NACK」を受信した場合には、スレーブアドレス(A)・(D)・(G)を再送するように設定している。
 上記構成によれば、N個のスレーブデバイス3中、スレーブアドレス(A)・(D)を認識したスレーブデバイス3においては、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを可能にすることができるが、スレーブアドレス(A)・(D)を認識できないスレーブデバイス3においては、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みが不能となる。
 したがって、例えば、マスタデバイス2と特定のスレーブデバイス3とが上記シリアルデータ通信中である場合、N個のスレーブデバイス3中、上記特定のスレーブデバイス3以外は、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みができない。
 よって、誤った値の書き込みによって生じる誤動作を抑制できる電子装置1を実現することができる。
 また、上記構成によれば、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを可能にした場合であっても、スレーブアドレス(A)・(D)を認識できないスレーブデバイス3においては、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外の箇所への書き込みを不能にできるので、上記書き込み可能状態が継続されるのを防止することができるので、誤った値の書き込みによって生じる誤動作を抑制できる電子装置1を実現することができる。
 なお、スレーブデバイス3においては、I2C受信部18が正常にデータを受信したか否かをI2C制御部17にて判断し、判断結果に応じて「ACK」または「NACK」を発行し、ノイズ除去および同期化部15と、双方向バッファ13とを経由させ、マスタデバイス2のI2C部6に送信するようになっている(図1参照)。
 図5の(b)は、図4におけるレジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込み段階に対応している。
 また、図5の(c)は、図4におけるレジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを不能にする段階に対応している。
 なお、図5の(b)におけるスレーブアドレス(D)と、アドレスデータ(E)と、ライトデータ(F)とをマスタデバイス2からスレーブデバイス3に書き込む際の伝送方法および図5の(c)におけるスレーブアドレス(G)と、アドレスデータ(H)と、ライトデータ(I)とをマスタデバイス2からスレーブデバイス3に書き込む際の伝送方法は、図5の(a)と同様であるため、説明を省略する。
 以上のようなデータ転送が終了すると、スレーブデバイス3は、マスタデバイス2に対する「ACK」または、「NACK」の送信を停止する。これをマスタデバイス2が認識することによってデータ転送の終了を認識する。
 そして、I2Cバス伝送路4を開放するため、マスタデバイス2はストップコンディションを発行する。これはクロック信号線SCLがHighの状態において、データ信号線SDAをLowからHighにすることで実現できる。
 上記ストップコンディションは、CPU5から発行および送出される。
 なお、本実施の形態においては、スレーブデバイス3がスタートコンディションを検出した場合、レジスタ書き込み部9がイネーブル状態となり、レジスタ群10のイネーブル/ディゼーブルレジスタ11への書き込みが可能となり、一方、スレーブデバイス3がストップコンディションを検出した場合には、レジスタ書き込み部9がディゼーブル状態となり、レジスタ群10のイネーブル/ディゼーブルレジスタ11への書き込みができないようになっている。
 上記構成によれば、ストップコンディションが発行されてからスタートコンディションが発行されるまでの期間、例えば、図7に示したデータ転送停止期間中に、イネーブル/ディゼーブルレジスタ11への書き込みができないようにしているので、図7に示した外来ノイズn1による誤動作を防止することができる電子装置1を実現することができる。
 なお、本実施の形態においては、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを可能にする、8ビットである各スレーブデバイス3毎に固有である特定のデータの種類数が、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを不能にする上記特定のデータとは異なるデータの種類数より少なくなるように設定されている。
 したがって、シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされ、このような誤った値が、レジスタ群10のイネーブル/ディゼーブルレジスタ11に書き込まれたとしても、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みが可能となる可能性が低くなるようになっているので、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置1を実現することができる。
 また、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを可能にする、8ビットである各スレーブデバイス3毎に固有である特定のデータの種類数を1種類とすることもできる。
 さらには、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを可能にする、8ビットである各スレーブデバイス3毎に固有である特定のデータは、ハイレベルとロウレベルとの2値を有しており、ハイレベルからロウレベルまたは、ロウレベルからハイレベルへの切り替わりが少なくとも2回含まれていることが好ましい。
 また、レジスタ群10のイネーブル/ディゼーブルレジスタ11以外への書き込みを可能にする、8ビットである各スレーブデバイス3毎に固有である特定のデータは、クロック信号のクロック周期毎にハイレベルとロウレベルとが切り替わることが好ましい。
 上記特定のデータをこのように設定することにより、シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされたとしても、このような誤った値が上記特定のデータと一致する可能性をさらに下げることができる。
 本発明の電子装置は、上記シリアルデータ通信を行うことにより、上記特定のデータとは異なるデータが上記第1の箇所に書き込まれることによって、上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能にすることが好ましい。
 上記構成によれば、例えば、上記第2の装置に備えられた上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを行った後に、上記シリアルデータ通信を行うことにより、上記特定のデータとは異なるデータを上記記憶部の第1の箇所に書き込むことによって、上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能にすることができる。
 したがって、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを行う期間以外、例えば、上記シリアルデータ通信におけるデータ転送停止期間などにおいては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能にできる。
 よって、上記構成によれば、上記第2の装置に備えられた上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを行う期間以外において、生じ得る誤書き込みを抑制できる電子装置を実現することができる。
 本発明の電子装置においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とする特定のデータの種類数が、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能とする上記特定のデータとは異なるデータの種類数より少ないことが好ましい。
 上記構成によれば、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とする特定のデータの種類数が、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能とする上記特定のデータとは異なるデータの種類数より少なくなるように設定されている。
 すなわち、上記構成においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とするのが、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能とするより、確率的に低くなるように設定されている。
 したがって、シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされ、このような誤った値が、上記第1の箇所に書き込まれたとしても、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが可能となる可能性が低くなるようになっているので、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置を実現することができる。
 本発明の電子装置おいては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とする特定のデータの種類数は、1種類であることが好ましい。
 上記構成によれば、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とする特定のデータの種類数が1種類であるので、シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされ、このような誤った値が、上記第1の箇所に書き込まれたとしても、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが可能となる可能性がさらに低くなるようになっているので、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置を実現することができる。
 本発明の電子装置において、上記特定のデータは、ハイレベルとロウレベルとの2値を有しており、ハイレベルからロウレベルまたは、ロウレベルからハイレベルへの切り替わりが少なくとも2回含まれていることが好ましい。
 本発明の電子装置において、上記特定のデータは、上記クロック信号線を介して上記第1の装置から上記第2の装置に送信されるクロック信号のクロック周期毎にハイレベルとロウレベルとが切り替わることが好ましい。
 上記構成によれば、上記特定のデータは、ハイレベルとロウレベルとが細かく変化するようなデータで構成されている。
 したがって、シリアルデータ通信において、ノイズの影響により、誤った値がサンプリングされたとしても、このような誤った値が上記特定のデータと一致する可能性をさらに下げることができる。
 本発明の電子装置において、上記第1の箇所へのデータの書き込みは、上記第1の装置から上記第2の装置に送られる上記シリアルデータ通信を開始するコマンドによって可能になり、上記第1の装置から上記第2の装置に送られる上記シリアルデータ通信を停止するコマンドによって不能になることが好ましい。
 上記構成によれば、上記第2の装置が、上記シリアルデータ通信を開始するコマンド(スタートコンディション)を検出した場合には、上記第1の箇所へのデータの書き込みが可能となり、上記第2の装置が、上記シリアルデータ通信を停止するコマンド(ストップコンディション)を検出した場合には、上記第1の箇所へのデータの書き込みが不能となるようになっている。
 したがって、上記シリアルデータ通信を停止するコマンド発行されてから上記シリアルデータ通信を開始するコマンドが発行されるまでの期間、すなわち、データ転送停止期間中に、上記第1の箇所へのデータの書き込みはできないようにしているので、外来ノイズによる誤動作を防止することができる電子装置を実現することができる。
 本発明の電子装置において、上記第2の装置は、複数個備えられており、上記第1の装置から上記複数の第2の装置に、上記シリアルデータ通信を行うことにより送られる、上記複数の第2の装置の中からある一つの第2の装置を特定する第2の装置特定信号によって、上記第1の装置と上記シリアルデータ通信を行う第2の装置が特定されることが好ましい。
 上記構成によれば、上記第1の装置と上記シリアルデータ通信を行う第2の装置を特定する上記第2の装置特定信号も、上記第1の装置から上記複数の第2の装置に、上記シリアルデータ通信を行うことにより送られるようになっているので、信号線の数の増加を伴うことなく、誤った値の書き込みによって生じる誤動作を抑制できる電子装置を実現することができる。
 また、上記構成によれば、上記第1の装置と上記シリアルデータ通信を行わない第2の装置において、ノイズの影響により、上記第2の装置特定信号を誤って受信した場合においても、上記特定のデータが上記記憶部の第1の箇所に書き込まれない限りは、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みはできないようになっているので、誤った値の書き込みによって生じる誤動作を抑制できる電子装置を実現することができる。
 本発明の電子装置において、上記第2の装置は、複数個備えられており、上記第1の装置から上記複数の第2の装置に、上記シリアルデータ通信を行うことにより送られる、上記複数の第2の装置の中からある一つの第2の装置を特定する第2の装置特定信号が、上記複数の第2の装置中、認識できない第2の装置においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが不能となることが好ましい。
 上記構成によれば、上記複数の第2の装置中、上記第2の装置特定信号を認識した第2の装置においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが可能であるが、上記第2の装置特定信号を認識できない第2の装置においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが不能となる。
 したがって、例えば、上記第1の装置と特定の第2の装置とが上記シリアルデータ通信中である場合、上記複数の第2の装置において、上記特定の第2の装置以外には、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みができない。
 よって、誤った値の書き込みによって生じる誤動作を抑制できる電子装置を実現することができる。
 また、上記構成によれば、上記制御部が、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能にした場合であっても、上記第2の装置特定信号を認識できない第2の装置においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能にできるので、上記書き込み可能状態が継続されるのを防止することができるので、誤った値の書き込みによって生じる誤動作を抑制できる電子装置を実現することができる。
 本発明の電子装置において、上記データ信号線および上記クロック信号線は、上記複数の第2の装置において共用化されていることが好ましい。
 上記構成によれば、上記データ信号線および上記クロック信号線は、上記複数の第2の装置において共用化されているので、上記第1の装置における上記データ信号線および上記クロック信号線の出力端子は、2本のみを設ければよいこととなるので、上記第1の装置における出力端子の数を減らすことができる。
 また、このような構成の場合、データ信号およびクロック信号の出力部はオープンコレクタやオープンドレインデバイスなどで構成され、出力インピーダンスは比較的高くなるため、ノイズの影響を受けやすいので、本発明による誤った値の書き込みによって生じる誤動作を抑制できる構成を好適に用いることができる。
 本発明の電子装置において、上記特定のデータは、上記複数の第2の装置毎に固有であることが好ましい。
 上記構成によれば、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能にする特定のデータは、上記第2の装置毎に異なるようになっている。
 したがって、上記複数の第2の装置の中からある一つの第2の装置を特定する第2の装置特定信号と上記特定のデータとは、上記複数の第2の装置毎に固有である。
 よって、上記第2の装置特定信号として、ノイズの影響により、誤った値がサンプリングされ、意図しない第2の装置が特定されたとしても、本来意図していた第2の装置における特定のデータと意図しない第2の装置における特定のデータとは、異なるため、意図しない第2の装置において、誤って、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが可能になる可能性は、さらに低くなるので、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置を実現することができる。
 本発明の電子装置において、上記第1の箇所は、上記複数の第2の装置毎に固有であることが好ましい。
 上記構成によれば、上記記憶部の第1の箇所は、上記第2の装置毎に異なるようになっている。
 したがって、上記複数の第2の装置の中からある一つの第2の装置を特定する第2の装置特定信号と上記第1の箇所とは、上記複数の第2の装置毎に固有である。
 よって、上記第2の装置特定信号として、ノイズの影響により、誤った値がサンプリングされ、意図しない第2の装置が特定されたとしても、本来意図していた第2の装置における第1の箇所と意図しない第2の装置における第1の箇所とは、異なるため、意図しない第2の装置において、誤って、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが可能になる可能性は、さらに低くなるので、誤った値の書き込みによって生じる誤動作を極力抑制できる電子装置を実現することができる。
 本発明の電子装置おいては、I2C方式のシリアルデータ通信を好適に用いることができる。
 本発明のシリアルデータ通信方法において、上記データ信号線と上記クロック信号線とを介して、通信されるデータは、上記シリアルデータ通信方法における、上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータと、上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを不能にする、上記第1のデータと、上記第2のデータと、上記第3のデータとは異なる上記記憶部の第1の箇所に書き込まれる第4のデータと、を備えていることが好ましい。
 本発明のシリアルデータ通信方法は、上記記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータが送られた後には、上記第1のデータと、上記記憶部の第1の箇所以外を特定する第5のデータと、上記記憶部の第1の箇所以外へ書き込まれる第6のデータと、が備えられた書き込みデータが送られ、上記書き込みデータが送られた後には、上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを不能にするデータが送られることが好ましい。
 上記方法によれば、上記記憶部の第1の箇所以外の少なくとも一部への書き込みを行った後に、上記記憶部の第1の箇所以外の少なくとも一部への書き込みを不能にすることができる。
 したがって、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを行う期間以外、例えば、上記シリアルデータ通信におけるデータ転送停止期間や特定の対象装置が上記シリアルデータ通信中である場合における、上記特定の対象装置以外の装置における上記シリアルデータ通信期間などにおいては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能にできる。
 よって、上記方法によれば、上記記憶部の第1の箇所以外の少なくとも一部への書き込みを行う期間以外において、生じ得る誤書き込みを抑制できる。
 本発明は上記した各実施の形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施の形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施の形態についても本発明の技術的範囲に含まれる。
 本発明は、シリアルデータ通信により、データ通信を行うマスタデバイスとスレーブデバイスとを備えた電子装置に適用することができる。
  1   電子装置
  2   マスタデバイス(第1の装置)
  3   スレーブデバイス(第2の装置)
  4   I2Cバス伝送路
  9   レジスタ書き込み部(制御部)
  10  レジスタ群(記憶部)
  11  イネーブル/ディゼーブルレジスタ(記憶部の第1の箇所)
  12  機能ブロック(制御部)
  SDA データ信号線
  SCL クロック信号線

Claims (16)

  1.  データ信号線およびクロック信号線を介してシリアルデータ通信を行う第1の装置と第2の装置とを備えた電子装置であって、
     上記第2の装置には、記憶部と制御部とが備えられており、
     上記シリアルデータ通信を行うことにより、特定のデータが上記記憶部の第1の箇所に書き込まれることによって、
     上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能にすることを特徴とする電子装置。
  2.  上記シリアルデータ通信を行うことにより、上記特定のデータとは異なるデータが上記第1の箇所に書き込まれることによって、
     上記制御部は、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能にすることを特徴とする請求項1に記載の電子装置。
  3.  上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とする特定のデータの種類数が、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを不能とする上記特定のデータとは異なるデータの種類数より少ないことを特徴とする請求項2に記載の電子装置。
  4.  上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みを可能とする特定のデータの種類数は、1種類であることを特徴とする請求項1から3の何れか1項に記載の電子装置。
  5.  上記特定のデータは、ハイレベルとロウレベルとの2値を有しており、ハイレベルからロウレベルまたは、ロウレベルからハイレベルへの切り替わりが少なくとも2回含まれていることを特徴とする請求項1から4の何れか1項に記載の電子装置。
  6.  上記特定のデータは、上記クロック信号線を介して上記第1の装置から上記第2の装置に送信されるクロック信号のクロック周期毎にハイレベルとロウレベルとが切り替わることを特徴とする請求項5に記載の電子装置。
  7.  上記第1の箇所へのデータの書き込みは、
     上記第1の装置から上記第2の装置に送られる上記シリアルデータ通信を開始するコマンドによって可能になり、
     上記第1の装置から上記第2の装置に送られる上記シリアルデータ通信を停止するコマンドによって不能になることを特徴とする請求項1から6の何れか1項に記載の電子装置。
  8.  上記第2の装置は、複数個備えられており、
     上記第1の装置から上記複数の第2の装置に、上記シリアルデータ通信を行うことにより送られる、上記複数の第2の装置の中からある一つの第2の装置を特定する第2の装置特定信号によって、上記第1の装置と上記シリアルデータ通信を行う第2の装置が特定されることを特徴とする請求項1から7の何れか1項に記載の電子装置。
  9.  上記第2の装置は、複数個備えられており、
     上記第1の装置から上記複数の第2の装置に、上記シリアルデータ通信を行うことにより送られる、上記複数の第2の装置の中からある一つの第2の装置を特定する第2の装置特定信号が、上記複数の第2の装置中、認識できない第2の装置においては、上記第1の箇所以外の上記記憶部の少なくとも一部への書き込みが不能となることを特徴とする請求項1から8の何れか1項に記載の電子装置。
  10.  上記データ信号線および上記クロック信号線は、上記複数の第2の装置において共用化されていることを特徴とする請求項8または9に記載の電子装置。
  11.  上記特定のデータは、上記複数の第2の装置毎に固有であることを特徴とする請求項8から10の何れか1項に記載の電子装置。
  12.  上記第1の箇所は、上記複数の第2の装置毎に固有であることを特徴とする請求項8から11の何れか1項に記載の電子装置。
  13.  上記シリアルデータ通信は、I2Cであることを特徴とする請求項1から12の何れか1項に記載の電子装置。
  14.  データ信号線およびクロック信号線を用いたシリアルデータ通信方法であって、
     上記データ信号線と上記クロック信号線とを介して、通信される上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータは、
     上記シリアルデータ通信を行う対象装置を特定する第1のデータと、
     上記特定された対象装置に備えられた記憶部の第1の箇所を特定する第2のデータと、
     上記記憶部の第1の箇所に書き込まれる第3のデータと、を備えていることを特徴とするシリアルデータ通信方法。
  15.  上記データ信号線と上記クロック信号線とを介して、通信されるデータは、
     請求項14に記載のシリアルデータ通信方法における、上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータと、
     上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを不能にする、上記第1のデータと、上記第2のデータと、上記第3のデータとは異なる上記記憶部の第1の箇所に書き込まれる第4のデータと、を備えていることを特徴とするシリアルデータ通信方法。
  16.  上記記憶部の第1の箇所以外の少なくとも一部への書き込みを可能にするデータが送られた後には、
     上記第1のデータと、上記記憶部の第1の箇所以外を特定する第5のデータと、上記記憶部の第1の箇所以外へ書き込まれる第6のデータと、が備えられた書き込みデータが送られ、
     上記書き込みデータが送られた後には、上記シリアルデータ通信を行う対象装置における記憶部の第1の箇所以外の少なくとも一部への書き込みを不能にするデータが送られる
    ことを特徴とする請求項15に記載のシリアルデータ通信方法。
PCT/JP2011/072444 2010-10-06 2011-09-29 電子装置およびシリアルデータ通信方法 WO2012046634A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
SG2013024088A SG189197A1 (en) 2010-10-06 2011-09-29 Electronic device and serial data communication method
AU2011313404A AU2011313404B2 (en) 2010-10-06 2011-09-29 Electronic device and serial data communication method
US13/825,870 US20130304999A1 (en) 2010-10-06 2011-09-29 Electronic device and serial data communication method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2010226616 2010-10-06
JP2010-226616 2010-10-06

Publications (1)

Publication Number Publication Date
WO2012046634A1 true WO2012046634A1 (ja) 2012-04-12

Family

ID=45927629

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2011/072444 WO2012046634A1 (ja) 2010-10-06 2011-09-29 電子装置およびシリアルデータ通信方法

Country Status (4)

Country Link
US (1) US20130304999A1 (ja)
AU (1) AU2011313404B2 (ja)
SG (1) SG189197A1 (ja)
WO (1) WO2012046634A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8971469B2 (en) 2010-08-31 2015-03-03 Sharp Kabushiki Kaisha Serial data communication method and serial data communication device
TWI505053B (ja) * 2013-11-27 2015-10-21

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793344B (zh) * 2012-10-31 2017-06-27 华为技术有限公司 处理数据冲突的方法及系统
US9710423B2 (en) 2014-04-02 2017-07-18 Qualcomm Incorporated Methods to send extra information in-band on inter-integrated circuit (I2C) bus
CN106598891B (zh) * 2015-10-15 2021-04-30 恩智浦美国有限公司 集成电路间i2c总线系统中的从设备报警信号
JP7021501B2 (ja) * 2017-10-26 2022-02-17 オムロン株式会社 データ取得方法およびデータ取得装置
CN112947287A (zh) * 2021-03-29 2021-06-11 联想(北京)信息技术有限公司 一种控制方法、控制器及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05167679A (ja) * 1991-12-17 1993-07-02 Hitachi Ltd 交換システムおよび加入者回路制御装置
JPH08101798A (ja) * 1994-09-30 1996-04-16 Nec Corp バックアップデータ保護回路
JP2008197752A (ja) * 2007-02-08 2008-08-28 Sharp Corp データ通信誤動作防止装置、電子機器、データ通信誤動作防止装置の制御方法、データ通信誤動作防止装置の制御プログラム、及び当該プログラムを記録した記録媒体

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6209074B1 (en) * 1998-04-28 2001-03-27 International Business Machines Corporation Address re-mapping for memory module using presence detect data
US6728908B1 (en) * 1999-11-18 2004-04-27 California Institute Of Technology I2C bus protocol controller with fault tolerance
US7493433B2 (en) * 2004-10-29 2009-02-17 International Business Machines Corporation System, method and storage medium for providing an inter-integrated circuit (I2C) slave with read/write access to random access memory
JP2007172363A (ja) * 2005-12-22 2007-07-05 Fujitsu Ltd I2cバスのデータ伝送装置、及びその方法、並びにi2cバスのデータ伝送プログラム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05167679A (ja) * 1991-12-17 1993-07-02 Hitachi Ltd 交換システムおよび加入者回路制御装置
JPH08101798A (ja) * 1994-09-30 1996-04-16 Nec Corp バックアップデータ保護回路
JP2008197752A (ja) * 2007-02-08 2008-08-28 Sharp Corp データ通信誤動作防止装置、電子機器、データ通信誤動作防止装置の制御方法、データ通信誤動作防止装置の制御プログラム、及び当該プログラムを記録した記録媒体

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8971469B2 (en) 2010-08-31 2015-03-03 Sharp Kabushiki Kaisha Serial data communication method and serial data communication device
TWI505053B (ja) * 2013-11-27 2015-10-21

Also Published As

Publication number Publication date
AU2011313404A1 (en) 2013-05-02
AU2011313404B2 (en) 2015-02-12
SG189197A1 (en) 2013-05-31
US20130304999A1 (en) 2013-11-14

Similar Documents

Publication Publication Date Title
WO2012046634A1 (ja) 電子装置およびシリアルデータ通信方法
JP5160100B2 (ja) データ通信誤動作防止装置、電子機器、データ通信誤動作防止装置の制御方法、データ通信誤動作防止装置の制御プログラム、及び当該プログラムを記録した記録媒体
JP4640126B2 (ja) サイドバンド・バス設定回路
US20080086578A1 (en) Integrated circuit device having send/receive macro for serial transfer bus
JP2007164765A (ja) Iicバス通信システム、スレーブ装置およびiicバス通信制御方法
EP3537307A1 (en) Method for handling i2c bus deadlock, electronic device, and communication system
US20150363353A1 (en) Communication system and electronic circuit
US9378076B2 (en) Serial communication test device, system including the same and method thereof
US7457898B2 (en) Substitute SATA host for communicating with a SATA device
US10721022B2 (en) Communication apparatus, communication method, program, and communication system
US10740172B2 (en) Communication apparatus, communication method, program, and communication system
KR102554978B1 (ko) 통신 장치, 통신 방법, 프로그램, 및, 통신 시스템
EP2075943B1 (en) Methods and systems for error detection of data transmission
US10892852B2 (en) Communication apparatus, communication method, program, and communication system
US11580052B2 (en) I2C communication
JPWO2017199762A1 (ja) 通信装置、通信方法、プログラム、および、通信システム
US10824582B2 (en) Communication apparatus, communication method, program, and communication system
JP2005084792A (ja) データ通信ユニット
TWI398778B (zh) 資料通信系統
JP2000299694A (ja) デ−タ転送システムおよび転送エラー検出方法
JP2008186077A (ja) バスインタフェース装置
KR0181596B1 (ko) I2c 버스의 데이터 전송 장치 및 방법
KR20110067714A (ko) 마이크로 컨트롤러의 데이터 기록 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11830566

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13825870

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2011313404

Country of ref document: AU

Date of ref document: 20110929

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 11830566

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP