Data Transfer Operations - Renesas H8/38024 Hardware Manual

8-bit single-chip microcomputer h8 family/h8/300l super low power series
Hide thumbs Also See for H8/38024:
Table of Contents

Advertisement

Data Transfer Operations

• SCI3 initialization
Data transfer on SCI3 first of all requires that SCI3 be initialized as described in section 10.3.2, 3.
SCI3 initialization, and shown in figure 10.5.
• Transmitting
Figure 10.11 shows an example of a flowchart for data transmission. This procedure should be
followed for data transmission after initializing SCI3.
Sets bit SPC32 to
1 in SPCR
Read bit TDRE
TDRE = 1?
Write transmit
data to TDR
Continue data
transmission?
Read bit TEND
TEND = 1?
Clear bit TE to 0
Figure 10.11 Example of Data Transmission Flowchart (Synchronous Mode)
Start
[1]
in SSR
No
Yes
[2]
Yes
No
in SSR
No
Yes
in SCR3
End
[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
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.
Rev. 6.00, 08/04, page 359 of 628

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/38024f-ztatH8/38124H8/38024s

Table of Contents