Freescale Semiconductor Data Sheet: Technical Data Document Number: MC9S08QE32 Rev. 1, 6/2008 MC9S08QE32 Series MC9S08QE32 Covers: MC9S08QE32 and MC9S08QE16 48-QFN Case 1314 7 mm2 44-LQFP Case 824D 32-LQFP Case 873A 7 mm2 28-SOIC Case 751F Features • 8-Bit HCS08 Central Processor Unit (CPU) – Up to 50.33 MHz HCS08 CPU at 3.6 V to 2.4 V, 40 MHz CPU at 2.4 V to 2.1 V and 20 MHz CPU at 2.1 V to 1.8 V across temperature range of –40°C to 85°C – 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 very low power stop modes – Reduced power wait mode – Peripheral clock enable register can disable clocks to unused modules, thereby reducing currents; allows clocks to remain enabled to specific peripherals in stop3 mode. – Very low power external oscillator that can be used in run, wait, and stop modes to provide accurate clock source to real time counter. – 6 μs typical wake up time from stop3 mode • Clock Source Options – Oscillator (XOSCVLP) — 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) — Internal clock source module containing a frequency-locked-loop (FLL) controlled by internal or external reference; precision trimming of internal reference allows 0.2% resolution and 2% deviation over temperature and voltage; supports CPU frequencies from 4kHz 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 warning with interrupt. – 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 – Breakpoint capability to allow single breakpoint setting during in-circuit debugging (plus three breakpoints in on-chip debug module) – On-chip in-circuit emulator (ICE) debug module containing three 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 • Peripherals – ADC — 10-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 serial communications interface modules with optional 13-bit break. Full duplex non-return to zero (NRZ); LIN master extended break generation; LIN slave extended break detection; wake up on active edge. – SPI— One serial peripheral interface; full-duplex or single-wire bidirectional; double-buffered transmit and receive; master or slave mode; MSB-first or LSB-first shifting – IIC — One IIC; 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 (TPM3) and two 3-channel (TPM1 and TPM2); selectable input capture, output compare, or buffered edge- or center-aligned PWM on each channel; – RTC — (Real-time counter) 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; runs in all MCU modes • Input/Output – 40 GPIOs, including 1 output-only pin and 1 input-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. • Package Options – 48-pin QFN, 44-pin LQFP, 32-pin LQFP, 28-pin SOIC 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. All rights reserved. Table of Contents 1 2 3 MCU Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . 8 3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 Parameter Classification . . . . . . . . . . . . . . . . . . . 9 3.3 Absolute Maximum Ratings. . . . . . . . . . . . . . . . . 9 3.4 Thermal Characteristics. . . . . . . . . . . . . . . . . . . 10 3.5 ESD Protection and Latch-Up Immunity . . . . . . 11 3.6 DC Characteristics. . . . . . . . . . . . . . . . . . . . . . . 12 3.7 Supply Current Characteristics . . . . . . . . . . . . . 15 3.8 External Oscillator (XOSCVLP) Characteristics 16 3.9 Internal Clock Source (ICS) Characteristics . . . 18 3.10 AC Characteristics. . . . . . . . . . . . . . . . . . . . . . . 19 3.10.1Control Timing . . . . . . . . . . . . . . . . . . . . . 20 3.10.2TPM Module Timing . . . . . . . . . . . . . . . . 21 4 5 3.10.3SPI Timing . . . . . . . . . . . . . . . . . . . . . . . .21 3.11 Analog Comparator (ACMP) Electricals . . . . . . .25 3.12 ADC Characteristics . . . . . . . . . . . . . . . . . . . . . .25 3.13 Flash Specifications . . . . . . . . . . . . . . . . . . . . . .28 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . .29 Package Information . . . . . . . . . . . . . . . . . . . . . . . . . .29 5.1 Mechanical Drawings . . . . . . . . . . . . . . . . . . . . .29 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: http://freescale.com/ The following revision history table summarizes changes contained in this document. Revision 1 Date 6/4/2008 Description of Changes Initial public released. Related Documentation Find the most current versions of all documents at: http://www.freescale.com Reference Manual (MC9S08QE32RM) Contains extensive product information including modes of operation, memory, resets and interrupts, register definition, port pins, CPU, and all module information. MC9S08QE32 MCU Series Data Sheet, Rev. 1 2 Freescale Semiconductor MCU Block Diagram 1 MCU Block Diagram The block diagram, Figure 1, shows the structure of the MC9S08QE32 MCU. BKGD/MS HCS08 CORE BDC REAL-TIME COUNTER (RTC) SCL IRQ LVD SERIAL PERIPHERAL INTERFACE MODULE(SPI) USER RAM (MC9S08QE32 = 2048 BYTES) (MC9S08QE16 = 1024 BYTES) LOW-POWER OSCILLATOR 31.25 kHz to 38.4 kHz 1 MHz to 16 MHz (XOSCVLP) VSS VDD VOLTAGE REGULATOR 3-CHANNEL TIMER/PWM MODULE (TPM1) 3-CHANNEL TIMER/PWM MODULE (TPM2) XTAL VSSAD VDDAD VDDAD VREFL VREFH RxD2 TxD2 SS MISO MOSI SPSCK PTB7/SCL/EXTAL PTB6/SDA/XTAL PTB5/TPM1CH1/SS PTB2/KBI1P6/SPSCK/ADP6 PTB0/KBI1P4/RxD1/ADP4 PTC7/TxD2/ACMP2PTC6/RxD2/ACMP2+ TPM1CH2-TPM1CH0 TPM2CH2-TPM2CH0 PTB3/KBI1P7/MOSI/ADP7 PTB1/KBI1P5/TxD1/ADP5 TPM1CLK TPM2CLK PTB4/TPM2CH1/MISO PTC5/TPM3CH5/ACMP2O PTC4/TPM3CH4 PTC3/TPM3CH3 PTC2/TPM3CH2 EXTAL VSSAD VSSAD/VREFL VDDAD/VREFH RxD1 TxD1 SERIAL COMMUNICATIONS INTERFACE MODULE(SCI2) USER FLASH (MC9S08QE32 = 32768 BYTES) (MC9S08QE16 = 16384 BYTES) 50.33 MHz INTERNAL CLOCK SOURCE (ICS) SERIAL COMMUNICATIONS INTERFACE MODULE(SCI1) PORT B COP SDA TPM3CLK 6-CHANNEL TIMER/PWM MODULE (TPM3) TPM3CH5-TPM3CH0 ANALOG COMPARATOR (ACMP1) ACMP1O ACMP1– ACMP1+ ANALOG COMPARATOR (ACMP2) ACMP2O ACMP2– ACMP2+ 10-CHANNEL, 12-BIT ANALOG-TO-DIGITAL CONVERTER (ADC12) ADP9-ADP0 KEYBOARD INTERRUPT MODULE (KBI1) KBI1P7-KBI1P0 KEYBOARD INTERRUPT MODULE (KBI2) KBI2P7-KBI2P0 PTC1/TPM3CH1 PTC0/TPM3CH0 PTD7/KBI2P7 PTD6/KBI2P6 PTD5/KBI2P5 PORT D IRQ RESETS AND INTERRUPTS MODES OF OPERATION POWER MANAGEMENT IIC MODULE (IIC) PORT C HCS08 SYSTEM CONTROL PTD4/KBI2P4 PTD3/KBI2P3 PTD2/KBI2P2 PTD1/KBI2P1 PTD0/KBI2P0 PTE7/TPM3CLK PTE6 PTE5 PORT E CPU PORT A DEBUG MODULE (DBG) PTA7/TPM2CH2/ADP9 PTA6/TPM1CH2/ADP8 PTA5/IRQ/TPM1CLK/RESET PTA4/ACMP1O/BKGD/MS PTA3/KBI1P3/SCL/ADP3 PTA2/KBI1P2/SDA/ADP2 PTA1/KBI1P1/TPM2CH0/ADP1/ACMP1– PTA0/KBI1P0/TPM1CH0/ADP0/ACMP1+ PTE4 PTE3/SS PTE2/MISO PTE1/MOSI pins not available on 28-pin packages PTE0/TPM2CLK/SPSCK pins not available on 28-pin or 32-pin packages pins not available on 28-pin, 32-pin, or 44-pin packages Notes: When PTA5 is configured as RESET, pin becomes bi-directional with output being open-drain drive containing an internal pull-up device. When PTA4 is configured as BKGD, pin becomes bi-directional. For the 28-pin packages: VSSAD/VREFL and VDDAD/VREFH are double bonded to VSS and VDD respectively. The 48-pin package is the only package with the option of having the SPI pins (SS, MISO, MOSI, and SPSCK) available on PTE3-0 pins. Figure 1. MC9S08QE32 Series Block Diagram MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 3 Pin Assignments 2 Pin Assignments PTA1/KBI1P1/TPM2CH0/AD 37 PTA1/KBI1P1/TPM2CH0/ADP1/ACMP1– 38 PTA0/KBI1P0/TPM1CH0/ADP0/ACMP1+ 39 PTC7/TxD2/ACMP2- 40 PTC6/RxD2/ACMP2+ 41 PTE3/SS 42 PTE2/MISO 43 PTE1/MOSI 44 PTE0/TPM2CLK/SPSCK 45 PTC5/TPM3CH5/ACMP2O 46 PTC4/TPM3CH4 47 PTA5/IRQ/TPM1CLK/RESET 48 PTA4/ACMP1O/BKGD/MS This section shows the pin assignments for the MC9S08QE32 Series devices. PTD1/KBI2P1 1 36 PTA2/KBI1P2/SDA/ADP2 PTD0/KBI2P0 2 35 PTA3/KBI1P3/SCL/ADP3 PTE7/TPM3CLK 3 34 PTD2/KBI2P2 VDD 4 33 PTD3/KBI2P3 VDDAD 5 32 PTD4/KBI2P4 VREFH 6 31 VSS VREFL 7 30 VDD VSSAD 8 29 PTE4 VSS 9 28 PTA6/TPM1CH2/ADP8 PTB7/SCL/EXTAL 10 27 PTA7/TPM2CH2/ADP9 PTB2/KBI1P6/SPSCK/ADP6 24 PTB3/KBI1P7/MOSI/ADP7 23 PTC0/TPM3CH0 22 PTC1/TPM3CH1 21 PTD5/KBI2P5 20 PTD6/KBI2P6 19 PTD7/KBI2P7 18 PTC2/TPM3CH2 17 PTC3/TPM3CH3 16 PTB4/TPM2CH1/MISO 15 25 PTB1/KBI1P5/TxD1/ADP5 PTB5/TPM1CH1/SS 14 26 PTB0/KBI1P4/RxD1/ADP4 PTE6 12 PTE5 13 PTB6/SDA/XTAL 11 Pins in bold are lost in the next lower pin count package. Figure 2-2. 48-Pin QFN MC9S08QE32 MCU Series Data Sheet, Rev. 1 4 Freescale Semiconductor PTA4/ACMP1O/BKGD/MS PTA5/IRQ/TPM1CLK/RESET PTC4/TPM3CH4 PTC5/TPM3CH5/ACMP2O PTE0/TPM2CLK PTE1 PTE2 PTC6/RxD2/ACMP2+ PTC7/TxD2/ACMP2- PTA0/KBI1P0/TPM1CH0/ADP0/ACMP PTA1/KBI1P1/TPM2CH0/ADP1/ACMP 44 43 42 41 40 39 38 37 36 35 34 Pin Assignments 7 27 VDD VSSAD 8 26 PTA6/TPM1CH2/ADP8 VSS 9 25 PTA7/TPM2CH2/ADP9 10 24 PTB0/KBI1P4/RxD1/ADP4 23 PTB1/KBI1P5/TxD1/ADP5 PTB7/SCL/EXTAL PTB6/SDA/XTAL 11 22 VREFL PTB2/KBI1P6/SPSCK/ADP6 VSS 21 28 PTB3/KBI1P7/MOSI/ADP7 6 20 VREFH PTC0/TPM3CH0 PTD4/KBI2P4 19 29 PTC1/TPM3CH1 5 18 VDDAD PTD5/KBI2P5 PTD3/KBI2P3 17 30 PTD6/KBI2P6 4 16 VDD PTD7/KBI2P7 PTD2/KBI2P2 15 31 PTC2/TPM3CH2 3 14 PTE7/TPM3CLK PTC3/TPM3CH3 PTA3/KBI1P3/SCL/ADP3 13 32 PTB4/TPM2CH1/MISO 2 PTD0/KBI2P0 12 PTA2/KBI1P2/SDA/ADP2 1 PTB5/TPM1CH1/SS 33 PTD1/KBI2P1 Pins in bold are lost in the next lower pin count package. Figure 2-3. 44-pin LQFP MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 5 PTC5/TPM3CH5/ACMP2O PTC6/RxD2/ACMP2+ PTC7/TxD2/ACMP2- PTA0/KBI1P0/TPM1CH0/ADP0/ACMP1+ PTA1/KBI1P1/TPM2CH0/ADP1/ACMP1– PTD0/KBI2P0 PTC4/TPM3CH4 1 PTA5/IRQ/TPM1CLK/RESET PTD1/KBI2P1 PTA4/ACMP1O/BKGD/MS Pin Assignments 32 31 30 29 28 27 26 25 4 21 VSSAD/VREFL 5 20 PTA6/TPM1CH2/ADP8 VSS 6 19 PTA7/TPM2CH2/ADP9 PTB7/SCL/EXTAL 7 18 PTB0/KBIP4/RxD1/ADP4 PTB6/SDA/XTAL 8 17 PTB1/KBIP5/TxD1/ADP5 9 10 11 12 13 14 15 16 PTB2/KBI1P6/SPSCK/ADP6 PTD2/KBI2P2 PTB3/KBI1P7/MOSI/ADP7 22 VDDAD/VREFH PTC0/TPM3CH0 3 PTC1/TPM3CH1 PTA3/KBI1P3/SCL/ADP3 VDD PTC2/TPM3CH2 23 PTC3/TPM3CH3 2 PTB4/TPM2CH1/MISO PTA2/KBI1P2/SDA/ADP2 PTB5/TPM1CH1/SS 24 PTD3/KBI2P3 Pins in bold are lost in the next lower pin count package. Figure 2-4. 32-LQFP MC9S08QE32 MCU Series Data Sheet, Rev. 1 6 Freescale Semiconductor Pin Assignments PTC5/TPM3CH5/ACMP2O 1 28 PTC6/RxD2/ACMP2+ PTC4/TPM3CH4 2 27 PTC7/TxD2/ACMP2- PTA5/IRQ/TPM1CLK/RESET 3 26 PTA0/KBI1P0/TPM1CH0/ADP0/ACMP1+ PTA4/ACMP1O/BKGD/MS 4 25 PTA1/KBI1P1/TPM2CH0/ADP1/ACMP1- VDD 5 24 PTA2/KBI1P2/SDA/ADP2 VDDAD/VREFH 6 23 PTA3/KBI1P3/SCL/ADP3 VSSAD/VREFL 7 22 PTA6/TPM1CH2/ADP8 VSS 8 21 PTA7/TPM2CH2/ADP9 PTB7/SCL/EXTAL 9 20 PTB0/KBI1P4/RxD1/ADP4 PTB6/SDA/XTAL 10 19 PTB1/KBI1P5/TxD1/ADP5 PTB5/TPM1CH1/SS 11 18 PTB2/KBI1P6/SPSCK/ADP6 PTB4/TPM2CH1/MISO 12 17 PTB3/KBI1P7/MOSI/ADP7 PTC3/TPM3CH3 13 16 PTC0/TPM3CH0 PTC2/TPM3CH2 14 15 PTC1/TPM3CH1 Figure 2-5. 28-pin SOIC Table 2-1. MC9S08QE32 Series Pin Assignment by Package and Pin Sharing Priority Pin Number Port Pin <-- Lowest Priority --> Highest Alt 1 Alt 2 Alt 3 48 44 32 28 1 1 1 — PTD1 KBI2P1 2 2 2 — PTD0 KBI2P0 3 3 — — PTE7 TPM3CLK Alt 4 4 4 3 5 VDD 5 5 4 6 VDDAD 6 6 7 7 5 7 8 8 9 9 6 8 VREFH VREFL VSSAD VSS 10 10 7 9 PTB7 SCL1 11 11 8 10 PTB6 SDA1 12 — — — PTE6 13 — — — PTE5 14 12 9 11 PTB5 TPM1CH1 SS2 15 13 10 12 PTB4 TPM2CH1 MISO2 16 14 11 13 PTC3 TPM3CH3 17 15 12 14 PTC2 TPM3CH2 18 16 — — PTD7 KBI2P7 EXTAL XTAL MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 7 Electrical Characteristics Table 2-1. MC9S08QE32 Series Pin Assignment by Package and Pin Sharing Priority (continued) Pin Number 48 44 32 28 Port Pin 19 17 — — PTD6 <-- Lowest Priority --> Highest Alt 1 Alt 2 Alt 3 Alt 4 KBI2P6 20 18 — — PTD5 KBI2P5 21 19 13 15 PTC1 TPM3CH1 22 20 14 16 PTC0 TPM3CH0 23 21 15 17 PTB3 KBI1P7 MOSI2 ADP7 ADP6 24 22 16 18 PTB2 KBI1P6 SPSCK2 25 23 17 19 PTB1 KBI1P5 TxD1 ADP5 RxD1 ADP4 26 24 18 20 PTB0 KBI1P4 27 25 19 21 PTA7 TPM2CH2 ADP9 28 26 20 22 PTA6 TPM1CH2 ADP8 29 — — — PTE4 30 27 — — VDD 31 28 — — VSS 32 29 — — PTD4 KBI2P4 33 30 21 — PTD3 KBI2P3 34 31 22 — PTD2 KBI2P2 35 32 23 23 PTA3 KBI1P3 SCL1 ADP3 ADP2 36 33 24 24 PTA2 KBI1P2 SDA1 37 34 25 25 PTA1 KBI1P1 TPM2CH0 ADP13 ACMP1-3 ADP03 ACMP1+3 38 35 26 26 PTA0 KBI1P0 TPM1CH0 39 36 27 27 PTC7 TxD2 ACMP2- 40 37 28 28 PTC6 RxD2 ACMP2+ 41 — — — PTE3 SS2 42 38 — — PTE2 MISO2 43 39 — — PTE1 MOSI2 44 40 — — PTE0 TPM2CLK SPSCK2 45 41 29 1 PTC5 TPM3CH5 46 42 30 2 PTC4 TPM3CH4 47 43 31 3 PTA5 IRQ TPM1CLK RESET 48 44 32 4 PTA4 ACMP1O BKGD ACMP2O MS 1 IIC pins, SCL and SDA can be repositioned using IICPS in SOPT2; default reset locations are PTA3 and PTA2. 2 SPI pins (SS, MISO, MOSI, and SPSCK) can be repositioned using SPIPS in SOPT2. Default locations are PTB5, PTB4,PTB3, and PTB2. 3 If ADC and ACMP1 are enabled, both modules will have access to the pin. 3 Electrical Characteristics 3.1 Introduction This section contains electrical and timing specifications for the MC9S08QE32 Series of microcontrollers available at the time of publication. MC9S08QE32 MCU Series Data Sheet, Rev. 1 8 Freescale Semiconductor Electrical Characteristics 3.2 Parameter Classification The electrical parameters shown in this supplement are guaranteed by various methods. To give the customer a better understanding the following classification is used and the parameters are tagged accordingly in the tables where appropriate: Table 2. Parameter Classifications P Those parameters are guaranteed during production testing on each individual device. C Those parameters are achieved by the design characterization by measuring a statistically relevant sample size across process variations. T Those parameters are achieved by design characterization on a small sample size from typical devices under typical conditions unless otherwise noted. All values shown in the typical column are within this category. D Those parameters are derived mainly from simulations. NOTE The classification is shown in the column labeled “C” in the parameter tables where appropriate. 3.3 Absolute Maximum Ratings Absolute maximum ratings are stress ratings only, and functional operation at the maxima is not guaranteed. Stress beyond the limits specified in Table 3 may affect device reliability or cause permanent damage to the device. For functional operating conditions, refer to the remaining tables in this section. This device contains circuitry protecting against damage due to high static voltage or electrical fields; however, it is advised that normal precautions be taken to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. Reliability of operation is enhanced if unused inputs are tied to an appropriate logic voltage level (for instance, either VSS or VDD) or the programmable pull-up resistor associated with the pin is enabled. Table 3. Absolute Maximum Ratings Rating Symbol Value Unit Supply voltage VDD –0.3 to +3.8 V Maximum current into VDD IDD 120 mA Digital input voltage VIn –0.3 to VDD + 0.3 V Instantaneous maximum current Single pin limit (applies to all port pins)1, 2, 3 ID ± 25 mA Tstg –55 to 150 °C Storage temperature range 1 Input must be current limited to the value specified. To determine the value of the required current-limiting resistor, calculate resistance values for positive (VDD) and negative (VSS) clamp voltages, then use the larger of the two resistance values. 2 All functional non-supply pins, except for PTA5 are internally clamped to V SS and VDD. MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 9 Electrical Characteristics 3 3.4 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 the clock rate is very low (which would reduce overall power consumption). Thermal Characteristics This section provides information about operating temperature range, power dissipation, and package thermal resistance. Power dissipation on I/O pins is usually small compared to the power dissipation in on-chip logic and voltage regulator circuits, and it is user-determined rather than being controlled by the MCU design. To take PI/O into account in power calculations, determine the difference between actual pin voltage and VSS or VDD and multiply by the pin current for each I/O pin. Except in cases of unusually high pin current (heavy loads), the difference between pin voltage and VSS or VDD will be very small. Table 4. Thermal Characteristics Rating Operating temperature range (packaged) Maximum junction temperature Symbol Value Unit TA TL to TH –40 to 85 °C TJM 95 °C Thermal resistance Single-layer board 48-pin QFN 44-pin LQFP 32-pin LQFP 81 θJA 28-pin SOIC 68 66 °C/W 57 Thermal resistance Four-layer board 48-pin QFN 44-pin LQFP 32-pin LQFP 26 θJA 28-pin SOIC 46 54 °C/W 42 The average chip-junction temperature (TJ) in °C can be obtained from: TJ = TA + (PD × θJA) Eqn. 1 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: MC9S08QE32 MCU Series Data Sheet, Rev. 1 10 Freescale Semiconductor Electrical Characteristics PD = K ÷ (TJ + 273°C) Eqn. 2 Solving Equation 1 and Equation 2 for K gives: K = PD × (TA + 273°C) + θJA × (PD)2 Eqn. 3 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. 3.5 ESD Protection and Latch-Up Immunity Although damage from electrostatic discharge (ESD) is much less common on these devices than on early CMOS circuits, normal handling precautions must be used to avoid exposure to static discharge. Qualification tests are performed to ensure that these devices can withstand exposure to reasonable levels of static without suffering any permanent damage. All ESD testing is in conformity with AEC-Q100 Stress Test Qualification for Automotive Grade Integrated Circuits. During the device qualification ESD stresses were performed for the human body model (HBM), the machine model (MM) and the charge device model (CDM). 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. Table 5. ESD and Latch-up Test Conditions Model Human Body Machine Latch-up Description Symbol Value Unit Series resistance R1 1500 Ω Storage capacitance C 100 pF Number of pulses per pin — 3 Series resistance R1 0 Ω Storage capacitance C 200 pF Number of pulses per pin — 3 Minimum input voltage limit –2.5 V Maximum input voltage limit 7.5 V Table 6. ESD and Latch-Up Protection Characteristics No. 1 Rating1 Symbol Min Max Unit 1 Human body model (HBM) VHBM ±2000 — V 2 Machine model (MM) VMM ±200 — V 3 Charge device model (CDM) VCDM ±500 — V 4 Latch-up current at TA = 85°C ILAT ±100 — mA Parameter is achieved by design characterization on a small sample size from typical devices under typical conditions unless otherwise noted. MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 11 Electrical Characteristics 3.6 DC Characteristics This section includes information about power supply requirements and I/O pin characteristics. Table 7. DC Characteristics Num C 1 Symbol All I/O pins, low-drive strength Output high voltage2 P All I/O pins, high-drive strength 1.8 V, ILoad = –2 mA VOH Output high D current Max total IOH for all ports P Output low voltage T All I/O pins, high-drive strength VOL C Output low current D 6 P Input high C voltage 7 P Input low C voltage 8 C 9 Input P leakage current Max total IOL for all ports IOLT all digital inputs VIH Max Unit 3.6 V — — 2.7 V, ILoad = –10 mA VDD – 0.5 2.3 V, ILoad = –6 mA VDD – 0.5 — — — — VDD – 0.5 — — — — 100 1.8 V, ILoad = 2 mA — — 0.5 2.7 V, ILoad = 10 mA — — 0.5 2.3 V, ILoad = 6 mA — — 0.5 1.8 V, ILoad = 3 mA — — 0.5 — — 100 VDD > 2.3 V 0.70 x VDD — — VDD ≤ 1.8 V 0.85 x VDD — — VDD > 2.7 V — — 0.35 x VDD VDD ≤ 1.8 V — — 0.30 x VDD 0.06 x VDD — — mV IOHT All I/O pins, low-drive strength C 5 Typical1 VDD – 0.5 1.8V, ILoad = –3 mA C 4 Min 1.8 T 3 Condition Operating Voltage C 2 Characteristic V mA V mA V all digital inputs VIL all digital inputs Vhys all input only pins (Per pin) |IIn| VIn = VDD or VSS — 5 1000 nA 10 Hi-Z (off-state) P leakage current all input/output (per pin) |IOZ| VIn = VDD or VSS — 5 1000 nA 11 Pullup, P Pulldown resistors all digital inputs, when enabled RPU, RPD 17.5 — 52.5 kΩ –0.2 — 0.2 mA –5 — 5 mA CIn — — 8 pF VRAM — 0.6 1.0 V 0.9 1.4 2.0 V 12 Input hysteresis DC injection D current 3, 4, 5 Single pin limit Total MCU limit, includes sum of all stressed pins 13 C Input Capacitance, all pins 14 C RAM retention voltage 6 IIC 15 C POR re-arm voltage VPOR 16 D POR re-arm time tPOR 17 Low-voltage detection threshold— P high range VLVDH VIN < VSS, VIN > VDD VDD falling VDD rising 10 — — μs 2.11 2.16 2.16 2.21 2.22 2.27 V MC9S08QE32 MCU Series Data Sheet, Rev. 1 12 Freescale Semiconductor Electrical Characteristics Table 7. DC Characteristics (continued) Num C 2 3 4 5 6 7 Symbol Condition Min Typical1 Max Unit 18 P Low-voltage detection threshold— low range VLVDL VDD falling VDD rising 1.80 1.88 1.82 1.90 1.91 1.99 V 19 P Low-voltage warning threshold— high range VLVWH VDD falling VDD rising 2.36 2.36 2.46 2.46 2.56 2.56 V 20 P Low-voltage warning threshold— low range VLVWL VDD falling VDD rising 2.11 2.16 2.16 2.21 2.22 2.27 V 21 C Low-voltage inhibit reset/recover hysteresis Vhys — 80 — mV 22 P Bandgap Voltage Reference7 VBG 1.15 1.17 1.18 V Typical values are measured at 25°C. Characterized, not tested As the supply voltage rises, the LVD circuit will hold the MCU in reset until the supply has risen above VLVDL. All functional non-supply pins, except for PTA5 are internally clamped to VSS and VDD. 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. 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). Maximum is highest voltage that POR is guaranteed. Factory trimmed at VDD = 3.0 V, Temp = 25°C PULLUP RESISTOR TYPICALS PULL-UP RESISTOR (kΩ) 40 85°C 25°C –40°C 35 30 25 20 1.8 2 2.2 2.4 2.6 2.8 VDD (V) 3 3.2 3.4 3.6 PULLDOWN RESISTANCE (kΩ) 1 Characteristic PULLDOWN RESISTOR TYPICALS 40 85°C 25°C –40°C 35 30 25 20 1.8 2.3 2.8 VDD (V) 3.3 3.6 Figure 6. Pullup and Pulldown Typical Resistor Values (VDD = 3.0 V) MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 13 Electrical Characteristics TYPICAL VOL VS IOL AT VDD = 3.0 V 1.2 85°C 25°C –40°C 1 0.15 VOL (V) 0.8 VOL (V) TYPICAL VOL VS VDD 0.2 0.6 0.4 0.2 0.1 85°C, IOL = 2 mA 25°C, IOL = 2 mA –40°C, IOL = 2 mA 0.05 0 0 0 5 10 IOL (mA) 15 1 20 2 3 VDD (V) 4 Figure 7. Typical Low-Side Driver (Sink) Characteristics — Low Drive (PTxDSn = 0) TYPICAL VOL VS VDD TYPICAL VOL VS IOL AT VDD = 3.0 V 1 0.4 85°C 25°C –40°C 0.8 85°C 25°C –40°C 0.3 VOL (V) VOL (V) 0.6 0.4 0.2 0.2 IOL = 10 mA IOL = 6 mA 0.1 0 IOL = 3 mA 0 0 10 20 30 1 2 3 4 VDD (V) IOL (mA) Figure 8. Typical Low-Side Driver (Sink) Characteristics — High Drive (PTxDSn = 1) TYPICAL VDD – VOH VS IOH AT VDD = 3.0 V 1.2 85°C, IOH = 2 mA 25°C, IOH = 2 mA –40°C, IOH = 2 mA 0.2 VDD – VOH (V) VDD – VOH (V) 1 TYPICAL VDD – VOH VS VDD AT SPEC IOH 0.25 85°C 25°C –40°C 0.8 0.6 0.4 0.15 0.1 0.05 0.2 0 0 0 –5 –10 IOH (mA)) –15 –20 1 2 VDD (V) 3 4 Figure 9. Typical High-Side (Source) Characteristics — Low Drive (PTxDSn = 0) MC9S08QE32 MCU Series Data Sheet, Rev. 1 14 Freescale Semiconductor Electrical Characteristics TYPICAL VDD – VOH VS VDD AT SPEC IOH 0.4 TYPICAL VDD – VOH VS IOH AT VDD = 3.0 V 0.3 85°C 25°C –40°C 0.6 VDD – VOH (V) VDD – VOH (V) 0.8 0.4 0.2 0 0 –5 –10 –15 –20 IOH (mA) 85°C 25°C –40°C –25 0.2 IOH = –10 mA IOH = –6 mA 0.1 IOH = –3 mA 0 –30 1 2 3 4 VDD (V) Figure 10. Typical High-Side (Source) Characteristics — High Drive (PTxDSn = 1) 3.7 Supply Current Characteristics This section includes information about power supply current in various operating modes. Table 8. Supply Current Characteristics Num C P T Parameter Symbol Run supply current FEI mode, all modules on 1 T Run supply current FEI mode, all modules off 2 T T 3 T Run supply current LPRS=0, all modules off Run supply current LPRS=1, all modules off, running from Flash T Run supply current LPRS=1, all modules off, running from RAM 4 T RIDD 8 MHz 5.59 — 1 MHz 1.03 — 25.165 MHz 11.5 12.3 9.5 — 8 MHz 4.6 — 1 MHz 1.0 — 152 — 115 — 3 Stop3 mode supply current No clocks active 16 kHz FBELP 16 kHz FBELP 3 mA –40 to 85 mA –40 to 85 μA –40 to 85 μA –40 to 85 μA –-40 to 85 7.3 5740 6000 4570 — 8 MHz 2000 — 1 MHz 730 — 20 MHz S2IDD C 3 25.165 MHz Stop2 mode supply current 6 C — — T P 13.75 3 Temp (°C) — WIDD T 7 20 Unit 21.9 Wait mode supply current FEI mode, all modules off 5 P 17.3 16 kHz FBILP RIDD T C Max 20 MHz RIDD T Typical1 20 MHz T C VDD (V) 25.165 MHz RIDD T Bus Freq S3IDD 3 n/a 3 0.35 7.5 n/a 2 0.25 6.5 n/a 3 0.45 15 n/a 2 0.35 13.2 μA –40 to 85 –40 to 85 μA –40 to 85 –40 to 85 MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 15 Electrical Characteristics Table 8. Supply Current Characteristics (continued) Parameter Unit 32 kHz 500 — nA IREFSTEN=1 32 kHz 70 — μA TPM PWM 100 Hz 12 — μA 15 — μA 200 — nA 8 T EREFSTEN=1 9 T 10 T 11 T 1 VDD (V) Max C Symbol SCI, SPI, or IIC Low power mode adders: Bus Freq Typical1 Num 300 bps 3 RTC using LPO 1 kHz T RTC using ICSERCLK 32 kHz 1 — μA 14 T LVD n/a 100 — μA 15 T ACMP n/a 20 — μA 12 T 13 Temp (°C) –40 to 85 Data in Typical column was characterized at 3.0 V, 25°C or is typical recommended value. 3.8 External Oscillator (XOSCVLP) Characteristics Reference Figure 11 and Figure 12 for crystal or resonator circuits. MC9S08QE32 MCU Series Data Sheet, Rev. 1 16 Freescale Semiconductor Electrical Characteristics Table 9. XOSC and ICS Specifications (Temperature Range = –40 to 85°C Ambient) Num 1 2 C Characteristic Oscillator crystal or resonator (EREFS = 1, ERCLKEN = 1) Low range (RANGE = 0) C High range (RANGE = 1), high gain (HGO = 1) High range (RANGE = 1), low power (HGO = 0) Load capacitors Low range (RANGE=0), low power (HGO=0) D Other oscillator settings 3 Feedback resistor Low range, low power (RANGE=0, HGO=0)2 D Low range, High Gain (RANGE=0, HGO=1) High range (RANGE=1, HGO=X) 4 Series resistor — Low range, low power (RANGE = 0, HGO = 0)2 Low range, high gain (RANGE = 0, HGO = 1) High range, low power (RANGE = 1, HGO = 0) D High range, high gain (RANGE = 1, HGO = 1) ≥ 8 MHz 4 MHz 1 MHz 5 6 Crystal start-up time 4 Low range, low power Low range, high power C High range, low power High range, high power D Symbol Min Typical1 Max Unit flo fhi fhi 32 1 1 — — — 38.4 16 8 kHz MHz MHz RF RS t CSTL t CSTH Square wave input clock frequency (EREFS = 0, ERCLKEN = 1) FEE mode See Note 2 See Note 3 C1,C2 fextal FBE or FBELP mode — — — — 10 1 — — — — — — — 100 0 — — — — — — 0 0 0 0 10 20 — — — — 200 400 5 15 — — — — ms 0.03125 0 — — 40 40 MHz MHz MΩ kΩ 1 Data in Typical column is characterized at 3.0 V, 25°C or is typical recommended value. Load capacitors (C1,C2), feedback resistor (RF) and series resistor (RS) are incorporated internally when RANGE=HGO=0. 3 See crystal or resonator manufacturer’s recommendation. 4 Proper PC board layout procedures must be followed to achieve specifications. 2 MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 17 Electrical Characteristics XOSCVLP EXTAL XTAL RF RS Crystal or Resonator C1 C2 Figure 11. Typical Crystal or Resonator Circuit: High Range and Low Range/High Gain XOSCVLP EXTAL XTAL Crystal or Resonator Figure 12. Typical Crystal or Resonator Circuit: Low Range/Low Power 3.9 Internal Clock Source (ICS) Characteristics Table 10. ICS Frequency Specifications (Temperature Range = –40 to 85°C Ambient) Num C Characteristic Symbol Min Typical1 Max Unit 1 C Average internal reference frequency - untrimmed fint_ut — 32.768 — kHz 2 P Average internal reference frequency - trimmed fint_t 31.25 — 39.06 kHz 3 T Internal reference start-up time tIRST — 60 100 μs 16 — 20 32 — 40 High range (DFR=10) 48 — 60 Low range (DFR=00) — 19.92 — — 39.85 — — 59.77 — Low range (DFR=00) P 4 P DCO output frequency trimmed2 P P 5 P P DCO output frequency2 Reference = 32768 Hz and DMX32 = 1 Mid range (DFR=01) Mid range (DFR=01) fdco_u fdco_DMX32 High range (DFR=10) MHz MHz 6 C Resolution of trimmed DCO output frequency at fixed voltage and temperature (using FTRIM) Δfdco_res_t — ±0.1 ±0.2 %fdco 7 C Resolution of trimmed DCO output frequency at fixed voltage and temperature (not using FTRIM) Δfdco_res_t — ±0.2 ±0.4 %fdco MC9S08QE32 MCU Series Data Sheet, Rev. 1 18 Freescale Semiconductor Electrical Characteristics Table 10. ICS Frequency Specifications (Temperature Range = –40 to 85°C Ambient) (continued) Num C Characteristic Symbol Min Typical1 Max Unit 8 C Total deviation of trimmed DCO output frequency over voltage and temperature Δfdco_t — + 0.5 –1.0 ±2 %fdco 9 C Total deviation of trimmed DCO output frequency over fixed voltage and temperature range of 0°C to 70 °C Δfdco_t — ± 0.5 ±1 %fdco 10 C FLL acquisition time 3 tAcquire — — 1 ms 11 C CJitter — 0.02 0.2 %fdco Long term jitter of DCO output clock (averaged over 2-ms interval) 4 1 Data in Typical column is characterized at 3.0 V, 25°C or is typical recommended value. The resulting bus clock frequency should not exceed the maximum specified bus clock frequency of the device. 3 This specification applies to any time the FLL reference source or reference divider is changed, trim value changed or changing from FLL disabled (FBELP, FBILP) to FLL enabled (FEI, FEE, FBE, FBI). If a crystal/resonator is being used as the reference, this specification assumes it is already running. 4 Jitter is the average deviation from the programmed frequency measured over the specified interval at maximum f Bus. Measurements are made with the device powered by filtered supplies and clocked by a stable external clock signal. Noise injected into the FLL circuitry via VDD and VSS and variation in crystal oscillator frequency increase the CJitter percentage for a given interval. 2 3.10 AC Characteristics This section describes timing characteristics for each peripheral system. 0.40% 0.20% 0.00% –0.20% DEVIATION –0.40% –0.60% –0.80% –60 –40 –20 0 20 40 60 80 100 120 140 TEMPERATURE MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 19 Electrical Characteristics 3.10.1 Control Timing Table 11. Control Timing Num C Rating Symbol Min Typical1 Max Unit Bus frequency (tcyc = 1/fBus) 1 D VDD ≤ 2.1V 2.1<VDD ≤ 2.4V VDD > 2.4Vs fBus DC — — 10 20 25.165 2 D Internal low power oscillator period tLPO 700 — 1300 μs 3 D External reset pulse width2 textrst 100 — — ns 4 D Reset low drive trstdrv 34 x tcyc — — ns 5 D BKGD/MS setup time after issuing background debug force reset to enter user or BDM modes tMSSU 500 — — ns 6 D BKGD/MS hold time after issuing background debug force reset to enter user or BDM modes 3 tMSH 100 — — μs 7 D IRQ pulse width Asynchronous path2 Synchronous path4 tILIH, tIHIL 100 1.5 x tcyc — — — — ns 8 D Keyboard interrupt pulse width Asynchronous path2 Synchronous path5 tILIH, tIHIL 100 1.5 x tcyc — — — — ns Port rise and fall time — Low output drive (PTxDS = 0) (load = 50 pF)5 Slew rate control disabled (PTxSE = 0) Slew rate control enabled (PTxSE = 1) tRise, tFall — — 8 31 — — Port rise and fall time — High output drive (PTxDS = 1) (load = 50 pF) Slew rate control disabled (PTxSE = 0) Slew rate control enabled (PTxSE = 1) tRise, tFall — — 7 24 — — — 4 — 9 10 C C Voltage regulator recovery time tVRR MHz ns ns μs 1 Typical values are based on characterization data at VDD = 3.0V, 25°C unless otherwise stated. This is the shortest pulse that is guaranteed to be recognized as a reset pin request. Shorter pulses are not guaranteed to override reset requests from internal sources. 3 To enter BDM mode following a POR, BKGD/MS must be held low during the power-up and for a hold time of t MSH after VDD rises above VLVD. 4 This is the minimum pulse width that is guaranteed to pass through the pin synchronization circuitry. Shorter pulses may or may not be recognized. In stop mode, the synchronizer is bypassed so shorter pulses can be recognized in that case. 5 Timing is shown with respect to 20% V DD and 80% VDD levels. Temperature range –40°C to 85°C. 2 textrst RESET PIN Figure 13. Reset Timing MC9S08QE32 MCU Series Data Sheet, Rev. 1 20 Freescale Semiconductor Electrical Characteristics tIHIL KBIPx IRQ/KBIPx tILIH Figure 14. IRQ/KBIPx Timing 3.10.2 TPM Module Timing Synchronizer circuits determine the shortest input pulses that can be recognized or the fastest clock that can be used as the optional external source to the timer counter. These synchronizers operate from the current bus rate clock. Table 12. TPM Input Timing No. C 1 D 2 Function Symbol Min Max Unit External clock frequency fTCLK 0 fBus/4 Hz D External clock period tTCLK 4 — tcyc 3 D External clock high time tclkh 1.5 — tcyc 4 D External clock low time tclkl 1.5 — tcyc 5 D Input capture pulse width tICPW 1.5 — tcyc tTCLK tclkh TCLK tclkl Figure 15. Timer External Clock tICPW TPMCHn TPMCHn tICPW Figure 16. Timer Input Capture Pulse 3.10.3 SPI Timing Table 13 and Figure 17 through Figure 20 describe the timing requirements for the SPI system. MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 21 Electrical Characteristics Table 13. SPI Timing 1 No. C Function Symbol Min Max Unit — D Operating frequency Master Slave fop fBus/2048 0 fBus/21 fBus/4 Hz 1 D SPSCK period Master Slave tSPSCK 2 4 2048 — tcyc tcyc 2 D Enable lead time Master Slave tLead 1/2 1 — — tSPSCK tcyc 3 D Enable lag time Master Slave tLag 1/2 1 — — tSPSCK tcyc 4 D Clock (SPSCK) high or low time Master Slave tWSPSCK tcyc – 30 tcyc – 30 1024 tcyc — ns ns 5 D Data setup time (inputs) Master Slave tSU 15 15 — — ns ns 6 D Data hold time (inputs) Master Slave tHI 0 25 — — ns ns 7 D Slave access time ta — 1 tcyc 8 D Slave MISO disable time tdis — 1 tcyc 9 D Data valid (after SPSCK edge) Master Slave tv — — 25 25 ns ns 10 D Data hold time (outputs) Master Slave tHO 0 0 — — ns ns 11 D Rise time Input Output tRI tRO — — tcyc – 25 25 ns ns 12 D Fall time Input Output tFI tFO — — tcyc – 25 25 ns ns Max operating frequency limited to 8MHz when input filter disabled and high output drive strength enabled. Max operating frequency limited to 5MHz when input filter enabled and high output drive strength disabled. MC9S08QE32 MCU Series Data Sheet, Rev. 1 22 Freescale Semiconductor Electrical Characteristics SS1 (OUTPUT) 11 1 2 SPSCK (CPOL = 0) (OUTPUT) 3 4 4 12 SPSCK (CPOL = 1) (OUTPUT) 5 MISO (INPUT) 6 MSB IN2 BIT 6 . . . 1 9 LSB IN 10 9 MOSI (OUTPUT) BIT 6 . . . 1 MSB OUT2 LSB OUT NOTES: 1. SS output mode (DDS7 = 1, SSOE = 1). 2. LSBF = 0. For LSBF = 1, bit order is LSB, bit 1, ..., bit 6, MSB. Figure 17. SPI Master Timing (CPHA = 0) SS(1) (OUTPUT) 1 2 12 11 11 12 3 SPSCK (CPOL = 0) (OUTPUT) 4 4 SPSCK (CPOL = 1) (OUTPUT) 5 MISO (INPUT) 6 MSB IN(2) LSB IN 10 9 MOSI (OUTPUT) PORT DATA BIT 6 . . . 1 MASTER MSB OUT(2) BIT 6 . . . 1 MASTER LSB OUT PORT DATA NOTES: 1. SS output mode (DDS7 = 1, SSOE = 1). 2. LSBF = 0. For LSBF = 1, bit order is LSB, bit 1, ..., bit 6, MSB. Figure 18. SPI Master Timing (CPHA =1) MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 23 Electrical Characteristics SS (INPUT) 1 12 11 11 12 3 SPSCK (CPOL = 0) (INPUT) 2 4 4 SPSCK (CPOL = 1) (INPUT) 8 7 MISO (OUTPUT) MSB OUT SLAVE BIT 6 . . . 1 SLAVE LSB OUT SEE NOTE 6 5 MOSI (INPUT) 10 10 9 BIT 6 . . . 1 MSB IN LSB IN NOTE: 1. Not defined but normally MSB of character just received Figure 19. SPI Slave Timing (CPHA = 0) SS (INPUT) 1 3 2 12 11 11 12 SPSCK (CPOL = 0) (INPUT) 4 4 SPSCK (CPOL = 1) (INPUT) 10 9 MISO (OUTPUT) SEE NOTE 7 MOSI (INPUT) SLAVE MSB OUT 5 BIT 6 . . . 1 8 SLAVE LSB OUT 6 MSB IN BIT 6 . . . 1 LSB IN NOTE: 1. Not defined but normally LSB of character just received Figure 20. SPI Slave Timing (CPHA = 1) MC9S08QE32 MCU Series Data Sheet, Rev. 1 24 Freescale Semiconductor Electrical Characteristics 3.11 Analog Comparator (ACMP) Electricals Table 14. Analog Comparator Electrical Specifications C Characteristic Symbol Min Typical Max Unit VDD 1.8 — 3.6 V D Supply voltage P Supply current (active) IDDAC — 20 35 μA D Analog input voltage VAIN VSS – 0.3 — VDD V P Analog input offset voltage VAIO 20 40 mV C Analog comparator hysteresis VH 3.0 9.0 15.0 mV P Analog input leakage current IALKG — — 1.0 μA C Analog comparator initialization delay tAINIT — — 1.0 μs 3.12 ADC Characteristics Table 15. 12-bit ADC Operating Conditions C Characteristic D Supply voltage Symbol Min Typical1 Max Unit VDDAD 1.8 — 3.6 V Delta to VDD (VDD-VDDAD)2 ΔVDDAD –100 0 100 mV VSS (VSS-VSSAD)2 ΔVSSAD –100 0 100 mV Conditions Absolute D Ground voltage Delta to D Ref Voltage High VREFH 1.8 VDDAD VDDAD V D Input Voltage VADIN VREFL — VREFH V C Input Capacitance CADIN — 4.5 5.5 pF C Input Resistance RADIN — 5 7 kΩ C Analog Source Resistance — — — — 2 5 12 bit mode fADCK > 4 MHz fADCK < 4 MHz 10 bit mode fADCK > 4 MHz fADCK < 4 MHz RAS 8 bit mode (all valid fADCK) D ADC Conversion Clock Freq. High Speed (ADLPC=0) Low Power (ADLPC=1) fADCK kΩ — — — — 5 10 — — 10 0.4 — 8.0 0.4 — 4.0 Comment External to MCU MHz Typical values assume VDDAD = 3.0 V, Temp = 25 °C, fADCK=1.0 MHz unless otherwise state. Typical values are for reference only and are not tested in production. 2 DC potential difference. 1 MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 25 Electrical Characteristics SIMPLIFIED INPUT PIN EQUIVALENT CIRCUIT ZADIN SIMPLIFIED CHANNEL SELECT CIRCUIT Pad leakage due to input protection ZAS RAS ADC SAR ENGINE RADIN + VADIN VAS – CAS + – RADIN INPUT PIN RADIN INPUT PIN RADIN INPUT PIN CADIN Figure 21. ADC Input Impedance Equivalency Diagram Table 16. 12-bit ADC Characteristics (VREFH = VDDAD, VREFL = VSSAD) Symbol Min Typical1 Max Unit T Supply Current ADLPC=1 ADLSMP=1 ADCO=1 IDDAD — 120 — μA T Supply Current ADLPC=1 ADLSMP=0 ADCO=1 IDDAD — 202 — μA T Supply Current ADLPC=0 ADLSMP=1 ADCO=1 IDDAD — 288 — μA P Supply Current ADLPC=0 ADLSMP=0 ADCO=1 IDDAD — 0.532 1 mA 2 3.3 5 C Characteristic P P ADC Asynchronous Clock Source Conditions High Speed (ADLPC=0) Low Power (ADLPC=1) fADACK MHz 1.25 2 3.3 Comment tADACK = 1/fADACK MC9S08QE32 MCU Series Data Sheet, Rev. 1 26 Freescale Semiconductor Electrical Characteristics Table 16. 12-bit ADC Characteristics (VREFH = VDDAD, VREFL = VSSAD) C Characteristic Conditions P Conversion Time (Including sample time) Short Sample (ADLSMP=0) C P Long Sample (ADLSMP=1) C P T Long Sample (ADLSMP=1) Total Unadjusted Error T P tADC Short Sample (ADLSMP=0) Sample Time T Symbol Differential Non-Linearity tADS Typical1 Max — 20 — — 40 — — 3.5 — — 23.5 — — ±3.0 — — ±1 ±2.5 8 bit mode — ±0.5 ±1.0 12 bit mode — ±1.75 — — ±0.5 ±1.0 12 bit mode 10 bit mode ETUE 10 bit mode3 DNL T 8 bit mode3 — ±0.3 ±0.5 T 12 bit mode — ±1.5 — — ±0.5 ±1.0 8 bit mode — ±0.3 ±0.5 12 bit mode — ±1.5 — — ±0.5 ±1.5 8 bit mode — ±0.5 ±0.5 12 bit mode — ±1.0 — — ±0.5 ±1 8 bit mode — ±0.5 ±0.5 12 bit mode — –1 to 0 — — — ±0.5 8 bit mode — — ±0.5 12 bit mode — ±2 — — ±0.2 ±4 — ±0.1 ±1.2 — 1.646 — — 1.769 — — 701.2 — T Integral Non-Linearity T T P Zero-Scale Error T T P Full-Scale Error T D D Quantization Error Input Leakage Error INL 10 bit mode EZS 10 bit mode EFS 10 bit mode 10 bit mode EQ 10 bit mode EIL 8 bit mode D D 1 Min Temp Sensor Slope Temp Sensor Voltage -40°C to 25°C m 25°C to 85°C 25°C VTEMP25 Unit ADCK cycles ADCK cycles LSB2 Comment See ADC chapter in the QE32 Series MCU Reference Manual for conversion time variances Includes quantization LSB2 LSB2 LSB2 VADIN = VSSAD LSB2 VADIN = VDDAD LSB2 LSB2 Pad leakage4 * RAS mV/°C mV Typical values assume VDDAD = 3.0 V, Temp = 25 °C, fADCK=1.0 MHz unless otherwise stated. Typical values are for reference only and are not tested in production. MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 27 Electrical Characteristics 2 1 LSB = (VREFH – VREFL)/2N Monotonicity and No-Missing-Codes guaranteed in 10 bit and 8 bit modes 4 Based on input pad leakage current. Refer to pad electricals. 3 3.13 Flash Specifications This section provides details about program/erase times and program-erase endurance for flash memory. 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 MC9S08QE32 Series Reference Manual Chapter 4 Memory. Table 17. Flash Characteristics C Characteristic Symbol Min Typical Max Unit D Supply voltage for program/erase –40°C to 85°C Vprog/erase 1.8 — 3.6 V D Supply voltage for read operation VRead 1.8 — 3.6 V fFCLK 150 — 200 kHz tFcyc 5 — 6.67 μs frequency1 D Internal FCLK D Internal FCLK period (1/FCLK) P P P P Byte program time (random Byte program time (burst location)(2) mode)(2) tprog 9 tFcyc tBurst 4 tFcyc Page erase time2 tPage 4000 tFcyc Mass erase time(2) tMass 20,000 tFcyc Byte program Page erase current3 current3 RIDDBP — 4 — mA RIDDPE — 6 — mA 10,000 — 100,000 — — cycles 15 100 — years endurance4 C Program/erase TL to TH = –40°C to 85°C T = 25°C C Data retention5 tD_ret 1 The frequency of this clock is controlled by software setting. These values are hardware state machine controlled. User code does not need to count cycles. This information is supplied for calculating approximate time to program and erase. 3 The program and erase currents are additional to the standard run I . These values are measured at room temperatures DD with VDD = 3.0 V, bus frequency = 4.0 MHz. 4 Typical endurance for flash was evaluated for this product family on the 9S12Dx64. For additional information on how Freescale defines typical endurance, please refer to Engineering Bulletin EB619, Typical Endurance for Nonvolatile Memory. 5 Typical data retention values are based on intrinsic capability of the technology measured at high temperature and de-rated to 25°C using the Arrhenius equation. For additional information on how Freescale defines typical data retention, please refer to Engineering Bulletin EB618, Typical Data Retention for Nonvolatile Memory. 2 MC9S08QE32 MCU Series Data Sheet, Rev. 1 28 Freescale Semiconductor Ordering Information 4 Ordering Information This section contains ordering information for Device Numbering System Example of the device numbering system: MC 9 S08 QE 32 C XX Status (MC = Fully Qualified) Package designator (see Table 18) Temperature range (C = –40°C to 85°C) Memory (9 = Flash-based) Core Approximate flash size in kbytes Family 5 Package Information Table 18. Package Descriptions Pin Count 5.1 Package Type Abbreviation Designator Case No. Document No. 48 Quad Flat No-Leads QFN FT 1314 98ARH99048A 44 Low Quad Flat Package LQFP LD 824D 98ASS23225W 32 Low Quad Flat Package LQFP LC 873A 98ASH70029A 28 Small Outline Integrated Circuit SOIC WL 751F 98ASB42345B Mechanical Drawings The following pages are mechanical drawings for the packages described in Table 18. For the latest available drawings please visit our web site (http://www.freescale.com) and enter the package’s document number into the keyword search box. MC9S08QE32 MCU Series Data Sheet, Rev. 1 Freescale Semiconductor 29 How to Reach Us: Home Page: www.freescale.com Web Support: http://www.freescale.com/support USA/Europe or Locations Not Listed: Freescale Semiconductor, Inc. Technical Information Center, EL516 2100 East Elliot Road Tempe, Arizona 85284 1-800-521-6274 or +1-480-768-2130 www.freescale.com/support Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) www.freescale.com/support Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064 Japan 0120 191014 or +81 3 5437 9125 [email protected] Asia/Pacific: Freescale Semiconductor China Ltd. Exchange Building 23F No. 118 Jianguo Road Chaoyang District Beijing 100022 China +86 10 5879 8000 [email protected] For Literature Requests Only: Freescale Semiconductor Literature Distribution Center P.O. Box 5405 Denver, Colorado 80217 1-800-441-2447 or +1-303-675-2140 Fax: +1-303-675-2150 [email protected] Document Number: MC9S08QE32 Rev. 1 6/2008 Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or 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 product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals”, must be validated for each customer application by customer’s technical experts. Freescale Semiconductor does not convey any license 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 surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. RoHS-compliant and/or Pb-free versions of Freescale products have the functionality and electrical characteristics as their non-RoHS-compliant and/or non-Pb-free counterparts. For further information, see http://www.freescale.com or contact your Freescale sales representative. For information on Freescale’s Environmental Products program, go to http://www.freescale.com/epp. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2008. All rights reserved.