Figure 12.16 Sample Flowchart For Serial Transmitting - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

• Transmitting Serial Data (Synchronous Mode): Figure 12.16 shows a sample flowchart for
transmitting serial data and indicates the procedure to follow.
Initialize
Start transmitting
Read TDRE flag in SSR
TDRE= 1
Write transmit data in TDR
and clear TDRE flag to 0 in SSR
All data transmitted?
Read TEND flag in SSR
TEND= 1
Clear TE bit to 0 in SCR
<End>

Figure 12.16 Sample Flowchart for Serial Transmitting

(1)
(2)
No
Yes
No
(3)
Yes
No
Yes
SCI initialization: the transmit data
(1)
output function of the TxD pin is
selected automatically.
SCI status check and transmit data
(2)
write: read SSR, check that the TDRE
flag is 1, then write transmit data in
TDR and clear the TDRE flag to 0.
To continue transmitting serial data:
(3)
after checking that the TDRE flag is 1,
indicating that data can be written,
write data in TDR, then clear the TDRE
flag to 0.
409

Advertisement

Table of Contents
loading

Table of Contents