mc9s08qg8 Freescale Semiconductor, Inc, mc9s08qg8 Datasheet - Page 204

no-image

mc9s08qg8

Manufacturer Part Number
mc9s08qg8
Description
Hcs08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08qg84CDNE
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
mc9s08qg84CDTE
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
mc9s08qg8CDT
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08qg8CDTE
Manufacturer:
ABB
Quantity:
101
Part Number:
mc9s08qg8CDTE
Manufacturer:
Freescale Semiconductor
Quantity:
41 991
Part Number:
mc9s08qg8CDTE
Manufacturer:
FREESCALE
Quantity:
500
Part Number:
mc9s08qg8CDTE
Manufacturer:
FREESCALE
Quantity:
500
Part Number:
mc9s08qg8CDTE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08qg8CDTER
0
Part Number:
mc9s08qg8CFFE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08qg8CFFE
Quantity:
16
Part Number:
mc9s08qg8CFKE
Manufacturer:
FREESCALE
Quantity:
31 848
Part Number:
mc9s08qg8CFKE
Manufacturer:
FREESCALE
Quantity:
31 848
Part Number:
mc9s08qg8CPBE
Manufacturer:
CYPRESS
Quantity:
310
Part Number:
mc9s08qg8CPBE
0
Serial Communications Interface (S08SCIV3)
14.3
The SCI allows full-duplex, asynchronous, NRZ serial communication among the MCU and remote
devices, including other MCUs. The SCI comprises a baud rate generator, transmitter, and receiver block.
The transmitter and receiver operate independently, although they use the same baud rate generator. During
normal operation, the MCU monitors the status of the SCI, writes the data to be transmitted, and processes
received data. The following describes each of the blocks of the SCI.
14.3.1
As shown in
SCI communications require the transmitter and receiver (which typically derive baud rates from
independent clock sources) to use the same baud rate. Allowed tolerance on this baud frequency depends
on the details of how the receiver synchronizes to the leading edge of the start bit and how bit sampling is
performed.
The MCU resynchronizes to bit boundaries on every high-to-low transition, but in the worst case, there are
no such transitions in the full 10- or 11-bit time character frame so any mismatch in baud rate is
accumulated for the whole character time. For a Freescale Semiconductor SCI system whose bus
frequency is driven by a crystal, the allowed baud rate mismatch is about ±4.5 percent for 8-bit data format
and about ±4 percent for 9-bit data format. Although baud rate modulo divider settings do not always
produce baud rates that exactly match standard rates, it is normally possible to get within a few percent,
which is acceptable for reliable communications.
14.3.2
This section describes the overall block diagram for the SCI transmitter, as well as specialized functions
for sending break and idle characters. The transmitter block diagram is shown in
The transmitter output (TxD) idle state defaults to logic high (TXINV = 0 following reset). The transmitter
output is inverted by setting TXINV = 1. The transmitter is enabled by setting the TE bit in SCIC2. This
queues a preamble character that is one full character frame of the idle state. The transmitter then remains
idle until data is available in the transmit data buffer. Programs store data into the transmit data buffer by
writing to the SCI data register (SCID).
The central element of the SCI transmitter is the transmit shift register that is either 10 or 11 bits long
depending on the setting in the M control bit. For the remainder of this section, we will assume M = 0,
204
Functional Description
Baud Rate Generation
Transmitter Functional Description
Figure
BUSCLK
14-13, the clock source for the SCI baud rate generator is the bus-rate clock.
BAUD RATE GENERATOR
OFF IF [SBR12:SBR0] = 0
MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 1.01
MODULO DIVIDE BY
(1 THROUGH 8191)
Figure 14-13. SCI Baud Rate Generation
SBR12:SBR0
BAUD RATE =
DIVIDE BY
16
Rx SAMPLING CLOCK
(16 × BAUD RATE)
[SBR12:SBR0] × 16
BUSCLK
Tx BAUD RATE
Figure
Freescale Semiconductor
14-3.

Related parts for mc9s08qg8