English
Language : 

MC9S08QG8_09 Datasheet, PDF (195/314 Pages) Freescale Semiconductor, Inc – HCS08 Microcontrollers
Chapter 14 Serial Communications Interface (S08SCIV3)
Module Initialization:
Write:
Write:
Write;
Write:
SCIBDH:SCIBDL
SCFC1
SCIC2
SCIC3
to set
to configure
to configure
to enable
baud rate
1-wire/2-wire, 9/8-bit data, wakeup, and parity, if used.
interrupts, enable Rx and Tx, RWU
Enable Rx wakeup, SBK sends break character
Rx error interrupt sources. Also controls pin direction in
1-wire modes. R8 and T8 only used in 9-bit data modes.
Module Use:
Wait for TDRE, then write data to SCID
Wait for RDRF, then read data from SCID
A small number of applications will use RWU to manage automatic receiver wakeup, SBK to send break characters, and
R8 and T8 for 9-bit data.
SCIBDH
SBR12 SBR11 SBR10 SBR9 SBR8
SCIBDL SBR7 SBR6 SBR5
SBR4
Baud rate = BUSCLK / (16 x SBR12:SBR0)
SBR3
SBR2
SBR1 SBR0
SCIC1 LOOPS SCISWAI RSRC
M
Module configuration
SCIC2
TIE
TCIE
RIE
ILIE
Local interrupt enables Tx and Rx enable
WAKE
TE
ILT
PE
PT
RE
RWU
SBK
Rx wakeup and send break
SCIS1 TDRE
TC
Interrupt flags
RDRF
IDLE
OR
NF
Rx error flags
FE
PF
SCIS2
BRK13
Configure LIN support options and monitor receiver activity
RAF
SCIS3
SCIID
R8
T8
9th data bits
TXDIR TXINV
ORIE
NEIE
FEIE
Rx/Tx pin
direction in
single-wire
mode
Local interrupt enables
Tx data path
polarity
R7/T7 R6/T6
R5/T5 R4/T4
R3/T3
R2/T2
R1/T1
Read: Rx data; write: Tx data
PEIE
R0/T0
Figure 14-2. SCI Module Quick Start
MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 5
Freescale Semiconductor
193