Datasheet

Section 16 Synchronous Serial Communication Unit (SSU)
Rev. 4.00 Mar. 15, 2006 Page 369 of 556
REJ09B0026-0400
Ye s
Ye s
Ye s
Ye s
No
Start
Initialization
Read TDRE in SSSR
[1]
[2]
[3]
[5]
[4]
[1] After reading SSSR and confirming that
the TDRE bit is 1, write transmit data in
SSTDR. Then the TDRE bit is automatically
cleared to 0.
[2] Confirm that the RDRF bit is 1. If the RDRF
bit is 1, receive data in SSRDR is read. If the
SSRDR bit is read, the RDRF bit is automatically
cleared.
[3] Determine whether data transmission is continued.
[5] To end transmit and receive mode, clear the
TEND bit to 0 and clear the TE and RE bits in
SSER to 0.
TDRE = 1?
Read TEND in SSSR
TEND = 1?
Write transmit data
in SSTDR
Read RDRF in SSSR
RDRF = 1?
No
No
No
Read receive data
in SSRDR
Data transmission
continued?
Clear TEND to 0 and
clear TE and RE in
SSER to 0
End
[4] Data transfer completion can be confirmed
to see if TEND in SSSR becomes 1.
Figure 16.9 Sample Flowchart for Serial Transmit and Receive Operations