NXP Semiconductors

MC9S08QG4CPAE - 8-bit HCS08 MCU, 4KB Flash, 20MHz | NXP

N.º de pieza: MC9S08QG4CPAE ✓ Activo
En stock Se envía en 1-3 días hábiles
1.8 V to 3.6 V Vdss 8-pin PDIP (CPAE) Package 20 MHz Speed 4 KB (4K x 8) Memory
Desde $1.71 USD / unidad
MOQ: 1 |
Precio actualizado: 2026-10-17
Precios por volumen
Cant. Precio unitario Total
1 $2.85 $2,85
10 $2.52 $25,20
100 $2.18 $218,00
500 $1.92 $960,00
1.000 $1.71 $1.710,00
ℹ️ Todos los precios están en USD

MC9S08QG4CPAE Descripción general

The NXP MC9S08QG4CPAE is a low-cost, high-performance 8-bit microcontroller from the S08QG family, built on the enhanced HCS08 CPU core and housed in an 8-pin PDIP (CPAE) through-hole package. It runs at up to 20 MHz, integrates 4 KB of Flash program memory and 256 B of RAM, and operates from a 1.8 V to 3.6 V supply rail. The MCU provides 6 general-purpose I/O pins, a 4-channel 10-bit ADC, an internal clock source, and a background-debug interface for in-circuit development.

An 8-bit microcontroller is a small, single-chip computer built around an 8-bit data path that integrates a CPU, non-volatile program memory (typically Flash), volatile data memory (RAM), peripherals such as timers and ADC channels, and digital I/O into one package. Within the broader taxonomy, the MC9S08QG4 belongs to the HCS08 family of 8-bit MCUs, which sits under the S08 low-power family, which in turn belongs to NXP/Freescale's legacy 8-bit microcontroller portfolio. It is typically used where BOM cost, package size, and low active power are more critical than raw compute throughput.

Key features include a background debug controller (BDC) that allows single-breakpoint in-circuit debug without an external emulator, an internal clock generator that often eliminates the need for an external crystal in cost-sensitive designs, low-power run, wait and stop modes for battery-friendly operation, and an on-chip 10-bit ADC with a 4-channel input mux suitable for slow sensor sampling. The 8-pin PDIP package is friendly for hand-soldered prototypes and hobby/learning platforms.

Architecturally, the device is implemented on a low-leakage CMOS process and uses a CISC-style HCS08 instruction set (HC08 upward-compatible with added BGND). It supports 16-bit addressing via H:X index register and offers hardware multiplier via the MUL instruction, which helps in modestly accelerating integer math routines despite the 8-bit datapath.

Typical applications include consumer appliance control, low-end touch keypads, LED controllers, battery-powered handheld sensors, and educational/learning kits. It is also commonly used as a small system-management controller or as a simple I/O expander with local intelligence in larger designs.

Designers should keep in mind that the 8-pin PDIP package exposes only 6 GPIO pins, so aggressive pin multiplexing (ADC, I2C, SCI/KBI/IRQ) is required. Plan the pin map early to avoid I/O conflicts, and reserve the PTA5/RESET pin consideration if using external reset hardware.

This page consolidates distributor pricing, true drop-in alternatives within the S08 family, and practical design guidance not found in the manufacturer datasheet alone.

Alternativas directas para MC9S08QG4CPAE — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.

Variantes de esta serie

Modelos de la misma serie compatibles directamente con MC9S08QG4CPAE (mismo factor de forma y huella) — difiere en Package, Mounting Type, ADC, Communication, I/O Pins.

NXP Semiconductors
Package: 8-pin PDIP (PDIP-8)
ADC: 10-bit, up to 8 channels
Communication: 1 x SCI/UART, 1 x SPI
Comparar con MC9S08QG4CPAE →
NXP Semiconductors
Package: 16-TSSOP
Mounting Type: Surface mount
Comparar con MC9S08QG4CPAE →

Herramienta de comparación rápida — seleccione piezas alternativas para compararlas lado a lado:

