US20110082957A1 - Slave device for an iic bus communication system capable of supressing freeze of iic bus communication - Google Patents
Slave device for an iic bus communication system capable of supressing freeze of iic bus communication Download PDFInfo
- Publication number
- US20110082957A1 US20110082957A1 US12/956,465 US95646510A US2011082957A1 US 20110082957 A1 US20110082957 A1 US 20110082957A1 US 95646510 A US95646510 A US 95646510A US 2011082957 A1 US2011082957 A1 US 2011082957A1
- Authority
- US
- United States
- Prior art keywords
- scl
- sda
- comparator
- signal
- bus communication
- Prior art date
- Legal status (The legal status 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 status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
- G06F13/4291—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
Definitions
- the present invention relates to measures against a freeze and improvement in noise tolerance in an IIC communication system.
- IIC bus communication has been known as a communication method using a bi-directional bus including two wires, which is applied for controlling efficiently devices integrated in household equipment (such as television sets, radio sets and DVD recorders), communication equipment (such as mobile phones and personal computers) or industrial equipment.
- IIC bus specification is defined in, for example, “THE I 2 C-BUS SPECIFICATION”, VERSION 2.1, JANUARY 2000.
- the system control can be composed of only two bus lines including a serial data (SDA) line and a serial clock (SCL) line.
- SDA serial data
- SCL serial clock
- a relationship as a master device and a slave device is established constantly between the respective devices, and the master device functions as a master transmitter or a master receiver.
- the master device denotes a device for starting data transmission on a bus, and it generates a clock signal for enabling the transmission.
- a device that is addressed at that time by the master device becomes a slave device.
- the length of each byte outputted to the SDA line is 8 bits. The number of bytes that can be sent at one transmission is not limited particularly.
- An acknowledge bit is required after each byte.
- a clock pulse for the acknowledge bit is generated by the master device. When such an acknowledge clock pulse is generated, the transmitter opens the SDA line.
- the receiver is required to make the SDA line “L” in accordance with the output of the acknowledge clock pulse so that the SDA line is stabilized in the “L” state when the acknowledge clock pulse is in the “H” state.
- the IIC bus functions as a multi-master bus where multiple master devices can control a bus simultaneously, and it is expected to be predominant, corresponding to the future trend of higher function of a set and more complicated systems.
- the fact that multiple master devices can be connected to the IIC bus implies that the multiple master devices may start data transmission simultaneously.
- the IIC bus and all of the IIC bus interfaces are wired-AND-connected.
- a master device which generates ‘1’ first when the other master device generates ‘0’, is disabled to perform a communication.
- the following description refers to a bit error that occurs at the time of the IIC bus communication.
- FIG. 6A is a diagram showing a configuration of a conventional IIC bus system including two master devices.
- a first master device 3 , a second master device 4 , a first slave device 5 and a second slave device 6 are connected in parallel to bus lines including a SCL line 1 and a SDA line 2 .
- one terminal of a SCL line pullup resistor 7 and one terminal of a SDA line pullup resistor 8 are connected to the SCL line 1 and the SDA line 2 respectively, while the other terminals of the pullup resistors 7 , 8 are connected to a power source 9 .
- FIG. 6 B(a) shows waveforms of SCL and SDA during a normal communication in this IIC bus system.
- the clock pulses S 7 -S 0 in the SCL correspond to respective bits of 1-byte data, and ‘A’ denotes an acknowledge clock pulse.
- the acknowledge clock pulse is in the “H” state
- the SDA line is in the “L” state.
- FIG. 6 B(b) shows a waveform of a state where an acknowledge signal shifts by 1 bit and the communication freezes. This can occur, for example, as a result of the first slave device 5 causing a bit error under the influence of external noise or the like during receiving a slave address at the time that the first master device 3 acquires continuously the read-data from the first slave device 5 .
- the slave device sets the SDA as “L” while the first master device 3 sends the eighth bit of the slave address as “H”.
- the first master device 3 recognizes this phenomenon as the second master device 4 trying to start data transmission, and stops supplying of a clock to the SCL line 1 .
- the SDA line 2 is pulled to “L” by the first slave device 5 , and the IIC bus communication will freeze.
- JP2003-308257 A describes an example of techniques for coping with abnormal communications in an IIC bus communication system.
- the technique described in JP2003-308257 A relates to a method for preventing a malfunction or a runaway of a slave device when resuming the communication after interruption of the communication due to the occurrence of an abnormality such as a power failure.
- the method cannot be applied to cope with a problem as mentioned above, that is, a freeze of the IIC bus communication under the influence of external noise or the like.
- FIG. 7 is a block diagram showing the interior of the first slave device 5 .
- FIG. 7 shows only parts relating to processing the SCL signal inputted through a SCL input terminal 10 , but parts relating to processing SDA signal are omitted in the figure.
- the SCL signal is decoded at an IIC decoding circuit 12 via a comparator 11 a in the first slave device 5 .
- an output voltage of a reference voltage circuit 13 is supplied via a buffer circuit 14 .
- the output voltage of the reference voltage circuit 13 via the buffer circuit 14 is supplied also to the IIC decoding circuit 12 .
- an object of the present invention to provide an IIC bus communication system that can restore the system in a case where a slave device returns an acknowledge signal for an incorrect bit and the IIC bus communication freezes.
- a first IIC bus communication system of the present invention includes: two bus lines including a SCL (serial clock) line and a SDA (serial data) line; multiple master devices connected in parallel to the bus lines; a state detector for detecting a frozen state of the IIC bus communication on the basis of the states of the SCL line and the SDA line so as to output a freeze detection signal, and detecting the state where the frozen state is released so as to output a freeze-release detection signal; a pulse generator for supplying a pulse signal corresponding to a clock signal with respect to the SCL line in accordance with the freeze detection signal outputted from the state detector; and a reset signal generator for supplying a reset signal to the multiple master devices in accordance with the freeze-release detection signal outputted from the state detector, wherein the multiple master devices return to the normal communication state in accordance with the supply of the reset signal.
- SCL serial clock
- SDA serial data
- a second IIC bus communication system of the present invention includes: two bus lines including a SCL line and a SDA line; multiple master devices connected in parallel to the bus lines; a STA control line for connecting the multiple master devices; and pullup resistor connected between the STA control line and a power source, wherein the master device to start a communication sends in advance a recognition signal STA for starting communication to the STA control line for a predetermined period, and the master device in communication stops the SCL when detecting, through the STA control line, that the recognition signal STA is sent.
- a third IIC bus communication system of the present invention includes: two bus lines including a SCL line and a SDA line; multiple master devices connected in parallel to the bus lines; multiple slave devices connected in parallel to the bus lines; a pullup resistor connected at one terminal to the SCL line and the SDA line respectively; a power source connected to the other terminal of the pullup resistor, a RESET control line for connecting the multiple master devices and the multiple slave devices; and a pullup resistor connected between the RESET control line and the power source, wherein the multiple master devices are capable of self-checking the IIC signal based on an IIC specification so as to send a reset signal to the RESET control line when a bit error occurs, and the multiple slave devices reset the state corresponding to the bit error when the reset signal is sent through the RESET control line.
- a slave device for an IIC bus communication system of the present invention includes: a SCL terminal to be connected to a SCL line of the IIC bus communication system; a SDA terminal to be connected to a SDA line of the IIC bus communication system; a SCL comparator for outputting a result of comparison between a SCL signal inputted via the SCL terminal and a reference voltage; a SDA comparator for outputting a result of comparison between a SDA signal inputted via the SDA terminal and a reference voltage; and a decoder to be supplied with outputs from the SCL comparator and the SDA comparator, wherein at least one of the SCL comparator and the SDA comparator is a hysteretic comparator.
- a first IIC bus communication control method for controlling an IIC bus communication system including two bus lines including a SCL line and a SDA line and multiple master devices connected in parallel to the bus lines includes the steps of monitoring states of the SCL line and the SDA line; detecting the frozen state of the IIC bus communication and the state where the frozen state is released, on the basis of the states of the SCL line and the SDA line; when the frozen state is detected, supplying a pulse signal corresponding to the clock signal to the SCL line; and when detecting the state where the frozen state is released, sending a reset signal to the multiple master devices so that the multiple master devices return to the normal communication state.
- a second IIC bus communication control method for controlling an IIC bus communication system including two bus lines including a SCL line and a SDA line and multiple master devices connected in parallel to the bus lines, the master device to start a communication sends a recognition signal STA for starting communication to all of the remaining master devices in advance for a predetermined period; and the master device in communication controls to stop the SCL when detecting that the recognition signal STA is sent.
- a third IIC bus communication control method for controlling an IIC bus communication system including two bus lines including a SCL line and a SDA line, multiple master devices connected in parallel to the bus lines and multiple slave devices connected in parallel to the bus lines, the multiple master devices are capable of self-checking the IIC signal so as to send a reset signal to all of the remaining master devices and all of the slave devices when a bit error occurs; and the multiple slave devices control so as to reset a state caused by the bit error when the reset signal is sent.
- FIG. 1A is a block diagram showing a configuration of an IIC bus communication system according to a first embodiment of the present invention.
- FIG. 1B is a diagram showing IIC signal patterns in the IIC bus communication system.
- FIG. 2A is a block diagram showing a configuration of an IIC bus communication system according to a second embodiment of the present invention.
- FIG. 2B is a diagram showing IIC signal waveforms and STA signal waveforms in the IIC bus communication system.
- FIG. 3A is a block diagram showing a configuration of an IIC bus communication system according to a third embodiment of the present invention.
- FIG. 3B is a diagram showing IIC signal patterns and a RESET control signal in the IIC bus communication system.
- FIG. 3C is a block diagram showing a configuration of a slave IC circuit used in the IIC bus communication system.
- FIG. 4 is a block diagram showing a configuration of a slave IC circuit used in an IIC bus communication system according to a fourth embodiment of the present invention.
- FIG. 5 is a block diagram showing a configuration of a slave IC circuit used in an IIC bus communication system according to a fifth embodiment of the present invention.
- FIG. 6A is a block diagram showing a configuration of a conventional IIC bus communication system.
- FIG. 6B is a diagram showing IIC signal waveforms of a conventional IIC bus communication system.
- FIG. 7 is a block diagram showing a configuration of a conventional slave IC circuit.
- an IIC bus communication system and an IIC bus communication control method of the present invention it is possible to detect that the IIC bus communication freezes and to input a clock pulse into the SCL line so as to release the frozen state and return to the normal communication state.
- the state detector can be configured to detect the frozen state by detecting that predetermined states of the SDA and SCL continue for a predetermined period.
- the detection of the frozen state can be carried out by detecting that the predetermined states of the SDA and SCL continue for a predetermined period.
- the occurrence of a bit error due to the influence of noise superimposed on the signal outside/inside the device can be reduced by use of a hysteretic comparator 11 c .
- the noise tolerance of the slave device can be improved to suppress occurrence of a freeze in the IIC bus communication.
- a capacitor for noise rejection is connected to the output side of at least one of the SCL comparator and the SDA comparator.
- the reference voltage to be supplied to at least one of the SCL comparator and the SDA comparator is supplied from a reference voltage source different from the reference voltage source that supplies the reference voltage to the decoder.
- the slave device can have a power source input terminal to be connected to the power source and voltage division resistors connected between the power source input terminal and a ground, and a voltage of the power source, which is divided by the resistor, can be used as the reference voltage to be supplied to at least one of the SCL comparator and the SDA comparator.
- a buffer circuit is connected to the output side of at least one of the SCL comparator and the SDA comparator in order to lower the output impedance.
- Equipment for a IIC bus communication system of the invention may include a device that is applicable in any of the above-mentioned IIC bus communication systems, wherein the device is configured as a slave device.
- the equipment can be a television set, a radio set, a DVD recorder, a mobile phone, a personal computer or industrial equipment.
- FIG. 1A is a block diagram showing a configuration of an IIC bus communication system according to a first embodiment of the present invention.
- the same reference numerals may be assigned to the same components comparable to as those of the conventional IIC bus communication system as shown in FIG. 6A .
- This IIC bus communication system is configured by connecting a first master device 3 , a second master device 4 , a first slave device 5 and a second slave device 6 in parallel to bus lines including a SCL line 1 and a SDA line 2 .
- One terminal of a SCL line pullup resistor 7 and one terminal of a SDA line pullup resistor 8 are connected to the SCL line and the SDA line respectively, and the other terminals of the pullup resistors 7 , 8 are connected to a power source 9 .
- a combination of a state detector 15 , a pulse generator 16 a and a reset signal generator 16 b is provided.
- the state detector 15 is connected to the SCL line 1 and the SDA line 2 so that both a SCL signal and a SDA signal are inputted in order to detect the frozen state of the SCL line 1 and the SDA line 2 and also detect a release of the freeze, on the basis of the states of the signals.
- the freeze detection signal and the freeze-release detection signal as output signals from the state detector 15 are supplied to the pulse generator 16 a and the reset signal generator 16 b .
- the pulse generator 16 a supplies a pulse signal corresponding to the clock signal to the SCL line 1 , in accordance with the freeze detection signal outputted from the state detector 15 .
- the reset signal generator 16 b sends a reset signal to the first master device 3 and the second master device 4 in accordance with the freeze-release detection signal outputted from the state detector 15 .
- the first master device 3 and the second master device 4 return to the normal communication state by being supplied with a reset signal.
- FIG. 1B shows waveforms of SCL and SDA in a case where the first slave device 5 returns an acknowledge signal earlier by 1 bit in the system of FIG. 1A .
- the SDA is pulled to “L” at the fall of the seventh bit in SCL. Since the eighth bit of the read address has been sent at the first master device 3 , it recognizes that the second master device 4 pulls the SDA line to “L” in an attempt to start a communication and stops the SCL. As a result, the bus lines will freeze and they will be fixed to a frozen state X (SCL: “H”, and SDA: “L”). The state detector 15 is formed to detect that the frozen state X continues for a predetermined period.
- the state detector 15 When detecting that the frozen state X (SCL: “H”, and SDA: “L”) continues for a predetermined period, the state detector 15 generates a freeze detection signal and outputs the signal to the pulse generator 16 a . Thereby, a pulse signal for 1 clock is inputted from the pulse generator 16 a to the SCL line 1 . As a result, the first slave device 5 opens the SDA line 2 to “H”, and thus the bus line is turned to a released state “Y”.
- the state detector 15 is configured to detect that the released state Y where the frozen state X is released (SCL: “H”, and SDA: “H”) continued for a predetermined period. When detecting that the released Y continued for a predetermined period, the state detector 15 outputs a freeze-release detection signal. In response to this, the reset signal generator 16 b sends reset signals to the first master device 3 and the second master device 4 so that the first and second master devices 3 and 4 return to the normal communication state.
- the state detector 15 again generates a freeze detection signal and so the pulse generator 16 a outputs a pulse. That is, by the time that the SDA line 2 is released to “H”, a clock signal will be inputted continuously from the pulse generator 16 a to the SCL line 1 .
- the first master device 3 and the second master device 4 can be reset, thereby returning to the normal communication state.
- the predetermined period for the state detector 15 to detect that the frozen state X and the released state Y continue is set so that the total time period of the frozen state X and the released state Y is shorter than a IIC communication interval.
- the IIC communication interval denotes an interval for a communication between the master device and the slave device, and it is hundreds of milliseconds in general.
- FIG. 2A is a block diagram showing a configuration of an IIC bus communication system according to a second embodiment of the present invention.
- This IIC bus communication system is provided with a STA (start) control line 17 and a STA control line pullup resistor 18 a as components for coping with a freeze, in addition to the conventional basic components.
- the first master device 3 and the second master device 4 are connected to each other with the STA control line 17 , and a master device to start a communication is set to output “L” in advance for a predetermined period to the STA control line 17 .
- the STA control line 17 is open-drain connected within the first master device 3 and the second master device 4 just like the SCL line 1 and the SDA line 2 .
- a STA pullup resistor 18 a is connected at one terminal to the STA control line 17 and connected at the other terminal to the power source 9 . In this control system, during master communication the first master device 3 or the second master device 4 stops the SCL when detecting that the STA control line 17 is turned to “L”.
- FIG. 2 B(a) shows waveforms of the SCL signal, the SDA signal and STA signal in a case where the first slave device 5 returns the acknowledge signal earlier by 1 bit in the system of FIG. 2A and where the master device is not changed.
- the first slave device 5 double-counts the SDA at the seventh bit under the influence of noise or the like during the first master device 3 receives continuously the data of the first slave device 5 (read address: B 7 _Hex)
- the SDA is pulled to “L” at the fall of the seventh bit of the SCL.
- the second master device 4 is not trying to start a communication, the STA is kept to “H”.
- the first master device 3 continues the communication without stopping the SCL, and thus the bus line will not freeze.
- FIG. 2 B(b) shows waveforms of SCL, SDA and STA in a case where the first slave device 5 returns an acknowledge signal earlier by 1 bit and the second master device 4 interrupts in the midway of the communication by the first master device 3 so that the master devices is changed in the system of FIG. 2A .
- the first slave device 5 double-counts the SDA at the seventh bit under the influence of noise or the like during the first master device 3 receives continuously the data of the first slave device 5 (read address: B 7 _Hex)
- the SDA is pulled to “L” at the fall of the seventh bit of the SCL.
- the STA control line is set to “L” by the second master device 4 in order to start a communication.
- the bus lines will not freeze.
- FIG. 3A is a block diagram showing a configuration of an IIC bus communication system according to a third embodiment of the present invention.
- This IIC bus communication system is provided with a RESET control line 19 and a RESET control line pullup resistor 18 b as components for coping with a freeze, in addition to the conventional basic components
- All of the master devices i.e., the first and second master devices 3 , 4 and all of the slave devices, i.e., the first and second slave devices 5 a , 6 a , are connected to each other with the RESET control line 19 .
- All of the master devices 3 , 4 in the control system are capable of self-checking IIC signals, and thus once a bit error occurs, the RESET control line 19 is turned to “L”.
- FIG. 3B shows waveforms of SCL, SDA and RESET for a case where the first slave device 5 a in the system of FIG. 3A returns the acknowledge signal earlier by 1 bit.
- FIG. 3C is a block diagram showing a configuration of an IC circuit as the slave device 5 a used in the IIC bus communication system in FIG. 3A .
- the SCL input terminal 10 , the SDA input terminal 20 and the RESET input terminal 21 that are provided in the first slave device 5 a are connected respectively to the SCL line 1 , the SDA line 2 and the RESET control line 19 .
- the SCL signal and the SDA signal are decoded at the IIC decoding circuit 12 via the comparators 11 a , 11 b in the first slave device 5 a .
- a reference voltage from the reference voltage circuit 13 is supplied via the buffer circuit 14 .
- the SDA input terminal 20 is grounded via a Nch-MOS transistor 22 .
- a decoding output of an IIC decoding circuit 12 is supplied to one of input terminals of an AND circuit 23 .
- the other input terminal of the AND circuit is connected to a RESET input terminal 21 .
- the SDA is pulled to “L” at the fall of the seventh bit of the SCL.
- the first master device 3 outputs B 7 _Hex
- the IIC signal becomes B 6 _Hex due to a shift of the acknowledge bit at the first slave device 5 a .
- the first master device 3 detects this shift of the IIC signal with its integrated IIC self-checking function, and outputs “L” to the RESET control line 19 .
- the first master device 3 generates by itself a STP condition and inputs it into the RESET terminal 21 of the slave device.
- the IIC decoding circuit 12 in the slave device is reset and a communication starts normally, and thus the bus lines will not freeze.
- FIG. 4 is a block diagram showing a configuration of the slave device 5 b used in an IIC bus communication system according to a fourth embodiment of the present invention.
- the whole configuration of the IIC bus communication system can be similar to the conventional example as shown in FIG. 6A or any of the above-mentioned embodiments.
- This slave device 5 b is shown only at the parts relating to processing a SCL signal to be inputted through the SCL input terminal 10 , and parts relating to processing other signals are omitted in the figure.
- a SCL signal is supplied to the IIC decoding circuit 12 via a hysteretic comparator 11 c and decoded.
- a hysteretic comparator 11 c For the reference voltage of the comparator 11 c an output voltage of a reference voltage circuit 13 is supplied via a buffer circuit 24 . That is, the reference voltage of the comparator 11 c will be supplied through a path separately from the voltage supplied to the IIC decoding circuit 12 . Furthermore, the output side of the comparator 11 c is grounded via a noise rejection capacitor 25 .
- FIG. 5 is a block diagram showing a configuration of a slave device 5 c used in an IIC bus communication system according to a fifth embodiment of the present invention.
- the whole configuration of the IIC bus communication system can be similar to the conventional example as shown in FIG. 6A or any of the above-mentioned embodiments.
- This slave device 5 c is shown only at the parts relating to processing a SCL signal to be inputted through the SCL input terminal 10 , and parts relating to processing other signals are omitted in the figure.
- This slave device 5 c is provided with a power source terminal 26 and connected to a power source 9 .
- the power source terminal 26 is grounded via a series circuit of reference-voltage setting resistors 27 , 28 .
- a SCL signal inputted through the SCL input terminal 10 is inputted into the hysteretic comparator 11 c .
- An output signal from the comparator 11 c is supplied to the IIC decoding circuit 12 via the buffer circuit 29 , and decoded.
- an output voltage of the reference voltage circuit 13 is supplied via the buffer circuit 14 .
- a voltage supplied as the reference voltage of the comparator 11 c is the voltage that is obtained by dividing the voltage of the power source 9 by the reference-voltage setting resistors 27 , 28 .
- Each of the above embodiments indicates an example where two master devices and two slave devices are connected to bus lines.
- the number of the master devices and the slave devices to be connected to the bus lines will not be limited to two.
- a freeze caused by noise in an IIC bus communication system can be handled efficiently, and thus the present invention is useful in controlling among the devices forming the interior of equipment for household use, for communications, and for industrial use.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
- Dc Digital Transmission (AREA)
- Information Transfer Systems (AREA)
Abstract
Multiple master devices and multiple slave devices are connected in parallel to two bus lines including a SCL line 1 and a SDA line 2, and a pullup resistor is connected between the bus lines and a power source. A state detector detects a frozen state on the basis of the states of the SCL line and SDA line and outputs a freeze detection signal, and it detects a freeze released state so as to output a freeze-release detection signal. A pulse generator supplies a pulse signal corresponding to a clock signal to the SCL line in accordance with the freeze-release detection signal. A reset signal generator sends a reset signal to the multiple master devices in accordance with the freeze-release detection signal. The multiple master devices return to the normal communication state in accordance with the supply of the reset signal. It is possible to restore the system even when the slave device returns an acknowledge signal for an incorrect bit and the IIC bus communication freezes.
Description
- This application is a division of U.S. application Ser. No. 12/369,986, filed Feb. 12, 2009, which is a division of U.S. application Ser. No. 11/557,788, filed Nov. 8, 2006, which application is incorporated herein by reference.
- 1. Field of the Invention
- The present invention relates to measures against a freeze and improvement in noise tolerance in an IIC communication system.
- 2. Description of Related Art
- An IIC (Inter-Integrated Circuit) bus communication has been known as a communication method using a bi-directional bus including two wires, which is applied for controlling efficiently devices integrated in household equipment (such as television sets, radio sets and DVD recorders), communication equipment (such as mobile phones and personal computers) or industrial equipment. IIC bus specification is defined in, for example, “THE I2C-BUS SPECIFICATION”, VERSION 2.1, JANUARY 2000.
- By using such an IIC bus communication, the system control can be composed of only two bus lines including a serial data (SDA) line and a serial clock (SCL) line. Moreover, since addressing and data-transmission format and devices are defined in the IIC specification, system definition by the use of software is available, and the addition/removal of IC in the system can be performed in a simple manner. Every device connected to the bus has its own unique address and it operates as a transmitter or a receiver in accordance with the function of the equipment, and data can be transmitted between the respective devices.
- A relationship as a master device and a slave device is established constantly between the respective devices, and the master device functions as a master transmitter or a master receiver. The master device denotes a device for starting data transmission on a bus, and it generates a clock signal for enabling the transmission. A device that is addressed at that time by the master device becomes a slave device. The length of each byte outputted to the SDA line is 8 bits. The number of bytes that can be sent at one transmission is not limited particularly. An acknowledge bit is required after each byte. A clock pulse for the acknowledge bit is generated by the master device. When such an acknowledge clock pulse is generated, the transmitter opens the SDA line. The receiver is required to make the SDA line “L” in accordance with the output of the acknowledge clock pulse so that the SDA line is stabilized in the “L” state when the acknowledge clock pulse is in the “H” state.
- The IIC bus functions as a multi-master bus where multiple master devices can control a bus simultaneously, and it is expected to be predominant, corresponding to the future trend of higher function of a set and more complicated systems. The fact that multiple master devices can be connected to the IIC bus implies that the multiple master devices may start data transmission simultaneously. For preventing occurrence of such a phenomenon, the IIC bus and all of the IIC bus interfaces are wired-AND-connected. In a case where multiple master devices try to send information to the bus, a master device, which generates ‘1’ first when the other master device generates ‘0’, is disabled to perform a communication. The following description refers to a bit error that occurs at the time of the IIC bus communication.
-
FIG. 6A is a diagram showing a configuration of a conventional IIC bus system including two master devices. In this system, afirst master device 3, asecond master device 4, afirst slave device 5 and asecond slave device 6 are connected in parallel to bus lines including aSCL line 1 and aSDA line 2. In addition, one terminal of a SCLline pullup resistor 7 and one terminal of a SDAline pullup resistor 8 are connected to theSCL line 1 and theSDA line 2 respectively, while the other terminals of thepullup resistors power source 9. - FIG. 6B(a) shows waveforms of SCL and SDA during a normal communication in this IIC bus system. The clock pulses S7-S0 in the SCL correspond to respective bits of 1-byte data, and ‘A’ denotes an acknowledge clock pulse. When the acknowledge clock pulse is in the “H” state, the SDA line is in the “L” state.
- FIG. 6B(b) shows a waveform of a state where an acknowledge signal shifts by 1 bit and the communication freezes. This can occur, for example, as a result of the
first slave device 5 causing a bit error under the influence of external noise or the like during receiving a slave address at the time that thefirst master device 3 acquires continuously the read-data from thefirst slave device 5. As a result, for example, in a case of returning the acknowledge pulse earlier by 1 bit in comparison with the acknowledge bit, the slave device sets the SDA as “L” while thefirst master device 3 sends the eighth bit of the slave address as “H”. Thefirst master device 3 recognizes this phenomenon as thesecond master device 4 trying to start data transmission, and stops supplying of a clock to theSCL line 1. As a result, since the clock is not supplied to theSCL line 1, theSDA line 2 is pulled to “L” by thefirst slave device 5, and the IIC bus communication will freeze. - JP2003-308257 A describes an example of techniques for coping with abnormal communications in an IIC bus communication system. The technique described in JP2003-308257 A relates to a method for preventing a malfunction or a runaway of a slave device when resuming the communication after interruption of the communication due to the occurrence of an abnormality such as a power failure. However, the method cannot be applied to cope with a problem as mentioned above, that is, a freeze of the IIC bus communication under the influence of external noise or the like.
-
FIG. 7 is a block diagram showing the interior of thefirst slave device 5.FIG. 7 shows only parts relating to processing the SCL signal inputted through aSCL input terminal 10, but parts relating to processing SDA signal are omitted in the figure. - The SCL signal is decoded at an
IIC decoding circuit 12 via acomparator 11 a in thefirst slave device 5. For the reference voltage of thecomparator 11 a, an output voltage of areference voltage circuit 13 is supplied via abuffer circuit 14. The output voltage of thereference voltage circuit 13 via thebuffer circuit 14 is supplied also to theIIC decoding circuit 12. - The following factors can be considered as causing a shift of the acknowledge signal in the circuit of the first slave device 5:
-
- (1) external noise is superimposed on the
SCL line 1; - (2) noise is superimposed on the reference voltage side of the
comparator 11 a; and - (3) noise is superimposed on the output of the
comparator 11 a.
- (1) external noise is superimposed on the
- When the
first slave device 5 returns an acknowledge signal for an incorrect bit due to the influences of external noises or the like as mentioned above, a freeze of the IIC bus communication is apt to be caused. - Therefore, with the foregoing in mind, it is an object of the present invention to provide an IIC bus communication system that can restore the system in a case where a slave device returns an acknowledge signal for an incorrect bit and the IIC bus communication freezes.
- It is also an object of the present invention to provide an IIC bus communication system that can suppresses a freeze of the IIC bus communication even when the slave device returns an acknowledge signal for an incorrect bit.
- It is also an object of the present invention to improve the noise tolerance of the internal circuit of the slave device in order to suppress a freeze of the IIC bus communication even when the noise is superimposed on a signal outside or inside the slave device.
- A first IIC bus communication system of the present invention includes: two bus lines including a SCL (serial clock) line and a SDA (serial data) line; multiple master devices connected in parallel to the bus lines; a state detector for detecting a frozen state of the IIC bus communication on the basis of the states of the SCL line and the SDA line so as to output a freeze detection signal, and detecting the state where the frozen state is released so as to output a freeze-release detection signal; a pulse generator for supplying a pulse signal corresponding to a clock signal with respect to the SCL line in accordance with the freeze detection signal outputted from the state detector; and a reset signal generator for supplying a reset signal to the multiple master devices in accordance with the freeze-release detection signal outputted from the state detector, wherein the multiple master devices return to the normal communication state in accordance with the supply of the reset signal.
- A second IIC bus communication system of the present invention includes: two bus lines including a SCL line and a SDA line; multiple master devices connected in parallel to the bus lines; a STA control line for connecting the multiple master devices; and pullup resistor connected between the STA control line and a power source, wherein the master device to start a communication sends in advance a recognition signal STA for starting communication to the STA control line for a predetermined period, and the master device in communication stops the SCL when detecting, through the STA control line, that the recognition signal STA is sent.
- A third IIC bus communication system of the present invention includes: two bus lines including a SCL line and a SDA line; multiple master devices connected in parallel to the bus lines; multiple slave devices connected in parallel to the bus lines; a pullup resistor connected at one terminal to the SCL line and the SDA line respectively; a power source connected to the other terminal of the pullup resistor, a RESET control line for connecting the multiple master devices and the multiple slave devices; and a pullup resistor connected between the RESET control line and the power source, wherein the multiple master devices are capable of self-checking the IIC signal based on an IIC specification so as to send a reset signal to the RESET control line when a bit error occurs, and the multiple slave devices reset the state corresponding to the bit error when the reset signal is sent through the RESET control line.
- A slave device for an IIC bus communication system of the present invention includes: a SCL terminal to be connected to a SCL line of the IIC bus communication system; a SDA terminal to be connected to a SDA line of the IIC bus communication system; a SCL comparator for outputting a result of comparison between a SCL signal inputted via the SCL terminal and a reference voltage; a SDA comparator for outputting a result of comparison between a SDA signal inputted via the SDA terminal and a reference voltage; and a decoder to be supplied with outputs from the SCL comparator and the SDA comparator, wherein at least one of the SCL comparator and the SDA comparator is a hysteretic comparator.
- A first IIC bus communication control method for controlling an IIC bus communication system including two bus lines including a SCL line and a SDA line and multiple master devices connected in parallel to the bus lines includes the steps of monitoring states of the SCL line and the SDA line; detecting the frozen state of the IIC bus communication and the state where the frozen state is released, on the basis of the states of the SCL line and the SDA line; when the frozen state is detected, supplying a pulse signal corresponding to the clock signal to the SCL line; and when detecting the state where the frozen state is released, sending a reset signal to the multiple master devices so that the multiple master devices return to the normal communication state.
- According to a second IIC bus communication control method for controlling an IIC bus communication system including two bus lines including a SCL line and a SDA line and multiple master devices connected in parallel to the bus lines, the master device to start a communication sends a recognition signal STA for starting communication to all of the remaining master devices in advance for a predetermined period; and the master device in communication controls to stop the SCL when detecting that the recognition signal STA is sent.
- According to a third IIC bus communication control method for controlling an IIC bus communication system including two bus lines including a SCL line and a SDA line, multiple master devices connected in parallel to the bus lines and multiple slave devices connected in parallel to the bus lines, the multiple master devices are capable of self-checking the IIC signal so as to send a reset signal to all of the remaining master devices and all of the slave devices when a bit error occurs; and the multiple slave devices control so as to reset a state caused by the bit error when the reset signal is sent.
-
FIG. 1A is a block diagram showing a configuration of an IIC bus communication system according to a first embodiment of the present invention. -
FIG. 1B is a diagram showing IIC signal patterns in the IIC bus communication system. -
FIG. 2A is a block diagram showing a configuration of an IIC bus communication system according to a second embodiment of the present invention. -
FIG. 2B is a diagram showing IIC signal waveforms and STA signal waveforms in the IIC bus communication system. -
FIG. 3A is a block diagram showing a configuration of an IIC bus communication system according to a third embodiment of the present invention. -
FIG. 3B is a diagram showing IIC signal patterns and a RESET control signal in the IIC bus communication system. -
FIG. 3C is a block diagram showing a configuration of a slave IC circuit used in the IIC bus communication system. -
FIG. 4 is a block diagram showing a configuration of a slave IC circuit used in an IIC bus communication system according to a fourth embodiment of the present invention. -
FIG. 5 is a block diagram showing a configuration of a slave IC circuit used in an IIC bus communication system according to a fifth embodiment of the present invention. -
FIG. 6A is a block diagram showing a configuration of a conventional IIC bus communication system. -
FIG. 6B is a diagram showing IIC signal waveforms of a conventional IIC bus communication system. -
FIG. 7 is a block diagram showing a configuration of a conventional slave IC circuit. - According to a first configuration of an IIC bus communication system and an IIC bus communication control method of the present invention, it is possible to detect that the IIC bus communication freezes and to input a clock pulse into the SCL line so as to release the frozen state and return to the normal communication state.
- In the first configuration of an IIC bus communication system, the state detector can be configured to detect the frozen state by detecting that predetermined states of the SDA and SCL continue for a predetermined period.
- Furthermore, in the IIC bus communication control method, the detection of the frozen state can be carried out by detecting that the predetermined states of the SDA and SCL continue for a predetermined period.
- According to a second configuration of an IIC bus communication system and an IIC bus communication control method of the present invention, since the master device continues to input a clock for communication unless the other master devices send a recognition signal STA in order to start communication, a freeze of the IIC bus communication can be prevented.
- According to a third configuration of an IIC bus communication system and an IIC bus communication control method of the present invention, since a reset signal is sent to reset the respective master devices in a case of detecting a bit error by the self-checking function of the IIC included in the master devices, a freeze of the IIC bus communication can be prevented.
- According to the slave device of the IIC bus communication system of the present invention, the occurrence of a bit error due to the influence of noise superimposed on the signal outside/inside the device can be reduced by use of a
hysteretic comparator 11 c. As a result, the noise tolerance of the slave device can be improved to suppress occurrence of a freeze in the IIC bus communication. - In the slave device of the IIC bus communication system of the present invention, it is preferable that a capacitor for noise rejection is connected to the output side of at least one of the SCL comparator and the SDA comparator.
- It is also preferable that the reference voltage to be supplied to at least one of the SCL comparator and the SDA comparator is supplied from a reference voltage source different from the reference voltage source that supplies the reference voltage to the decoder.
- The slave device can have a power source input terminal to be connected to the power source and voltage division resistors connected between the power source input terminal and a ground, and a voltage of the power source, which is divided by the resistor, can be used as the reference voltage to be supplied to at least one of the SCL comparator and the SDA comparator.
- It is also preferable that a buffer circuit is connected to the output side of at least one of the SCL comparator and the SDA comparator in order to lower the output impedance.
- Equipment for a IIC bus communication system of the invention may include a device that is applicable in any of the above-mentioned IIC bus communication systems, wherein the device is configured as a slave device. The equipment can be a television set, a radio set, a DVD recorder, a mobile phone, a personal computer or industrial equipment.
- Hereinafter, the present invention will be described by way of illustrative embodiments with reference to the drawings.
-
FIG. 1A is a block diagram showing a configuration of an IIC bus communication system according to a first embodiment of the present invention. InFIG. 1A , the same reference numerals may be assigned to the same components comparable to as those of the conventional IIC bus communication system as shown inFIG. 6A . - This IIC bus communication system is configured by connecting a
first master device 3, asecond master device 4, afirst slave device 5 and asecond slave device 6 in parallel to bus lines including aSCL line 1 and aSDA line 2. One terminal of a SCLline pullup resistor 7 and one terminal of a SDAline pullup resistor 8 are connected to the SCL line and the SDA line respectively, and the other terminals of thepullup resistors power source 9. - Furthermore, for providing a function of coping with a freeze, a combination of a
state detector 15, apulse generator 16 a and areset signal generator 16 b is provided. Thestate detector 15 is connected to theSCL line 1 and theSDA line 2 so that both a SCL signal and a SDA signal are inputted in order to detect the frozen state of theSCL line 1 and theSDA line 2 and also detect a release of the freeze, on the basis of the states of the signals. - The freeze detection signal and the freeze-release detection signal as output signals from the
state detector 15 are supplied to thepulse generator 16 a and thereset signal generator 16 b. Thepulse generator 16 a supplies a pulse signal corresponding to the clock signal to theSCL line 1, in accordance with the freeze detection signal outputted from thestate detector 15. Thereset signal generator 16 b sends a reset signal to thefirst master device 3 and thesecond master device 4 in accordance with the freeze-release detection signal outputted from thestate detector 15. Thefirst master device 3 and thesecond master device 4 return to the normal communication state by being supplied with a reset signal. - Next, an operation for coping with a freeze of the IIC bus communication system in this embodiment will be described below by referring to
FIG. 1B .FIG. 1B shows waveforms of SCL and SDA in a case where thefirst slave device 5 returns an acknowledge signal earlier by 1 bit in the system ofFIG. 1A . - In a case where the
first slave device 5 double-counts the SDA at the seventh bit under the influence of noise or the like while thefirst master device 3 receives continuously data of the first slave device 5 (read address: B7_Hex), the SDA is pulled to “L” at the fall of the seventh bit in SCL. Since the eighth bit of the read address has been sent at thefirst master device 3, it recognizes that thesecond master device 4 pulls the SDA line to “L” in an attempt to start a communication and stops the SCL. As a result, the bus lines will freeze and they will be fixed to a frozen state X (SCL: “H”, and SDA: “L”). Thestate detector 15 is formed to detect that the frozen state X continues for a predetermined period. - When detecting that the frozen state X (SCL: “H”, and SDA: “L”) continues for a predetermined period, the
state detector 15 generates a freeze detection signal and outputs the signal to thepulse generator 16 a. Thereby, a pulse signal for 1 clock is inputted from thepulse generator 16 a to theSCL line 1. As a result, thefirst slave device 5 opens theSDA line 2 to “H”, and thus the bus line is turned to a released state “Y”. - Furthermore, the
state detector 15 is configured to detect that the released state Y where the frozen state X is released (SCL: “H”, and SDA: “H”) continued for a predetermined period. When detecting that the released Y continued for a predetermined period, thestate detector 15 outputs a freeze-release detection signal. In response to this, thereset signal generator 16 b sends reset signals to thefirst master device 3 and thesecond master device 4 so that the first andsecond master devices - In a case where the frozen state X continues while the
SDA line 2 is fixed to “L”, thestate detector 15 again generates a freeze detection signal and so thepulse generator 16 a outputs a pulse. That is, by the time that theSDA line 2 is released to “H”, a clock signal will be inputted continuously from thepulse generator 16 a to theSCL line 1. When the frozen state X is released, thefirst master device 3 and thesecond master device 4 can be reset, thereby returning to the normal communication state. - It is preferable that the predetermined period for the
state detector 15 to detect that the frozen state X and the released state Y continue is set so that the total time period of the frozen state X and the released state Y is shorter than a IIC communication interval. The IIC communication interval denotes an interval for a communication between the master device and the slave device, and it is hundreds of milliseconds in general. -
FIG. 2A is a block diagram showing a configuration of an IIC bus communication system according to a second embodiment of the present invention. This IIC bus communication system is provided with a STA (start)control line 17 and a STA controlline pullup resistor 18 a as components for coping with a freeze, in addition to the conventional basic components. - The
first master device 3 and thesecond master device 4 are connected to each other with theSTA control line 17, and a master device to start a communication is set to output “L” in advance for a predetermined period to theSTA control line 17. TheSTA control line 17 is open-drain connected within thefirst master device 3 and thesecond master device 4 just like theSCL line 1 and theSDA line 2. ASTA pullup resistor 18 a is connected at one terminal to theSTA control line 17 and connected at the other terminal to thepower source 9. In this control system, during master communication thefirst master device 3 or thesecond master device 4 stops the SCL when detecting that theSTA control line 17 is turned to “L”. - Next, an action of the IIC bus communication system for coping with a freeze according to this embodiment will be described below by referring to
FIG. 2B . - FIG. 2B(a) shows waveforms of the SCL signal, the SDA signal and STA signal in a case where the
first slave device 5 returns the acknowledge signal earlier by 1 bit in the system ofFIG. 2A and where the master device is not changed. In a case where thefirst slave device 5 double-counts the SDA at the seventh bit under the influence of noise or the like during thefirst master device 3 receives continuously the data of the first slave device 5 (read address: B7_Hex), the SDA is pulled to “L” at the fall of the seventh bit of the SCL. However, since thesecond master device 4 is not trying to start a communication, the STA is kept to “H”. As a result, thefirst master device 3 continues the communication without stopping the SCL, and thus the bus line will not freeze. - FIG. 2B(b) shows waveforms of SCL, SDA and STA in a case where the
first slave device 5 returns an acknowledge signal earlier by 1 bit and thesecond master device 4 interrupts in the midway of the communication by thefirst master device 3 so that the master devices is changed in the system ofFIG. 2A . In a case where thefirst slave device 5 double-counts the SDA at the seventh bit under the influence of noise or the like during thefirst master device 3 receives continuously the data of the first slave device 5 (read address: B7_Hex), the SDA is pulled to “L” at the fall of the seventh bit of the SCL. At this timing, the STA control line is set to “L” by thesecond master device 4 in order to start a communication. As a result, since thefirst master device 3 stops SCL and since thesecond master device 4 inputs a STOP condition and a START condition and then starts a communication, the bus lines will not freeze. -
FIG. 3A is a block diagram showing a configuration of an IIC bus communication system according to a third embodiment of the present invention. This IIC bus communication system is provided with aRESET control line 19 and a RESET controlline pullup resistor 18 b as components for coping with a freeze, in addition to the conventional basic components - All of the master devices, i.e., the first and
second master devices second slave devices RESET control line 19. All of themaster devices RESET control line 19 is turned to “L”. - Next, the operation of the IIC bus communication system in the present embodiment to cope with a freeze will be described below by referring to
FIG. 3B . -
FIG. 3B shows waveforms of SCL, SDA and RESET for a case where thefirst slave device 5 a in the system ofFIG. 3A returns the acknowledge signal earlier by 1 bit. -
FIG. 3C is a block diagram showing a configuration of an IC circuit as theslave device 5 a used in the IIC bus communication system inFIG. 3A . - The
SCL input terminal 10, theSDA input terminal 20 and theRESET input terminal 21 that are provided in thefirst slave device 5 a are connected respectively to theSCL line 1, theSDA line 2 and theRESET control line 19. The SCL signal and the SDA signal are decoded at theIIC decoding circuit 12 via thecomparators first slave device 5 a. For the reference voltage of thecomparators reference voltage circuit 13 is supplied via thebuffer circuit 14. - The
SDA input terminal 20 is grounded via a Nch-MOS transistor 22. A decoding output of anIIC decoding circuit 12 is supplied to one of input terminals of an ANDcircuit 23. The other input terminal of the AND circuit is connected to aRESET input terminal 21. - For example, in a case where the
first slave device 5 a double-counts the SDA at the seventh bit under the influence of noise or the like while thefirst master device 3 receives continuously the data of thefirst slave device 5 a (read address: B7_Hex), the SDA is pulled to “L” at the fall of the seventh bit of the SCL. - In this case, although the
first master device 3 outputs B7_Hex, the IIC signal becomes B6_Hex due to a shift of the acknowledge bit at thefirst slave device 5 a. Thefirst master device 3 detects this shift of the IIC signal with its integrated IIC self-checking function, and outputs “L” to theRESET control line 19. In the meantime, thefirst master device 3 generates by itself a STP condition and inputs it into theRESET terminal 21 of the slave device. As a result, theIIC decoding circuit 12 in the slave device is reset and a communication starts normally, and thus the bus lines will not freeze. -
FIG. 4 is a block diagram showing a configuration of theslave device 5 b used in an IIC bus communication system according to a fourth embodiment of the present invention. The whole configuration of the IIC bus communication system can be similar to the conventional example as shown inFIG. 6A or any of the above-mentioned embodiments. Thisslave device 5 b is shown only at the parts relating to processing a SCL signal to be inputted through theSCL input terminal 10, and parts relating to processing other signals are omitted in the figure. - A SCL signal is supplied to the
IIC decoding circuit 12 via ahysteretic comparator 11 c and decoded. For the reference voltage of thecomparator 11 c an output voltage of areference voltage circuit 13 is supplied via abuffer circuit 24. That is, the reference voltage of thecomparator 11 c will be supplied through a path separately from the voltage supplied to theIIC decoding circuit 12. Furthermore, the output side of thecomparator 11 c is grounded via anoise rejection capacitor 25. - According to the above configuration, measures for improving the noise tolerance inside the
slave device 5 b can be taken as follows. - (1) The
hysteretic comparator 11 c is used so that occurrence of bit errors caused by an influence of noise superimposed on theSCL line 1 from the exterior can be reduced. - (2) A logic circuit such as the
IIC decoding circuit 12 and a reference bias of thecomparator 11 c are divided by use of thebuffer circuit 24 so that occurrence of bit errors caused by the influence of noise superimposed on the reference voltage side of thecomparator 11 c can be reduced. - (3) A
noise rejection capacitor 25 is provided at the output side of thecomparator 11 c so that occurrence of bit errors caused by the influence of noise superimposed on the output of thecomparator 11 c can be reduced. - The above measures need not necessarily be applied simultaneously, but a considerable effect can be obtained by applying any of the measures.
-
FIG. 5 is a block diagram showing a configuration of aslave device 5 c used in an IIC bus communication system according to a fifth embodiment of the present invention. The whole configuration of the IIC bus communication system can be similar to the conventional example as shown inFIG. 6A or any of the above-mentioned embodiments. Thisslave device 5 c is shown only at the parts relating to processing a SCL signal to be inputted through theSCL input terminal 10, and parts relating to processing other signals are omitted in the figure. - This
slave device 5 c is provided with apower source terminal 26 and connected to apower source 9. Thepower source terminal 26 is grounded via a series circuit of reference-voltage setting resistors SCL input terminal 10 is inputted into thehysteretic comparator 11 c. An output signal from thecomparator 11 c is supplied to theIIC decoding circuit 12 via thebuffer circuit 29, and decoded. - For the reference voltage of the
IIC decoding circuit 12, an output voltage of thereference voltage circuit 13 is supplied via thebuffer circuit 14. A voltage supplied as the reference voltage of thecomparator 11 c is the voltage that is obtained by dividing the voltage of thepower source 9 by the reference-voltage setting resistors - According to the above configuration, the following measures for improving the noise tolerance inside the
slave device 5 c will be achieved. - (4) A voltage obtained through resistance division from the
power source 9 is used for the reference voltage for thecomparator 11 c, so that occurrence of bit errors due to the influence of noise superimposed on the reference voltage side of thecomparator 11 c can be reduced. - (5) An output impedance is lowered by adding a
buffer circuit 29 just behind the output line of thehysteretic comparator 11 c so as to lower the output impedance, so that occurrence of bit errors caused by superimposition of noise occurring inside theIIC decoding circuit 12 and any other locations can be reduced. - Each of the above embodiments indicates an example where two master devices and two slave devices are connected to bus lines. However, the number of the master devices and the slave devices to be connected to the bus lines will not be limited to two.
- According to the present invention, a freeze caused by noise in an IIC bus communication system can be handled efficiently, and thus the present invention is useful in controlling among the devices forming the interior of equipment for household use, for communications, and for industrial use.
- The invention may be embodied in other forms without departing from the spirit or essential characteristics thereof. The embodiments disclosed in this application are to be considered in all respects as illustrative and not limiting. The scope of the invention is indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are intended to be embraced therein.
Claims (7)
1.-4. (canceled)
5. A slave device for an IIC bus communication system, the slave device comprising:
a SCL terminal to be connected to a SCL line of the IIC bus communication system;
a SDA terminal to be connected to a SDA line of the IIC bus communication system;
a SCL comparator for outputting a result of comparison between a SCL signal inputted via the SCL terminal and a reference voltage; and
a decoder to be supplied with outputs from the SCL comparator and the SDA comparator,
wherein at least one of the SCL comparator and the SDA comparator is a hysteretic comparator.
6. The slave device according to claim 5 , wherein a capacitor for noise rejection is connected to the output side of at least one of the SCL comparator and the SDA comparator.
7. The slave device according to claim 5 , wherein the reference voltage to be supplied to at least one of the SCL comparator and the SDA comparator is supplied from a reference voltage source other than the reference voltage source that supplies a reference voltage to the decoder.
8. The slave device according to claim 5 , comprising:
a power source input terminal to be connected to a power source; and voltage-division resistors connected between the power source input terminal and a ground,
wherein a voltage obtained by dividing the voltage of the power source by the resistors is used as the reference voltage to be supplied to at least one of the SCL comparator and the SDA comparator.
9. The slave device according to claim 5 , further comprising a buffer circuit at the output side of at least one of the SCL comparator and the SDA comparator in order to lower output impedance.
10-17. (canceled)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/956,465 US20110082957A1 (en) | 2005-11-15 | 2010-11-30 | Slave device for an iic bus communication system capable of supressing freeze of iic bus communication |
Applications Claiming Priority (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005330744 | 2005-11-15 | ||
JP2005-330744 | 2005-11-15 | ||
JP2006277720A JP2007164765A (en) | 2005-11-15 | 2006-10-11 | Iic bus communication system, slave device, and iic bus communication control method |
JP2006-277720 | 2006-10-11 | ||
US11/557,788 US7509446B2 (en) | 2005-11-15 | 2006-11-08 | IIC bus communication system capable of suppressing freeze of IIC bus communication due to a noise and method for controlling IIC bus communication |
US12/369,986 US20090157932A1 (en) | 2005-11-15 | 2009-02-12 | Iic bus communication system, slave device, and method for controlling iic bus communication |
US12/956,465 US20110082957A1 (en) | 2005-11-15 | 2010-11-30 | Slave device for an iic bus communication system capable of supressing freeze of iic bus communication |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US12/369,986 Division US20090157932A1 (en) | 2005-11-15 | 2009-02-12 | Iic bus communication system, slave device, and method for controlling iic bus communication |
Publications (1)
Publication Number | Publication Date |
---|---|
US20110082957A1 true US20110082957A1 (en) | 2011-04-07 |
Family
ID=38042270
Family Applications (4)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/557,788 Active 2027-05-03 US7509446B2 (en) | 2005-11-15 | 2006-11-08 | IIC bus communication system capable of suppressing freeze of IIC bus communication due to a noise and method for controlling IIC bus communication |
US12/369,986 Abandoned US20090157932A1 (en) | 2005-11-15 | 2009-02-12 | Iic bus communication system, slave device, and method for controlling iic bus communication |
US12/369,953 Expired - Fee Related US7668995B2 (en) | 2005-11-15 | 2009-02-12 | IIC bus communication system capable of suppressing freeze of IIC bus communication and method for controlling IIC bus communication |
US12/956,465 Abandoned US20110082957A1 (en) | 2005-11-15 | 2010-11-30 | Slave device for an iic bus communication system capable of supressing freeze of iic bus communication |
Family Applications Before (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/557,788 Active 2027-05-03 US7509446B2 (en) | 2005-11-15 | 2006-11-08 | IIC bus communication system capable of suppressing freeze of IIC bus communication due to a noise and method for controlling IIC bus communication |
US12/369,986 Abandoned US20090157932A1 (en) | 2005-11-15 | 2009-02-12 | Iic bus communication system, slave device, and method for controlling iic bus communication |
US12/369,953 Expired - Fee Related US7668995B2 (en) | 2005-11-15 | 2009-02-12 | IIC bus communication system capable of suppressing freeze of IIC bus communication and method for controlling IIC bus communication |
Country Status (2)
Country | Link |
---|---|
US (4) | US7509446B2 (en) |
JP (1) | JP2007164765A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130033363A1 (en) * | 2011-08-05 | 2013-02-07 | TrackDSound LLC | Apparatus and Method to Automatically Set a Master-Slave Monitoring System |
US20150248373A1 (en) * | 2014-02-28 | 2015-09-03 | Qualcomm Incorporated | Bit allocation over a shared bus to facilitate an error detection optimization |
US10353837B2 (en) | 2013-09-09 | 2019-07-16 | Qualcomm Incorporated | Method and apparatus to enable multiple masters to operate in a single master bus architecture |
Families Citing this family (42)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007164765A (en) * | 2005-11-15 | 2007-06-28 | Matsushita Electric Ind Co Ltd | Iic bus communication system, slave device, and iic bus communication control method |
US7526589B2 (en) * | 2007-01-23 | 2009-04-28 | International Business Machines Corporation | Apparatus, system, and method for resetting an inter-integrated circuit data line using a negative voltage |
US7536492B2 (en) * | 2007-01-23 | 2009-05-19 | International Business Machines Corporation | Apparatus, system, and method for automatically resetting an inter-integrated circuit bus |
US7761728B2 (en) * | 2007-01-23 | 2010-07-20 | International Business Machines Corporation | Apparatus, system, and method for resetting an inter-integrated circuit data line with a clock line |
JP5390962B2 (en) * | 2009-06-30 | 2014-01-15 | 株式会社ソフイア | Game machine |
JP5444911B2 (en) * | 2009-07-23 | 2014-03-19 | 富士通株式会社 | Transmission / reception control device, electronic device, data transmission method, and control program |
JP2011070282A (en) * | 2009-09-24 | 2011-04-07 | Furukawa Electric Co Ltd:The | Communication system, master device and slave device |
JP5480614B2 (en) * | 2009-12-24 | 2014-04-23 | 株式会社ソフイア | Game machine |
JP5476117B2 (en) * | 2009-12-24 | 2014-04-23 | 株式会社ソフイア | Game machine |
JP5807247B2 (en) * | 2010-03-19 | 2015-11-10 | 株式会社ソフイア | Game machine |
JP5462677B2 (en) * | 2010-03-19 | 2014-04-02 | 株式会社ソフイア | Game machine |
JP5572892B2 (en) * | 2010-10-18 | 2014-08-20 | 株式会社ソフイア | Game machine |
JP5572893B2 (en) * | 2010-10-18 | 2014-08-20 | 株式会社ソフイア | Game machine |
JP5584933B2 (en) * | 2010-10-26 | 2014-09-10 | 株式会社ソフイア | Game machine |
JP5299443B2 (en) * | 2011-01-21 | 2013-09-25 | 日本電気株式会社 | I2C bus communication control system and I2C bus communication control method |
US9778971B2 (en) * | 2011-09-27 | 2017-10-03 | Mitsubishi Electric Corporation | Slave device, master device, and communication method |
JP5762561B2 (en) | 2011-11-25 | 2015-08-12 | 三菱電機株式会社 | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM |
JP5794137B2 (en) * | 2011-12-20 | 2015-10-14 | 富士通株式会社 | Control system and relay device |
US20140244874A1 (en) * | 2012-01-26 | 2014-08-28 | Hewlett-Packard Development Company, L.P. | Restoring stability to an unstable bus |
JP5427254B2 (en) * | 2012-02-13 | 2014-02-26 | 株式会社ソフイア | Game machine |
US9128690B2 (en) * | 2012-09-24 | 2015-09-08 | Texas Instruments Incorporated | Bus pin reduction and power management |
FR2996322A1 (en) | 2012-10-02 | 2014-04-04 | St Microelectronics Rousset | METHOD FOR MANAGING THE OPERATION OF A CIRCUIT CONNECTED ON A TWO-WIRE BUS, IN PARTICULAR AN I²C BUS, AND CORRESPONDING CIRCUIT |
TWI518516B (en) | 2012-11-13 | 2016-01-21 | Novatek Microelectronics Corp | Bus detection and control method and bus detection and control device and mobile industry processor interface system thereof |
TW201418933A (en) | 2012-11-13 | 2014-05-16 | Accton Technology Corp | Apparatus and method of controlling clock signals |
CN103810052B (en) * | 2012-11-15 | 2017-05-03 | 联咏科技股份有限公司 | Bus detection and control method and device and mobile industry processor interface system thereof |
US8989328B2 (en) * | 2013-03-14 | 2015-03-24 | Qualcomm Incorporated | Systems and methods for serial communication |
US9785595B2 (en) * | 2013-09-09 | 2017-10-10 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Multi-channel universal serial bus (USB) to subrate channel systems |
CN103645975B (en) * | 2013-11-28 | 2016-06-15 | 华为技术有限公司 | A kind of method of abnormal restoring and serial bus transmission device |
CN103902291A (en) * | 2014-04-30 | 2014-07-02 | 江西清华泰豪三波电机有限公司 | Method for implementing hysteresis comparator via software |
JP6540204B2 (en) * | 2015-04-30 | 2019-07-10 | 富士通株式会社 | Relay device |
JP6792314B2 (en) * | 2016-04-22 | 2020-11-25 | ソニーセミコンダクタソリューションズ株式会社 | Communication devices, communication methods, programs, and communication systems |
US20180018292A1 (en) * | 2016-07-13 | 2018-01-18 | Qualcomm Incorporated | Method and apparatus for detecting and resolving bus hang in a bus controlled by an interface clock |
DE102016014417B4 (en) * | 2016-12-03 | 2020-03-26 | WAGO Verwaltungsgesellschaft mit beschränkter Haftung | CIRCUIT FOR MONITORING A DATA PROCESSING SYSTEM |
KR20180073119A (en) * | 2016-12-22 | 2018-07-02 | 삼성전자주식회사 | Electronic device and method for detecting error thereof |
RU171656U1 (en) * | 2017-01-10 | 2017-06-08 | Федеральное государственное бюджетное образовательное учреждение высшего образования "Комсомольский-на-Амуре государственный технический университет" (ФГБОУ ВО "КнАГТУ") | SERIAL ASYMMETRIC BUS LINE MONITORING DEVICE |
CN107562668B (en) * | 2017-08-31 | 2019-02-12 | Oppo广东移动通信有限公司 | Bus deadlock recovery system and method |
US20190171611A1 (en) * | 2017-12-05 | 2019-06-06 | Qualcomm Incorporated | Protocol-framed clock line driving for device communication over master-originated clock line |
JP6939665B2 (en) * | 2018-03-15 | 2021-09-22 | オムロン株式会社 | Network system |
JP7222197B2 (en) | 2018-08-03 | 2023-02-15 | 富士電機株式会社 | Slave communication device and master communication device |
CN109388526B (en) * | 2018-11-01 | 2023-01-24 | 郑州云海信息技术有限公司 | Control circuit and reset operation method |
CN112698614B (en) * | 2021-03-25 | 2021-06-15 | 之江实验室 | User side logic controller for reading and writing any byte |
CN118112309B (en) * | 2024-04-30 | 2024-08-23 | 苏州元脑智能科技有限公司 | Fault detection equipment, and fault detection method and device |
Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4586118A (en) * | 1984-06-05 | 1986-04-29 | The United States Of America As Represented By The United States Department Of Energy | Capacitor charging FET switcher with controller to adjust pulse width |
US5714897A (en) * | 1996-06-19 | 1998-02-03 | Micro Linear Corporation | Phase-shifted triangle wave generator |
US5903737A (en) * | 1996-03-06 | 1999-05-11 | Lg Electronics Inc. | Apparatus and method for serial data communication utilizing general microcomputer |
US20010029554A1 (en) * | 1999-12-16 | 2001-10-11 | Ricoh Company, Ltd. | Method and apparatus for effectively performing serial communications between a host apparatus and option equipment |
US20020188907A1 (en) * | 2001-05-30 | 2002-12-12 | Nec Corporation | Data transfer system |
US6693678B1 (en) * | 1997-12-18 | 2004-02-17 | Thomson Licensing S.A. | Data bus driver having first and second operating modes for coupling data to the bus at first and second rates |
US6728908B1 (en) * | 1999-11-18 | 2004-04-27 | California Institute Of Technology | I2C bus protocol controller with fault tolerance |
US6769078B2 (en) * | 2001-02-08 | 2004-07-27 | International Business Machines Corporation | Method for isolating an I2C bus fault using self bus switching device |
US20040153726A1 (en) * | 2002-04-16 | 2004-08-05 | Kouichi Suzuki | Data transfer system |
US20050071600A1 (en) * | 2003-08-08 | 2005-03-31 | Melco Holdings Inc. | Memory module and memory support module |
US7016993B2 (en) * | 2002-12-17 | 2006-03-21 | Inventec Corporation | I2C MUX with anti-lock device |
US20060069831A1 (en) * | 2004-09-29 | 2006-03-30 | Mitsubishi Denki Kabushi Kaisha | I2C bus controlling method |
US20060103362A1 (en) * | 2004-11-12 | 2006-05-18 | Dialog Semiconductor Gmbh | Frequency stabilization technique for self oscillating modulator |
US20060153326A1 (en) * | 2005-01-11 | 2006-07-13 | Samsung Electronics Co. Ltd. | Serial data communication apparatus and methods of using a single line |
US20060242348A1 (en) * | 2005-04-08 | 2006-10-26 | Humphrey George P | Circuit and method of detecting and resolving stuck I2C buses |
US20060261794A1 (en) * | 2005-05-17 | 2006-11-23 | May Marcus W | Method & apparatus for DC-DC regulation with improved transient function |
US20070003070A1 (en) * | 2004-11-30 | 2007-01-04 | Matsushita Electric Industrial Co., Ltd. | Signal detection method and device |
US7174473B2 (en) * | 2002-05-14 | 2007-02-06 | Stmicroelectronics S.R.L. | Start detection circuit, stop detection circuit and circuit for the detection of data transmitted according to the IIC protocol |
US20070112990A1 (en) * | 2005-11-15 | 2007-05-17 | Matsushita Electric Industrial Co., Ltd. | Iic bus communication system, slave device, and method for controlling iic bus communication |
US20070234136A1 (en) * | 2006-03-31 | 2007-10-04 | Emc Corporation | Method and apparatus for detecting the presence of errors in data transmitted between components in a data storage system using an I2C protocol |
US20070240019A1 (en) * | 2005-12-29 | 2007-10-11 | International Business Machines Corporation | Systems and methods for correcting errors in I2C bus communications |
US20080215780A1 (en) * | 2005-04-29 | 2008-09-04 | Nxp B.V. | Simultaneous Control Of Multiple I/O Banks In An 12C Slave Device |
US7521963B1 (en) * | 2006-03-27 | 2009-04-21 | National Semiconductor Corporation | System and method for providing a low standby power interface for a low voltage I2C compatible bus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002063080A (en) * | 2000-08-15 | 2002-02-28 | Sony Corp | Interface device |
-
2006
- 2006-10-11 JP JP2006277720A patent/JP2007164765A/en active Pending
- 2006-11-08 US US11/557,788 patent/US7509446B2/en active Active
-
2009
- 2009-02-12 US US12/369,986 patent/US20090157932A1/en not_active Abandoned
- 2009-02-12 US US12/369,953 patent/US7668995B2/en not_active Expired - Fee Related
-
2010
- 2010-11-30 US US12/956,465 patent/US20110082957A1/en not_active Abandoned
Patent Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4586118A (en) * | 1984-06-05 | 1986-04-29 | The United States Of America As Represented By The United States Department Of Energy | Capacitor charging FET switcher with controller to adjust pulse width |
US5903737A (en) * | 1996-03-06 | 1999-05-11 | Lg Electronics Inc. | Apparatus and method for serial data communication utilizing general microcomputer |
US5714897A (en) * | 1996-06-19 | 1998-02-03 | Micro Linear Corporation | Phase-shifted triangle wave generator |
US6693678B1 (en) * | 1997-12-18 | 2004-02-17 | Thomson Licensing S.A. | Data bus driver having first and second operating modes for coupling data to the bus at first and second rates |
US6728908B1 (en) * | 1999-11-18 | 2004-04-27 | California Institute Of Technology | I2C bus protocol controller with fault tolerance |
US20010029554A1 (en) * | 1999-12-16 | 2001-10-11 | Ricoh Company, Ltd. | Method and apparatus for effectively performing serial communications between a host apparatus and option equipment |
US6769078B2 (en) * | 2001-02-08 | 2004-07-27 | International Business Machines Corporation | Method for isolating an I2C bus fault using self bus switching device |
US20020188907A1 (en) * | 2001-05-30 | 2002-12-12 | Nec Corporation | Data transfer system |
US20040153726A1 (en) * | 2002-04-16 | 2004-08-05 | Kouichi Suzuki | Data transfer system |
US7174473B2 (en) * | 2002-05-14 | 2007-02-06 | Stmicroelectronics S.R.L. | Start detection circuit, stop detection circuit and circuit for the detection of data transmitted according to the IIC protocol |
US7016993B2 (en) * | 2002-12-17 | 2006-03-21 | Inventec Corporation | I2C MUX with anti-lock device |
US20050071600A1 (en) * | 2003-08-08 | 2005-03-31 | Melco Holdings Inc. | Memory module and memory support module |
US20060069831A1 (en) * | 2004-09-29 | 2006-03-30 | Mitsubishi Denki Kabushi Kaisha | I2C bus controlling method |
US20060103362A1 (en) * | 2004-11-12 | 2006-05-18 | Dialog Semiconductor Gmbh | Frequency stabilization technique for self oscillating modulator |
US20070003070A1 (en) * | 2004-11-30 | 2007-01-04 | Matsushita Electric Industrial Co., Ltd. | Signal detection method and device |
US20060153326A1 (en) * | 2005-01-11 | 2006-07-13 | Samsung Electronics Co. Ltd. | Serial data communication apparatus and methods of using a single line |
US20060242348A1 (en) * | 2005-04-08 | 2006-10-26 | Humphrey George P | Circuit and method of detecting and resolving stuck I2C buses |
US20080215780A1 (en) * | 2005-04-29 | 2008-09-04 | Nxp B.V. | Simultaneous Control Of Multiple I/O Banks In An 12C Slave Device |
US20060261794A1 (en) * | 2005-05-17 | 2006-11-23 | May Marcus W | Method & apparatus for DC-DC regulation with improved transient function |
US20070112990A1 (en) * | 2005-11-15 | 2007-05-17 | Matsushita Electric Industrial Co., Ltd. | Iic bus communication system, slave device, and method for controlling iic bus communication |
US7509446B2 (en) * | 2005-11-15 | 2009-03-24 | Panasonic Corporation | IIC bus communication system capable of suppressing freeze of IIC bus communication due to a noise and method for controlling IIC bus communication |
US20090157931A1 (en) * | 2005-11-15 | 2009-06-18 | Panasonic Corporation | Iic bus communication system, slave device, and method for controlling iic bus communication |
US20070240019A1 (en) * | 2005-12-29 | 2007-10-11 | International Business Machines Corporation | Systems and methods for correcting errors in I2C bus communications |
US7521963B1 (en) * | 2006-03-27 | 2009-04-21 | National Semiconductor Corporation | System and method for providing a low standby power interface for a low voltage I2C compatible bus |
US20070234136A1 (en) * | 2006-03-31 | 2007-10-04 | Emc Corporation | Method and apparatus for detecting the presence of errors in data transmitted between components in a data storage system using an I2C protocol |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130033363A1 (en) * | 2011-08-05 | 2013-02-07 | TrackDSound LLC | Apparatus and Method to Automatically Set a Master-Slave Monitoring System |
US10107893B2 (en) * | 2011-08-05 | 2018-10-23 | TrackThings LLC | Apparatus and method to automatically set a master-slave monitoring system |
US10386457B2 (en) * | 2011-08-05 | 2019-08-20 | TrackThings LLC | Apparatus and method to automatically set a master-slave monitoring system |
US10353837B2 (en) | 2013-09-09 | 2019-07-16 | Qualcomm Incorporated | Method and apparatus to enable multiple masters to operate in a single master bus architecture |
US20150248373A1 (en) * | 2014-02-28 | 2015-09-03 | Qualcomm Incorporated | Bit allocation over a shared bus to facilitate an error detection optimization |
Also Published As
Publication number | Publication date |
---|---|
US20070112990A1 (en) | 2007-05-17 |
US20090157931A1 (en) | 2009-06-18 |
US20090157932A1 (en) | 2009-06-18 |
US7509446B2 (en) | 2009-03-24 |
JP2007164765A (en) | 2007-06-28 |
US7668995B2 (en) | 2010-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7509446B2 (en) | IIC bus communication system capable of suppressing freeze of IIC bus communication due to a noise and method for controlling IIC bus communication | |
US20190109671A1 (en) | Communication device, communication method, program, and communication system | |
KR102035986B1 (en) | Timing controller, and display system including the same | |
US9645898B2 (en) | Storage control device and control device for detecting abnormality of signal line | |
EP3458962B1 (en) | Communication device and communication system | |
US7237146B2 (en) | Securing method of data transfer and data transfer system provided therewith | |
WO2012046634A1 (en) | Electronic device and serial data communication method | |
US10977206B2 (en) | Data communication device and method for data communication | |
US7133947B2 (en) | Data communication system, data communication method, and communication unit | |
JP3949429B2 (en) | IIC bus control system | |
JP5444911B2 (en) | Transmission / reception control device, electronic device, data transmission method, and control program | |
US7281151B2 (en) | Method of stopping data communication of a communication apparatus based on a detection of a power supply voltage drop | |
US7826402B2 (en) | Signal transfer systems and methods | |
US9128839B2 (en) | Numerical control system having removable filter circuit | |
US20100327964A1 (en) | Semiconductor device and method of removing semiconductor device noise | |
JP2005338963A (en) | Electronic device | |
US20230369970A1 (en) | Voltage generator and voltage generating method thereof | |
CN115691088B (en) | Control signal transmission unit, system and method | |
US20240248865A1 (en) | Bus-based communication system, system-on-chip and method therefor | |
JP2016224588A (en) | Controller and control method | |
US20070050690A1 (en) | Circuit and method for component communication | |
CN115454916A (en) | Operation data checking method and device, storage medium and electronic equipment | |
KR100466328B1 (en) | Method for securing reliablity of Inter-Integrated Circuit communication | |
JP2002278800A (en) | Monitor and monitoring method | |
US20060200652A1 (en) | Method for Signaling of a State or of an Event |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |