Beruflich Dokumente
Kultur Dokumente
MC9S08QA4
8-Pin DFN 8-Pin NB-SOIC
Case 1452-02 Case 751-07
MC9S08QA4 Series
8-Pin PDIP
Covers: MC9S08QA4 Case 626-06
MC9S08QA2
Features: Breakpoint capability to allow single breakpoint setting
8-bit HCS08 Central Processor Unit (CPU) during in-circuit debugging
Up to 20 MHz CPU at 3.6 V to 1.8 V across temperature Peripherals
range of 40C to 85C ADC 4-channel, 10-bit resolution; 1.7 mV/C
HC08 instruction set with added BGND instruction temperature sensor; automatic compare function;
Support for up to 32 interrupt/reset sources internal bandgap reference channel; operation in stop3;
On-Chip Memory fully functional from 3.6 V to 1.8 V
Flash read/program/erase over full operating voltage ACMP Analog comparator with selectable interrupt
and temperature on rising, falling, or either edge of comparator output;
Random-access memory (RAM) compare option to fixed internal bandgap reference
Security circuitry to prevent unauthorized access to voltage; output can be tied internally to TPM input
RAM and flash contents capture
Power-Saving Modes TPM One 1-channel timer/pulse-width modulator
Two very low power stop modes (TPM) module; selectable input capture, output
Peripheral clock enable register can disable clocks to compare, or buffered edge- or center-aligned PWM on
unused modules, thereby reducing currents each channel; ACMP output can be tied internally to
Very low power real time counter for use in run, wait, input capture
and stop modes with internal clock sources MTIM 8-bit modulo timer module with 8-bit
Clock Source Options prescaler
Internal Clock Source (ICS) Internal clock source KBI 4-pin keyboard interrupt module with software
module containing a frequency-locked-loop (FLL) selectable polarity on edge or edge/level modes
controlled by internal reference; precision trimming of Input/Output
internal reference allows 0.2% resolution and 2% Four GPIOs, one input-only pin and one output-only
deviation over temperature and voltage; supports bus pin.
frequencies from 1 MHz to 10 MHz Hysteresis and configurable pullup device on all input
System Protection pins; configurable slew rate and drive strength on all
Watchdog computer operating properly (COP) reset output pins except PTA5
with option to run from dedicated 1 kHz internal clock Package Options
source or bus clock 8-pin SOIC, PDIP, and DFN
Low-voltage detection with reset or interrupt
Selectable trip points
Illegal opcode detection with reset
Illegal address detection with reset
Flash block protection
Development Support
Single-wire background debug interface
This document contains information on a product under development. Freescale reserves the
right to change or discontinue this product without notice.
Freescale Semiconductor, Inc., 2008-2009. All rights reserved.
Table of Contents
1 MCU Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 3.8 AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 3.8.1 Control Timing . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 3.8.2 TPM/MTIM Module Timing . . . . . . . . . . . . . . . . 14
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 3.9 Analog Comparator (ACMP) Electricals . . . . . . . . . . . 15
3.2 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . .5 3.10 ADC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.3 Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . .5 3.11 Flash Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.4 ESD Protection and Latch-Up Immunity . . . . . . . . . . . . .6 4 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.5 DC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 5 Mechanical Drawings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.6 Supply Current Characteristics . . . . . . . . . . . . . . . . . . .10
3.7 Internal Clock Source (ICS) Characteristics . . . . . . . . .11
Revision History
To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current.
Your printed copy may be an earlier revision. To verify you have the latest information available, refer to:
The following revision history table summarizes changes contained in this document.
Related Documentation
Find the most current versions of all documents at: http://www.kynix.com/
PORT A
PTA2/KBIP2/ADP2
POWER MANAGEMENT
4
RTI COP
8-BIT KEYBOARD
IRQ LVD INTERRUPT MODULE (KBI)
ACMPO
ACMP PTA1/KBIP1/ADP1/ACMP
ANALOG COMPARATOR
USER FLASH (ACMP) ACMP+ PTA0/KBIP0/TPMCH0/ADP0/ACMP+
(MC9S08QA4 = 4096 BYTES)
(MC9S08QA2 = 2048 BYTES) 4
10-BIT
ANALOG-TO-DIGITAL
USER RAM CONVERTER (ADC)
(MC9S08QA4 = 256 BYTES)
(MC9S08QA2 = 160BYTES) TPMCH0
16-BIT TIMER/PWM
MODULE (TPM)
16 MHz INTERNAL CLOCK
SOURCE (ICS)
VSS
VOLTAGE REGULATOR
VDD
VDDA
VSSA
VREFH
VREFL
NOTES:
1
Port pins are software configurable with pullup device if input port.
2 Port pins are software configurable for output drive strength.
3 Port pins are software configurable for output slew rate control.
4 IRQ contains a software configurable (IRQPDD) pullup device if PTA5 enabled as IRQ pin function (IRQPE = 1).
5
RESET contains integrated pullup device if PTA5 enabled as reset pin function (RSTPE = 1).
6 PTA4 contains integrated pullup device if BKGD enabled (BKGDPE = 1).
7 When pin functions as KBI (KBIPEn = 1) and associated pin is configured to enable the pullup device, KBEDGn can
2 Pin Assignments
This section shows the pin assignments in the packages available for the MC9S08QA4 series.
Priority
PIN
Lowest Highest
3 VDD
4 VSS
PTA5/IRQ/TCLK/RESET 1 8 PTA0/KBIP0/TPMCH0/ADP0/ACMP+
PTA4/ACMPO/BKGD/MS 2 7 PTA1/KBIP1/ADP1/ACMP
VDD 3 6 PTA2/KBIP2/ADP2
VSS 4 5 PTA3/KBIP3/ADP3
8-Pin PDIP/SOIC
PTA5/IRQ/TCLK/RESET 1 8 PTA0/KBIP0/TPMCH0/ADP0/ACMP+
PTA4/ACMPO/BKGD/MS 2 7 PTA1/KBIP1/ADP1/ACMP
VDD 3 6 PTA2/KBIP2/ADP2
VSS 4 5 PTA3/KBIP3/ADP3
8-Pin DFN
3 Electrical Characteristics
3.1 Introduction
This chapter contains electrical and timing specifications for the MC9S08QA4 series of microcontrollers available at the time
of publication.
where:
TA = Ambient temperature, C
JA = Package thermal resistance, junction-to-ambient, C/W
PD = Pint + PI/O
Pint = IDD VDD, Watts chip internal power
PI/O = Power dissipation on input and output pins user-determined
For most applications, PI/O << Pint and can be neglected. An approximate relationship between PD and TJ (if PI/O is neglected)
is:
where K is a constant pertaining to the particular part. K can be determined from Equation 3 by measuring PD (at equilibrium)
for a known TA. Using this value of K, the values of PD and TJ can be obtained by solving Equation 1 and Equation 2 iteratively
for any value of TA.
A device is defined as a failure if after exposure to ESD pulses the device no longer meets the device specification. Complete
DC parametric and functional testing is performed per the applicable device specification at room temperature followed by hot
temperature, unless specified otherwise in the device specification.
3.5 DC Characteristics
This section includes information about power supply requirements and I/O pin characteristics.
Table 6. DC Characteristics (Temperature Range = 40 to 85C Ambient)
Input high voltage (VDD > 2.3 V) (all digital inputs) 0.70 VDD
VIH V
Input high voltage (1.8 V VDD 2.3 V) (all digital inputs) 0.85 VDD
Input low voltage (VDD > 2.3 V) (all digital inputs) 0.35 VDD
VIL V
Input low voltage (1.8 V VDD 2.3 V) (all digital inputs) 0.30 VDD
DC injection current 2, 5, 6, 7
VIn < VSS, VIn > VDD
IIC
Single pin limit 0.2 0.2 mA
Total MCU limit, includes sum of all stressed pins 5 5 mA
6
Input must be current-limited to the value specified. To determine the value of the required current-limiting resistor, calculate
resistance values for positive and negative clamp voltages, then use the larger of the two values.
7
Power supply must maintain regulation within operating VDD range during instantaneous and operating maximum current
conditions. If positive injection current (VIn > VDD) is greater than IDD, the injection current may flow out of VDD and could result
in external power supply going out of regulation. Ensure external VDD load will shunt current greater than maximum injection
current. This will be the greatest risk when the MCU is not consuming power. Examples are: if no system clock is present, or if
clock rate is very low (which would reduce overall power consumption).
35
30
30
25
25
20
1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 20
VDD (V) 1.8 2.3 2.8 3.3 3.6
VDD (V)
0.6
VOL (V)
0.2
VOL (V)
IOL = 10 mA
0.4
IOL = 6 mA
0.2 0.1
IOL = 3 mA
0 0
0 10 20 30 1 2 3 4
VDD (V)
IOL (mA)
TYPICAL VDD VOH VS IOH AT VDD = 3.0 V TYPICAL VDD VOH VS VDD AT SPEC IOH
1.2 0.25
85C 85C, IOH = 2 mA
1 25C 25C, IOH = 2 mA
40C 0.2
40C, IOH = 2 mA
VDD VOH (V)
0 0
0 5 10 15 20 1 2 3 4
IOH (mA)) VDD (V)
1
3 V values are 100% tested; 2 V values are characterized but not tested.
2
Typicals are measured at 25 C.
3
Does not include any DC loads on port pins.
4
Most customers are expected to find that auto-wakeup from a stop mode can be used instead of the higher current wait mode.
DCO output frequency range untrimmed fdco_ut 12.8 16.8 21.33 MHz
Long term jitter of DCO output clock (averaged over 2 ms interval) CJitter 0.02 0.2 %fdco
1
Data in Typical column was characterized at 3.0 V, 25 C, or is typical recommended value.
2 This parameter is characterized and not tested on each device.
3 This specification applies to any time the FLL reference source or reference divider is changed, trim value changed.
0.250%
0.200%
0.150%
0.100%
DEVIATION
0.050%
0.000%
0.050%
1.6 2.1 2.6 3.1 3.6
VDD
3.8 AC Characteristics
This section describes timing characteristics for each peripheral system.
1600
1400
1200 = +3
1000 = Mean
Period (s) = 3
800
600
400
200
0
40 40 0 20 40 60 80 100
Temperature (C)
Figure 9. Typical RTI Clock Period vs. Temperature
textrst
RESET PIN
tIHIL
KBIPx
IRQ/KBIPx
tILIH
tTCLK
tclkh
TCLK
tclkl
tICPW
TPMCHn
TPMCHn
tICPW
SIMPLIFIED
INPUT PIN EQUIVALENT
CIRCUIT ZADIN
SIMPLIFIED
Pad
ZAS leakage CHANNEL SELECT
due to CIRCUIT ADC SAR
input ENGINE
RAS protection RADIN
+
VADIN
CAS
VAS +
RADIN
INPUT PIN
RADIN
INPUT PIN
RADIN
Supply current
ADLPC = 1
IDDAD 120 A
ADLSMP = 1
ADCO = 1
Supply current
ADLPC = 1
IDDAD 202 A
ADLSMP = 0
ADCO = 1
Supply current
ADLPC = 0
IDDAD 288 A
ADLSMP = 1
ADCO = 1
Supply current
ADLPC = 0
IDDAD 532 646 A
ADLSMP = 0
ADCO = 1
Temp sensor
25C VTEMP25 701.2 mV
voltage
1 Typical values assume VDD = 3.0 V, Temp = 25C, fADCK = 1.0 MHz unless otherwise stated. Typical values are for reference
only and are not tested in production.
2 1 LSB = (V N
REFH VREFL)/2
3
Based on input pad leakage current. Refer to pad electricals.
Program and erase operations do not require any special power sources other than the normal VDD supply. For more detailed
information about program/erase operations, see MC9S08QA4 Series Reference Manual.
Table 14. Flash Characteristics
Motorola defines typical endurance, please refer to Engineering Bulletin EB619/D, Typical Endurance for Nonvolatile Memory.
4 Typical data retention values are based on intrinsic capability of the technology measured at high temperature and de-rated
to 25C using the Arrhenius equation. For additional information on how Freescale defines typical data retention, please refer
to Engineering Bulletin EB618/D, Typical Data Retention for Nonvolatile Memory.
4 Ordering Information
This section contains ordering numbers for MC9S08QA4 series devices. See below for an example of the device numbering
system.
Table 15. Device Numbering System
Memory Package
Device Number
Flash RAM Type Designator Document No.
MC 9 S08 QA 4 C XX E
Status RoHS compliance indicator (E = yes)
(MC = Fully qualified) Package designator (see Table 15)
Memory
(9 = Flash-based) Temperature range (C = 40C to 85C)
Core
Family Memory size (in KB)
5 Mechanical Drawings
The following pages contain mechanical specifications for MC9S08QA4 series package options.
8-pin DFN (plastic dual in-line pin)
8-pin NB SOIC (narrow body small outline integrated circuit)
8-pin PDIP (plastic dual in-line pin)
Web Support: Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
http://www.freescale.com/support guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of any
USA/Europe or Locations Not Listed: product or circuit, and specifically disclaims any and all liability, including without
Freescale Semiconductor, Inc. limitation consequential or incidental damages. Typical parameters that may be
Technical Information Center, EL516 provided in Freescale Semiconductor data sheets and/or specifications can and do vary
2100 East Elliot Road in different applications and actual performance may vary over time. All operating
Tempe, Arizona 85284 parameters, including Typicals, must be validated for each customer application by
1-800-521-6274 or +1-480-768-2130 customers technical experts. Freescale Semiconductor does not convey any license
www.freescale.com/support under its patent rights nor the rights of others. Freescale Semiconductor products are
not designed, intended, or authorized for use as components in systems intended for
Europe, Middle East, and Africa: surgical implant into the body, or other applications intended to support or sustain life,
Freescale Halbleiter Deutschland GmbH or for any other application in which the failure of the Freescale Semiconductor product
Technical Information Center could create a situation where personal injury or death may occur. Should Buyer
Schatzbogen 7 purchase or use Freescale Semiconductor products for any such unintended or
81829 Muenchen, Germany unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and
+44 1296 380 456 (English) its officers, employees, subsidiaries, affiliates, and distributors harmless against all
+46 8 52200080 (English) claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
+49 89 92103 559 (German) directly or indirectly, any claim of personal injury or death associated with such
+33 1 69 35 48 48 (French) unintended or unauthorized use, even if such claim alleges that Freescale
www.freescale.com/support Semiconductor was negligent regarding the design or manufacture of the part.
Japan: RoHS-compliant and/or Pb-free versions of Freescale products have the functionality
Freescale Semiconductor Japan Ltd. and electrical characteristics as their non-RoHS-compliant and/or non-Pb-free
Headquarters counterparts. For further information, see http://www.freescale.com or contact your
ARCO Tower 15F Freescale sales representative.
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan For information on Freescales Environmental Products program, go to
0120 191014 or +81 3 5437 9125 http://www.freescale.com/epp.
support.japan@freescale.com
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
Asia/Pacific: All other product or service names are the property of their respective owners.
Freescale Semiconductor China Ltd.
Exchange Building 23F Freescale Semiconductor, Inc. 2008-2009. All rights reserved.
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
support.asia@freescale.com