EasyManuals Logo

Renesas RL78/G1H User Manual

Renesas RL78/G1H
941 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
Page #430 background imageLoading...
Page #430 background image
RL78/G1H CHAPTER 14 SERIAL ARRAY UNIT
R01UH0575EJ0120 Rev. 1.20 Page 412 of 920
Dec 22, 2016
Figure 14 - 77 Flowchart of UART Transmission (in Single-Transmission Mode)
SAU default setting
Starting UART
communication
Wait for transmit completes
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK)
and set interrupt enable (EI).
Setting transmit data
Set data for transmission and the number of data . Clear
communication end flag (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 the SDRmn
[7:0] bits (TXDq register)
Read transmit data from storage area and write it to TxDq. Update transmit
data pointer.
Communication starts by writing to SDRmn [7:0].
Transfer end interrupt
When Transfer end interrupt is
generated, it moves to interrupt
processing routine.
Main routineInterrupt processing routineMain routine
Transmitting next data?
End of communication
Writing transmit data to the SDRmn
[7:0] bits (TXDq register)
Yes
No
RETI
Transmission completed?
Disable interrupt (MASK)
Write STmn bit to 1
Check completion of transmission by
verifying transmit end flag.
Yes
No
Sets communication
completion flag
Read transmit data, if any, from storage area
and write it to TxDq. Update transmit data
pointer.
If not, set transmit end flag.
For the initial setting, refer to Figure 14 - 73.
(Select transfer end interrupt)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G1H and is the answer not in the manual?

Renesas RL78/G1H Specifications

General IconGeneral
BrandRenesas
ModelRL78/G1H
CategoryMicrocontrollers
LanguageEnglish

Related product manuals