MC9S08QG8CPAE

✅ Sustitución directa
📦 PDIP-8 (CPAE)
same 8-pin PDIP, 8KB Flash vs 4KB Flash (100% larger code space, otherwise identical)

📋 Alternativa de referencia (no en el catálogo)

MC9S08QA4CPAE

✅ Sustitución directa
NXP Semiconductors
📦 PDIP-8 (CPAE)
8-bit microcontroller · S08QA · S08 / HCS08 CPU · 20 MHz · 4 KB · 8-bit · 1.8 V to 3.3 V · 8-pin PDIP, DIP-8

✓ En stock

$1.6667 / unidad

Ver hoja de datos →

MC9S08QA2CPAE

✅ Sustitución directa
NXP Semiconductors
📦 PDIP-8 (CPAE)
HCS08 (8-bit) · 20 MHz bus / 40 MHz core · 2 KB Flash (2K x 8) · 128 B · 1.8 V to 3.6 V · -40C to +85C (Industrial) · 8-pin PDIP (PDIP-8) · Through-Hole

✓ En stock

$1.55 / unidad

Ver hoja de datos →
ℹ️ 2 pieza(s) de otro encapsulado ocultas — un encapsulado diferente requiere retrabajo de la PCB y no es una sustitución directa real. Contáctenos si necesita sugerencias de otros encapsulados.

MC9S08QG4CPAE Valores máximos y características eléctricas

Core Architecture HCS08 (8-bit, enhanced HC08 core)
Maximum CPU Frequency 20 MHz
Program Memory (Flash) 4 KB (4K x 8)
RAM 256 B
Supply Voltage Range 1.8 V to 3.6 V
I/O Pins 6
ADC 10-bit, 4-channel
Encapsulado 8-pin PDIP (CPAE)
Tipo de montaje Through-Hole
Debug Interface Background Debug Controller (BDC), single breakpoint
Internal Clock Yes (ICS with FLL, often removes need for external crystal)
Timers TPM (Timer/PWM Module)
Communication SCI (UART), optional I2C(2)
Temperatura de funcionamiento -40 C to +85 C (industrial)
Estado RoHS Compliant

Configuración de pines de MC9S08QG4CPAE

DIP-8 Package Pinout Diagram DIP-8 8-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 8 2 7 3 6 4 5 DIP-8
Pin 1 PTB5/KBI1P5/TCLK/RESET — General-purpose I/O / Keyboard interrupt / Timer clock / Reset (shared)
Pin 2 PTB4/KBI1P4/ADP5 — GPIO / KBI / ADC channel 5
Pin 3 VDD — Positive supply voltage (1.8 V to 3.6 V)
Pin 4 VSS — Ground
Pin 5 PTA5/IRQ/TCLK/RESET — GPIO / External interrupt / Timer clock / Reset
Pin 6 PTA4/ADP4 — GPIO / ADC channel 4
Pin 7 PTA3/ADP3 — GPIO / ADC channel 3
Pin 8 PTA0/ADP0 — GPIO / ADC channel 0

Aplicaciones típicas

MC9S08QG4CPAE es adecuado para 7 aplicacións: Battery-powered sensor nodes, Consumer appliance control, LED lighting controllers, Remote controls / IR emitters, Educational / learning platforms, HVAC thermostat sub-controllers, Toy and hobby electronics.

🔋

Battery-powered sensor nodes

Why MC9S08QG4CPAE fits: the device's 1.8 V to 3.6 V supply range and sub-microamp stop-mode currents let it run directly from a single-cell Li-ion or 2x AA battery, while the 4-channel 10-bit ADC samples temperature, light, or other low-bandwidth sensors without an external analog front end. How it is used: the firmware wakes on ADC completion or KBI interrupt, takes a reading, and returns to stop mode; the 256-byte RAM is sufficient for sliding-window sensor averaging. Trade-off vs alternatives: the PIC12F1822 in PDIP-8 offers a more sophisticated ADC with auto-acquisition but at higher cost; the MC9S08QG4CPAE wins on BOM cost and toolchain maturity for simple sensor duty cycles.

