NXP Semiconductors MC9S08QG4CDTE
- Part No.:
- MC9S08QG4CDTE
- Manufacturer:
- NXP Semiconductors
- Category:
- Microcontrollers
- Package:
- 16-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
MC9S08QG4CDTE.pdf
- Description:
- IC MCU 8BIT 4KB FLASH 16TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:2,766
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
MC9S08QG4CDTE from Freescale Semiconductor is an 8-bit HCS08 microcontroller featuring a 20-MHz CPU, 4 KB flash memory, 256 bytes RAM, and integrated peripherals including 8-channel 10-bit ADC, SCI, SPI, I²C, TPM, ACMP, and MTIM - deployed in cost-sensitive industrial control and sensor interface applications.
For engineers reviewing the MC9S08QG4CDTE datasheet, MC9S08QG4CDTE pinout, MC9S08QG4CDTE application, or MC9S08QG4CDTE equivalent, key selection criteria include QFN-16 package compatibility, 12 GPIO + 1 input-only + 1 output-only pin configuration, internal clock source with FLL trimming, COP watchdog with 1-kHz option, and background debug support via single-wire BKGD interface.
Technical Context
The MC9S08QG4CDTE implements the HCS08 CPU core with HC08 instruction set extension (including BGND), supporting up to 32 interrupt/reset sources and real-time debugging via an on-chip debug module with two comparators, nine trigger modes, and eight-deep FIFO for flow-event capture.
Its clock system integrates dual sources: ICS with frequency-locked-loop (FLL) enabling bus frequencies from 1–10 MHz using internal reference trimmed to ±0.2% resolution, and XOSC supporting crystal/ceramic resonators from 31.25 kHz to 16 MHz or external clock up to 20 MHz.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | HCS08 8-bit CPU running at up to 20 MHz - enables deterministic real-time control with low latency interrupt response. |
| Flash / RAM | 4 KB flash (read/program/erase over full voltage/temperature range) and 256 bytes RAM - sufficient for compact firmware with data buffering. |
| ADC | 8-channel, 10-bit SAR ADC with internal bandgap reference, temperature sensor, and hardware RTI triggering - supports analog monitoring without external references. |
| Timers | 2-channel TPM (input capture, PWM, edge/center-aligned), 8-bit MTIM with prescaler - provides flexible timing and motor/servo control capability. |
| I/O Pins | 12 general-purpose I/O, 1 input-only (IRQ), 1 output-only (RESET); 10 mA per output, 60 mA total package drive - suitable for direct LED/relay driving. |
| Debug Interface | Single-wire background debug (BKGD) with breakpoint support and on-chip ICE - enables in-circuit emulation without dedicated JTAG pins. |
| Power Modes | Wait mode plus Stop1/Stop2/Stop3 - achieves ultra-low standby current for battery-powered devices. |
Pinout & Package
MC9S08QG4CDTE is housed in a 16-pin quad flat no-lead (QFN) package with exposed thermal pad (98ASA00671D), measuring 4 mm × 4 mm × 0.85 mm, optimized for space-constrained PCB layouts and thermal performance.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Supply voltage (2.7–3.6 V) | Primary power rail for digital and analog domains; requires local decoupling near pin. |
| VSS | Ground reference | Digital ground return; connected to exposed pad for thermal and EMI performance. |
| PTA0–PTA5 | Port A general-purpose I/O | Configurable as GPIO with software-selectable pullups, slew rate, and drive strength - supports mixed-signal interfacing. |
| PTB0–PTB3 | Port B general-purpose I/O | Additional GPIO with same configurability; PTA5 and PTB3 share alternate functions with ADC and TPM. |
| RESET | Active-low reset input | Output-only pin with internal pullup - eliminates need for external reset circuitry in basic designs. |
| IRQ | Interrupt request input | Input-only pin with internal pullup - simplifies external interrupt wiring and reduces BOM count. |
| BKGD | Background debug serial interface | Single-wire debug channel for programming and real-time debugging - occupies only one pin vs. multi-pin JTAG. |
| XIN/XOUT | Crystal/resonator connection | Differential oscillator inputs supporting 31.25 kHz–16 MHz crystals - enables precise timing without external clock generator. |
Key Features
| Feature | Design Value |
|---|---|
| Internal Clock Source (ICS) with FLL | Enables stable 1–10 MHz bus operation using factory-trimmed internal reference (±0.2% resolution), eliminating need for external crystal in many applications. |
| Hardware-triggered ADC | RTI timer can initiate conversions automatically - ensures precise sampling intervals without CPU intervention or software overhead. |
| On-chip COP watchdog | Configurable to run from dedicated 1-kHz internal clock - guarantees reliable system recovery even if main clock fails. |
| FLASH block protection | Prevents accidental overwrite of boot code or calibration data during field updates - enhances firmware reliability and security. |
| Keyboard interrupt (KBI) | 8-pin matrix scan with software-selectable edge/level detection - supports direct keypad interface without external debounce logic. |
Applications
| Industrial Sensor Node | Smart Thermostat Control |
|---|---|
|
Use Scenario: Low-power wireless temperature/humidity node collecting analog sensor data and transmitting via UART-to-RF bridge. IC Role / Device Role / Timing Role: Central controller managing ADC sampling, SPI communication with RF transceiver, and sleep/wake scheduling. Use Value: Integrated 10-bit ADC with internal reference and temperature sensor eliminates external components; Stop3 mode draws sub-1 µA current for extended battery life. |
Use Scenario: Residential HVAC control unit reading thermistor inputs, driving relays, and communicating with display via I²C. IC Role / Device Role / Timing Role: Main MCU executing PID loop, handling user input via KBI, and generating PWM fan speed signals. Use Value: TPM's center-aligned PWM reduces audible noise in fan drivers; 12 GPIO + IRQ/RESET pins support full peripheral integration without expanders. |
| LED Lighting Dimmer | Appliance Motor Monitor |
|
Use Scenario: DALI-compatible dimming module converting digital commands into phase-cut or PWM output for LED drivers. IC Role / Device Role / Timing Role: Protocol interpreter and timing generator synchronizing TRIAC firing or PWM duty cycle to AC line zero-crossing. Use Value: SCI supports DALI framing; TPM channels provide jitter-free PWM with programmable dead time - critical for EMI compliance. |
Use Scenario: Washing machine motor controller monitoring current sense ADC inputs and adjusting commutation timing based on load feedback. IC Role / Device Role / Timing Role: Real-time motor state estimator using ADC-triggered sampling and TPM-based timing for BLDC commutation. Use Value: Hardware ADC trigger from RTI ensures consistent sampling period across variable speeds; COP watchdog prevents runaway motor conditions. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 8-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| MC9S08QG8CDTE | Double flash (8 KB) and RAM (512 B); identical pinout, package, and peripheral set - drop-in upgrade path. | Supports larger firmware images and more complex control algorithms without layout change. | Select when future firmware expansion or additional feature sets (e.g., enhanced communication stacks) are anticipated. |
| S9KEAZ128AMLH | ARM Cortex-M0+ core, 128 KB flash, 16 KB RAM, higher clock (48 MHz), but different architecture and toolchain - not pin-compatible. | Targets next-generation designs requiring higher throughput, USB, or CAN; requires full hardware and software redesign. | Choose for new designs needing scalable performance, while retaining Freescale/NXP ecosystem familiarity. |
Compared with MC9S08QG4CDTE, MC9S08QG8CDTE offers immediate memory headroom within identical hardware constraints, whereas S9KEAZ128AMLH delivers architectural modernization at the cost of complete re-engineering - making the former ideal for incremental upgrades and the latter suited for greenfield projects.
Availability
MC9S08QG4CDTE is available at Aetrix Electronics and suitable for industrial sensor nodes, smart thermostat control, LED lighting dimmers, and appliance motor monitors requiring stable component supply and long-term lifecycle support.
Supply support for MC9S08QG4CDTE includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
Freescale Semiconductor was a leading designer of embedded processors and analog/mixed-signal ICs, acquired by NXP Semiconductors in 2015; its HCS08 portfolio remains widely supported in industrial and automotive applications.
The MC9S08QG4 belongs to the HCS08 microcontroller family designed for cost-sensitive, low-power embedded control - emphasizing small footprint, integrated analog peripherals, and robust debug capability in minimal-pin-count packages.
FAQ
What is the operating voltage range for the MC9S08QG4CDTE?
The MC9S08QG4CDTE operates from 2.7 V to 3.6 V across its full temperature range (–40°C to +105°C). This range supports both standard 3.3 V systems and brown-out tolerant designs. The internal voltage regulator and LVD circuitry ensure reliable reset behavior during supply transitions, and all I/O pins are 5 V tolerant only when explicitly configured - the MC9S08QG4CDTE itself is strictly a 3.3 V core device.
Does the MC9S08QG4CDTE support in-circuit debugging without additional hardware?
Yes, the MC9S08QG4CDTE includes a single-wire background debug interface (BKGD) that enables full in-circuit programming and real-time debugging using only one dedicated pin and no external debug probe beyond a simple level-shifter. The on-chip debug module supports breakpoints, register inspection, and memory access - all without halting system operation during active background mode, making the MC9S08QG4CDTE suitable for field-upgradable embedded systems.
Can the MC9S08QG4CDTE generate precise PWM signals for motor control?
Yes, the MC9S08QG4CDTE's TPM module provides two independent channels capable of edge-aligned or center-aligned PWM with programmable period and duty cycle. Each channel supports input capture and output compare modes, enabling closed-loop motor control with encoder feedback. The MC9S08QG4CDTE also allows synchronization between PWM outputs and ADC sampling - critical for current sensing in BLDC applications.
Is the MC9S08QG4CDTE pin-compatible with other members of the QG series?
The MC9S08QG4CDTE in the 16-pin QFN package shares identical pinout and electrical characteristics with MC9S08QG8CDTE and MC9S08QG8CDT - confirmed by Freescale's mechanical drawings (98ASA00671D). This allows direct substitution where increased flash/RAM capacity is needed, without PCB revision. However, it is not compatible with 24-pin QFN or DFN variants of the same family due to differing pin counts and assignments.
What oscillator options does the MC9S08QG4CDTE support for timing accuracy?
The MC9S08QG4CDTE supports two primary clock sources: the Internal Clock Source (ICS) with frequency-locked-loop (FLL) - trimmed to ±0.2% resolution over voltage and temperature - and the external oscillator (XOSC) module accepting crystals or ceramic resonators from 31.25 kHz to 16 MHz. The MC9S08QG4CDTE also accepts an external clock signal up to 20 MHz on XIN, providing flexibility for high-precision or low-power timing requirements.
MC9S08QG4CDTE Specifications
- Product attributes
- Attribute value
- Manufacturer:
- NXP Semiconductors
- Package/Case:
- 16-TSSOP (0.173", 4.40mm Width)
- Series:
- S08
- Packaging:
- Tube
- Product Status:
- Active
- Programmable:
- Verified
- Core Processor:
- S08
- Core Size:
- 8-Bit
- Speed:
- 20MHz
- Connectivity:
- I2C, SCI, SPI
- Peripherals:
- LVD, POR, PWM, WDT
- Number of I/O:
- 12
- Program Memory Size:
- 4KB (4K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 256 x 8
- Voltage - Supply (Vcc/Vdd):
- 1.8V ~ 3.6V
- Data Converters:
- A/D 8x10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
MC9S08QG4CDTE FAQ
1.How can I place an order for MC9S08QG4CDTE through Aetrix?
Please submit a Request for Quotation (RFQ) for MC9S08QG4CDTE on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for MC9S08QG4CDTE reliable?
The price and inventory of MC9S08QG4CDTE are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for MC9S08QG4CDTE is usually 5 days.
3.What payment methods are accepted for MC9S08QG4CDTE?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for MC9S08QG4CDTE transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for MC9S08QG4CDTE?
MC9S08QG4CDTE orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your MC9S08QG4CDTE order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for MC9S08QG4CDTE?
For technical support, including MC9S08QG4CDTE datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your MC9S08QG4CDTE requirements.
6.How does Aetrix verify that MC9S08QG4CDTE is sourced from the original manufacturer or authorized distributors?
All MC9S08QG4CDTE products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that MC9S08QG4CDTE meets industry standards.
7.What is the process for return or replacement of MC9S08QG4CDTE?
All MC9S08QG4CDTE units undergo pre-shipment inspection (PSI). If there is an issue with MC9S08QG4CDTE, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The MC9S08QG4CDTE part is unused and in its original packaging.
Return procedure for MC9S08QG4CDTE:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
MC9S08QG4CDTE Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

