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 #405 background imageLoading...
Page #405 background image
RL78/G1H CHAPTER 14 SERIAL ARRAY UNIT
R01UH0575EJ0120 Rev. 1.20 Page 387 of 920
Dec 22, 2016
Figure 14 - 55 Flowchart of Slave Transmission (in Continuous Transmission Mode)
Note For the initial setting, refer to Figure 14 - 49.(Select buffer empty interrupt)
Remark <1> to <6> in the figure correspond to <1> to <6> in Figure 14 - 54 Timing Chart of Slave Transmission (in Continuous
Transmission Mode) (Type 1: DAPmn = 0, CKPmn = 0).
Starting setting
Wait for transmit completes
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and
set interrupt enable (EI)
Writing transmit data to
SIOp (= SDRmn [7:0])
Setting transmit data
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)
Enables interrupt
Writing transmit data to
SIOp (=SDRmn[7:0])
Number of transmit
data > 1?
Buffer empty/transfer end interrupt
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.
If not, change the interrupt to transmission complete
Yes
<1>
<2>
<3><5>
End of communication
Disable interrupt (MASK)
Reading transmit data
RETI
Number of communication
data = -1?
Yes
Write MDmn0 bit to 1
Communication continued?
No
SAU default setting
No
Yes
Read transmit data from buffer and write it to SIOp . Update
transmit data pointer
Start communication when master start providing
the clock
Subtract -1 from number of
transmit data
Clear MDmn0 bit to 0 <4>
It is determined as follows depending on the
number of communication data.
+1: Transmit data completion
0: During the last data received
-1: All data received completion
Write STmn bit to 1<6>
Main routineInterrupt processing routineMain routine
Note

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