🏭

Consumer appliance control

Why MC9S08QG4CPAE fits: its 20 MHz HCS08 core executes small control loops (PWM, sensor polling, button handling) with deterministic timing; 4 KB Flash covers typical washing-machine or microwave UI logic, and the 8-pin PDIP through-hole package supports hand-soldered low-volume assembly. How it is used: the TPM drives TRIAC or MOSFET control, KBI pins handle front-panel buttons, and SCI connects to a main board MCU. Trade-off vs alternatives: the larger QG8 (8 KB Flash) variant supports richer UI; the QG4 wins on cost when the UI is minimal.

💡

LED lighting controllers

Why MC9S08QG4CPAE fits: the TPM provides PWM channels suitable for LED dimming control, while the 6 GPIOs can drive indicator LEDs, sense a photosensor via ADC, and read a tactile button. How it is used: firmware uses the TPM PWM channel to dim a constant-current LED driver; the ADC samples a light sensor and closes a daylight-harvesting loop. Trade-off vs alternatives: the S08 core's deterministic interrupt latency simplifies zero-crossing detection versus higher-end Cortex-M0 parts.

📱

Remote controls / IR emitters

Why MC9S08QG4CPAE fits: the 8-bit core can sustain IR carrier generation via timer interrupts at low power; the 256-byte RAM holds short IR command buffers, and the 1.8 V minimum supply works directly with a single CR2032 coin cell. How it is used: KBI wakes the MCU on key press, the TPM modulates a 38 kHz carrier on a GPIO, and stop mode drops current to sub-1 uA between keystrokes. Trade-off vs alternatives: PIC12F1822 offers PWM-dedicated peripherals; the QG4 wins on NXP ecosystem familiarity.

🎓

Educational / learning platforms

Why MC9S08QG4CPAE fits: the 8-pin PDIP form factor drops directly into a breadboard and is hand-solderable, while CodeWarrior for S08 and the on-chip BDC provide a low-cost debug entry point. How it is used: instructors teach register-level GPIO, ADC, and timer programming without the toolchain overhead of ARM Cortex. Trade-off vs alternatives: PIC and AVR have larger hobby followings, but the QG4's on-chip BDC debug and free NXP tools remain attractive.

🌡️

HVAC thermostat sub-controllers

Why MC9S08QG4CPAE fits: it can read a thermistor via the 10-bit ADC, drive a relay or TRIAC via GPIO, and communicate to a main thermostat board over UART (SCI), all in a small 8-pin PDIP that fits behind the wall plate. How it is used: firmware samples temperature periodically, applies hysteresis, and toggles a heat-call relay; SCI links to the main UI MCU for setpoint updates. Trade-off vs alternatives: MCUs with more GPIO would skip external muxing; the QG4 is ideal for one-zone thermostats.

🧩

Toy and hobby electronics

Why MC9S08QG4CPAE fits: the 4 KB Flash stores complex motion sequences or sound-effect triggers, and the HCS08 core runs small motor-control loops for servo or DC-motor toys. How it is used: a 6-pin GPIO bank connects to servos, an ADC input reads a potentiometer or simple sensor, and stop mode powers the toy down between interactions. Trade-off vs alternatives: cheaper 8-bit parts exist but lack BDC debug; the QG4's on-chip debug cuts prototype iteration time significantly.

