Renesas RL78 Series User Manual page 448

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
Figure 13-45. Flowchart of Master Transmission/Reception (in Single- Transmission/Reception Mode)
No
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Starting CSI communication
SAU default setting
Setting
transmission/reception data
Enables interrupt
Writing transmit data to
SIOp (=SDRmn[7:0])
Wait for transmission/reception
completes
Transfer end interrupt
Read receive data to SIOp
(=SDRmn[7:0])
RETI
Transmission/reception
completed?
Yes
Disable interrupt (MASK)
Write 1 to STmn bit
End of communication
CHAPTER 13 SERIAL ARRAY UNIT
For the initial setting, refer to Figure 13-40.
(Select transfer end interrupt)
Setting storage data and number of data for transmission/reception data
(Storage area, Transmission data pointer, Reception 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.
When transfer end interrupt is generated, it
moves to interrupt processing routine.
Read receive data then writes to storage area, update receive
data pointer
If there are the next data, it continues
Writing to SIOp makes SOp
and SCKp signals out
(communication starts)
427

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents