EasyManua.ls Logo

Renesas RL78/G15 - Page 434

Renesas RL78/G15
765 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RL78/G15 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 434 of 765
Mar 7, 2023
Figure 12-50. Flowchart of Slave Transmission (in Single-Transmission Mode)
Starting simplified SPI (CSI)
communication
End of communication
Set STmn bit to 1
Set storage area and the number of data for transmit data
(Storage area, Transmission data pointer, and number of communication
data are optionally set on the internal RAM by the software)
Clear interrupt request flag (xxIF), reset interrupt mask (xxMK) and
set interrupt enable (EI).
Setting transmit data
Enables interrupt
Wait for transmit completes
Transmitting next data?
RETI
Transfer end interrupt
Writing transmit data to SIOp
(= SDRmn [7:0])
SAU initial setting
Start communication when master
start providing the clock.
Yes
Main routine
Interrupt processing
routine
Main routine
Disable interrupt (MASK)
Determine if it completes by counting number of communication data
Continuing transmit?
No
No
Yes
Read transmit data from storage area and write it to SIOp.
Update transmit data pointer.
When transmit end, interrupt is generated.
For the initial setting, refer to Figure 12-46
.
(Select transfer end interrupt)

Table of Contents

Related product manuals