What is the operating voltage range of the MC9S08QG4CPAE?
The MC9S08QG4CPAE operates from 1.8 V to 3.6 V across its full industrial temperature range. According to the NXP S08QG family datasheet, the device includes an internal voltage regulator and on-chip POR (power-on reset) to ensure clean startup across this supply window, which is well suited to single-cell Li-ion or 2x AA battery powered designs.
How much program memory and RAM does the MC9S08QG4CPAE have?
The MC9S08QG4CPAE integrates 4 KB (4K x 8) of Flash program memory and 256 bytes of RAM. According to the NXP S08QG datasheet, the Flash supports in-application reprogramming and security-locking features, while the 256-byte RAM is sufficient for stack-based control loops and small state machines typical of sensor or appliance controllers.
What is the maximum clock speed of the MC9S08QG4CPAE?
The MC9S08QG4CPAE runs at up to 20 MHz CPU bus frequency, supplied by an internal clock source (ICS) with FLL that often eliminates the need for an external crystal. According to the NXP datasheet, this is sufficient for many control loops, simple serial command parsing, and low-rate ADC sampling in cost-sensitive designs.
Does the MC9S08QG4CPAE support in-cide in-circuit debug?
Yes. The MC9S08QG4CPAE includes an on-chip Background Debug Controller (BDC) that allows single-breakpoint in-circuit debug plus two additional breakpoints in on-chip modules, accessed via the standard 3-wire BDC interface. This removes the need for a costly external emulator for most firmware development.
How many GPIO pins does the MC9S08QG4CPAE provide?
The MC9S08QG4CPAE exposes 6 general-purpose I/O pins in its 8-pin PDIP package, since one pin is reserved for VDD and one for RESET/Vpp. According to the NXP datasheet, all six pins are multiplexed with module functions (ADC, KBI, IRQ, SCI, TPM), so designers must plan the pin map carefully to avoid peripheral conflicts.
What package does the MC9S08QG4CPAE use?
The MC9S08QG4CPAE ships in an 8-pin PDIP (Plastic Dual In-line Package), designated by the 'CPAE' suffix. According to the NXP ordering guide, this through-hole package is favored for hobby, learning, and prototype designs because it is hand-solderable and breadboard-compatible.
What is the difference between MC9S08QG4CPAE and MC9S08QG4MDTE?
The MC9S08QG4CPAE is the 8-pin PDIP through-hole variant, while the MC9S08QG4MDTE is the same 4 KB Flash die in an 8-pin TSSOP surface-mount package. According to NXP family documentation, both share the same HCS08 core, 20 MHz speed, 256 B RAM, and 10-bit ADC - the choice is purely PCB assembly technology (through-hole vs SMT).
Is the MC9S08QG4CPAE a drop-in for the MC9S08QG8CPAE?
No. The MC9S08QG4 has 4 KB of Flash while the MC9S08QG8 has 8 KB of Flash; the smaller part may lack code space for QG8 firmware. According to the NXP family datasheet, code compiled for 8 KB Flash will not fit in 4 KB Flash, so this is not a transparent drop-in - the QG4 is suitable only if your firmware size stays under 4 KB.
Is the MC9S08QG4CPAE RoHS compliant?
Yes. According to the NXP product page, the MC9S08QG4CPAE is RoHS compliant. The lead-free finish is indicated by the 'E' suffix in the package code 'CPAE', which matches NXP's Pb-free marking convention.
Where can I download the MC9S08QG4CPAE datasheet PDF?
The official datasheet is available from the NXP product page at nxp.com/part/MC9S08QG4CPAE as well as from secondary datasheet portals like alldatasheet.com and octopart.com. The document covers the entire S08QG family (QG4/QG8), including electrical characteristics, ADC, timers, and background debug details.
What is the best cross-brand drop-in replacement for the MC9S08QG4CPAE?
The Microchip PIC12F1822 or PIC16F1823 in 8-pin PDIP is the closest cross-brand functional alternative with pin-to-pin compatibility on power/ground but differing pinout for I/O. According to distributor cross-reference tools, Microchip PIC12F1822-I/P is a 20 MHz 8-bit MCU with 4 KB Flash in 8-pin PDIP - check pinout carefully before PCB reuse; a true pin-compatible same-package drop-in from another brand is rare for this low-pin-count niche part.
What is the price of the MC9S08QG4CPAE in 2026?
As of October 18, 2026, the MC9S08QG4CPAE lists at approximately USD 2.85 at qty 1 and USD 1.71 at qty 1000 through major distributors such as Mouser and DigiKey. According to distributor listings, volume pricing continues to drop modestly at 5K+ reels; lead-time is generally in stock for small quantities.
Where to buy MC9S08QG4CPAE online?
The MC9S08QG4CPAE is available for immediate purchase from authorized distributors including DigiKey (digikey.com), Mouser Electronics (mouser.com), and Avnet, as well as from NXP directly for large-volume orders. According to distributor inventory data, qty 1 to qty 1000 tubes are typically stocked; engineering samples can be requested through NXP sample programs.
What is the lead time for MC9S08QG4CPAE orders?
Lead time for the MC9S08QG4CPAE through authorized distributors such as DigiKey and Mouser is typically immediate (ships today) for small quantities in tubes, according to current distributor inventory. Bulk orders of 5K+ units may require 6 to 12 weeks from the factory. Confirm stock directly with your distributor for time-critical orders.
Is the MC9S08QG4CPAE suitable for battery-powered applications?
Yes. The MC9S08QG4CPAE includes low-power run, wait, and multiple stop modes with sub-microamp wake-up currents, plus a 1.8 V minimum supply that supports direct single-cell Li-ion or 2x AA operation. According to the NXP datasheet, combined with the 4 KB Flash and 10-bit ADC, it is a strong fit for battery-powered sensor nodes and remote controls.

