RL78/G15 CHAPTER 13 SERIAL INTERFACE IICA
R01UH0959EJ0110 Rev.1.10 Page 561 of 765
Mar 7, 2023
Next, the main processing of slave operation is explained.
Start serial interface IICA and wait until communication is enabled. When communication is enabled, execute
communication by using the communication mode flag and ready flag (processing of the stop condition and start
condition is performed in response to an interrupt. Here, check the state by using the flags).
The transmission operation is repeated until the master no longer returns ACK. If ACK is not returned from the master,
communication is completed.
In reception, the necessary amount of data is received. When communication is completed, ACK is not returned for the
next data. After that, the master generates a stop condition or restart condition. The device exits the communication state
in this way.