Section 16 Serial Communication Interface with FIFO (SCIF)
Rev. 5.00 May 29, 2006 page 471 of 698
REJ09B0146-0500
Clock
An internal clock generated by the on-chip baud rate generator or an external clock input from the
SCK2 pin can be selected as the SCIF transmit/receive clock. The clock source is selected by bits
CKE1 and CKE0 in the serial control register (SCSCR2) (table 16.7).
When an external clock is input at the SCK2 pin, it must have a frequency equal to 16 times the
desired bit rate.
When the SCIF operates on an internal clock, it can output a clock signal at the SCK2 pin. The
frequency of this output clock is 16 times the bit rate.
Transmitting and Receiving Data (SCIF Initialization)
Before transmitting or receiving, clear the TE and RE bits to 0 in the serial control register
(SCSCR2), then initialize the SCIF as follows.
When changing the communication format, always clear the TE and RE bits to 0 before following
the procedure given below. Clearing TE to 0 initializes the transmit shift register (SCTSR2).
Clearing TE and RE to 0, however, does not initialize the serial status register (SCSSR2), transmit
FIFO data register (SCFTDR2), or receive FIFO data register (SCFRDR2), which retain their
previous contents. Clear TE to 0 after all transmit data are transmitted and the TEND flag in the
SCSSR2 is set. The transmitting data enters the high impedance state after clearing to 0 although
the bit can be cleared to 0 in transmitting. Set the TFRST bit in the SCFCR2 to 1 and reset the
SCFTDR2 before TE is set again to start transmission.
When an external clock is used, the clock should not be stopped during initialization or subsequent
operation. SCIF operation becomes unreliable if the clock is stopped.
Figure 16.5 is a sample flowchart for initializing the SCIF. The procedure for initializing the SCIF
is:
Summary of Contents for SH7706 Series
Page 8: ...Rev 5 00 May 29 2006 page viii of xlviii ...
Page 160: ...Section 5 Cache Rev 5 00 May 29 2006 page 112 of 698 REJ09B0146 0500 ...
Page 370: ...Section 11 Watchdog Timer WDT Rev 5 00 May 29 2006 page 322 of 698 REJ09B0146 0500 ...
Page 554: ...Section 17 Pin Function Controller PFC Rev 5 00 May 29 2006 page 506 of 698 REJ09B0146 0500 ...
Page 576: ...Section 18 I O Ports Rev 5 00 May 29 2006 page 528 of 698 REJ09B0146 0500 ...
Page 746: ...Index Rev 5 00 May 29 2006 page 698 of 698 REJ09B0146 0500 ...
Page 749: ...SH7706 Group Hardware Manual ...