Datos de referencia de ingeniería para MC9S08QG4CPAE — comparación, orientación de diseño e información de cumplimiento.

Guía de selección

Choose MC9S08QG4CPAE when you need an 8-pin PDIP through-hole HCS08 MCU with 4 KB Flash for prototype, educational, or low-volume hand-soldered builds. Choose MC9S08QG8CPAE if your firmware approaches or exceeds 4 KB Flash - same package, same core, just more memory. Choose MC9S08QG4MDTE for SMT-only assembly on a reflow PCB line (8-pin TSSOP). Choose MC9S08QA4CPAE or MC9S08QA2CPAE when battery life dominates over peripheral richness, or when code fits 2 KB Flash and you want the lowest-cost NXP 8-bit MCU in PDIP-8. All of these share the HCS08/S08QA core architecture, 1.8 V to 3.6 V supply, and 10-bit ADC, so selection is primarily about Flash size, package type, and power profile.

Comparación con alternativas

Parámetro Este producto MC9S08QG4MDTE MC9S08QG8CPAE MC9S08QG8MDTE MC9S08QA4CPAE MC9S08QA2CPAE
Brand NXP Semiconductors NXP Semiconductors NXP Semiconductors NXP Semiconductors NXP Semiconductors NXP Semiconductors
Package PDIP-8 (CPAE) TSSOP-8 (cross-package) PDIP-8 (CPAE) - same TSSOP-8 (cross-package) PDIP-8 (CPAE) - same PDIP-8 (CPAE) - same
Core HCS08 HCS08 HCS08 HCS08 S08QA S08QA
Max CPU Frequency 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
Flash Memory 4 KB 4 KB 8 KB (+100%) 8 KB (+100%) 4 KB 2 KB (-50%)
RAM 256 B 256 B 512 B 512 B 256 B 128 B
ADC 10-bit, 4-ch 10-bit, 4-ch 10-bit, 4-ch 10-bit, 4-ch 10-bit, 4-ch 10-bit, 4-ch
Supply Voltage 1.8 V to 3.6 V 1.8 V to 3.6 V 1.8 V to 3.6 V 1.8 V to 3.6 V 1.8 V to 3.6 V 1.8 V to 3.6 V
I/O Pins 6 6 6 6 6 6
Approx. Unit Price (USD) $2.85 (qty 1) ~$2.85 ~$3.20 ~$3.20 ~$2.40 ~$2.10

Diferenciadores clave

  • Smaller Flash than QG8 in the same package (frente a MC9S08QG8CPAE)
  • Lower-power family option (frente a MC9S08QA4CPAE)
  • Through-hole PDIP for prototyping (frente a MC9S08QG4MDTE (TSSOP-8))
  • On-chip BDC debug (frente a MC9S08QA2CPAE)

