Renesas F-ZTAT H8 Series Hardware Manual page 320

8-bit single-chip microcomputer
Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

10. Serial Communication Interface
Data Transmit/Receive Operations
SCI3 Initialization: Before transmitting or receiving data, follow the SCI3 initialization
procedure explained under 10.3.4, SCI3 Initialization, and illustrated in figure 10.9.
Transmitting: Figure 10.15 shows a typical flow chart for data transmission. After SCI3
initialization, follow the procedure below.
1
Read bit TDRE in SSR
TDRE = 1?
Write transmit data in TDR
Continue data transmission?
2
Read bit TEND in SSR
TEND = 1?
Write 0 to bit TE in SCR3
Figure 10.15 Typical Data Transmission Flow Chart in Synchronous Mode
Rev.3.00 Jul. 19, 2007 page 294 of 532
REJ09B0397-0300
Start
Yes
No
Yes
End
1.
Read the serial status register (SSR),
and after confirming that bit TDRE = 1,
write transmit data in the transmit
data register (TDR).
No
When data is written to TDR, TDRE is
automatically cleared to 0 and data
transmission begins.
If clock output has been selected, after
data is written to TDR, the clock is
output and data transmission begins.
Yes
2.
To continue transmitting data, read
bit TDRE to make sure it is set to 1,
then write the next data to TDR.
When data is written to TDR, TDRE
is automatically cleared to 0.
No

Advertisement

Table of Contents
loading

Table of Contents