hd64338342hw Renesas Electronics Corporation., hd64338342hw Datasheet - Page 418

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
Section 10 Serial Communication Interface
Figure 10.10 shows an example of a flowchart for initializing SCI3.
Rev. 6.00 Aug 04, 2006 page 382 of 680
REJ09B0145-0600
1
2
3
4
SPC32 to 1 in SPCR
Set bits SPC31 and
SCR3, and set bits
MPIE, and TEIE in
Clear bits TE and
Set bits TIE, RIE,
Set data transfer
Set value in BRR
RE to 0 in SCR3
Has 1-bit period
RE and TE to 1
Set bits CKE1
format in SMR
and CKE0
elapsed?
in PMR7
Start
End
Yes
Figure 10.10 Example of SCI3 Initialization Flowchart
Wait
No
1.
2.
3.
4.
Set clock selection in SCR3. Be sure to
clear the other bits to 0. If clock output
is selected in asynchronous mode, the
clock is output immediately after setting
bits CKE1 and CKE0. If clock output is
selected for reception in synchronous
mode, the clock is output immediately
after bits CKE1, CKE0, and RE are
set to 1.
Set the data transfer format in the serial
mode register (SMR).
Write the value corresponding to the
transfer rate in BRR. This operation is
not necessary when an external clock
is selected.
Wait for at least one bit period, then set
bits TIE, RIE, MPIE, and TEIE in SCR3,
and set bits RE and TE to 1 in PMR7.
Setting bits TE and RE enables the TXD3x
and RXD3x pins to be used. In asynchronous
mode the mark state is established when
transmitting, and the idle state waiting for
a start bit when receiving.

Related parts for hd64338342hw