English
Language : 

SH7147 Datasheet, PDF (655/1108 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 14 Synchronous Serial Communication Unit
Before switching transmission mode (TE = 1) or reception mode (RE = 1) to
transmission/reception mode (TE = RE = 1), clear the TE and RE bits to 0. When starting the
transfer, confirm that the TEND, RDRF, and ORER bits are cleared to 0 before setting the TE or
RE bits to 1.
Start
[1]
Initial setting
[2]
Read TDRE in SSSR.
No
TDRE = 1?
Yes
Write transmit data to SSTDR
TDRE automatically cleared
Data transferred from SSTDR to SSTRSR
TDRE set to 1 to start transmission
[3]
No
Read SSSR
RDRF = 1?
Yes
ORER = 1?
No
Read receive data in SSRDR
RDRF automatically cleared
Consecutive data
transmission/reception?
No
Read the TEND bit in SSSR
TEND = 1?
Yes
Clear TEND in SSSR to 0
Yes [4]
Yes [5]
No
[1] Initial setting:
Specify the transmit/receive data format.
[2] Check the synchronous serial communication unit state
and write transmit data:
Write transmit data to SSTDR after reading and
confirming that the TDRE bit in SSSR is 1. The TDRE bit
is automatically cleared to 0 and transmission is started
by writing data to SSTDR.
[3] Check the synchronous serial communication unit state:
Read SSSR confirming that the RDRF bit is 1.
A change of the RDRF bit (from 0 to 1) can be notified
by RXI interrupt.
[4] Receive error processing:
When a receive error occurs, execute the designated
error processing after reading the ORER bit in SSSR.
After that, clear the ORER bit to 0. While the ORER bit is
set to 1, transmission or reception is not resumed.
[5] Procedure for consecutive data transmission/reception:
To continue serial data transmission/reception, confirm
that the TDRE bit is 1 meaning that SSTDR is ready to be
written to. After that, data can be written to SSTDR. The
TDRE bit is automatically cleared to 0 by writing data to
SSTDR.
One-bit interval elapsed?
Yes
Clear TE and RE in SSER to 0
No
Error processing
End transmission/reception
Note: Hatching boxes represent synchronous serial communication unit internal operations.
Figure 14.17 Flowchart Example of Simultaneous Transmission/Reception
(Clock Synchronous Communication Mode)
Rev. 3.00 Oct. 06, 2008 Page 631 of 1080
REJ09B0230-0300