Procedure For Processing Errors That Occurred During Simplified I 2 C (Iic10) Communication - NEC 78K0R/KE3 User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

11.7.6 Procedure for processing errors that occurred during simplified I
The procedure for processing errors that occurred during simplified I
Figures 11-105 and 11-106.
<R>
Software Manipulation
Reads SDR02 register.
Reads SSR02 register.
Writes SIR02 register.
Figure 11-106. Processing Procedure in Case of Parity Error (ACK error) in Simplified I
Software Manipulation
Reads SDR02 register.
Reads SSR02 register.
Writes SIR02 register.
Sets ST02 bit to 1.
Creates stop condition.
Creates start condition.
Sets SS02 bit to 1.
CHAPTER 11 SERIAL ARRAY UNIT
Figure 11-105. Processing Procedure in Case of Parity Error or Overrun Error
BFF = 0, and channel n is enabled to
receive data.
Error flag is cleared.
BFF = 0, and channel n is enabled to
receive data.
Error flag is cleared.
SE02 = 0, and channel n stops
operation.
SE02 = 1, and channel n is enabled to
operate.
Hardware Status
Hardware Status
User's Manual U17854EJ9V0UD
2
C (IIC10) communication
2
C (IIC10) communication is described in
Remark
This is to prevent an overrun error if
the next reception is completed
during error processing.
Error type is identified and the read
value is used to clear error flag.
Only error generated at the point of
reading can be cleared, by writing
the value read from the SSR02
register to the SIR02 register without
modification.
2
C Mode
Remark
This is to prevent an overrun error if
the next reception is completed
during error processing.
Error type is identified and the read
value is used to clear error flag.
Only error generated at the point of
reading can be cleared, by writing
the value read from the SSR02
register to the SIR02 register without
modification.
Slave is not ready for reception
because ACK is not returned.
Therefore, a stop condition is
created, the bus is released, and
communication is started again from
the start condition. Or, a restart
condition is generated and
transmission can be redone from
address transmission.
467

Advertisement

Table of Contents
loading

Table of Contents