Section 14 Serial Communication Interface (SCI)
Rev. 5.00 May 29, 2006 page 396 of 698
REJ09B0146-0500
Transmitting Serial Data (Asynchronous Mode): Figure 14.8 shows a sample flowchart for
transmitting serial data. Serial data transmission should be carried out in the following procedure
after setting the SCI in a transmission-enabled state.
TDRE = 1?
Write transmission data to
SCTDR and clear TDRE bit in
SCSSR to 0
All data transmitted?
Yes
TEND = 1?
Read TEND bit in SCSSR
Break output?
Yes
Clear TE bit SCSCR to 0
End transmission
Yes
Read TDRE bit in SCSSR
No
No
Yes
No
No
Start transmission
Set SCPDR and SCPCR
SCI status check and transmit data write:
Read the serial status register (SCSSR),
check that the TDRE bit is 1, then write
transmit data in the SCTDR and clear
TDRE to 0.
To continue transmitting serial data:
Read the TDRE bit to check whether it is
safe to write (if it reads 1); if so, write data
in SCTDR, then clear TDRE to 0.
To output a break at the end of serial
transmission: Set the SCPCR and
SCPDR, then clear the TE bit to 0 in SCSCR.
For SCPCR and SCPDR settings, see14.3.8,
SC Port Control Register (SCPCR),
and 14.3.9, SC Port Data Register (SCPDR).
1.
2.
3.
Figure 14.8 Sample Flowchart for Transmitting Serial Data
Summary of Contents for SH7706 Series
Page 8: ...Rev 5 00 May 29 2006 page viii of xlviii ...
Page 160: ...Section 5 Cache Rev 5 00 May 29 2006 page 112 of 698 REJ09B0146 0500 ...
Page 370: ...Section 11 Watchdog Timer WDT Rev 5 00 May 29 2006 page 322 of 698 REJ09B0146 0500 ...
Page 554: ...Section 17 Pin Function Controller PFC Rev 5 00 May 29 2006 page 506 of 698 REJ09B0146 0500 ...
Page 576: ...Section 18 I O Ports Rev 5 00 May 29 2006 page 528 of 698 REJ09B0146 0500 ...
Page 746: ...Index Rev 5 00 May 29 2006 page 698 of 698 REJ09B0146 0500 ...
Page 749: ...SH7706 Group Hardware Manual ...