EasyManuals Logo
Home>Renesas>Motherboard>RL78/G10

Renesas RL78/G10 User Manual

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
Page #392 background imageLoading...
Page #392 background image
RL78/G10 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 375
Dec 22, 2016
Figure 12-76. Flowchart of UART Transmission (in Continuous Transmission Mode)
Setting transmit data
Write 1 to ST0n bit
For the initial setting, refer to Figure 12-70.
(Select buffer empty interrupt)
SAU default setting
Y
es
No
N
o
End of communication
Y
es
N
o
Communication
continued?
Y
es
Number of
communication data > 0?
<2>
<3>
<4>
<5>
<6>
<1>
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)
Clear MD0n0 bit to 0
Writing transmit data to
TXD0 (=SDR0nL)
Writing transmit data to
TxD0 (=SDR0nL)
If transmit data is left, read them from storage area then
write into TxDq, and update transmit data pointer and
number of transmit data.
If no more transmit data, clear MD0n bit if it’s set. If not,
finish.
Subtract -1 from number of
transmit data
RETI
Transmission completed?
Starting UART
communication
When transfer end interrupt is generated, it moves to
interrupt processing routine.
Buffer empty/transfer end interrupt
Write 1 to MD0n0 bit
Y
es
N
o
MD0n = 1?
Sets communication
completion interrupt flag
Wait for transmit completes
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI).
Enables interrupt
Disable interrupt (MASK)
Check completion of transmission b
y
verifying transmit end flag
When writing transmit data to
TxD0 (= SDR0nL), start the
transmissions operation.
Read transmit data from storage area and write it
to TXDq. Update transmit data pointer.
Main routine
Main routine
Interrupt processing routine
<2>
Remark <1> to <6> in the figure correspond to <1> to <6> in Figure 12-75 Timing Chart of UART
Transmission (in Continuous Transmission Mode).

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Renesas RL78/G10 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G10
CategoryMotherboard
LanguageEnglish

Related product manuals