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 #436 background imageLoading...
Page #436 background image
RL78/G15 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 436 of 765
Mar 7, 2023
Figure 12-52. Flowchart of Slave Transmission (in Continuous Transmission Mode)
Starting setting
End of communication
Disable interrupt (MASK)
Set storage area and the number of data for transmit data
(Storage area, Transmission data pointer, and Number of communication
data are optionally set on the internal RAM by the software)
Clear interrupt request flag (xxIF), reset interrupt mask (xxMK) and
set interrupt enable (EI)
Wait for transmit completes
Reading transmit data
Number of
communication data
= –1?
RETI
Number of
communication data
> 1?
Buffer empty/transfer end interrupt
SAU initial setting
No
Set STmn bit to 1
Communication continued?
Set MDmn0 bit to 1
Yes
Yes
No
Main routineInterrupt processing routine
<1>
<3> <5>
<6>
Yes
Writing transmit data to SIOp
(= SDRmn[7:0])
Enables interrupt
Setting transmit data
When buffer empty /transfer end interrupt is generated,
it moves to interrupt processing routine
<2>
Clear MDmn0 bit to
0
Writing transmit data to SIOp
(= SDRmn [7:0])
<4>
No
Read transmit data from buffer and write it to SIOp.
Update transmit data pointer.
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 end interrupt.
Subtract –1 from number of
communication data
It is determined as follows depending on the number of communication data.
 +1: Transmission of data is completed
  0:
During the last data being transmitted
 –1: Transmission of all data is completed
Start communication when master start providing
the clock
Main routine
Remark <1> to <6> in the figure correspond to <1> to <6> in Figure 12-51 Timing Chart of Slave Transmission (in
Continuous Transmission Mode) (Type 1: DAPmn = 0, CKPmn = 0).
For the initial setting, refer to Figure 12-46.
(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