hd64338342hw Renesas Electronics Corporation., hd64338342hw Datasheet - Page 419

no-image

hd64338342hw

Manufacturer Part Number
hd64338342hw
Description
Renesas 8-bit Single-chip Microcomputer H8 Family/h8/300l Super Low Power Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Figure 10.11 shows an example of a flowchart for data transmission. This procedure should be
followed for data transmission after initializing SCI3.
Transmitting
Figure 10.11 Example of Data Transmission Flowchart (Asynchronous Mode)
1
2
3
Sets bits SPC31 and
SPC32 to 1 in SPCR
Clear bit TE to 0
Read bit TDRE
Read bit TEND
Write transmit
Continue data
transmission?
Break output?
Set PDR = 0,
data to TDR
TDRE = 1?
TEND = 1?
PCR = 1
in SCR3
in SSR
in SSR
Start
End
Yes
No
Yes
Yes
No
Yes
No
No
1.
2.
3.
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.
(After the TE bit is set to 1, one frame of
1s is output, then transmission is possible.)
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.
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.
Section 10 Serial Communication Interface
Rev. 6.00 Aug 04, 2006 page 383 of 680
REJ09B0145-0600

Related parts for hd64338342hw