English
Language : 

SH7727 Datasheet, PDF (664/1109 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Section 19 Serial Communication Interface with FIFO (SCIF)
Figure 19.4 is a sample flowchart for initializing the SCIF. The procedure for initializing the SCIF
is:
Initialization
Clear TE and RE bits in SCSCR2 to 0 (1)
Set TFRST and RFRST bits in
SCFCR2 to 1
Set CKE1 and CKE0
bits in SCSCR2 (leaving TE and RE
bits cleared to 0)
Set data transfer format in SCSMR2 (2)
Set value in SCBRR2
(3)
Wait
No
1-bit interval elapsed?
(4)
Yes
Set RTRG1-0, TTRG1-0, and MCE
in SCFCR2
Clear TFRST and RFRST bits to 0
(1) Set the clock selection in SCSCR2.
Be sure to clear bits RIE TIE, TE, and RE
to 0.
When clock output is selected, it is output
immediately after SCSCR2 settings are made.
(2) Set the data transfer format in SCSMR2.
(3) Write a value corresponding to the bit rate
into the bit rate register 2 (SCBRR2).
(Not necessary if an external clock is used.)
(4) Wait at least one bit interval, then set the
TE bit or RE bit in SCSR2 to 1. Also set the
RIE and TIE bits.
Setting the TE and RE bits enables the
TxD and RxD pins to be used. When
transmitting, the SCIF will go to the mark
state; when receiving, it will go to the idle
state, waiting for a start bit.
Set TE and RE bits in
SCSCR2 to 1,and set RIE,
and TIE bits
End
Figure 19.4 Sample SCIF Initialization Flowchart
Rev. 5.00 Dec 12, 2005 page 592 of 1034
REJ09B0254-0500