Renesas RL78/G1P Hardware User Manual page 375

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
Figure 11-37. Flowchart of Master Reception (in Single-Reception Mode)
No
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Starting CSI communication
SAU default setting
Setting receive data
Enables interrupt
Writing dummy data to
SIOp (=SDRmn[7:0])
Wait for receive completes
Transfer end interrupt
generated?
Reading receive data to
SIOp (=SDRmn[7:0])
RETI
All reception completed?
Yes
Disable interrupt (MASK)
Write STmn bit to 1
End of communication
CHAPTER 11 SERIAL ARRAY UNIT
For the initial setting, see Figure 11-33.
(Select Transfer end interrupt)
Setting storage area of the receive data, number of communication data
(Storage area, Reception data pointer, Number of communication data and
Communication end flag are optionally set on the internal RAM by the software)
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI)
Writing to SIOp makes SCKp signals out
(communication starts)
When transfer end interrupt is generated, it moves
to interrupt processing routine
Read receive data then writes to storage area.
Update receive data pointer and number of
communication data.
Check the number of communication data
356

Advertisement

Table of Contents
loading

Table of Contents