Rev. 2.00, 09/03, page 406 of 690
Figure 16.2 shows a sample SCIF initialization flowchart.
Clear TE and RE bits
in SCSCR to 0
Set TFRST and RFRST bits
in SCFCR to 1
Clear the C/A bit in SCSMR to 0, and
set the transmit/receive format
Set RTRG1
−
0 and
TTRG1
−
0 bits in SCFCR.
Clear TFRST and
RFRST bits to 0
Set TE and RE bits in SCSCR
to 1, and set RIE and TIE bits
Set value in SCBRR
Set CKE1 and CKE0 bits
in SCSCR to B'00
(leaving TE and RE bits
cleared to 0)
[1] Set the clock selection in SCSCR.
Be sure to clear bits RIE, TIE, TE, and RE to 0.
[2] Set the transmit and receive format in SCSMR.
[3] Write a value corresponding to the bit rate into
SCBRR. (Not necessary if an external clock is
used.)
[4] Wait at least one bit interval, then set the TE bit
and RE bits in SCSCR 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 TxD pin will go to the mark state; when
receiving, the RxD pin will go to the idle state.
Initialization
End
1-bit interval elapsed?
No
Wait
Yes
[3]
[4]
[2]
[1]
Figure 16.2 Sample SCIF Initialization Flowchart
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...