# US 2006/0242348 A1 · Circuit and method of detecting and resolving stuck I2C buses

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0242348 A1
- Document ID: US20060242348A1
- Status: Published application
- Kind: A1
- Application number: 11/101,638
- Filed: 2005-04-08
- Published: 2006-10-26
- Earliest claimed: 2005-04-08
- Assignees: Linear Technology Corporation
- Inventors: George Humphrey; William Martin
- Web page: https://patentgrep.com/patent/US20060242348A1

## CPC

- G06F 13/4291: {using a clocked protocol}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A integrated circuit (IC) implementation of a protection circuit detects and resolves a fault on a bus, such as a stuck-low condition on an I2C bus. The circuit includes logic that detects a fault condition caused by the slave device, e.g. when one or both lines are low for a period longer than a timeout value in the I2C example. Upon detecting the fault condition, the logic disconnects the slave device from the data line and the clock line, for example by activation of switches incorporated in the IC. This typically frees the bus for use by other devices. The logic may also send the slave device one or more clock signals to clear the fault and/or a stop bit when the fault clears to reset the data register in the slave device.

## Claims

### Claim 1

A method of detecting and resolving a fault on a bus for providing communications between first and second devices, comprising:
monitoring a data line and a clock line of the bus, the clock line carrying clock signals from the first device to the second device to enable the second device to apply data to the data line for communication to the first device;
based on the monitoring, detecting a condition corresponding to a fault caused by the second device; and
upon detecting the condition corresponding to the fault, automatically disconnecting the second device from the data line and the clock line of the bus.

### Claim 2 (depends on 1)

The method of claim 1, further comprising sending at least one signal to the second device while the second device remains disconnected.

### Claim 3 (depends on 2)

The method of claim 2, wherein the at least one signal comprises at least one clock signal sent over a clock connection to the second device.

### Claim 4 (depends on 3)

The method of claim 3, wherein the at least one clock signal comprises a sequence of clock pulses sufficient in number to clear data awaiting transmission from the second device.

### Claim 5 (depends on 2)

The method of claim 2, wherein the at least one signal comprises a stop bit, sent over a data connection to the second device upon detection of clearance of the fault.

### Claim 6 (depends on 1)

The method of claim 1, wherein the step of detecting the condition corresponding to the fault comprises:
detecting occurrence of a state that may correspond to the fault; and
timing the occurrence of the state to determine if the state lasts longer than a time value.

### Claim 7 (depends on 6)

The method of claim 6, wherein:
if the fault is a stuck-low condition on the bus, then
the step of detecting the occurrence of the state comprises detecting when either one or both of the data line and the clock line of the bus is in a low condition.

### Claim 8 (depends on 7)

The method of claim 7, wherein the bus is an inter-integrated circuit (I2C) bus.

### Claim 9 (depends on 6)

The method of claim 6, wherein the first device is a master, and the second device is a slave with respect to the master first device, at least for purposes of communications over the bus.

### Claim 10 (depends on 6)

The method of claim 6, further comprising sending at least one signal to the second device while the second device remains disconnected.

### Claim 11 (depends on 10)

The method of claim 10, wherein the at least one signal comprises at least one clock signal sent over a clock connection to the second device.

### Claim 12 (depends on 11)

The method of claim 11, wherein the at least one clock signal comprises a sequence of clock pulses sufficient in number to clear data awaiting transmission from the second device.

### Claim 13 (depends on 12)

The method of claim 12, wherein:
the time value is at least 30 ms; and
number of clock pulses is at least 16.

### Claim 14 (depends on 12)

The method of claim 12, wherein the sending of at least one signal further comprises sending a stop bit over a data connection to the second device.

### Claim 15 (depends on 10)

The method of claim 10, wherein the sending of at least one signal comprises sending a stop bit over a data connection to the second device upon detection of clearance of the fault.

### Claim 16 (depends on 1)

The method of claim 1, further comprising:
detecting a change in the condition, indicating resolution of the fault; and
in response to the detected change, automatically reconnecting the second device to the data line and the clock line of the bus.

### Claim 17 (depends on 16)

The method of claim 16, further comprising sending at least one signal to the second device while the second device remains disconnected.

### Claim 18 (depends on 17)

