English
Language : 

HD64F38024HV Datasheet, PDF (387/684 Pages) Renesas Technology Corp – Hardware Manual Renesas 8-Bit Single-Chip Microcomputer H8 Family/H8/300L Super Low Power Series
Section 10 Serial Communication Interface
Figure 10.5 shows an example of a flowchart for initializing SCI3.
Start
Clear bits TE and
RE to 0 in SCR3
Set bits CKE1
and CKE0
[1]
Set data transfer
format in SMR
[2]
Set value in BRR [3]
Wait
Has 1-bit period
No
elapsed?
Yes
Set bit SPC32 to
1 in SPCR
Set bits TIE, RIE,
MPIE, and TEIE in
SCR3, and set bits [4]
RE or TE to 1
in SCR3
[1] 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.
[2] Set the data transfer format in the serial
mode register (SMR).
[3] Write the value corresponding to the
transfer rate in BRR. This operation is
not necessary when an external clock
is selected.
[4] Wait for at least one bit period, then set
bits TIE, RIE, MPIE, and TEIE in SCR3,
and set bits RE or TE to 1 in SCR3.
Setting bits TE and RE enables the TXD32
and RXD32 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.
End
Figure 10.5 Example of SCI3 Initialization Flowchart
Rev. 8.00 Mar. 09, 2010 Page 365 of 658
REJ09B0042-0800