RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
374
Nov 29, 2019
Figure 11-53. Flowchart of Slave Transmission (in Single-Transmission Mode)
SAU default setting
Starting CSI communication
Wait for transmit completes
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK)
and set interrupt enable (EI).
Setting transmit data
Set storage area and the number of data for transmit data
(Storage area, Transmission data pointer, Number of
communication data and Communication end flag are optionally
set on the internal RAM by the software)
Enables interrupt
Writing transmit data to
SIOp (= SDRmn [7:0])
Start communication when master
start providing the clock
When transmit end, interrupt is generated
Determine if it completes by counting number of communication
data
Read transmit data from storage area and write it to SIOp.
Update transmit data pointer.
Transmitting next data?
No
Disable interrupt (MASK)
Continuing transmit?
Yes
Yes
No
Transfer end interrupt
RETI
Clear the interrupt request flag (xxIF).
End of communication
Write STmn bit to 1
Main routine
Interrupt
processing
routine
Main routine
For the initial setting, refer to Figure 11-49.
(Select transfer end interrupt)
Summary of Contents for RL78/G1P
Page 770: ...RL78 G1P R01UH0895EJ0100 ...