EasyManua.ls Logo

Renesas RL78/G10

Renesas RL78/G10
637 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/G10 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 382
Dec 22, 2016
Figure 12-82. Flowchart of UART Reception
Starting UART communication
SAU default setting
For the initial setting, refer to Figure 12-78.
(setting to mask for error 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).
Starting reception if start bit is
detected
When receive complete, transfer end
interrupt is generated.
Setting receive data
Enables interrupt
Wait for receive completes
Transfer end interrupt
Reading receive data to RXD0
(SDR0nL)
Indicating normal reception?
No
No
Yes
Yes
RETI
End of UART communication
Reception completed?
Interrupt (mask)
Writing 1 to the ST0n bit
Error processing
Check the number of received data,
determine the completion of reception
Read receive data then writes to storage area, and counts
up the number of receive data.
Update receive data pointer.
Main routine Main routineInterrupt processing routine

Table of Contents

Related product manuals