Figure 10.22 Example Of Multiprocessor Data Transmission Flowchart - Renesas H8/3847R Series Hardware Manual

8-bit single-chip microcomputer super low power
Table of Contents

Advertisement

Section 10 Serial Communication Interface
Sets bits SPC31 and
SPC32 to 1 in SPCR
1
2
3

Figure 10.22 Example of Multiprocessor Data Transmission Flowchart

Rev. 6.00 Aug 04, 2006 page 398 of 680
REJ09B0145-0600
Start
Read bit TDRE
in SSR
No
TDRE = 1?
Yes
Set bit MPDT
in SSR
Write transmit
data to TDR
Yes
Continue data
transmission?
No
Read bit TEND
in SSR
No
TEND = 1?
Yes
No
Break output?
Yes
Set PDR = 0,
PCR = 1
Clear bit TE to
0 in SCR3
End
1.
Read the serial status register (SSR)
and check that bit TDRE is set to 1,
then set bit MPBT in SSR to 0 or 1 and
write transmit data to the transmit data
register (TDR). When data is written to
TDR, bit TDRE is cleared to 0 automatically.
2.
When continuing data transmission, be
sure to read TDRE = 1 to confirm that a
write can be performed before writing data
to TDR. When data is written to TDR, bit
TDRE is cleared to 0 automatically.
3.
If a break is to be output when data
transmission ends, set the port PCR to 1
and clear the port PDR to 0, then clear bit
TE in SCR3 to 0.

Advertisement

Table of Contents
loading

Table of Contents