HD6417034B RENESAS [Renesas Technology Corp], HD6417034B Datasheet - Page 407

no-image

HD6417034B

Manufacturer Part Number
HD6417034B
Description
32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6417034BVFN20
Manufacturer:
RENESAS
Quantity:
101
Part Number:
HD6417034BVFN20
Manufacturer:
RENESAS
Quantity:
482
Part Number:
HD6417034BVFW20
Manufacturer:
MITSUBISHI
Quantity:
101
Part Number:
HD6417034BVXN20
Manufacturer:
Renesas Electronics America
Quantity:
10 000
When the SCI operates on an internal clock, it can output a clock signal at the SCK pin. The
frequency of this output clock is equal to the bit rate. The phase is aligned as in figure 13.3 so that
the rising edge of the clock occurs at the center of each transmit data bit.
Transmitting and Receiving Data (SCI initialization (Asynchronous Mode)): Before
transmitting or receiving, software must clear the TE and RE bits to 0 in the serial control register
(SCR), then initialize the SCI as follows.
When changing the communication mode or format, always clear the TE and RE bits to 0 before
following the procedure given below. Clearing TE to 0 sets TDRE to 1 and initializes the transmit
shift register (TSR). Clearing RE to 0, however, does not initialize the RDRF, PER, FER, and
ORER flags and receive data register (RDR), which retain their previous contents.
When an external clock is used, the clock should not be stopped during initialization or subsequent
operation. SCI operation becomes unreliable if the clock is stopped.
Figure 13.4 shows a sample flowchart for initializing the SCI. The procedure for initializing the
SCI is as follows:
1. Select the communication format in the serial mode register (SMR).
2. Write the value corresponding to the bit rate in the bit rate register (BRR) unless an external
3. Select the clock source in the serial control register (SCR). Leave RIE, TIE, TEIE, MPIE, TE,
4.
Figure 13.3 Phase Relationship Between Output Clock and Serial Data (Asynchronous
clock is used.
and RE cleared to 0. If clock output is selected in asynchronous mode, clock output starts
immediately after the setting is made in SCR.
Wait for at least the interval required to transmit or receive one bit, then set TE or RE in the
serial control register (SCR) to 1. Also set RIE, TIE, TEIE, and MPIE as necessary. Setting
TE or RE enables the SCI to use the TxD or RxD pin. The initial states are the mark transmit
state, and the idle receive state (waiting for a start bit).
0
D0
D1
D2
D3
1 frame
D4
D5
Mode)
Section 13 Serial Communication Interface (SCI)
D6
D7
Rev. 7.00 Jan 31, 2006 page 381 of 658
0/1
1
1
REJ09B0272-0700

Related parts for HD6417034B