MC9S12KG128
Data Sheet
HCS12
Microcontrollers
MC9S12KG128
Rev. 1.15
06/2006
freescale.com
MC9S12KG128 Data Sheet
MC9S12KG128V1
Rev. Rev. 1.15
06/2006
To provide the most up-to-date information, the revision of our documents on the World Wide Web will be
the most current. Your printed copy may be an earlier revision. To verify you have the latest information
available, refer to:
http://freescale.com/
The following revision history table summarizes changes contained in this document.
Revision History
Date
Oct 21, 2005
Jun 23, 2006
Revision
Level
Rev. 1.14
Rev. 1.15
New data sheet
1. Update PE0/PE1 pull up/down status in table 1_2
2. Update Vreg_3v3 V(lvia)/V(lvid) limit in table A-9
3. Other minor update.
Description
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
This product incorporates SuperFlash® technology licensed from SST.
© Freescale Semiconductor, Inc., 2005,2006 All rights reserved.
MC9S12KG128 Data Sheet, Rev. 1.15
4
Freescale Semiconductor
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
Chapter 19
MC9S12KG128 Device Overview (MC9S12KG128V1) . . . . . . . 19
128 Kbyte ECC Flash Module (FTS128K1ECCV1) . . . . . . . . . . 75
2 Kbyte EEPROM Module (EETS2KV1). . . . . . . . . . . . . . . . . . 117
Port Integration Module (PIM9KG128V1) . . . . . . . . . . . . . . . . 137
Clocks and Reset Generator (CRGV4) . . . . . . . . . . . . . . . . . . 177
Pierce Oscillator (S12OSCLCPV1) . . . . . . . . . . . . . . . . . . . . . 213
Analog-to-Digital Converter (ATD10B16CV1) . . . . . . . . . . . . 219
Inter-Integrated Circuit (IICV2) . . . . . . . . . . . . . . . . . . . . . . . . 247
Freescale’s Scalable Controller Area Network (MSCANV2) . 271
Serial Communications Interface (SCIV1) . . . . . . . . . . . . . . . 325
Serial Peripheral Interface (SPIV3) . . . . . . . . . . . . . . . . . . . . . 357
Pulse-Width Modulator (PWM8B8CV1). . . . . . . . . . . . . . . . . . 379
Timer Module (TIM16B8CV1) . . . . . . . . . . . . . . . . . . . . . . . . . . 411
Dual Output Voltage Regulator (VREG3V3V2). . . . . . . . . . . . 437
Background Debug Module (BDMV4). . . . . . . . . . . . . . . . . . . 445
Debug Module (DBGV1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
Interrupt (INTV1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
Multiplexed External Bus Interface (MEBIV3) . . . . . . . . . . . . 511
Module Mapping Control (MMCV4) . . . . . . . . . . . . . . . . . . . . . 539
Appendix A Electrical Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559
Appendix B Recommended PCB Layout . . . . . . . . . . . . . . . . . . . . . . . . . . 592
Appendix C Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
MC9S12KG128 Data Sheet, Rev. 1.15
Freescale Semiconductor
5