RL78/G1A CHAPTER 12 SERIAL ARRAY UNIT
R01UH0305EJ0200 Rev.2.00 561
Jul 04, 2013
Figure 12-112. Flowchart of Data Reception
Caution ACK is not output when the last data is received (NACK). Communication is then completed by
setting “1” to the STmn bit of serial channel stop register m (STm) to stop operation and
generating a stop condition.
Remark m: Unit number (m = 0, 1), n: Channel number (n = 0 to 3), r: IIC number (r = 00, 01, 10, 11, 20, 21),
mn = 00 to 03, 10, 11
No
Yes
Sto
p
condition
g
eneration
Yes
No
Address field transmission completed
Yes
No
Data reception completed
Writing dummy data (FFH) to
SIOr (SDRmn[7:0])
Reading SIOr (SDRmn[7:0])
Writing 1 to the STmn bit
Writing 0 to the TXEmn bit, and 1 to the RXEmn bit
Writing 1 to the SSmn bit
Last byte received?
Writing 0 to the SOEmn bit
Data transfer completed?
Transfer end interrupt
generated?
Data reception completed
Stop operation for rewriting SCRmn
register.
Set to receive only the operating
mode of the channel.
Operation restart
Disable output so that not the ACK
response to the last received data.
Starting reception operation
Wait for the completion of reception.
(Clear the interrupt request flag)
Reading receive data, perform
processing (stored in the RAM etc.).