下载
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
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
strong analog capabilities, a complete set
of serial modules, a temperature sensor and
robust memory options.
Data Sheets
MC9S08QG8 Data Sheet for QG8/QG4
8-bit Microcontrollers
8-bit Microcontrollers
MC9S08QG8/4
Fact Sheet
4/8 KB Flash
On-Chip ICE (DBG)
256/512B RAM
BDC
LVI
8-ch., 10-bit ADC
COP
SCI
I
2
C
SPI
HCS08 CPU
Int/Ext Osc.
8-bit Modulo Timer
w/Prescaler
Internal Clock
Source w/ FLL
Up to 13 GPIO
Temperature Sensor Analog Comparator
2-ch., 16-bit Timer
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 in-
line 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
• 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
Flexible Clock Options
• 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/pull-
downs virtually eliminate external glue logic when
interfacing to simple keypads
MC9S08QG8/4 Block Diagram