Starting simplified SPI (CSI)
communication
End of communication
Set STmn bit to 1
Setting storage area of the receive data, number of communication data
(Storage area, Reception data pointer, and number of communication
data 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 receive data
Enables interrupt
Wait for receive completes
Reading receive data from SIOp
(= SDRmn [7:0])
All reception completed?
Yes
RETI
Transfer end interrupt
Writing dummy data to SIOp
(= SDRmn [7:0])
SAU initial setting
Writing to SIOp makes SCKp signals
out (communication starts)
When transfer end interrupt is generated,
it moves to interrupt processing routine
No
Main routine Interrupt processing routine
Main routine
Disable interrupt (MASK)
Read receive data then writes to storage area.
Update receive data pointer and number of
communication data.
Check the number of communication data
For the initial setting, refer to Figure 12-30.
(Select transfer end interrupt)