Freescale Semiconductor
Data Sheet: Technical Data
An Energy Efficient Solution by Freescale
Document Number: MC9S08QE128
Rev. 7, 10/2008
MC9S08QE128 Series
Covers: MC9S08QE128, MC9S08QE96, MC9S08QE64
MC9S08QE128
80-LQFP
Case 917A
14 mm
2
48-QFN
Case 1314
7 mm
2
32-LQFP
Case 873A
7 mm
2
64-LQFP
Case 840F
10 mm
2
44-LQFP
Case 824D
10 mm
2
• 8-Bit HCS08 Central Processor Unit (CPU)
– Up to 50.33-MHz HCS08 CPU above 2.4V, 40-MHz
CPU above 2.1V, and 20-MHz CPU above 1.8V, across
temperature range
– HC08 instruction set with added BGND instruction
– Support for up to 32 interrupt/reset sources
• On-Chip Memory
– Flash read/program/erase over full operating voltage
and temperature
– Random-access memory (RAM)
– Security circuitry to prevent unauthorized access to
RAM and flash contents
• Power-Saving Modes
– Two low power stop modes; reduced power wait mode
– Peripheral clock enable register can disable clocks to
unused modules, reducing currents; allows clocks to
remain enabled to specific peripherals in stop3 mode
– Very low power external oscillator can be used in stop3
mode to provide accurate clock to active peripherals
– Very low power real time counter for use in run, wait,
and stop modes with internal and external clock sources
– 6
μs
typical wake up time from stop modes
• Clock Source Options
– Oscillator (XOSC) — Loop-control Pierce oscillator;
Crystal or ceramic resonator range of 31.25 kHz to
38.4 kHz or 1 MHz to 16 MHz
– Internal Clock Source (ICS) — FLL controlled by
internal or external reference; precision trimming of
internal reference allows 0.2% resolution and 2%
deviation; supports CPU freq. from 2 to 50.33 MHz
• System Protection
– Watchdog computer operating properly (COP) reset
with option to run from dedicated 1-kHz internal clock
source or bus clock
– Low-voltage detection with reset or interrupt; selectable
trip points
– Illegal opcode detection with reset
– Flash block protection
• Development Support
– Single-wire background debug interface
– Breakpoint capability to allow single breakpoint setting
during in-circuit debugging (plus two more breakpoints)
– On-chip in-circuit emulator (ICE) debug module
containing two comparators and nine trigger modes.
•
•
•
•
•
•
•
•
Eight deep FIFO for storing change-of-flow addresses
and event-only data. Debug module supports both tag
and force breakpoints.
ADC — 24-channel, 12-bit resolution; 2.5
μs
conversion
time; automatic compare function; 1.7 mV/°C temperature
sensor; internal bandgap reference channel; operation in
stop3; fully functional from 3.6V to 1.8V
ACMPx — Two analog comparators with selectable
interrupt on rising, falling, or either edge of comparator
output; compare option to fixed internal bandgap reference
voltage; outputs can be optionally routed to TPM module;
operation in stop3
SCIx — Two SCIs with full duplex non-return to zero
(NRZ); LIN master extended break generation; LIN slave
extended break detection; wake up on active edge
SPIx— Two serial peripheral interfaces with Full-duplex or
single-wire bidirectional; Double-buffered transmit and
receive; MSB-first or LSB-first shifting
IICx — Two IICs with; Up to 100 kbps with maximum bus
loading; Multi-master operation; Programmable slave
address; Interrupt driven byte-by-byte data transfer;
supports broadcast mode and 10 bit addressing
TPMx — One 6-channel and two 3-channel; Selectable
input capture, output compare, or buffered edge- or
center-aligned PWMs on each channel
RTC — 8-bit modulus counter with binary or decimal
based prescaler; External clock source for precise time
base, time-of-day, calendar or task scheduling functions;
Free running on-chip low power oscillator (1 kHz) for
cyclic wake-up without external components
Input/Output
– 70 GPIOs and 1 input-only and 1 output-only pin
– 16 KBI interrupts with selectable polarity
– Hysteresis and configurable pull-up device on all input
pins; Configurable slew rate and drive strength on all
output pins.
– SET/CLR registers on 16 pins (PTC and PTE)
Freescale reserves the right to change the detail specifications as may be required to permit
improvements in the design of its products.
© Freescale Semiconductor, Inc., 2008. All rights reserved.
Table of Contents
1
2
3
MC9S08QE128 Series Comparison. . . . . . . . . . . . . . . . . . . . .4
Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.2 Parameter Classification . . . . . . . . . . . . . . . . . . . . . . . .12
3.3 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . .12
3.4 Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . .13
3.5 ESD Protection and Latch-Up Immunity . . . . . . . . . . . .14
3.6 DC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
3.7 Supply Current Characteristics . . . . . . . . . . . . . . . . . . .18
3.8 External Oscillator (XOSC) Characteristics . . . . . . . . .21
3.9 Internal Clock Source (ICS) Characteristics . . . . . . . . .22
3.10 AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
3.10.1 Control Timing . . . . . . . . . . . . . . . . . . . . . . . . .
3.10.2 TPM Module Timing . . . . . . . . . . . . . . . . . . . . .
3.10.3 SPI Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.11 Analog Comparator (ACMP) Electricals . . . . . . . . . . .
3.12 ADC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . .
3.13 Flash Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . .
Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1 Device Numbering System . . . . . . . . . . . . . . . . . . . . .
Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1 Mechanical Drawings. . . . . . . . . . . . . . . . . . . . . . . . . .
Product Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
26
27
30
30
33
34
34
34
35
49
49
4
5
6
7
MC9S08QE128 Series Data Sheet, Rev. 7
2
Freescale Semiconductor
HCS08 CORE
BKGD/MS
CPU
RESET
TPM1CH2-0
MODULE (TPM1)
ANALOG COMPARATOR
(ACMP1)
TPM1CLK
ACMP1O
ACMP1+
ACMP1-
EXTAL
XTAL
3
BDC
BKP
INTERNAL CLOCK
SOURCE (ICS)
OSCILLATOR (XOSC)
3-CHANNEL TIMER/PWM
MODULE (TPM2)
IRQ
PORT A
3-CHANNEL TIMER/PWM
PTA7/TPM2CH2/ADP9
PTA6/TPM1CH2/ADP8
PTA5/IRQ/TPM1CLK/RESET
PTA4/ACMP1O/BKGD/MS
PTA3/KBI1P3/SC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ER (RTC)
SERIAL PERIPHERAL
INTERFACE MODULE (SPI2)
SS2
MISO2
MOSI2
SPSCK2
TxD2
RxD2
SS1
MISO1
MOSI1
SPSCK1
V
REFH
V
REFL
V
DDA
V
SSA
PTH7/SDA2
PTH6/SCL2
PTH5
PTH4
PTH3
PTH2
PTH1
PTH0
SDA2
SCL2
PORT H
IIC MODULE (IIC2)
- V
REFH
/V
REFL
internally connected to V
DDA
/V
SSA
in 48-pin and 32-pin packages
- V
DD
and V
SS
pins are each internally connected to two pads in 32-pin package
Figure 1. MC9S08QE128 Series Block Diagram
MC9S08QE128 Series Data Sheet, Rev. 7
Freescale Semiconductor
3
PORT G
PORT F
PTJ7
PTJ6
PTJ5
PTJ4
PTJ3
PTJ2
PTJ1
PTJ0
PORT J
SERIAL PERIPHERAL
INTERFACE MODULE (SPI1)
24-CHANNEL,12-BIT
ANALOG-TO-DIGITAL
CONVERTER (ADC)
PORT E
V
DD
V
DD
V
SS
V
SS
VOLTAGE
REGULATOR
SERIAL COMMUNICATIONS
INTERFACE (SCI2)
PORT D
PORT C
PORT B
MC9S08QE128 Series Comparison
1
MC9S08QE128 Series Comparison
Table 1. MC9S08QE128 Series Features by MCU and Package
Feature
Flash size (bytes)
RAM size (bytes)
Pin quantity
ACMP1
ACMP2
ADC channels
DBG
ICS
IIC1
IIC2
IRQ
KBI
Port I/O
1
RTC
SCI1
SCI2
SPI1
SPI2
TPM1 channels
TPM2 channels
TPM3 channels
XOSC
1
The following table compares the various device derivatives available within the MC9S08QE128 series.
MC9S08QE128
131072
8064
80
64
48
44
80
MC9S08QE96
98304
6016
64
48
44
64
MC9S08QE64
65536
4096
48
44
32
yes
yes
24
22
10
10
24
22
10
10
22
10
10
10
yes
yes
yes
yes
yes
no
no
yes
yes
no
no
yes
no
no
no
yes
16
70
16
54
16
38
16
34
16
70
16
54
16
38
16
34
16
54
16
38
16
34
12
26
yes
yes
yes
yes
yes
3
3
6
yes
Port I/O count does not include the input only PTA5/IRQ/TPM1CLK/RESET or the output
only PTA4/ACMP1O/BKGD/MS.
MC9S08QE128 Series Data Sheet, Rev. 7
4
Freescale Semiconductor
Pin Assignments
2
Pin Assignments
PTC7/TxD2/ACMP2-
PTA0/KBI1P0/TPM1CH0/ADP0/ACMP1+
PTA1/KBI1P1/TPM2CH0/ADP1/ACMP1-
This section describes the pin assignments for the available packages. See
Table 2
for pin availability by package pin-count.
PTA5/IRQ/TPM1CLK/RESET
PTC4/TPM3CH4/RSTO
PTC5/TPM3CH5/ACMP2O
PTA4/ACMP1O/BKGD/MS
PTD1/KBI2P1/MOSI2
PTD0/KBI2P0/SPSCK2
PTH7/SDA2
PTH6/SCL2
PTH5
PTH4
PTE7/TPM3CLK
V
DD
V
DDAD
V
REFH
V
REFL
V
SSAD
V
SS
PTB7/SCL1/EXTAL
PTB6/SDA1/XTAL
PTH3
PTH2
PTH1
PTH0
PTE6
PTE5
PTB5/TPM1CH1/SS1
PTB4/TPM2CH1/MISO1
PTC3/TPM3CH3
PTC2/TPM3CH2
PTD7/KBI2P7
PTD6/KBI2P6
Pins in
bold
are added from the next smaller package.
Figure 2. Pin Assignments in 80-Pin LQFP
MC9S08QE128 Series Data Sheet, Rev. 7
Freescale Semiconductor
5
PTD5/KBI2P5
PTJ7
PTJ6
PTJ5
PTJ4
PTC1/TPM3CH1
PTC0/TPM3CH0
PTF7/ADP17
PTF6/ADP16
PTF5/ADP15
PTF4/ADP14
PTB3/KBI1P7/MOSI1/ADP7
PTB2/KBI1P6/SPSCK1/ADP6
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
PTE0/TPM2CLK/SPSCK1
PTE1/MOSI1
PTG0
PTG1
PTG2/ADP18
PTG3/ADP19
PTE2/MISO1
PTE3/SS1
PTG4/ADP20
PTG5/ADP21
PTG6/ADP22
PTG7/ADP23
PTC6/RxD2/ACMP2+
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
PTA2/KBI1P2/SDA1/ADP2
PTA3/KBI1P3/SCL1/ADP3
PTD2/KBI2P2/MISO2
PTD3/KBI2P3/SS2
PTD4/KBI2P4
PTJ0
PTJ1
PTF0/ADP10
PTF1/ADP11
V
SS
V
DD
PTE4
PTA6/TPM1CH2/ADP8
PTA7/TPM2CH2/ADP9
PTF2/ADP12
PTF3/ADP13
PTJ2
PTJ3
PTB0/KBI1P4/RxD1/ADP4
PTB1/KBI1P5/TxD1/ADP5