EasyManua.ls Logo

Hitachi SH7032 - Page 431

Hitachi SH7032
690 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
396
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
(3)
1-bit interval elapsed?
Set TE or RE to 1 in SCR;
Set RIE, TIE, TEIE, and MPIE
Select communication format in SMR
Yes
No
Set value in BRR
Set RIE, TIE, TEIE, MPIE, CKE1,
and CKE0 bits in SCR
(leaving TE and RE cleared to 0)
End
Wait
(1)
(2)
(4)
Figure 13.16 Sample Flowchart for SCI Initialization

Table of Contents

Related product manuals