English
Language : 

SH7604 Datasheet, PDF (373/633 Pages) Hitachi Semiconductor – Hardware Manual
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 as necessary. Setting TE
or RE enables the SCI to use the TxD or RxD pin. The initial states are the mark state when
transmitting, and the idle state when receiving (waiting for a start bit).
Initialization
Clear TE and RE bits in SCR to 0
Select transmit/receive
1
format in SMR
Set value in BRR
2
Set CKE1 and CKE0 bits in SCR
(TE and RE bits are 0)
3
Wait
Has a 1-bit
No
interval elapsed?
Yes
Set TE and RE bits in SCR to 1
and set RIE, TEIE, and MPIE bits
4
End
Note: Circled numbers refer to the preceding description of the procedure in the text.
Figure 13.4 Sample Flowchart for SCI Initialization
357