Renesas RL78/G1P Hardware User Manual page 430

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
Figure 11-84. Flowchart of Slave Transmission (in Continuous Transmission Mode)
Write MDmn0 bit to 1
Remarks 1. <1> to <6> in the figure correspond to <1> to <6> in Figure 11-83
Transmission (in Continuous Transmission Mode).
2. m: Unit number (m = 0), n: Channel number (n = 0), p: CSI number (p = 00)
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Starting setting
SAU default setting
<1>
Setting transmit data
Enables interrupt
Writing transmit data to
<2>
SIOp (= SDRmn [7:0])
Wait for transmit completes
<3><5>
Buffer empty/transfer end interrupt
Number of transmit
data > 1?
Yes
Reading transmit data
Writing transmit data to
SIOp (= SDRmn [7:0])
Subtract -1 from number of
transmit data
RETI
No
Number of communication
data = -1?
Yes
Yes
Communication continued?
No
Disable interrupt (MASK)
<6>
Write STmn bit to 1
End of communication
CHAPTER 11 SERIAL ARRAY UNIT
For the initial setting, refer to Figure 11-78.
(Select buffer empty interrupt)
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)
Clear interrupt request flag (XXIF), reset interrupt mask (XXMK) and
set interrupt enable (EI)
Read transmit data from buffer and write it to SIOp. Update
transmit data pointer
Start communication when master start providing
the clock
When buffer empty/transfer end interrupt is
generated, it moves to interrupt processing routine
If transmit data is left, read them from storage area
No
then write into SIOp, and update transmit data pointer.
If not, change the interrupt to transmission complete
Clear MDmn0 bit to 0
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
<4>
Timing Chart of Slave
411

Advertisement

Table of Contents
loading

Table of Contents