English
Language : 

HD64F3642AHV Datasheet, PDF (338/551 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
Section 10 Serial Communication Interface
Figure 10.10 shows an example of a flowchart for initializing SCI3.
Start
Clear bits TE and
RE to 0 in SCR3
1
Set bits CKE1
and CKE0
Set data transfer
2 format in SMR
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.
3 Set value in BRR
2. Set the data transfer format in the serial
mode register (SMR).
Wait
Has 1-bit period
No
elapsed?
Yes
Set bit TE or RE to
1 in SCR3, set bits
4 RIE, TIE, TEIE, and
MPIE as necessary,
and when transmitting
(TE = 1), set bit TXD
to 1 in PMR7
End
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 the interval required to
transmit or receive one bit, then set TE or
RE in the serial control register (SCR3).
Setting RE enables the RxD pin to be
used,
and when transmitting, setting bit TXD in
PMR7 enables the TXD output pin to be
used.
Also set the RIE, TIE, TEIE, and MPIE bits
as necessary to enable interrupts. The
initial states are the mark transmit state
and the idle receive state (waiting for a
start bit).
Figure 10.10 Example of SCI3 Initialization Flowchart
Rev. 6.00 Sep 12, 2006 page 316 of 526
REJ09B0326-0600