English
Language : 

SH7706 Datasheet, PDF (519/749 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/SH7700 Series
Section 16 Serial Communication Interface with FIFO (SCIF)
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:
Rev. 5.00 May 29, 2006 page 471 of 698
REJ09B0146-0500