MC9S08QG8/4 - Fact Sheet

8-bit Microcontrollers
8-bit Microcontrollers
MC9S08QG8/4
Fact Sheet
Target Applications
• Wireless sensor applications including simple media access controller (SMAC)
• Watchdog coprocessors
• Small appliances
• Handheld devices
• Secure boot coprocessors
• Security systems
Overview
The MC9S08QG8/4 extends the advantages
Features
Benefits
8-bit HCS08 Central Processor Unit (CPU)
• Up to 20 MHz HCS08 CPU (10 MHz bus frequency)
for 100 ns minimum instruction time
• Offering high performance, even at low voltage
levels for battery-operated applications
• HC08 instruction set with added BGND instruction
• Backward object-code compatibility with 68HC08
and 68HC05 so existing code libraries can still be
used
• Allows for efficient, compact module coding in
assembly or C compiler
• Support for up to 32 interrupt/reset sources
• Allows for software flexibility and optimization for
real-time applications
Integrated Third-Generation Flash Memory and RAM
• Embedded flash that is in-application
reprogrammable over the full operating voltage and
temperature range with a single power supply
• Provides users a single solution for multiple
platforms or a single platform that is field
reprogrammable in virtually any environment
• Does not require additional pin or power supply for
flash programming, simplifying the interface for inline programming and allowing for more GPIO pins
• Extremely fast, byte-writable programming; as fast as
20 us/byte
• Helps reduce production programming costs
through ultra-fast programming, as well as lowering
system power consumption due to shorter writes
strong analog capabilities, a complete set
• Up to 100,000 write/erase cycles at typical voltage
and temperature (10k minimum write/erase); 100
years typical data retention (15 years minimum)
• Allows electrically erasable programmable read-only
memory (EEPROM) emulation, reducing system
costs and board real estate
of serial modules, a temperature sensor and
Flexible Clock Options
of Freescale’s HCS08 core to low pin count,
small-package, 8-bit microcontrollers. QG
devices are low voltage with on-chip in-circuit
flash memory programmable down to 1.8V,
and afford the standard features of all HCS08
MCUs including wait mode and multiple stop
modes. The functionality is completed with
robust memory options.
Data Sheets
MC9S08QG8 Data Sheet for QG8/QG4
MC9S08QG8/4 Block Diagram
HCS08 CPU
4/8 KB Flash
256/512B RAM
On-Chip ICE (DBG)
BDC
8-ch., 10-bit ADC
LVI
SCI
COP
SPI
I2C
2-ch., 16-bit Timer
Int/Ext Osc.
8-bit Modulo Timer
w/Prescaler
Internal Clock
Source w/ FLL
Up to 13 GPIO
Temperature Sensor
Analog Comparator
• Internal clock source (ICS) module containing a
frequency-locked loop (FLL) controlled by internal or
external reference
• Can eliminate the cost of all external clock
components, reduce board space and increase
system reliability
• Precision trimming of internal reference allows typical
0.1 percent resolution and +0.5 percent to -1 percent
deviation over operating temperature and voltage
• Provides one of the most accurate internal clock
sources on the market for the money
• Internal reference can be trimmed from 31.25 kHz
to 39.065 kHz, allowing for 8 MHz to 10 MHz FLL
output
• Can use trimming to adjust bus clocks for optimal
serial communication baud rates and/or timer
intervals
• Low-power oscillator module (XOSC) with software
selectable crystal or ceramic resonator range, 31.25
kHz to 38.4 kHz or 1MHz to 16 MHz, and supports
external clock source input up to 20 MHz
• 32 kHz oscillator provides low-power option for
systems requiring time-keeping functionality (i.e.,
time and date) while in low-power modes
12 Bidirectional Input/Output (I/O) Lines; One Input Only and One Output Only Line
• Outputs 10 mA each; 60 mA max for package
• High-current I/O allows direct drive of LED and
other circuits to virtually eliminate external drivers
and reduce system costs
• Software selectable pull-ups on ports when used as
input; internal pull-up on reset and interrupt request
(IRQ) pin
• Reduces customer system cost by eliminating need
for external resistors
• Software selectable slew rate control and drive
strength on ports when used as output
• Can configure ports for slower slew rate and weaker
drive to minimize noise emissions from the MCU
• 8-pin keyboard interrupt module with software
selectable polarity on edge or edge/level modes
• Keyboard scan with programmable pull-ups/pulldowns virtually eliminate external glue logic when
interfacing to simple keypads
8-bit Microcontrollers
Features
Cost-Effective Development Tools
Benefits
For more information on development tools,
Integrated Analog Peripherals
• 8-ch., 10-bit analog-to-digital converter (ADC)
• Easy interface to analog inputs, such as sensors
Automatic compare function, software programmable
for greater than/equal to or less than conditions
• Used to set conversion complete and generate interrupt only
when result matches condition
Asynchronous clock source
• Can be used to run ADC when MCU clocks are off, such as
in STOP3 low-power mode
Temperature sensor
• Calculates temperature without any external components
and saves an ADC input channel for other use
Internal bandgap reference channel
• Constant voltage source for calibrating ADC results requires
no external components
Hardware triggerable using the RTI counter
• Takes periodic measurements without CPU involvement;
can be used in STOP3 with compare function to take
measurement and wake MCU from STOP3 only when
compare level is reached
Low-power and high-speed options
• Flexible configuration to meet high-performance and
low-power requirements
• Analog comparator module (ACMP)
please refer to the Freescale Development
Tool Selector Guide (SG1011).
DEMO9S08QG8
$50*
Cost-effective demonstration board
with potentiometer, LEDs, serial port and
built-in USB-BDM cable for debugging
and programming
M68CYCLONEPRO
$499*
HC08/HCS08/HC12/HCS12 stand-alone
flash programmer or in-circuit emulator,
Option to compare to internal reference
• Requires only single pin for input signal
Option to route comparator output directly to pin
• Allows other components in system to see results of
comparator with minimal delay
Output can be optionally routed to TPM module as
input capture trigger
• Can be used for single slope ADC and resistancecapacitance (RC) time constant measurements
Two Timer Modules
• Programmable 16-bit timer/PWM module (TPM)
• One of the most flexible timer modules for the money; each
channel can be independently programmable for input
capture, output compare, buffered edge-aligned pulse width
modulation (PWM) or buffered center-aligned PWM
• 8-bit modulo timer module (MTIM) with 8-bit prescaler
• Timer overflow interrupt can be enabled to generate periodic
interrupts for time-based software loops
debugger, flash programmer; USB, serial
or Ethernet interface options
USBMULTILINKBDM
$99*
Universal HC08 in-circuit debugger and
flash programmer; USB PC interface
CWX-H08-SE
Free**
CodeWarrior® Special Edition for HC(S)08
System Protection
• Watchdog computer operating properly (COP) reset with
option to run from dedicated 1 kHz internal clock source or
bus clock
• Resets device in instance of runaway or corrupted code, and
independent clock source provides additional protection in
case of loss of clock
• Low-voltage detection with reset or interrupt
• Allows system to write/save important variables before
voltage drops too low
• Can hold device in reset until reliable voltage levels are
reapplied to the part
• Illegal opcode detection with reset
• Resets device in instance of runaway or corrupted code
• Flexible block protection
• Secures code sections so that it cannot be accidentally
corrupted by runaway code
MCUs; includes integrated development
environment (IDE), linker, debugger,
unlimited assembler, Processor Expert™
auto-code generator, full-chip simulation
and 16 KB C compiler
*Prices indicated are MSRP.
**Subject to license agreement and registration.
• Option to protect various block sizes
• Option to put bootloader code in protected space and clear
flash for reprogramming
Package Options
• Prevents unauthorized access to memory to protect a
customer’s valuable software IP
Part Number
Package
Temp. Range
MC9S08QG4CPAE
8-pin DIP
-40°C to +85°C
MC9S08QG4CDNE
8-pin SOIC-NB
-40°C to +85°C
MC9S08QG4CFQE
8-pin DFN
-40°C to +85°C
MC9S08QG4CDTE
16-pin TSSOP
-40°C to +85°C
MC9S08QG4CFFE
16-pin QFN
-40°C to +85°C
MC9S08QG8CDNE
8-pin SOIC-NB
-40°C to +85°C
MC9S08QG8CFQE
8-pin DFN
-40°C to +85°C
MC9S08QG8CPBE
16-pin DIP
-40°C to +85°C
• Serial peripheral interface module
MC9S08QG8CFFE
16-pin QFN
-40°C to +85°C
• I2C bus module
MC9S08QG8CDTE
16-pin TSSOP
-40°C to +85°C
• Security feature for flash and RAM
• Always-on power-on reset (POR) circuitry
• Significantly reduces risk of code runaway due to brownout
situations
Background Debugging System and On-Chip In-Circuit Emulation (ICE)
with Real-Time Bus Capture
• On-chip ICE
• Provides single-wire debugging and emulation interface;
eliminates need for expensive emulation tools
• Provides circuit emulation without the need for additional,
expensive development hardware
Multiple Serial Communication Options
• Serial communications interface module with option for 13-bit
break capabilities and double-buffered transmit and receive
• All serial peripherals available for use in parallel on
16-pin devices
Learn More:
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. 2007 /Document Number: MC9S08QG84FS /REV 3
For current information about Freescale
products and documentation, please visit
www.freescale.com.