Notas de diseño

Only 6 GPIOs are exposed in the 8-pin PDIP package; pin 1 (PTB5/RESET) and pin 5 (PTA5/IRQ/RESET) are shared with reset/interrupt functions. Plan the pin map during schematic capture, not after layout - reassigning PTA4 vs PTA0 vs PTA3 between ADC inputs and GPIO outputs is much harder once the PCB is fab'd.

Add a 100 nF decoupling capacitor as close as possible to VDD (pin 3) with a short ground return to VSS (pin 4). For designs with stop-mode entry/exit, place a bulk 1 uF to 10 uF capacitor on VDD to handle the small inrush during oscillator restart, otherwise you may see brown-out resets on wake.

Route the RESET line carefully if used in external-reset mode; keep it short and avoid running parallel to switching traces to prevent false resets. Through-hole PDIP simplifies prototype rework but is more susceptible to ESD on long, exposed leads - consider adding a TVS diode or series resistor on RESET for harsh environments.

The internal clock source (ICS with FLL) is accurate enough for UART up to ~57600 baud at room temperature, but at 115200 baud it may require an external crystal on PTA4/PTA3 (or PTA5/PTA4 depending on family variant). If your design needs reliable RS-485 or DMX512 communications, budget for an external 4 MHz to 8 MHz crystal rather than relying on the trimmed internal reference.

The 8-pin PDIP is a plastic through-hole package with low thermal resistance (~150 C/W junction-to-ambient for the bare package), but the part still has a maximum junction temperature of 150 C. At room temperature, power consumption is dominated by I/O sink/source current rather than core switching, so avoid sourcing more than the rated 10 mA per pin (25 mA total package) without thermal verification.

Información de cumplimiento

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Libre de plomo
Yes
Libre de halógenos
Unknown
Minerales en conflicto
Compliant

RoHS compliant per NXP product page (Pb-free 'E' suffix). Not AEC-Q100 qualified; choose S12/S32K family for automotive. REACH and conflict-mineral compliance inferred from NXP corporate statements.

Datos verificados el: 2026-10-18 — datos verificados y seleccionados por el equipo de ingeniería de componentes de XAIPART

Búsquedas relacionadas

MC9S08QG4CPAE MC9S08QG4CPAE datasheet NXP MC9S08QG4 8-bit MCU HCS08 microcontroller 4KB flash 8-pin PDIP MC9S08QG4CPAE pinout MC9S08QG4CPAE battery powered sensor MC9S08QG4CPAE vs MC9S08QG8CPAE MC9S08QG4CPAE drop-in replacement buy MC9S08QG4CPAE online MC9S08QG4CPAE price 2026 S08QG family application note low cost 8-bit microcontroller breadboard

Componentes & términos relacionados

NXP Semiconductors Freescale Semiconductor MC9S08QG4CPAE MC9S08QG4MDTE MC9S08QG8CPAE MC9S08QG8MDTE MC9S08QA4CPAE MC9S08QA2CPAE HCS08 8-bit microcontroller MCU Flash memory RAM S08QG family S08QA family PDIP-8 TSSOP-8 background debug controller BDC 10-bit ADC TPM timer SCI UART RoHS Pb-free AEC-Q100 1.8 V to 3.6 V supply 20 MHz CPU keyboard interrupt KBI external interrupt IRQ CodeWarrior IDE
RFQ de presupuesto rápido
Complete los detalles — nuestro equipo de ventas responderá en un plazo de 24 horas
Número de pieza Fabricante Encapsulado QTY Precio objetivo Total
Total: $0.00 USD
✓
¡Presupuesto enviado!

Responderemos a su correo electrónico en un plazo de 24 horas

1
RFQ enviado
2
Presupuesto recibido
3
Pedido realizado
4
Pago
5
Enviado
6
Entregado
Ver detalles del RFQ