Error Detection - Epson S1C17M20 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

Normal operations
SDA
SCL
When SDA = LOW is detected
SDA
SCL
SDA
SCL

14.4.9 Error Detection

The I2C includes a hardware error detection function.
Furthermore, the I2CnINTF.SDALOW and I2CnINTF.SCLLOW bits are provided to allow software to check whether
the SDA and SCL lines are fixed at low. If unintended low level is detected on SDA or SCL, a software recovery pro-
cessing, such as I2C Ch.n software reset, can be performed.
The table below lists the hardware error detection conditions and the notification method.
No.
Error detecting period/timing
1 While the I2C Ch.n controls SDA to high for sending address,
data, or a NACK
2 <Master mode only> When 1 is written to the I2CnCTL.TX-
START bit while the I2CnINTF.BSY bit = 0
3 <Master mode only> When 1 is written to the I2CnCTL.TXS-
TOP bit while the I2CnINTF.BSY bit = 0
4 <Master mode only> When 1 is written to the I2CnCTL.TX-
START bit while the I2CnINTF.BSY bit = 0 (Refer to "Automatic
Bus Clearing Operation.")
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
START
condition
SDA check
1
2
SDA check
(n
Bus clearing operation
1
2
Figure 14.4.8.1 Automatic Bus Clearing Operation
Table 14.4.9.1 Hardware Error Detection Function
Seiko Epson Corporation
Slave address + R/W
START
condition
n
9)
STARTIF = 1
10
STARTIF = 1
ERRIF = 1
I
C bus line monitored and
2
error condition
SDA = low
SCL = low
SCL = low
SDA
Automatic bus clearing
failure
14 I
2
C (I2C)
Notification method
I2CnINTF.ERRIF = 1
I2CnINTF.ERRIF = 1
I2CnCTL.TXSTART = 0
I2CnINTF.STARTIF = 1
I2CnINTF.ERRIF = 1
I2CnCTL.TXSTOP = 0
I2CnINTF.STOPIF = 1
I2CnINTF.ERRIF = 1
I2CnCTL.TXSTART = 0
I2CnINTF.STARTIF = 1
14-15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m25S1c17m21S1c17m22S1c17m23S1c17m24

Table of Contents