Document
www.datasheet4u.com
MC9S12P128 Reference Manual
Covers also MC9S12P-Family MC9S12P96 MC9S12P64 MC9S12P32
S12 Microcontrollers
MC9S12P128RMV1 Rev. 1.10 3 March 2009
freescale.com
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: www.datasheet4u.com http://freescale.com/ A full list of family members and options is included in the appendices. The following revision history table summarizes changes contained in this document. This document contains information for all constituent modules, with the exception of the CPU. For CPU information please refer to CPU12-1 in the CPU12 & CPU12X Reference Manual.
Revision History
Date April 2008 July 2008 December 2008 March 2009 Revision Level 1.07 1.08 1.09 1.10 PRELIMINARY Minor Corrections Added typ. IDD values Completed Electricals Minor Corrections Final Electricals Description
Chapter 1
www.datasheet4u.com
Device Overview MC9S12P-Family . . . . . . . . . . . . . . . . . . . . . . 17 Port Integration Module (S12PPIMV1) . . . . . . . . . . . . . . . . . . . 49 S12P Memory Map Control (S12PMMCV1). . . . . . . . . . . . . . . 107 Interrupt Module (S12SINTV1). . . . . . . . . . . . . . . . . . . . . . . . . 123 Background Debug Module (S12SBDMV1) . . . . . . . . . . . . . . 131 S12S Debug Module (S12SDBGV2) . . . . . . . . . . . . . . . . . . . . 155 Clock, Reset and Power Management Unit (S12CPMU) . . . . 197 Scalable Controller Area Network (S12MSCANV3) . . . . . . . . 249 Analog-to-Digital Converter (ADC12B10C) . . . . . . . . . . . . . . 303 Pulse-Width Modulator (PWM8B6CV1). . . . . . . . . . . . . . . . . . 327 Serial Communication Interface (S12SCIV5) . . . . . . . . . . . . . 361 Serial Peripheral Interface (S12SPIV5) . . . . . . . . . . . . . . . . . . 397 128 KByte Flash Module (S12FTMRC128K1V1). . . . . . . . . . . 423 Timer Module (TIM16B8CV2) . . . . . . . . . . . . . . . . . . . . . . . . . 471
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
Appendix A Electrical Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499 Appendix B Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533 Appendix C Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
S12P-Family Reference Manual, Rev. 1.10 Freescale Semiconductor 3
www.datasheet4u.com
S12P-Family Reference Manual, Rev. 1.10 4 Freescale Semiconductor
Chapter 1Device Overview MC9S12P-Family
www.datasheet4u.com 1.1 Introduction
1.2
1.3
1.4 1.5 1.6 1.7
1.8 1.9
1.10 1.11
1.12 1.13
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 1.2.1 MC9S12P Family Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1.2.2 Chip-Level Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Module Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.3.1 S12 16-Bit Central Processor Unit (CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.3.2 On-Chip Flash with ECC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.3.3 On-Chip SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.3.4 Main External Oscillator (XOSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.3.5 Internal RC Oscillator (IRC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.3.6 Internal Phase-Locked Loop (IPLL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.3.7 System Integrity Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.3.8 Timer (TIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.3.9 Pulse Width Modulation Module (PWM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.3.10 Controller Area Network Module (MSCAN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.3.11 Serial Communication Interface Module (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.3.12 Serial Peripheral Interface Module (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 1.3.13 Ana.