IP Library Granted Patent US 9,778,971
Granted Patent B2
US 9,778,971 · App. 14/131,717 · Granted Oct 3, 2017

Slave device, master device, and communication method

Inventors: Satoshi Michihata (Tokyo, JP); Kiyoyasu Maruyama (Tokyo, JP); Satoko Miki (Tokyo, JP); Tomonori Fukuta (Tokyo, JP); Kazuhiro Tanaka (Tokyo, JP)
Assignee: Mitsubishi Electric Corporation
G06F11/0751G06F13/4282
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,778,971
App. No.
14/131,717
Granted
Oct 3, 2017
Kind
B2
Abstract

A slave device is equipped with: a parameter setting portion for setting different values according to the content of commands sent from a master device, as parameter values for detecting anomalies; and an anomaly detecting portion for detecting anomalies by comparing the time corresponding to a parameter value that has been set by the parameter setting portion and the measured time of a process carried out in response to a command.

Claims (72)

1. A slave device operative in a slave mode in accordance with an IIC (Inter Integrated Circuit) protocol, comprising a processor performing the functions of:

a command holding circuit for identifying a bit indicating command content from a serial data line signal transmitted to the slave device from a master device according to a serial clock line signal transmitted to the slave device from the master device and holding the command content, the master device being operative in a master mode in accordance with the IIC protocol;

a parameter setting circuit for setting, as values of a parameter for detecting anomalies, different values according to whether the command content indicates a read operation or a write operation; and

an anomaly detecting circuit for detecting the anomalies by comparing a time corresponding to the parameter value set by the parameter setting circuit with time measured in processing performed responsive to the commands; wherein

the anomaly detecting circuit includes,

a counter which counts time for which the serial clock line signal is held at a predetermined level, and

a comparator which issues a communication anomaly signal when the time counted by the counter exceeds the time corresponding to the parameter value set by the parameter setting portion;

wherein the anomaly detecting circuit detects the anomalies when the comparator issues the communication anomaly signal.

2. The slave device of claim 1 , wherein:

the parameter setting circuit makes the time corresponding to the parameter value set when the command content indicates a read operation longer than the time corresponding to the parameter value set when the command content indicates a write operation.

3. The slave device of claim 1 , wherein the processor further performs the function of an interface circuit for performing communication via a serial clock line and a serial data line, wherein:

when the command content indicates a write operation, the parameter value is a threshold value corresponding to a time for which a signal on the serial clock line remains at a prescribed level while write data are being processed;

when the command content indicates a read operation, the parameter value is a threshold value corresponding to the time for which the signal on the serial clock line remains at the prescribed level while read data are being processed; and

the anomaly detecting circuit measures the time for which the signal on the serial clock line remains at the prescribed level.

4. The slave device of claim 1 , wherein:

when the command content indicates a write operation,

the parameter value is a threshold value corresponding to a time from command reception until reception of write data, and

the anomaly detecting circuit measures the time from command reception until the reception of the write data; and

when the command content indicates a read operation,

the parameter value is a threshold value corresponding to the time from command reception until transmission of read data, and

the anomaly detecting circuit measures the time from command reception until the transmission of the read data.

5. The slave device of claim 1 , wherein:

the anomaly detecting circuit includes a counter for measuring the time, and detects an anomaly when a value of the counter exceeds the parameter value.

6. The slave device of claim 1 , wherein the processor further performs the function of an initializing circuit that resets communication with the master device when the anomaly detecting circuit detects an anomaly.

7. A master device operative in a master mode in accordance with an IIC (Inter Integrated Circuit) protocol, comprising processor performing the function of:

a parameter setting circuit that sets different values according to command content of commands that the master device transmits to a slave device operating in a slave mode in accordance with the IIC protocol; and

an anomaly detecting circuit that detects anomalies by comparing a time corresponding to a parameter value set by the parameter setting circuit with a time measured in processing performed responsive to the commands.

8. The master device of claim 7 , wherein:

the parameter setting circuit makes the time corresponding to the parameter value set when the command content indicates a read operation longer than the time corresponding to the parameter value when the command content indicates a write operation.

9. The master device of claim 7 , wherein the processor further performs the function of an interface circuit for performing communication via a serial clock line and a serial data line, wherein:

when the command content indicates a write operation, the parameter value is a threshold value corresponding to a time for which a signal on the serial clock line remains at a prescribed level while write data are being processed;

when the command content indicates a read operation, the parameter value is a threshold value corresponding to the time for which the signal on the serial clock line remains at the prescribed level while read data are being processed; and

the anomaly detecting circuit measures the time for which the signal on the serial clock line remains at the prescribed level.

10. The master device of claim 7 , wherein:

when the command content indicates a write operation,

the parameter value is a threshold value corresponding to a time from command transmission until transmission of write data, and

the anomaly detecting circuit measures the time from command transmission until the transmission of the write data; and

when the command content indicates a read operation,

the parameter value is a threshold value corresponding to the time from command transmission until reception of read data, and

the anomaly detecting circuit measures the time from command transmission until the reception of the read data.

11. The master device of claim 7 , wherein:

the anomaly detecting circuit includes a counter for measuring the time, and detects an anomaly when a value of the counter exceeds the parameter value.

12. The master device of claim 7 , wherein the processor further performs the function of an initializing circuit that resets communication with the slave device when the anomaly detecting circuit detects an anomaly.

13. The master device of claim 7 , wherein:

the parameter setting portion sets the different values depending on whether the command content is a read command or a write command.

14. A communication method carried out by a slave device operating in a slave mode in accordance with an IIC (Inter Integrated Circuit) protocol, comprising:

a parameter setting process for setting different values according to command content of commands transmitted from a master device operating in a master mode in accordance with the IIC protocol, as parameter values for detecting anomalies; and

an anomaly detecting process for detecting the anomalies by comparing a time corresponding to a parameter value set by the parameter setting process with a time measured in processing performed responsive to the commands.

15. The communication method of claim 14 , wherein the parameter setting process makes the time corresponding to the parameter value set when the command content indicates a read operation longer than the time corresponding to the parameter value set when the command content indicates a write operation.

16. The communication method of claim 14 , wherein:

when the command content indicates a write operation, the parameter value is a threshold value corresponding to a time for which a signal on the serial clock line remains at a prescribed level while write data are being processed;

when the command content indicates a read operation, the parameter value is a threshold value corresponding to the time for which the signal on the serial clock line remains at the prescribed level while read data are being processed; and

the anomaly detecting process measures the time for which the signal on the serial clock line remains at the prescribed level.

17. The communication method of claim 14 , wherein:

when the command content indicates a write operation, the parameter value is a threshold value corresponding to a time from command reception until reception of write data;

the anomaly detecting process measures the time from command reception until the reception of the write data; and

when the command content indicates a read operation,

the parameter value is a threshold value corresponding to the time from command reception until transmission of read data, and

the anomaly detecting process measures the time from command reception until the transmission of the read data.

18. A communication method performed by a master device operating in a master mode in accordance with an IIC (Inter Integrated Circuit) protocol, comprising:

a parameter setting process for setting different values according to command content of commands transmitted to a slave device operating in a slave mode in accordance with the IIC protocol, as parameter values for detecting anomalies; and

an anomaly detecting process for detecting an anomaly by comparing a time corresponding to a parameter value set by the parameter setting process with a time measured in processing performed responsive to the commands.

19. The communication method of claim 18 , wherein the parameter setting process makes the time corresponding to the parameter value set when the command content indicates a read operation longer than the time corresponding to the parameter value set when the command content indicates a write operation.

20. The communication method of claim 18 , wherein:

when the command content indicates a write operation, the parameter value is a threshold value corresponding to a time for which a signal on the serial clock line remains at a prescribed level while write data are being processed;

when the command content indicates a read operation, the parameter value is a threshold value corresponding to the time for which the signal on the serial clock line remains at the prescribed level while read data are being processed; and

the anomaly detecting process measures the time for which the signal on the serial clock line remains at the prescribed level.

21. The communication method of claim 18 , wherein:

when the command content indicates a write operation, the parameter value is a threshold value corresponding to a time from command transmission until transmission of write data, and

the anomaly detecting process measures the time from command reception until the transmission of the write data; and

when the command content indicates a read operation, the parameter value is a threshold value corresponding to the time from command transmission until reception of read data, and

the anomaly detecting process measures the time from command transmission until the reception of the read data.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 10, 2014
From: MICHIHATA, SATOSHI; MARUYAMA, KIYOYASU; MIKI, SATOKO; FUKUTA, TOMONORI; TANAKA, KAZUHIRO
To: MITSUBISHI ELECTRIC CORPORATION
Reel/Frame 031943/0206 →
Priority Claims (1)
JP 2011-211339 · Sep 27, 2011 · national
Continuity (1)
Related Publication 20140149805A1 · May 29, 2014