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 #451 background imageLoading...
Page #451 background image
RL78/G15 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 451 of 765
Mar 7, 2023
Figure 12-64. Flowchart of Slave Transmission/Reception (in Single-Transmission/Reception Mode)
Starting simplified SPI (CSI)
communication
End of communication
Set STmn bit to 1
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)
Clear interrupt request flag (xxIF), reset interrupt mask (xxMK) and
set interrupt enable (EI).
Setting transmission/reception data
Enables interrupt
Wait for transmission/reception
completes
Transmission/reception
completed?
RETI
Transfer end interrupt
Reading receive data from SIOp
(= SDRmn [7:0])
SAU initial setting
Start communication when master start
providing the clock
No
Main routine
Main routine
Disable interrupt (MASK)
Update the number of communication data and confirm
if next transmission/reception data is available
Transmission/reception
next data?
No
Yes
Yes
When transfer end interrupt is generated,
it moves to interrupt processing routine
Read receive data and write it to storage area.
Update receive data pointer.
Writing transmit data to SIOp
(= SDRmn [7:0])
Read transmit data from storage area and write it to SIOp.
Update transmit data pointer.
Interrupt processing routine
Caution Be sure to set transmit data to the SlOp register before the clock from the master is started.
For the initial setting, refer to Figure 12-60.
(Select transfer end 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