NXP Semiconductors MC9S12DG128MPVR2
- Part No.:
- MC9S12DG128MPVR2
- Manufacturer:
- NXP Semiconductors
- Category:
- Microcontrollers
- Package:
- 112-LQFP
- Datasheet:
-
MC9S12DG128MPVR2.pdf
- Description:
- IC MCU 16BIT 128KB FLASH 112LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:4,360
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
MC9S12DG128MPVR2 from Freescale Semiconductor is a 16-bit HCS12 microcontroller with 128 KB on-chip Flash EEPROM, 8 KB RAM, and integrated MSCAN, SPI, SCI, PWM, ATD, and PLL clock generation. It operates at up to 25 MHz bus speed, supports 5V I/O, and targets automotive body control modules requiring CAN communication, sensor interfacing, and deterministic real-time control.
For engineers reviewing the MC9S12DG128MPVR2 datasheet, MC9S12DG128MPVR2 pinout, MC9S12DG128MPVR2 application, or MC9S12DG128MPVR2 equivalent, key selection criteria include its 112-pin LQFP package, dual 10-bit ATD converters (16-channel total), 8-channel PWM with center-aligned mode, MSCAN v2.0 compliance, and background debug interface via BKGD pin.
Technical Context
The MC9S12DG128MPVR2 implements the HCS12 CPU core with 16-bit data path, 24-bit addressing, and instruction set backward-compatible with HC12. Its Clock and Reset Generator (CRG) block supports crystal, external clock, or Pierce oscillator inputs, with programmable PLL enabling bus frequencies of 8–25 MHz from 4 MHz input.
Memory architecture includes 128 KB Flash organized in 2 KB sectors with 100K write/erase cycles, 2 KB EEPROM with 100K endurance, and 8 KB RAM. Peripheral integration features two independent 10-bit ATD converters (ATD0 and ATD1), each with 8 channels and configurable sample-and-hold timing, plus an 8-channel enhanced capture timer (ECT) supporting input capture, output compare, and pulse-width modulation.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | HCS12 16-bit CPU with 24-bit address bus and HC12 instruction compatibility |
| Flash Memory | 128 KB on-chip Flash EEPROM, sector-erasable, 100K endurance cycles |
| RAM | 8 KB on-chip RAM, battery-backed option available via external circuitry |
| Bus Speed | Up to 25 MHz maximum bus frequency enabled by internal PLL |
| ADC Resolution | Dual 10-bit ATD converters (ATD0/ATD1), 16 total analog inputs, 8 µs conversion time |
| PWM Channels | 8-channel 8-bit PWM module with center-aligned and edge-aligned modes, dead-time insertion support |
| CAN Interface | MSCAN v2.0 compliant controller with 16 message buffers, full CAN 2.0A/B protocol support |
| I/O Voltage | 5V-tolerant digital I/O pins compatible with automotive 5V logic systems |
Pinout & Package
MC9S12DG128MPVR2 is housed in a 112-pin LQFP (Low-Profile Quad Flat Package) with 0.4 mm pitch, case number 987, measuring 20 mm × 20 mm. Thermal resistance θJA is 32°C/W under standard JEDEC conditions.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| EXTAL / XTAL | Oscillator input/output | Connects to external crystal or ceramic resonator for system clock generation; supports Colpitts or Pierce configurations |
| BKGD | Background debug pin | Single-wire BDM interface for programming, debugging, and real-time trace without halting CPU execution |
| RESET | Active-low reset input | Asynchronous reset signal; internal pull-up ensures safe startup if left unconnected |
| VDDX / VSSX | I/O power supply / ground | 5V supply and return for all digital I/O ports; separate from core voltage domain |
| VDDA / VSSA | Analog power supply / ground | Dedicated 5V analog supply for ATD converters and voltage reference circuitry to minimize noise coupling |
| VRH / VRL | ATD reference inputs | Accept external high/low reference voltages (e.g., 0V and 5V) to define ADC full-scale range |
| PM[7:0] | CAN4 transmit/receive pins | Port M pins configured as TXCAN4/RXCAN4 and auxiliary CAN signals; enables second independent CAN channel |
| PP[7:0] | PWM output pins | Eight dedicated PWM outputs with configurable polarity, period, and duty cycle; supports motor control and LED dimming |
Key Features
| Feature | Design Value |
|---|---|
| On-chip voltage regulator (VREG) | Generates internal 2.5V core supply from 5V VDD; enabled via VREGEN pin for simplified power design |
| Security module | Flash protection via security byte prevents unauthorized read-out or reprogramming of code memory |
| Low-power modes | Stop, Wait, and Pseudo-Stop modes reduce current consumption to <10 µA (Stop) while preserving RAM and register state |
| Enhanced Capture Timer (ECT) | 8-channel 16-bit timer supporting input capture, output compare, quadrature decoding, and PWM generation |
| Serial interfaces | Two full-duplex SCIs, two SPIs, one I²C, and J1850 BDLC - enabling multi-protocol vehicle network connectivity |
| Interrupt vector table | 64-entry interrupt vector table with priority-based nesting and user-configurable vector relocation |
Applications
| Body Control Module (BCM) | Engine Control Unit (ECU) Subsystem |
|---|---|
Use Scenario: Centralized management of lighting, door locks, window lifts, and wiper systems in modern vehicles. IC Role / Device Role / Timing Role: Main MCU executing real-time control tasks, polling sensors, driving actuators, and communicating via CAN bus with other ECUs. Use Value: Integrated MSCAN, 128 KB Flash, and 5V I/O eliminate need for external level shifters or CAN transceivers in basic implementations. | Use Scenario: Monitoring and actuating auxiliary engine functions such as cooling fan control, fuel pump relay, and emissions-related solenoids. IC Role / Device Role / Timing Role: Secondary controller handling time-critical PWM outputs and analog sensor acquisition (e.g., temperature, pressure) with deterministic latency. Use Value: Dual ATD converters enable simultaneous sampling of multiple sensors; 8-channel PWM supports precise fan speed regulation. |
| Instrument Cluster Display Controller | Automotive Diagnostic Tool Interface |
Use Scenario: Driving analog gauges, LCD segments, and warning indicators based on CAN message reception and local inputs. IC Role / Device Role / Timing Role: Real-time display processor receiving CAN frames, converting values to drive stepper motors or segment drivers, and managing backlight PWM. Use Value: On-chip 8-channel PWM provides independent dimming control for multiple displays; BDM interface enables field firmware updates. | Use Scenario: Interfacing with vehicle OBD-II port to extract diagnostic trouble codes and live parameter data. IC Role / Device Role / Timing Role: Protocol translator between J1850 BDLC, ISO 9141, and UART-based host PC interface using SCI and BDLC peripherals. Use Value: Native J1850 BDLC hardware block eliminates software bit-banging overhead; dual SCI ports allow concurrent tool communication and logging. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 16-bit automotive microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| MC9S12DJ128CPVE | Lacks MSCAN module; includes Byteflight interface instead; same 112-pin LQFP package and memory size | Suitable for non-CAN safety-critical systems requiring Byteflight (e.g., airbag controllers) | Select when Byteflight protocol is required and CAN is unnecessary; verify peripheral register map differences before migration |
| S912XDP512J1MALR | Enhanced XGATE co-processor, 512 KB Flash, 32 KB RAM, and updated MSCAN+; 144-pin LQFP | Higher performance and memory for complex gateway or ADAS subsystems | Choose for scalability beyond 128 KB Flash or when offloading interrupt processing to XGATE improves determinism |
Compared with MC9S12DJ128CPVE, MC9S12DG128MPVR2 delivers native CAN 2.0B support essential for body network communication, while S912XDP512J1MALR offers significantly higher memory and co-processing capability at the cost of larger footprint and higher BOM cost.
Availability
MC9S12DG128MPVR2 is available at Aetrix Electronics and suitable for automotive body electronics, industrial motor control, and embedded diagnostics requiring stable component supply, long-term lifecycle assurance, and AEC-Q100 qualified silicon.
Supply support for MC9S12DG128MPVR2 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 (now part of NXP Semiconductors) is a fabless semiconductor company specializing in automotive, industrial, and networking processors and analog solutions.
The MC9S12DG128MPVR2 belongs to the HCS12 family, designed specifically for cost-sensitive, high-reliability automotive applications where CAN connectivity, flash programmability, and robust EMI immunity are mandatory.
FAQ
What is the maximum operating frequency of the MC9S12DG128MPVR2 bus clock?
The MC9S12DG128MPVR2 supports a maximum bus clock frequency of 25 MHz, achieved using the internal Phase-Locked Loop (PLL) with a 4 MHz crystal input. This frequency is confirmed in Section A.5.3 "Phase Locked Loop" of the Device User Guide V01.09, which specifies fBUS = fOSC × (2 × SYNR) / (2 × REFDV) with valid settings yielding up to 25 MHz. The MC9S12DG128MPVR2 must be configured with appropriate PLL dividers and enabled via CRG registers to reach this rate.
Does the MC9S12DG128MPVR2 include a hardware CAN controller?
Yes, the MC9S12DG128MPVR2 integrates an MSCAN v2.0 controller compliant with CAN 2.0A and 2.0B protocols. It provides 16 message buffers, programmable acceptance filtering, and automatic retransmission. This is documented in Section 19 "MSCAN Block Description" and Appendix A.6 "MSCAN" of the Device User Guide V01.09. The MC9S12DG128MPVR2 uses Port M pins (PM7–PM0) for CAN4 functionality, distinct from the primary CAN0 channel on Ports P and S.
How many analog-to-digital converter channels does the MC9S12DG128MPVR2 support?
The MC9S12DG128MPVR2 supports 16 analog input channels across two independent 10-bit ATD converters: ATD0 (8 channels on PAD[15:0]) and ATD1 (8 channels on PA[7:0] and PB[7:0]). Each converter features configurable sample time, scan sequence control, and interrupt-on-completion. This configuration is detailed in Sections 9 and A.2 of the Device User Guide V01.09, confirming dual ATD operation with no shared resources.
What debug interface does the MC9S12DG128MPVR2 provide?
The MC9S12DG128MPVR2 provides a Background Debug Mode (BDM) interface via the BKGD pin, supporting single-wire communication for non-intrusive debugging, flash programming, and real-time register inspection. This interface requires no dedicated debug port pins and operates independently of CPU execution state. The BDM functionality is described in Section 2.3.5 "BKGD / TAGHI / MODC" and Section 4.3 "Security" of the Device User Guide V01.09.
Is the MC9S12DG128MPVR2 pin-compatible with other HCS12 derivatives like MC9S12DT128B?
No, the MC9S12DG128MPVR2 is not fully pin-compatible with MC9S12DT128B. While both use the 112-pin LQFP package, their pin assignments differ significantly - notably, MC9S12DT128B dedicates Port J pins to CAN1, whereas MC9S12DG128MPVR2 routes CAN4 to Port M. Figure 2-1 and Table 2-1 in the Device User Guide V01.09 confirm distinct signal mappings. Migration requires PCB layout revision and firmware adaptation for peripheral pin remapping.
MC9S12DG128MPVR2 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- NXP Semiconductors
- Package/Case:
- 112-LQFP
- Series:
- HCS12
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Obsolete
- Programmable:
- Not Verified
- Core Processor:
- HCS12
- Core Size:
- 16-Bit
- Speed:
- 25MHz
- Connectivity:
- CANbus, I2C, SCI, SPI
- Peripherals:
- PWM, WDT
- Number of I/O:
- 91
- Program Memory Size:
- 128KB (128K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 2K x 8
- RAM Size:
- 8K x 8
- Voltage - Supply (Vcc/Vdd):
- 2.35V ~ 5.25V
- Data Converters:
- A/D 16x10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
MC9S12DG128MPVR2 FAQ
1.How can I place an order for MC9S12DG128MPVR2 through Aetrix?
Please submit a Request for Quotation (RFQ) for MC9S12DG128MPVR2 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 MC9S12DG128MPVR2 reliable?
The price and inventory of MC9S12DG128MPVR2 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for MC9S12DG128MPVR2 is usually 5 days.
3.What payment methods are accepted for MC9S12DG128MPVR2?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for MC9S12DG128MPVR2 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for MC9S12DG128MPVR2?
MC9S12DG128MPVR2 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your MC9S12DG128MPVR2 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 MC9S12DG128MPVR2?
For technical support, including MC9S12DG128MPVR2 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your MC9S12DG128MPVR2 requirements.
6.How does Aetrix verify that MC9S12DG128MPVR2 is sourced from the original manufacturer or authorized distributors?
All MC9S12DG128MPVR2 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 MC9S12DG128MPVR2 meets industry standards.
7.What is the process for return or replacement of MC9S12DG128MPVR2?
All MC9S12DG128MPVR2 units undergo pre-shipment inspection (PSI). If there is an issue with MC9S12DG128MPVR2, 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 MC9S12DG128MPVR2 part is unused and in its original packaging.
Return procedure for MC9S12DG128MPVR2:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
MC9S12DG128MPVR2 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…

