Hitachi H8/3637 Hardware Manual page 266

H8/3637 series
Table of Contents

Advertisement

Transmitting Multiprocessor Data: Figure 10.20 shows a typical flow chart for multiprocessor
serial data transmission. After SCI3 initialization, follow the procedure below.
1
Read bit TDRE in SSR
TDRE = 1?
Set bit MPBT in SSR
Write transmit data to TDR
Continue
2
transmitting?
Read bit TEND in SSR
TEND = 1?
Break output?
3
Set PDR = 0 and PCR = 1
Clear bit TE in SCR3 to 0
Figure 10.20 Typical Multiprocessor Data Transmission Flow Chart
262
Start
Yes
No
Yes
Yes
End
1.
Read the serial status register (SSR), and
after confirming that bit TDRE = 1, set bit
MPBT (multiprocessor bit transmit) in SSR
No
to 0 or 1, then write transmit data in the
transmit data register (TDR).
When data is written to TDR, TDRE is
automatically cleared to 0.
2.
To continue transmitting data, read bit
TDRE to make sure it is set to 1, indicating
that data writing is enabled. Then write
the next data to TDR.
When data is written to TDR, TDRE
is automatically cleared to 0.
Yes
3.
To output a break signal at the end of data
transmission, first set the port values
PCR = 1 and PDR = 0, then clear bit TE
in SCR3 to 0.
No
No

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3635H8/3636

Table of Contents