English
Language : 

HD6417034 Datasheet, PDF (432/691 Pages) Renesas Technology Corp – SuperH RISC ENGINE SH7032 AND SH7034
1. Select the communication format in the serial mode register (SMR).
2. Write the value corresponding to the bit rate in the bit rate register (BRR) unless an external
clock is used.
3. Select the clock source in the serial control register (SCR). Leave RIE, TIE, TEIE, MPIE, TE,
and RE cleared to 0.
4. Wait for at least the interval required to transmit or receive one bit, then set TE or RE in the
serial control register (SCR) to 1. Also set RIE, TIE, TEIE, and MPIE. Setting the
corresponding bit of the pin function controller, TE, and RE enables the SCI to use the TxD or
RxD pin.
Start of initialization
Clear TE and RE bits to 0 in SCR
Select communication format in SMR (1)
Set value in BRR
(2)
Set RIE, TIE, TEIE, MPIE, CKE1,
and CKE0 bits in SCR
(3)
(leaving TE and RE cleared to 0)
Wait
No
1-bit interval elapsed?
Yes
Set TE or RE to 1 in SCR;
Set RIE, TIE, TEIE, and MPIE (4)
End
Figure 13.16 Sample Flowchart for SCI Initialization
396