MB86R02 'Jade-D' Hardware Manual V1.64
30.7 Setup procedure flow
Figure 30-8 shows SPI setup procedure flow.
START
STATE = SLEEP
Write SPICR
Write SPISCR
(SPE set/clear)
STATE =
ERROR ?
No
STATE =
SETUP ?
Yes
DATA
communication
Yes
No
START
STATE = SLEEP
Figure 30-8 SPI setup flow chart
DATA
Communication
start
Write SPIDR
(TxRx start)
STATE =
BUSY ?
No
STATE =
SETUP ?
Yes
Read SPISR
(SIRQ clear)
Delete
received data?
No
Read SPIDR
Yes
Continue data
communication without
setting change?
No
DATA
communication
end
Yes
No
Yes
30-13