MC9S08SF4
MC9S08SF4
MC9S08SF4
MC9S08SF4 Series 20-Pin TSSOP
Case 948E
16-Pin TSSOP
Case 948F
Features • Peripherals
• 8-Bit S08 Central Processor Unit (CPU) – IPC — Prioritize interrupt sources besides inherent
– Up to 40 MHz CPU at 2.7 V to 5.5 V across temperature CPU interrupt table; support up to 32 interrupt sources
range of –40 C to 125 C and up to 4-level preemptive interrupt nesting
– HC08 instruction set with added BGND instruction – ADC — 8-channel, 10-bit resolution; 2.5 s conversion
– Support for up to 32 interrupt/reset sources time; automatic compare function; temperature sensor;
• On-Chip Memory internal bandgap reference channel; operation in stop;
– 4 KB flash read/program/erase over full operating fully functional from 2.7 V to 5.5 V
voltage and temperature – TPM — One 40 MHz 6-channel and one 40 MHz
– 128-byte random-access memory (RAM) 1-channel timer/pulse-width modulators (TPM)
– Security circuitry to prevent unauthorized access to modules; selectable input capture, output compare, or
RAM and flash contents buffered edge- or center-aligned PWM on each channel
• Power-Saving Modes – MTIM16 — Two 16-bit modulo timers
– Two low power stop modes; reduced power wait mode – PWT — Two 16-bit pulse width timers (PWT);
– Allows clocks to remain enabled to specific peripherals selectable driving clock, positive/negative/period
in stop3 mode capture
• Clock Source Options – PRACMP — Two programmable reference analog
– Internal Clock Source (ICS) — Internal clock source comparators with eight optional inputs for both positive
module containing a frequency-locked-loop (FLL) and negative inputs; 32-level internal reference voltages
controlled by an internal or external reference; precision scaled by selectable reference inputs
trimming of internal reference allows 0.2% resolution – IIC — Inter-integrated circuit bus module capable of
and 1% deviation over 0–70 C and voltage, 2% operation up to 100 kbps with maximum bus loading;
deviation over –40–85 C and voltage, or 3% deviation multi-master operation; programmable slave address;
over –40–125 C and voltage; supporting bus interrupt-driven byte-by-byte data transfer; broadcast
frequencies up to 20 MHz mode; 10-bit addressing
• System Protection – KBI — 4-pin keyboard interrupt module with software
– Watchdog computer operating properly (COP) reset selectable polarity on edge or edge/level modes
with option to run from dedicated 1 kHz internal clock – FDS — Shut down output pin upon fault detection; the
source or bus clock fault sources can be optional enabled separately; the
– Low-voltage detection with reset or interrupt; selectable output pin can be configured as output 1,0 and high
trip points impedance when a fault occurs based on module
– Illegal opcode detection with reset configuration
– Illegal address detection with reset • Input/Output
– Flash block protection – 18 GPIOs including one input-only pin and one
• Development Support output-only pin
– Single-wire background debug interface – Hysteresis and configurable pullup device on all input
– Breakpoint capability to allow single breakpoint setting pins; schmitt trigger on PWT input pins; configurable
during in-circuit debugging (plus two more breakpoints) slew rate and drive strength on all output pins.
– On-chip in-circuit emulator (ICE) debug module • Package Options
containing two comparators and nine trigger modes – 16-pin TSSOP
– 20-pin TSSOP
This document contains information on a product under development. Freescale reserves the
right to change or discontinue this product without notice.
© Freescale Semiconductor, Inc., 2009-2011. All rights reserved.
Table of Contents
1 MCU Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.11 PRACMP Characteristics . . . . . . . . . . . . . . . . . .21
2 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.12 Flash Specifications . . . . . . . . . . . . . . . . . . . . . .22
3 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . 5 4 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . .23
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 Package Information . . . . . . . . . . . . . . . . . . . . . . . . . .23
3.2 Parameter Classification . . . . . . . . . . . . . . . . . . . 5 5.1 Mechanical Drawings . . . . . . . . . . . . . . . . . . . . .23
3.3 Absolute Maximum Ratings. . . . . . . . . . . . . . . . . 5
3.4 Thermal Characteristics. . . . . . . . . . . . . . . . . . . . 6
3.5 ESD Protection and Latch-Up Immunity . . . . . . . 7
3.6 DC Characteristics. . . . . . . . . . . . . . . . . . . . . . . . 8
3.7 Supply Current Characteristics . . . . . . . . . . . . . 14
3.8 ICS Characteristics . . . . . . . . . . . . . . . . . . . . . . 16
3.9 AC Characteristics. . . . . . . . . . . . . . . . . . . . . . . 17
3.9.1 Control Timing . . . . . . . . . . . . . . . . . . . . . 18
3.9.2 Timer/PWM (TPM) Module Timing . . . . . 19
3.10 ADC Characteristics . . . . . . . . . . . . . . . . . . . . . 20
Revision History
The following revision history table summarizes changes contained in this document.
Related Documentation
Reference Manual (MC9S08SF4RM)
Contains extensive product information including modes of operation, memory,
resets and interrupts, register definition, port pins, CPU, and all module information.
PORT A
PTA3/KBI3/TPM1C1/FDSOUT1
4-PIN KEYBOARD KBI[3:0]
CPU BDC INTERRUPT (KBI) PTA4/TPM1C2/FDSOUT2
TPM1C[5:0] PTA5/TPM1C3/FDSOUT3
6-CH TIMER/PWM
HCS08 SYSTEM CONTROL MODULE (TPM1) TCLK
PTA6/TPM1C4/FDSOUT4
RESETS AND INTERRUPTS RESET
MODES OF OPERATION IRQ PTA7/TPM1C5/FDSOUT5
POWER MANAGEMENT
PORT B
PULSE WIDTH TIMER PTB3/ACMP3/ADC2
TCLK
(PWT1)
USER RAM PTB4/ACMP2/ADC3
128 BYTES PULSE WIDTH TIMER PWTI2
(PWT2) TCLK PTB5/ACMP1/ADC4
ACMP3
ANALOG COMPARATOR ACMP2 PTB6/ACMP0/ADC5
40 MHz INTERNAL CLOCK (PRACMP1) ACMP1
SOURCE (ICS) ACMP0
PTB7/BKGD/MS
ACMP3
ANALOG COMPARATOR ACMP2
ACMP1
(PRACMP2) ACMP0
VDD
VSS VOLTAGE REGULATOR
PTC0/ADC6/SCL
INTER-INTERGRATED SCL
PTC1/ADC7/SDA
SDA
CIRCUIT (IIC)
2 Pin Assignments
This section shows the pin assignments for the MC9S08SF4 series devices.
VDD 1 16 VSS
PTA0/KBI0/TCLK/IRQ 2 15 PTB7/BKGD/MS
PTA1/KBI1/RESET 3 14 PTB6/ACMP0/ADC5
PTA2/KBI2/TPM1C0/FDSOUT0 4 13 PTB5/ACMP1/ADC4
PTA3/KBI3/TPM1C1/FDSOUT1 5 12 PTB4/ACMP2/ADC3
PTA4/TPM1C2/FDSOUT2 6 11 PTB3/ACMP3/ADC2
PTA5/TPM1C3/FDSOUT3 7 10 PTB2/PWTI2/ADC1
PTB0/TPM2C0/FDSOUT6 8 9 PTB1/PWTI1/ADC0
3 Electrical Characteristics
3.1 Introduction
This section contains electrical and timing specifications for the MC9S08SF4 series of microcontrollers
available at the time of publication.
P Those parameters are guaranteed during production testing on each individual device.
Those parameters are achieved by the design characterization by measuring a statistically relevant
C
sample size across process variations.
Those parameters are achieved by design characterization on a small sample size from typical devices
T under typical conditions unless otherwise noted. All values shown in the typical column are within this
category.
NOTE
The classification is shown in the column labeled “C” in the parameter
tables where appropriate.
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.
3.6 DC Characteristics
This section includes information about power supply requirements and I/O pin characteristics.
Table 6. DC Characteristics (Temperature Range = –40 to 125 C Ambient)
1 P Supply voltage (run, wait, and stop modes.) VDD 2.7 — 5.5 V
Low-voltage detection threshold — high range
P (VDD falling) 3.9 — 4.1 V
VLVDH
(VDD rising) 4.0 — 4.2 V
2
Low-voltage detection threshold — low range
P (VDD falling) 2.48 2.56 2.64 V
VLVDL
(VDD rising) 2.54 2.62 2.7 V
Low-voltage warning threshold — high range
P (VDD falling) 2.66 — 2.82 V
VLVWH
(VDD rising) 2.72 — 2.88 V
3
Low-voltage warning threshold — low range
P (VDD falling) 2.84 — 3.00 V
VLVWL
(VDD rising) 2.90 — 3.06 V
Low-voltage inhibit reset/recover hysteresis
4 D 5V — 100 — mV
Vhys
3V — 60 — mV
Bandgap voltage reference
5 P
Factory trimmed at VDD = 3.0 V, Temp = 25 C VBG 1.185 1.200 1.215 V
Input high voltage (2.7 V VDD 5.5 V) (all
6 P VIH 0.65 × VDD — VDD + 0.3 V
digital inputs)
1
Maximum leakage current occurs at a maximum operating temperature. The current decreases by approximately one-half for
each 8 C to 12 C in the temperature range from 50 C to 125 C.
2
Measurement condition for pull resistors: VIn = VSS for pullup and VIn = VDD for pulldown.
3
All functional non-supply pins are internally clamped to VSS and VDD.
4
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.
5
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 shunts current greater than maximum injection
current. This is 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 reduces overall power consumption).
5
T=-40C
4 T=0C
V OL(V)
T=25C
3
T=85C
2 T=105C
T=125C
1
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14
IOL(mA)
3.5
2.5 T=-40C
T=0C
V OL(V)
2
T=25C
1.5 T=85C
T=105C
1
T=125C
0.5
0
1 2 3 4 5
IOL(mA)
1.20
1.00
T=-40C
0.80
T=0C
V OL(V)
T=25C
0.60
T=85C
T=105C
0.40
T=125C
0.20
0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
IOL(mA)
1.8
1.6
1.4 T=-40C
1.2 T=0C
V OL(V)
1 T=25C
0.8 T=85C
0.6 T=85
0.4 T=125C
0.2
0
1 2 3 4 5 6 7 8 9 10 11 12 13
IOL(mA)
6.00
5.00
T=-40C
4.00 T=0C
V OH(V)
T=25C
3.00
T=85C
2.00 T=105C
T=125C
1.00
0.00
0 -1 -2 -3 -4 -5 -6 -7 -8 -9
IOH(mA)
3.5
2.5 T=-40C
T=0C
V OH(V)
2
T=25C
1.5 T=85C
T=105C
1
T=125C
0.5
0
0 -1 -2 -3
IOH(mA)
5.20
5.00
4.80
4.60 T=-40C
4.40 T=0C
V OH(V)
4.20 T=25C
4.00 T=85C
3.80 T=105C
3.60 T=125C
3.40
3.20
3.00
0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20
IOH(mA)
3.5
2.5 T=-40C
T=0C
V OH(V)
2 T=25C
1.5 T=85C
T=105C
1 T=125C
0.5
0
0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15
IOH(mA)
12.0000
10.0000
T=-40C
8.0000 T=0C
mA
6.0000 T=25C
4.0000 T=85C
T=125C
2.0000
0.0000
1 4 8 20
Bus Frequency
Figure 12. Typical Run IDD vs. Bus Freq. (FEI) (ADC off)
1
Data in the Typical column was characterized at 5.0 V, 25 C, or the 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,
DMX32 bit changed, DRS bit changed, or changing from FLL disabled (FBELP, FBILP) to FLL enabled (FEI, FEE, FBE,
and 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 the maximum
fBus. 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 a variation in the crystal oscillator frequency increases the
CJitter percentage for a given interval.
1.00%
0.50%
0.00%
-60 -40 -20 0 20 40 60 80 100 120
Deviation (%)
-0.50%
-1.00% TBD
-1.50%
-2.00%
Temperature
Figure 13. Deviation of DCO Output from Trimmed Frequency (20 MHz, 5.0 V)
3.9 AC Characteristics
This section describes AC timing characteristics for each peripheral system.
may not be recognized. In stop mode, the synchronizer is bypassed so shorter pulses can be recognized in that case.
DD and 80% VDD levels. Temperature range –40 C to 125 C.
4 Timing is shown with respect to 20% V
5 To enter BDM mode following a POR, BKGD/MS should be held low during the power-up and for a hold time of t
MSH after VDD
rises above VLVD.
textrst
RESET PIN
tIHIL
IRQ/KBIPx
IRQ/KBIPx
tILIH
tText
tclkh
TCLK
tclkl
tICPW
TPMCHn
TPMCHn
tICPW
VIn1
10 D Programmable reference generator inputs 2.7 5.0 5.5 V
(VDD50)
VIn2
11 D Programmable reference generator inputs 2.25 2.5 2.75 V
(VDD25)
to 25 C using the Arrhenius equation. For additional information on how Delta defines typical data retention, please refer to
engineering bulletin Typical Data Retention for Nonvolatile Memory (document EB618/D).
4 Ordering Information
This section contains ordering information for the device numbering system.
Example of the device numbering system:
MC 9 S08 SF 4 X XX
Status
(MC = Fully Qualified) Package designator (see Table 14)
Temperature range
Memory (M= –40 C to 125 C)
(9 = Flash-based)
(V = –40 C to 105 C)
Core (C = –40 C to 85 C)
Family Approximate flash size in kbytes
5 Package Information
Table 14. Package Descriptions
Pin Count Package Type Abbreviation Designator Case No. Document No.
20 Thin Shrink Small Outline Package TSSOP TJ 948E 98ASH70169A
16 Thin Shrink Small Outline Package TSSOP TG 948F 98ASH70247A
Web Support:
http://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] Information in this document is provided solely to enable system and
software implementers to use Freescale Semiconductor products. There are
Asia/Pacific: no express or implied copyright licenses granted hereunder to design or
Freescale Semiconductor China Ltd. fabricate any integrated circuits or integrated circuits based on the
Exchange Building 23F information in this document.
No. 118 Jianguo Road
Chaoyang District
Freescale Semiconductor reserves the right to make changes without further
Beijing 100022
notice to any products herein. Freescale Semiconductor makes no warranty,
China
representation or guarantee regarding the suitability of its products for any
+86 10 5879 8000
particular purpose, nor does Freescale Semiconductor assume any liability
[email protected]
arising out of the application or use of any product or circuit, and specifically
disclaims any and all liability, including without limitation consequential or
For Literature Requests Only:
incidental damages. “Typical” parameters that may be provided in Freescale
Freescale Semiconductor Literature Distribution Center Semiconductor data sheets and/or specifications can and do vary in different
P.O. Box 5405 applications and actual performance may vary over time. All operating
Denver, Colorado 80217 parameters, including “Typicals”, must be validated for each customer
1-800-441-2447 or +1-303-675-2140 application by customer’s technical experts. Freescale Semiconductor does
Fax: +1-303-675-2150 not convey any license under its patent rights nor the rights of others.
[email protected] 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.
MC9S08SF4
Rev. 4
9/2011