EasyManuals Logo

Renesas RL78/G15 User Manual

Renesas RL78/G15
765 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 #407 background imageLoading...
Page #407 background image
RL78/G15 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 407 of 765
Mar 7, 2023
Figure 12-28. Flowchart of Master Transmission (in Continuous Transmission Mode)
Starting setting
End of communication
Disable interrupt (MASK)
Set the data pointer for transmission and the number of data items. 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 interrupt request flag (xxIF), reset interrupt mask (xxMK) and
set interrupt enable (EI).
Read transmit data from storage area and write it to
SIOp. Update transmit data pointer.
Setting transmit data
Enables interrupt
Wait for transmit completes
Writing transmit data to SIOp
(= SDRmn [7:0])
Transmission completed?
RETI
Number of
communication data
> 0?
No
Buffer empty/transfer end interrupt
Writing transmit data to SIOp
(= SDRmn [7:0])
SAU initial setting
Writing to SIOp makes SOp
and SCKp signals out
(communication starts)
When buffer empty/transfer end interrupt is
generated, it moves to interrupt processing
routine.
No
If transmit data is left, read them from storage area then
write into SIOp, and update transmit data pointer and
number of transmit data.
If no more transmit data, clear MDmn0 bit if its set. If not,
finish.
Check completion of transmission by
verifying transmit end flag
Set STmn bit to 1
Communication continued?
Set MDmn0 bit to 1
Yes
Yes
No
Sets communication
completion interrupt flag
Subtract –1 from number of
communication data
MDmn0 = 1?
Yes
Clear MDmn0 bit to 0
No
Main routine Interrupt processing routine Main routine
<1>
<2>
<3> <5>
<4>
<6>
Yes
Remark <1> to <6> in the figure correspond to <1> to <6> in Figure 12-27 Timing Chart of Master Transmission
(in Continuous Transmission Mode) (Type 1: DAPmn = 0, CKPmn = 0).
For the initial setting, refer to Figure 12-22.
(Select buffer empty interrupt.)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Renesas RL78/G15 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G15
CategoryMicrocontrollers
LanguageEnglish

Related product manuals