
523
Figure 14.17 is a sample flowchart for initializing the SCI.
1.Select the clock source in the serial control register (SCR).
Leave RIE, TIE, TEIE, MPIE, TE,
and RE cleared to 0.
2.Select the communication format in the serial mode register (SMR).
3.Write the value corresponding to the bit rate in the bit rate register (BRR) unless an external
clock is used.
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. The TxD, RxD pins
becomes usable in response to the PFC corresponding bits and the TE, RE bit settings.
Start of initialization
Clear TE and RE bits to 0 in SCR
1-bit interval elapsed?
Set TE and RE to 1 in SCR;
Set RIE, TIE, TEIE, and MPIE bits
Yes
No
1
Set RIE, TIE, TEIE, MPIE, CKE1,
and CKE0 bits in SCR
(TE and RE are 0)
End
Wait
Select transmit/receive
format in SMR
Set value in BRR
2
3
4
Figure 14.17 Sample Flowchart for SCI Initialization
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...