MC9S12VR-Family
Reference Manual
S12 MagniV
Microcontrollers
MC9S12VRRM
Rev. 4.2
8-February-2016
nxp.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:
http://nxp.com/
A full list of family members and options is included in the device overview section.
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
Revision
Level
Rev 4.0
Draft C
Rev 4.0
Rev 4.1
Rev 4.2
•
•
•
•
Description
Removed electrical parameter classification
Changed BATS low voltage warning levels in Table I-2 NUM 1,5 and 6
Removed 32QFN package
Added thermal specs for S12VR32
06-July-2015
27-August-2015
21-December-2015
8-February-2016
• Updated S12HSDRVV3
• Changed VDDX low voltage reset assert level from min 2.97V to 2.95V. see Table B-1
item 7b
• Replaced Freescale logo by NXP logo
NXP Semiconductor reserves the right to make changes without further notice to any products herein. NXP Semiconductor makes no warranty, representation or guarantee regarding
the suitability of its products for any particular purpose, nor does NXP Semiconductor assume any liability arising out of the application or use of any product or circuit, and
specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters that may be provided in NXP Semiconductor data
sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals”, must be validated
for each customer application by customer’s technical experts. NXP Semiconductor does not convey any license under its patent rights nor the rights of others. NXP Semiconductor
products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain
life, or for any other application in which the failure of the NXP Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or
use NXP Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold NXP Semiconductor and its officers, employees, subsidiaries,
affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or
death associated with such unintended or unauthorized use, even if such claim alleges that NXP Semiconductor was negligent regarding the design or manufacture of the part.
MC9S12VR Family Reference Manual, Rev. 4.2
NXP Semiconductor
2
Chapter 1
Chapter 2
Chapter 3
Chapter 4
133
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
Appendix A
Appendix B
Appendix C
Appendix D
Appendix E
Appendix F
Appendix G
Appendix H
Device Overview MC9S12VR-Family . . . . . . . . . . . . . . . . . . . . . . . . . 23
Port Integration Module (S12VRPIMV3) . . . . . . . . . . . . . . . . . . . . . . 55
S12G Memory Map Controller (S12GMMCV1) . . . . . . . . . . . . . . . 119
S12 Clock, Reset and Power Management Unit (S12CPMU_UHV_V8)
Background Debug Module (S12SBDMV1) . . . . . . . . . . . . . . . . . . . 195
S12S Debug Module (S12DBGV2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Interrupt Module (S12SINTV1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Analog-to-Digital Converter (ADC12B6CV2) . . . . . . . . . . . . . . . . . 271
Pulse-Width Modulator (S12PWM8B8CV2) . . . . . . . . . . . . . . . . . . 295
Serial Communication Interface (S12SCIV6). . . . . . . . . . . . . . . . . . 325
Serial Peripheral Interface (S12SPIV5) for S12VR64 . . . . . . . . . . . 365
Timer Module (TIM16B4CV3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
High-Side Drivers - HSDRV (S12HSDRVV2) for S12VR64 . . . . . . 409
High-Side Driver - HSDRV1C (HSDRV1CV3) for S12VR32 . . . . . 419
Low-Side Drivers - LSDRV (S12LSDRV1). . . . . . . . . . . . . . . . . . . . 429
LIN Physical Layer (S12LINPHYV2) . . . . . . . . . . . . . . . . . . . . . . . . 441
Supply Voltage Sensor - (BATSV2) . . . . . . . . . . . . . . . . . . . . . . . . . . 463
64 KByte Flash Module (S12FTMRG64K512V1) for S12VR64 . . . 475
32 KByte Flash Module (S12FTMRG32K128V1) for S12VR32 . . . 525
MCU Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
VREG Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
ATD Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
HSDRV Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599
PLL Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
IRC Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
LINPHY Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
LSDRV Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
MC9S12VR Family Reference Manual, Rev. 4.2
NXP Semiconductor
3
Appendix I
Appendix J
Appendix K
Appendix L
Appendix M
Appendix N
Appendix O
Appendix P
BATS Electrical Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615
PIM Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
SPI Electrical Specifications for S12VR64 . . . . . . . . . . . . . . . . . . . . 621
XOSCLCP Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . 627
FTMRG Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639
Detailed Register Address Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
MC9S12VR Family Reference Manual,
Rev. 4.2
4
NXP Semiconductor
Chapter 1
Device Overview MC9S12VR-Family
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.2.1 MC9S12VR-Family Member Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.3 Chip-Level Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.4 Module Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.4.1 HCS12 16-Bit Central Processor Unit (CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.4.2 On-Chip Flash with ECC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.4.3 On-Chip SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.4.4 Main External Oscillator (XOSCLCP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.4.5 Internal RC Oscillator (IRC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.4.6 Internal Phase-Locked Loop (IPLL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.4.7 Clock and Power Management Unit (CPMU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.4.8 System Integrity Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.4.9 Timer (TIM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.10 Pulse Width Modulation Module (PWM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.11 LIN physical layer transceiver (LINPHY) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.12 Serial Peripheral Interface Module (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.4.13 Serial Communication Interface Module (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.4.14 Analog-to-Digital Converter Module (ATD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.4.15 Supply Voltage Sense (BATS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.4.16 On-Chip Voltage Regulator system (VREG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.4.17 Low-side drivers (LSDRV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.4.18 High-side drivers (HSDRV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.4.19 Background Debug (BDM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.4.20 Debugger (DBG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.5 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.6 Family Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.6.1 Part ID Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
1.7 Signal Description and Device Pinouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
1.7.1 Pin Assignment Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
1.7.2 Detailed Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
1.7.3 Power Supply Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
1.7.4 Device Pinouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
1.7.5 Pinout 48-pin LQFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
1.7.6 Pinout 32-pin LQFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.8 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.8.1 Chip Configuration Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.8.2 Low Power Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.9 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
1.10 Resets and Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
1.10.1 Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
1.10.2 Interrupt Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
1.10.3 Effects of Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
MC9S12VR Family Reference Manual, Rev. 4.2
NXP Semiconductor
5
1.1
1.2