Figure 10.16 Example Of Data Transmission Flowchart (Synchronous Mode) - Renesas H8/3847R Series Hardware Manual

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

Advertisement

Start
Sets bits SPC31 and
SPC32 to 1 in SPCR
Read bit TDRE
1
in SSR
TDRE = 1?
Yes
Write transmit
data to TDR
Continue data
2
transmission?
No
Read bit TEND
in SSR
TEND = 1?
Yes
Clear bit TE to 0
in SCR3
End

Figure 10.16 Example of Data Transmission Flowchart (Synchronous Mode)

Section 10 Serial Communication Interface
1.
Read the serial status register (SSR) and
check that bit TDRE is set to 1, then write
transmit data to the transmit data register
(TDR). When data is written to TDR, bit
TDRE is cleared to 0 automatically, the
clock is output, and data transmission is
No
started. When clock output is selected,
the clock is output and data transmission
started when data is written to TDR.
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.
Yes
No
Rev. 6.00 Aug 04, 2006 page 391 of 680
REJ09B0145-0600

Advertisement

Table of Contents
loading

Table of Contents