English
Language : 

HD6417727BP160CV Datasheet, PDF (588/1098 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/ SH7700 Series
Section 17 Serial Communication Interface (SCI)
Communication Format
The data length is fixed at eight bits. No parity bit or multiprocessor bit can be added.
Clock
An internal clock generated by the on-chip baud rate generator or an external clock input from the
SCK0 pin can be selected as the SCI transmit/receive clock. The clock source is selected by the
C/A bit in the serial mode register (SCSMR) and bits CKE1 and CKE0 in the serial control
register (SCSCR). See table 17.10.
When the SCI operates on an internal clock, it outputs the clock signal at the SCK0 pin. Eight
clock pulses are output per transmitted or received character. When the SCI is not transmitting or
receiving, the clock signal remains in the high state. When only receiving, the SCI receives in 2-
character units, so a 16 pulse synchronization clock is output. To receive in 1-character units,
select an external clock source.
Transmitting and Receiving Data
SCI Initialization (clock synchronous mode)
Before transmitting and receiving data, the TE and RE bits in SCSCR should be cleared to 0, then
the SCI should be initialized as described in a sample flowchart in figure 17.18.
When the operating mode, or transfer format, is changed for example, the TE and RE bits must be
cleared to 0 before making the change using the following procedure. When the TE bit is cleared
to 0, the TDRE flag is set to 1 and the transmit shift register (SCTSR) is initialized.
Note that clearing the RE bit to 0 does not change the contents of the RDRF, PER, FER, and
ORER flags, or the contents of SCRDR.
Figure 17.18 is a sample flowchart for initializing the SCI.
Rev.6.00 Mar. 27, 2009 Page 530 of 1036
REJ09B0254-0600