03.08.2013 Views

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.4.5 Transmitter<br />

Bus<br />

Clock<br />

SBR12:SBR0<br />

TDRE IRQ<br />

TC IRQ<br />

BER IRQ<br />

Baud Divider ÷ 16<br />

PE<br />

PT<br />

10.4.5.1 Transmitter Character Length<br />

Stop<br />

Figure 10-16. Transmitter Block Diagram<br />

<strong>MC9S12VR</strong> <strong>Family</strong> Reference Manual, Rev. 2.8<br />

Serial Communication Interface (S12SCIV5)<br />

The SCI transmitter can accommodate either 8-bit or 9-bit data characters. The state of the M bit in SCI<br />

control register 1 (SCICR1) determines the length of data characters. When transmitting 9-bit data, bit T8<br />

in SCI data register high (SCIDRH) is the ninth bit (bit 8).<br />

10.4.5.2 Character Transmission<br />

M<br />

T8<br />

Parity<br />

Generation<br />

11-Bit Transmit Register<br />

H 8 7 6 5 4 3 2 1 0 L<br />

TIE<br />

TDRE<br />

TC<br />

TCIE<br />

MSB<br />

BERRIF<br />

TCIE<br />

Load from SCIDR<br />

Internal Bus<br />

SCI <strong>Data</strong> Registers<br />

To transmit data, the MCU writes the data bits to the SCI data registers (SCIDRH/SCIDRL), which in turn<br />

are transferred to the transmitter shift register. The transmit shift register then shifts a frame out through<br />

the TXD pin, after it has prefaced them with a start bit and appended them with a stop bit. The SCI data<br />

registers (SCIDRH and SCIDRL) are the write-only buffers between the internal data bus and the transmit<br />

shift register.<br />

<strong>Freescale</strong> <strong>Semiconductor</strong> 325<br />

Shift Enable<br />

Preamble (All 1s)<br />

Transmitter Control<br />

TE<br />

SBK<br />

Start<br />

Break (All 0s)<br />

Transmit<br />

Collision Detect<br />

BERRM[1:0]<br />

TXPOL<br />

LOOP<br />

CONTROL<br />

LOOPS<br />

RSRC<br />

SCTXD<br />

To Receiver<br />

SCTXD<br />

SCRXD<br />

(From Receiver)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!