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 #361 background imageLoading...
Page #361 background image
RL78/G10 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 344
Dec 22, 2016
Figure 12-53. Flowchart of Slave Transmission (in Continuous Transmission Mode)
Setting transmit data
Write 1 to ST0n bit
For the initial setting, refer to Figure 12-47.
(Select buffer empty interrupt)
SAU default setting
Yes
No
No
End of communication
Yes
No
Communication continued
?
Yes
Number of transmit
data > 1?
<2>
<3>
<4>
<5>
<6>
<1>
Set storage area and the number of data for transmit data
(Storage area, Transmission data pointer, Number of communication data and
Communication end flag are optionally set on the internal RAM by the software)
Clea
r
MD0n0 bit to 0
Writing transmit data to
SIOp (=SDR0nL)
Writing transmit data to
SIOp (=SDR0nL)
Reading transmit data
If transmit data is left, read them from storage area then write into
SIOp, and update transmit data pointer.
If not, change the interrupt to transmission complete
Subtract -1 from number of
transmit data
RETI
Number of communication
data = -1?
It is determined as follows depending on the number of communication data.
[No] +2 or higher: Unwritten data to SIOp
+1: Transmit data completion
0: During the last data received
[Yes] -1: All data received completion
Starting setting
Start communication when master start providing the
clock
When buffer empty/transfer end interrupt is generated,
it moves to interrupt processing routine
Wait for transmit completes
Buffer empty/transfer end interrupt
Disable interru
p
t
(
MASK
)
Enables interrupt
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and set
interrupt enable (EI)
Write 1 to MD0n0 bit
Read transmit data from buffer and write it to SIOp. Update transmit
data pointer
Main routine
Main routine
Interrupt processing routine
Remark <1> to <6> in the figure correspond to <1> to <6> in Figure 12-52 Timing Chart of Slave
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