The method of claim 17, wherein the sending of at least one signal to the second device comprises:
sending a sequence of clock pulses sufficient in number to clear data awaiting transmission from the second device over a clock connection to the second device upon detecting the condition corresponding to the fault; and
sending a stop bit over a data connection to the second device upon detecting the change in the condition.

### Claim 19 (depends on 18)

A protection circuit configured to implement the method of claim 18.

### Claim 20

An integrated circuit, for detecting and resolving a fault on a bus providing communications between first and second devices, the bus comprising a data line and a clock line, the protection circuit comprising:
terminals for connection to the data line and the clock line of the bus; and
logic for:
(a) monitoring the data line and the clock line of the bus and detecting an occurrence of a condition corresponding to a fault caused by the second device; and
(b) upon detecting occurrence of the condition, automatically disconnecting the second device from the data line and the clock line of the bus.

### Claim 21 (depends on 20)

The integrated circuit of claim 20, further comprising switches coupled to the terminals and controlled by the logic, for selectively breaking connections for the second device to the data line and the clock line of the bus when the logic detects occurrence of the condition.

### Claim 22 (depends on 20)

The integrated circuit of claim 20, wherein the logic comprises:
a first comparator for comparing signals on the data line to a reference;
a second comparator for comparing signals on the clock line to a reference; and
a logic gate for detecting a state that may represent the fault, in response to outputs of the first and second comparators.

### Claim 23 (depends on 22)

The integrated circuit of claim 22, wherein the logic further comprises a timer responsive to an output of the gate, for detecting the occurrence of the condition corresponding to the fault if the timer indicates that the detected state lasts longer than a time value.

### Claim 24 (depends on 23)

The integrated circuit of claim 23, further comprising a pulse generator responsive to time out of the timer, for sending at least one clock signal to the second device when the timer indicates that the detected state lasts longer than the time value.

### Claim 25 (depends on 22)

The integrated circuit of claim 22, further comprising circuitry responsive to output of the gate for detecting resolution of the fault and for sending a stop bit over a data connection to the second device upon the detection of resolution.

### Claim 26 (depends on 20)

The integrated circuit of claim 20, further comprising circuitry responsive to the detection of the occurrence of the condition for sending at least one signal to the second device while the second device remains disconnected.

### Claim 27

An integrated circuit for interfacing a slave device to a bus comprising a data line and a clock line, the clock line carrying clock signals from a master device to the slave device to enable the slave device to apply data to the data line for communication to the master device, the circuit comprising:
a bi-directional buffer, for providing amplification of signals passing in opposite directions over the data line and the clock line of the bus; and
a protection circuit comprising:
(1) terminals for connection to the data line and the clock line of the bus; and
(2) logic for:
(a) monitoring the data line and the clock line of the bus and detecting an occurrence of a condition corresponding to a fault caused by the slave device; and
(b) upon detecting occurrence of the condition, automatically disconnecting the slave device from the data line and the clock line of the bus.

### Claim 28 (depends on 27)

The circuit of claim 27, further comprising switches coupled to the terminals and controlled by the logic, for selectively breaking connections for the second device to the data line and the clock line of the bus when the logic detects occurrence of the condition.

### Claim 29 (depends on 27)

The integrated circuit of claim 27, wherein the logic of the protection circuit comprises:
a first comparator for comparing signals on the data line to a reference;
a second comparator for comparing signals on the clock line to a reference; and
a logic gate for detecting a state that may represent the fault, in response to outputs of the first and second comparators.

### Claim 30 (depends on 29)

The integrated circuit of claim 29, wherein the logic of the protection circuit further comprises a timer responsive to an output of the gate, for detecting the occurrence of the condition corresponding to the fault if the timer indicates the detected state lasts longer than a time value.

### Claim 31 (depends on 30)

The integrated circuit of claim 30, wherein the protection circuit further comprises a pulse generator responsive to time out of the timer, for sending at least one clock signal to the slave device when the timer indicates the detected state lasts longer than the time value.

### Claim 32 (depends on 29)

The integrated circuit of claim 29, wherein the protection circuit further comprises circuitry responsive to output of the gate for detecting resolution of the fault and for sending a stop bit over a data connection to the slave device upon the detection of resolution.

### Claim 33 (depends on 27)

The integrated circuit of claim 27, wherein the protection circuit further comprises circuitry responsive to the detection of the occurrence of the condition for sending at least one signal to the slave device while the slave device remains disconnected.
