Hitachi H8S/2199 Hardware Manual page 445

Single-chip microcomputer
Table of Contents

Advertisement

Initialization
Start transmission
Read TDRE flag in SSR1
TDRE=1
Write transmit data to TDR1
and set MPBT bit in SSR1
Clear TDRE flag to 0
Transmission end?
Read TEND flag in SSR1
TEND=1
Break output?
Clear PDR to 0 and set PCR to 1
Clear TE bit in SCR1 to 0
< End >
Figure 22.11 Sample Multiprocessor Serial Transmission Flowchart
Rev. 1.0, 02/00, page 436 of 1141
No
Yes
No
Yes
No
Yes
No
Yes
SCI initialization:
[1]
[1]
The SO2 pin is automatically designated as
the transmit data output pin.
[2]
SCI status check and transmit data write:
Read SSR and check that the TDRE flag is
[2]
set to 1, then write transmit data to TDR1.
Set the MPBT bit in SSR1 to 0 or 1.
Finally, clear the TDRE flag to 0.
Serial transmission continuation procedure:
[3]
To continue serial transmission, be sure to
read 1 from the TDRE flag to confirm that
writing is possible, then write data to TDR1,
and then clear the TDRE flag to 0.
Break output at the end of serial
[4]
transmission:
To output a break in serial transmission, set
the port PCR to 1, clear PDR to 0, then
clear the TE bit in SCR1 to 0.
[3]
[4]

Advertisement

Table of Contents
loading

Table of Contents