Section 16 Serial Communication Interface with FIFO (SCIF)
Rev. 5.00 May 29, 2006 page 472 of 698
REJ09B0146-0500
Initialization
1. Set the clock selection in SCSCR2.
Be sure to clear bits RIE TIE, TE, and RE
to
0.
When clock output is selected, it is output
immediately after SCSCR2 settings are made.
2. Set the data transfer format in SCSMR2.
3. Write a value corresponding to the SCBRR2.
(Not necessary if an external clock is used.)
4. Wait at least one bit interval, then set the
TE bit or RE bit in SCSR2 to 1. Also set the
RIE and TIE bits.
Setting the TE and RE bits enables the
TxD2 and RxD2 pins to be used. When
transmitting, the SCIF will go to the mark
state; when receiving, it will go to the idle
state, waiting for a start bit.
Clear TE and RE bits in SCSCR2 to 0
Set TFRST and RFRST bits in
SCFCR2 to 1
1-bit interval elapsed?
Set RTRG1-0, TTRG1-0, and MCE
in SCFCR2
Clear TFRST and RFRST bits to 0
Set TE and RE bits in
SCSCR2 to 1,and set RIE, TIE,
TEIE, and MPIE bits
Set data transfer format in SCSMR2
Yes
No
Set value in SCBRR2
Set CKE1 and CKE0
bits in SCSCR2 (leaving TE and RE
bits cleared to 0)
End
Wait
Figure 16.5 Sample SCIF Initialization Flowchart
Содержание SH7706 Series
Страница 8: ...Rev 5 00 May 29 2006 page viii of xlviii ...
Страница 160: ...Section 5 Cache Rev 5 00 May 29 2006 page 112 of 698 REJ09B0146 0500 ...
Страница 370: ...Section 11 Watchdog Timer WDT Rev 5 00 May 29 2006 page 322 of 698 REJ09B0146 0500 ...
Страница 532: ...Section 16 Serial Communication Interface with FIFO SCIF Rev 5 00 May 29 2006 page 484 of 698 REJ09B0146 0500 ...
Страница 554: ...Section 17 Pin Function Controller PFC Rev 5 00 May 29 2006 page 506 of 698 REJ09B0146 0500 ...
Страница 576: ...Section 18 I O Ports Rev 5 00 May 29 2006 page 528 of 698 REJ09B0146 0500 ...
Страница 614: ...Section 21 User Debugging Interface H UDI Rev 5 00 May 29 2006 page 566 of 698 REJ09B0146 0500 ...
Страница 746: ...Index Rev 5 00 May 29 2006 page 698 of 698 REJ09B0146 0500 ...
Страница 749: ...SH7706 Group Hardware Manual ...