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 #419 background imageLoading...
Page #419 background image
RL78/G1H CHAPTER 14 SERIAL ARRAY UNIT
R01UH0575EJ0120 Rev. 1.20 Page 401 of 920
Dec 22, 2016
Figure 14 - 69 Flowchart of Slave Transmission/Reception (in Continuous Transmission/Reception Mode)
Note For the initial setting, refer to Figure 14 - 63.(Select buffer empty interrupt)
Caution Be sure to set transmit data to the SlOp register before the clock from the master is started.
Remark
<1> to <8> in the figure correspond to <1> to <8> in Figure 14 - 68 Timing Chart of Slave Transmission/Reception (in
Continuous Transmission/Reception Mode) (Type 1: DAPmn = 0, CKPmn = 0).
Starting setting
Wait for transmission
completes
Clear interrupt request flag (XXIF), reset interrupt mask
(XXMK) and set interrupt enable (EI)
Read receive data to SIOp
(= SDRmn [7:0])
Setting
transmission/reception data
Setting storage area and number of data for transmission/reception
data
(Storage area, Transmission/reception data pointer, Number of
communication data and Communication end flag are optionally set
on the internal RAM by the software)
Enables interrupt
BFFmn = 1?
Buffer empty/transfer end interrupt
When buffer empty/transfer end is
generated, it moves interrupt
processing routine
No
Other than the first interrupt, read reception data
then writes to storage area, update receive data
pointer
Yes
<1>
<3><6>
End of communication
Disable interrupt (MASK)
Subtract -1 from number of
transmit data
Number of communication
data?
RETI
Number of communication
data = 0?
Yes
Write MDmn0 bit to 1
Communication
continued?
<4>
<7>
<5>
No
SAU default setting
= 0
≥ 2
No
Yes
= 1
Writing transmit data to
SIOp (= SDRmn [7:0])
Clear MDmn0 bit to 0
Start communication when master start
providing the clock
If transmit data is remained, read it from storage area
and write it to SIOp. Update storage pointer.
If transmit completion (number of communication data
= 1), Change the transmission completion interrupt
Yes
Write STmn bit to 1<8>
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