Section 14 Serial Communication Interface with FIFO (SCIF)
Rev. 2.00 Mar 09, 2006 page 615 of 906
REJ09B0292-0200
Initialization
Clear TE and RE bits to 0
in SCSCR
Clear TFRST and RFRST bits
to 1 in SCFCR
Set RIE, TIE, MPIE, CKE1,
and CKE0 bits in SCSCR
(leaving TE and RE bits
cleared to 0)
Set data transmit/receive format
in SCSMR
Set RTRG1–0 bits and
TTRG1–0 bits in SCFCR,
and clear TFRST and
RFRST bits to 0
Set TE or RE bit to 1 in SCSCR,
and set RIE, TIE, and MPIE bits
Set value in SCBRR
1-bit interval elapsed?
End
1. Set the clock selection in SCSCR.
Be sure to clear bits RIE, TIE,
MPIE, TE, and RE to 0.
2. Set the transmit/receive format in
the serial mode register (SCSMR).
3. Write a value corresponding to the
bit rate into the bit rate register
(SCBRR). (Not necessary if an
external clock is used.)
4. Wait at least one bit interval, then
set the TE bit or RE bit to 1 in
SCSCR.
Also set the RIE, TIE, and MPIE
bits. Setting the TE and RE bits
simultaneously enables the TxD
and RxD pins to be used.
Yes
No
Wait
2
3
4
1
Figure 14.17 Sample SCIF Initialization Flowchart
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...