Figure 15.13 Sample Multiprocessor Serial Transmission Flowchart - Hitachi SH7751 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

Start of transmission
Read TEND flag in SCSSR1
TEND = 1?
Set MPBT bit in SCSSR1 to 1 and
write ID data to SCTDR1
Clear TDRE flag to 0
Read TEND flag in SCSSR1
TEND = 1?
Clear MPBT bit in SCSSR1 to 0
Write data to SCTDR1
Clear TDRE flag to 0
Read TDRE flag in SCSSR1
TDRE = 1?
All data transmitted?
End of transmission

Figure 15.13 Sample Multiprocessor Serial Transmission Flowchart

Rev. 3.0, 04/02, page 612 of 1064
No
Yes
No
Yes
No
Yes
No
Yes
1. SCI status check and ID data write:
Read SCSSR1 and check that the
TEND flag is set to 1, then set the
MPBT bit in SCSSR1 to 1 and write
ID data to SCTDR1. Finally, clear the
TDRE flag to 0.
2. Preparation for data transfer: Read
SCSSR1 and check that the TEND
flag is set to 1, then set the MPBT bit
in SCSSR1 to 1.
3. Serial data transmission: Write the
first transmit data to SCTDR1, then
clear the TDRE flag to 0.
To continue data transmission, be
sure to read 1 from the TDRE flag to
confirm that writing is possible, then
write data to SCTDR1, and then clear
the TDRE flag to 0. (Checking and
clearing of the TDRE flag is
automatic when the direct memory
access controller (DMAC) is
activated by a transmit-data-empty
interrupt (TXI) request, and data is
written to SCTDR1.)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents