MC9S12C32MFA25 [MOTOROLA]
Microcontroller, 16-Bit, FLASH, CPU12 CPU, 25MHz, CMOS, PQFP48, LQFP-48;型号: | MC9S12C32MFA25 |
厂家: | MOTOROLA |
描述: | Microcontroller, 16-Bit, FLASH, CPU12 CPU, 25MHz, CMOS, PQFP48, LQFP-48 时钟 微控制器 外围集成电路 |
文件: | 总128页 (文件大小:656K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
DOCUMENT NUMBER
9S12CFAMDGV1/D
MC9S12C Family
Device User Guide
V00.03
Original Release Date: 25 JAN 2003
Revised: 25 FEBRUARY 2003
Motorola, Inc.
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its
products for any particular purpose, nor does Motorola 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 which may be provided in Motorola 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. Motorola does not convey any license under its patent rights nor the rights of others. Motorola 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
Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized
application, Buyer shall indemnify and hold Motorola 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 Motorola was negligent regarding the design or manufacture of the part. Motorola and
Opportunity/Affirmative Action Employer.
are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal
©Motorola, Inc., 2002
1
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Revision History
Version Revision Effective
Author
Description of Changes
Number
Date
Date
00.01
25.JAN.03 25.JAN.03
Original Version. Based on C32 user guide version 01.12
Enhanced PortK description
Part number table revision in preface
00.02
07.FEB.03 07.FEB.03
QFP112 Emulation pinout correction
00.03
25.FEB.03 25.FEB.03
Enhanced part number explanation in preface
Reduced pseudo STOP current spec. for C64,C96,C128
2
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table of Contents
Section 1 Introduction
1.1
1.2
1.3
1.4
1.5
1.6
1.7
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Device Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Detailed Register Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Part ID Assignments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Section 2 Signal Description
2.1
Device Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Signal Properties Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Pin Initialization for 48 & 52 Pin LQFP bond-out versions . . . . . . . . . . . . . . . . . . 50
Detailed Signal Descriptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
EXTAL, XTAL — Oscillator Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
RESET — External Reset Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
TEST / VPP — Test Pin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
XFC — PLL Loop Filter Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
BKGD / TAGHI / MODC — Background Debug, Tag High & Mode Pin . . . . . . . 51
PA[7:0] / ADDR[15:8] / DATA[15:8] — Port A I/O Pins . . . . . . . . . . . . . . . . . . . . 52
PB[7:0] / ADDR[7:0] / DATA[7:0] — Port B I/O Pins . . . . . . . . . . . . . . . . . . . . . . 52
PE7 / NOACC / XCLKS — Port E I/O Pin 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
PE6 / MODB / IPIPE1 — Port E I/O Pin 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
2.2
2.2.1
2.3
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.7
2.3.8
2.3.9
2.3.10 PE5 / MODA / IPIPE0 — Port E I/O Pin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
2.3.11 PE4 / ECLK— Port E I/O Pin [4] / E-Clock Output. . . . . . . . . . . . . . . . . . . . . . . . 54
2.3.12 PE3 / LSTRB — Port E I/O Pin [3] / Low-Byte Strobe (LSTRB). . . . . . . . . . . . . . 54
2.3.13 PE2 / R/W — Port E I/O Pin [2] / Read/Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
2.3.14 PE1 / IRQ — Port E input Pin [1] / Maskable Interrupt Pin . . . . . . . . . . . . . . . . . 54
2.3.15 PE0 / XIRQ — Port E input Pin [0] / Non Maskable Interrupt Pin . . . . . . . . . . . . 55
2.3.16 PAD[7:0] / AN[7:0] — Port AD I/O Pins [7:0] . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.3.17 PP[7] / KWP[7] — Port P I/O Pin [7]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.3.18 PP[6] / KWP[6]/ROMCTL — Port P I/O Pin [6] . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.3.19 PP[5:0] / KWP[5:0] / PW[5:0] — Port P I/O Pins [5:0] . . . . . . . . . . . . . . . . . . . . . 55
3
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.20 PJ[7:6] / KWJ[7:6] — Port J I/O Pins [7:6] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.3.21 PM5 / SCK — Port M I/O Pin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.22 PM4 / MOSI — Port M I/O Pin 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.23 PM3 / SS — Port M I/O Pin 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.24 PM2 / MISO — Port M I/O Pin 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.25 PM1 / TXCAN — Port M I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.26 PM0 / RXCAN — Port M I/O Pin 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.27 PS[3:2] — Port S I/O Pins [3:2] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.28 PS1 / TXD — Port S I/O Pin 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.29 PS0 / RXD — Port S I/O Pin 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.3.30 PPT[7:5] / IOC[7:5] — Port T I/O Pins [7:5] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2.3.31 PT[4:0] / IOC[4:0] / PW[4:0]— Port T I/O Pins [4:0] . . . . . . . . . . . . . . . . . . . . . . . 57
2.4
Power Supply Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
VDDX,VSSX — Power & Ground Pins for I/O Drivers. . . . . . . . . . . . . . . . . . . . . 57
VDDR, VSSR — Power & Ground Pins for I/O Drivers & for Internal Voltage Regulator
2.4.1
2.4.2
57
2.4.3
2.4.4
2.4.5
2.4.6
VDD1, VDD2, VSS1, VSS2 — Core Power Pins. . . . . . . . . . . . . . . . . . . . . . . . . 57
VDDA, VSSA — Power Supply Pins for ATD and VREG . . . . . . . . . . . . . . . . . . 57
VRH, VRL — ATD Reference Voltage Input Pins . . . . . . . . . . . . . . . . . . . . . . . . 57
VDDPLL, VSSPLL — Power Supply Pins for PLL . . . . . . . . . . . . . . . . . . . . . . . . 57
Section 3 System Clock Description
Section 4 Modes of Operation
4.1
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Chip Configuration Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Securing the Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Operation of the Secured Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Unsecuring the Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Pseudo Stop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Run. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4.2
4.3
4.3.1
4.3.2
4.3.3
4.4
4.4.1
4.4.2
4.4.3
4.4.4
Section 5 Resets and Interrupts
4
Device User Guide — 9S12C-FamilyDGV1/D V00.03
5.1
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Vector Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Reset Summary Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Effects of Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
5.2
5.2.1
5.3
5.3.1
5.3.2
Section 6 HCS12 Core Block Description
6.1
Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
PPAGE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
BDM alternate clock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Extended Address Range Emulation Implications . . . . . . . . . . . . . . . . . . . . . . . . 65
6.1.1
6.1.2
6.1.3
Section 7 Voltage Regulator (VREG) Block Description
7.1
Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
VREGEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
VDD1, VDD2, VSS1, VSS2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
7.1.1
7.1.2
Section 8 Recommended Printed Circuit Board Layout
Section 9 Clock Reset Generator (CRG) Block Description
9.1
Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
XCLKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
9.1.1
Section 10 Oscillator (OSC) Block Description
Section 11 Timer (TIM) Block Description
Section 12 Analog to Digital Converter (ATD) Block Description
12.1 Device-specific information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
12.1.1 VRL (voltage reference low). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Section 13 Serial Communications Interface (SCI) Block Description
Section 14 Serial Peripheral Interface (SPI) Block Description
Section 15 Flash Block Description
5
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Section 16 RAM Block Description
Section 17 Pulse Width Modulator (PWM) Block Description
Section 18 MSCAN Block Description
Section 19 Port Integration Module (PIM) Block Description
Appendix A Electrical Characteristics
A.1 General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
A.1.1
A.1.2
A.1.3
A.1.4
A.1.5
A.1.6
A.1.7
A.1.8
A.1.9
Parameter Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Power Supply. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Current Injection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
ESD Protection and Latch-up Immunity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Power Dissipation and Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 79
I/O Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
A.1.10 Supply Currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Appendix B Electrical Specifications
B.1 Voltage Regulator Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
B.2 Chip Power-up and LVI/LVR graphical explanation . . . . . . . . . . . . . . . . . . . . . . . . . 88
B.3 Output Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
B.3.1
B.3.2
Resistive Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Capacitive Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
B.4 ATD Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
B.4.1
B.4.2
B.4.3
B.4.4
B.4.5
ATD Operating Characteristics In 5V Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
ATD Operating Characteristics In 3.3V Range . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Factors influencing accuracy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
ATD accuracy (5V Range) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
ATD accuracy (3.3V Range) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
B.5 NVM, Flash and EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
B.5.1
B.5.2
NVM timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
NVM Reliability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
6
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.6 Reset, Oscillator and PLL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
B.6.1
B.6.2
B.6.3
Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Phase Locked Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
B.7 MSCAN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
B.8 SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Appendix C Electrical Specifications
C.1 Master Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
C.2 Slave Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
C.3 External Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
C.3.1
General Muxed Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Appendix D Package Information
D.1 General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
D.2 80-pin QFP package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
D.3 52-pin LQFP package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
D.4 48-pin LQFP package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Appendix E Emulation Information
E.1 General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
E.1.1
PK[2:0] / XADDR[16:14]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
E.2 112-pin LQFP package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
7
Device User Guide — 9S12C-FamilyDGV1/D V00.03
8
Device User Guide — 9S12C-FamilyDGV1/D V00.03
List of Figures
Figure 0-1 Order Partnumber Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 1-1 MC9S12C-Family Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 1-2 MC9S12C128 User configurable Memory Map. . . . . . . . . . . . . . . . . . . . . . . 25
Figure 1-3 MC9S12C96 User Configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 1-4 MC9S12C64 User Configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 1-5 MC9S12C32 User Configurable Memory Map . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 2-1 Pin Assignments in 80 QFP for MC9S12C-Family . . . . . . . . . . . . . . . . . . . . 46
Figure 2-2 Pin assignments in 52 LQFP for MC9S12C-Family. . . . . . . . . . . . . . . . . . . . 47
Figure 2-3 Pin Assignments in 48 LQFP for MC9S12C-Family . . . . . . . . . . . . . . . . . . . 48
Figure 2-4 PLL Loop Filter Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 2-5 Colpitts Oscillator Connections (PE7=1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 2-6 Pierce Oscillator Connections (PE7=0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Figure 2-7 External Clock Connections (PE7=0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Figure 3-1 Clock Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 8-1 Recommended PCB Layout (48 LQFP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 8-2 Recommended PCB Layout (52 LQFP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Figure 8-3 Recommended PCB Layout (80 QFP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure B-1 Voltage Regulator - Chip Power-up and Voltage Drops (not scaled) . . . . . 88
Figure B-2 ATD Accuracy Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Figure B-3 Basic PLL functional diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Figure B-4 Jitter Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Figure B-5 Maximum bus clock jitter approximation . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Figure C-1 SPI Master Timing (CPHA=0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Figure C-2 SPI Master Timing (CPHA=1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Figure C-3 SPI Slave Timing (CPHA=0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Figure C-4 SPI Slave Timing (CPHA=1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Figure C-5 General External Bus Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Figure D-1 80-pin QFP Mechanical Dimensions (case no. 841B). . . . . . . . . . . . . . . . 120
Figure D-2 52-pin LQFP Mechanical Dimensions (case no. 848D-03) . . . . . . . . . . . . 121
Figure D-3 48-pin LQFP Mechanical Dimensions (case no.932-03 ISSUE F) . . . . . . 122
Figure 19-1 Pin Assignments in 112-pin LQFP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Figure 19-2 112-pin LQFP mechanical dimensions (case no. 987)80-pin QFP Mechanical Di-
mensions (case no. 841B)125
9
Device User Guide — 9S12C-FamilyDGV1/D V00.03
10
Device User Guide — 9S12C-FamilyDGV1/D V00.03
List of Tables
Table 0-1 Package Option Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 0-2 Part Number Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 0-3 Document References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 1-1 Device Register Map Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
$0000 - $000F MEBI map 1 of 3 (Core User Guide) 29
$0010 - $0014 MMC map 1 of 4 (Core User Guide) 29
$0018 - $0018 Miscellaneous Peripherals (Device User Guide) 30
$0019 - $0019 VREG3V3 (Voltage Regulator) 30
$0015 - $0016 INT map 1 of 2 (Core User Guide) 30
$0017 - $0017MMC map 2 of 4 (Core User Guide) 30
$001A - $001B Miscellaneous Peripherals (Device User Guide) 30
$001C - $001D MMC map 3 of 4 (Core User Guide, Device User Guide) 31
$001E - $001E MEBI map 2 of 3 (Core User Guide) 31
$001F - $001F INT map 2 of 2 (Core User Guide) 31
$0020 - $002F
DBG (including BKP) map 1 of 1 (Core User Guide) 31
$0030 - $0031 MMC map 4 of 4 (Core User Guide) 32
$0032 - $0033 MEBI map 3 of 3 (Core User Guide) 32
$0034 - $003F CRG (Clock and Reset Generator) 32
$0040 - $006F TIM (Timer 16 Bit 8 Channels) 33
$0070 - $007F Reserved 35
$0080 - $009F ATD (Analog to Digital Converter 10 Bit 8 Channel) 35
$00A0 - $00C7 Reserved 36
$00D0 - $00D7 Reserved 37
$00C8 - $00CF SCI (Asynchronous Serial Interface) 37
$00D8 - $00DF SPI (Serial Peripheral Interface) 37
$00E0 - $00FF PWM (Pulse Width Modulator) 38
$0100 - $010F Flash Control Register 39
$0110 - $013F Reserved 40
$0140 - $017F CAN (Motorola Scalable CAN - MSCAN) 40
Table 1-2 Detailed MSCAN Foreground Receive and Transmit Buffer Layout. . . . . . . . 41
$0180 - $023F Reserved 42
$0240 - $027F PIM (Port Interface Module) 42
$0280 - $03FF Reserved space 45
11
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table 1-3 Assigned Part ID Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 1-4 Memory size registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 2-1 Signal Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 2-2 MC9S12C-Family Power and Ground Connection Summary . . . . . . . . . . . . . 58
Table 4-1 Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Table 4-2 Clock Selection Based on PE7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Table 5-1 Interrupt Vector Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Table 5-2 Reset Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Table 6-1 Device Specfic Flash PAGE Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Table 8-1 Recommended External Component Values. . . . . . . . . . . . . . . . . . . . . . . . . . 67
Table A-1 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Table A-2 ESD and Latch-up Test Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Table A-3 ESD and Latch-Up Protection Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . 78
Table A-4 Operating Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Table A-5 Thermal Package Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Table A-6 5V I/O Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Table A-7 3.3V I/O Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Table A-8 Supply Current Characteristics for MC9S12C32 . . . . . . . . . . . . . . . . . . . . . . . 85
Table A-9 Supply Current Characteristics for MC9S12C64,MC9S12C96,MC9S12C128 86
Table B-1 Voltage Regulator Electrical Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Table B-2 Voltage Regulator - Capacitive Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Table B-3 ATD Operating Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Table B-4 ATD Operating Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Table B-5 ATD Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Table B-6 ATD Conversion Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Table B-7 ATD Conversion Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Table B-8 NVM Timing Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Table B-9 NVM Reliability Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Table B-10 Startup Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Table B-11 Oscillator Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Table B-12 PLL Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Table B-13 MSCAN Wake-up Pulse Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Table C-1 Measurement Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table C-2 SPI Master Mode Timing Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Table C-3 SPI Slave Mode Timing Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Table C-4 Expanded Bus Timing Characteristics (5V Range). . . . . . . . . . . . . . . . . . . . 116
12
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table C-5 Expanded Bus Timing Characteristics (3.3V Range) . . . . . . . . . . . . . . . . . . 117
13
Device User Guide — 9S12C-FamilyDGV1/D V00.03
14
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Preface
The Device User Guide provides information about the MC9S12C-Family devices made up of standard
HCS12 blocks and the HCS12 processor core. This document is part of the customer documentation. A
complete set of device manuals also includes the HCS12 Core User Guide and all the individual Block
User Guides of the implemented modules. In an effort to reduce redundancy all module specific
information is located only in the respective Block User Guide. If applicable, special implementation
details of the module are given in the block description sections of this document.
The C Family offers an extensivce range of package temperature and speed options.
Table 0-1 summarises the package option and size configuration.
Table 0-2 lists the partnumber coding based on the package, speed and temperature and preliminary die
options
Table 0-1 Package Option Summary
2
Temp.
Option
s
1
Mask
set
3 4
Package
Device
Part Number
Flash
RAM
I/O ,
48LQFP MC9S12C128
52LQFP MC9S12C128
80QFP MC9S12C128
MC9S12C128 0L09S
MC9S12C128 0L09S
MC9S12C128 0L09S
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
M, V, C
31
35
60
31
35
60
31
35
60
31
35
60
128K
4K
48LQFP
52LQFP
80QFP
MC9S12C96
MC9S12C96
MC9S12C96
MC9S12C64
MC9S12C64
MC9S12C64
MC9S12C32
MC9S12C32
MC9S12C32
MC9S12C96
MC9S12C96
MC9S12C96
MC9S12C64
MC9S12C64
MC9S12C64
TBD
TBD
TBD
TBD
TBD
TBD
96K
64K
32K
4K
4K
2K
48LQFP
52LQFP
80QFP
48LQFP
52LQFP
80QFP
MC9S12C32 1L45J
MC9S12C32 1L45J
MC9S12C32 1L45J
NOTES:
1. Maskset dependent errata can be accessed at
http://e-www.motorola.com/wbapp/sps/site/prod_summary.jsp
2. C: TA = 85¯C, f = 25MHz. V: TA=105¯C, f = 25MHz. M: TA= 125¯C, f = 25MHz
3. All derivatives feature 1 CAN, 1 SCI, 1 SPI, an 8-channel A/D, a 6-channel PWM and an 8 channel
timer.
4. I/O is the sum of ports capable to act as digital input or output.
15
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Temperature Options
MC9S12 C32 (P)C FU
25
C = -40˚C to 85˚C
V = -40˚C to 105˚C
M = -40˚C to 125˚C
Package Options
FU = 80QFP
Speed Option
Package Option
Temperature Option
PB = 52LQFP
FA = 48LQFP
Preliminary Option
Speed Options
25 = 25MHz bus
16 = 16MHz bus
Device Title
Controller Family
Figure 0-1 Order Partnumber Coding
Table 0-2 Part Number Coding
Mask
set
Part Number
Temp.
Package
Speed
Description
MC9S12C64PCFA16 0L09S
MC9S12C64PCPB16 0L09S
MC9S12C64PCFU16 0L09S
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
48LQFP
52LQFP
80QFP
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
Final C64 using C64 die
MC9S12C64CFA16
MC9S12C64CPB16
MC9S12C64CFU16
TBD
TBD
TBD
48LQFP
52LQFP
80QFP
Final C64 using C64 die
Final C64 using C64 die
MC9S12C64PVFA16 0L09S -40˚C, 105˚C
MC9S12C64PVPB16 0L09S -40˚C, 105˚C
MC9S12C64PVFU16 0L09S -40˚C, 105˚C
48LQFP
52LQFP
80QFP
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
Final C64 using C64 die
MC9S12C64VFA16
MC9S12C64VPB16
MC9S12C64VFU16
TBD
TBD
TBD
-40˚C,105˚C
-40˚C,105˚C
-40˚C, 105˚C
48LQFP
52LQFP
80QFP
Final C64 using C64 die
Final C64 using C64 die
MC9S12C64PMFA16 0L09S -40˚C, 125˚C
MC9S12C64PMPB16 0L09S -40˚C, 125˚C
MC9S12C64PMFU16 0L09S -40˚C, 125˚C
48LQFP
52LQFP
80QFP
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
Final C64 using C64 die
MC9S12C64MFA16
MC9S12C64MPB16
MC9S12C64MFU16
TBD
TBD
TBD
-40˚C,125˚C
-40˚C,125˚C
-40˚C, 125˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
48LQFP
52LQFP
80QFP
Final C64 using C64 die
Final C64 using C64 die
MC9S12C64PCFA25 0L09S
MC9S12C64PCPB25 0L09S
MC9S12C64PCFU25 0L09S
48LQFP
52LQFP
80QFP
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
Final C64 using C64 die
MC9S12C64CFA25
MC9S12C64CPB25
MC9S12C64CFU25
TBD
TBD
TBD
48LQFP
52LQFP
80QFP
Final C64 using C64 die
Final C64 using C64 die
MC9S12C64PVFA25 0L09S -40˚C, 105˚C
MC9S12C64PVPB25 0L09S -40˚C, 105˚C
MC9S12C64PVFU25 0L09S -40˚C, 105˚C
48LQFP
52LQFP
80QFP
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
Final C64 using C64 die
MC9S12C64VFA25
TBD
-40˚C,105˚C
48LQFP
16
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Mask
set
Part Number
Temp.
Package
Speed
Description
MC9S12C64VPB25
MC9S12C64VFU25
TBD
TBD
-40˚C,105˚C
-40˚C, 105˚C
52LQFP
80QFP
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
16MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
25MHz
Final C64 using C64 die
Final C64 using C64 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
PreliminaryC64 using C128 die
Final C64 using C64 die
Final C64 using C64 die
Final C64 using C64 die
C32 die
MC9S12C64PMFA25 0L09S -40˚C, 125˚C
MC9S12C64PMPB25 0L09S -40˚C, 125˚C
MC9S12C64PMFU25 0L09S -40˚C, 125˚C
48LQFP
52LQFP
80QFP
MC9S12C64MFA25
MC9S12C64MPB25
MC9S12C64MFU25
TBD
TBD
TBD
-40˚C,125˚C
-40˚C,125˚C
-40˚C, 125˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
48LQFP
52LQFP
80QFP
MC9S12C32CFA16 1L45J
MC9S12C32CPB16 1L45J
MC9S12C32CFU16 1L45J
48LQFP
52LQFP
80QFP
C32 die
C32 die
MC9S12C32VFA16 1L45J -40˚C,105˚C
MC9S12C32VPB16 1L45J -40˚C,105˚C
MC9S12C32VFU16 1L45J -40˚C, 105˚C
MC9S12C32MFA16 1L45J -40˚C,125˚C
MC9S12C32MPB16 1L45J -40˚C,125˚C
MC9S12C32MFU16 1L45J -40˚C, 125˚C
48LQFP
52LQFP
80QFP
C32 die
C32 die
C32 die
48LQFP
52LQFP
80QFP
C32 die
C32 die
C32 die
MC9S12C32CFA25 1L45J
MC9S12C32CPB25 1L45J
MC9S12C32CFU25 1L45J
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
48LQFP
52LQFP
80QFP
C32 die
C32 die
C32 die
MC9S12C32VFA25 1L45J -40˚C,105˚C
MC9S12C32VPB25 1L45J -40˚C,105˚C
MC9S12C32VFU25 1L45J -40˚C, 105˚C
MC9S12C32MFA25 1L45J -40˚C,125˚C
MC9S12C32MPB25 1L45J -40˚C,125˚C
MC9S12C32MFU25 1L45J -40˚C, 125˚C
48LQFP
52LQFP
80QFP
C32 die
C32 die
C32 die
48LQFP
52LQFP
80QFP
C32 die
C32 die
C32 die
MC9S12C128CFA16
MC9S12C128CPB16
MC9S12C128CFU16
MC9S12C128VFA16
MC9S12C128VPB16
MC9S12C128VFU16
MC9S12C128MFA16
MC9S12C128MPB16
MC9S12C128MFU16
MC9S12C128CFA25
MC9S12C128CPB25
MC9S12C128CFU25
MC9S12C128VFA25
MC9S12C128VPB25
MC9S12C128VFU25
MC9S12C128MFA25
MC9S12C128MPB25
MC9S12C128MFU25
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
TBD
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C,105˚C
-40˚C,105˚C
-40˚C, 105˚C
-40˚C,125˚C
-40˚C,125˚C
-40˚C, 125˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C, 85˚C
-40˚C,105˚C
-40˚C,105˚C
-40˚C, 105˚C
-40˚C,125˚C
-40˚C,125˚C
-40˚C, 125˚C
48LQFP
52LQFP
80QFP
C128 die
C128 die
C128 die
48LQFP
52LQFP
80QFP
C128 die
C128 die
C128 die
48LQFP
52LQFP
80QFP
C128 die
C128 die
C128 die
48LQFP
52LQFP
80QFP
C128 die
C128 die
C128 die
48LQFP
52LQFP
80QFP
C128 die
C128 die
C128 die
48LQFP
52LQFP
80QFP
C128 die
C128 die
C128 die
17
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table 0-3 Document References
1
Version Document Order Number
User Guide
HCS12 Core User Guides
1.5
HCS12COREUG/D
S12ATD10B8CV2/D
S12CRGV4/D
Analog To Digital Converter: 10 Bit 8 Channel (ATD_10B8C) Block User Guide
Clock and Reset Generator (CRG) Block User Guide
Serial Communications Interface (SCI) Block User Guide
Serial Peripheral Interface (SPI) Block User Guide
Motorola Scalable CAN (MSCAN) Block User Guide
Pulse Width Modulator: 8 bit, 6 channel (PWM_8B6C) Block User Guide
Timer : 16 bit, 8 channel (TIM_16B8C) Block User Guide
Voltage Regulator (VREG) Block User Guide
V02
V04
V02
V03
V02
V01
V01
V02
V02
V01
V01
V01
V01
S12SCIV2/D
S12SPIV3/D
S12MSCANV2/D
S12PWM8B6V1/D
S12TIM16B8CV1/D
S12VREG3V3V2/D
S12OSCV2/D
Oscillator (OSC) Block User Guide
(Port Integration Module) PIM_9C32 Block User Guide
32Kbyte Flash EEPROM (FTS32K) Block User Guide
64Kbyte Flash EEPROM (FTS64K) Block User Guide
128Kbyte Flash EEPROM (FTS128K) Block User Guide
S12C32PIMV1/D
S12FTS32KV1/D
S12FTS64KV1/D
S12FTS128KV1/D
NOTES:
1. For the C32 refer to the 32K flash, for the C64 the 64K flash, for the C96 the 96K flash and C128 the 128K flash document
Terminology
Acronyms and Abbreviations
New or invented terms, symbols, and notations
18
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Section 1 Introduction
1.1 Overview
The MC9S12C-Family is a 48/52/80 pin Flash-based Industrial/Automotive network control MCU family.
Members of the MC9S12C-Family deliver the power and flexibility of our 16 Bit core (CPU12) family to
a whole new range of cost and space sensitive, general purpose Industrial and Automotive network
applications. All MC9S12C-Family members are comprised of standard on-chip peripherals including a
16-bit central processing unit (CPU12), up to 128K bytes of Flash EEPROM, up to 4K bytes of RAM, an
asynchronous serial communications interface (SCI), a serial peripheral interface (SPI), an 8-channel
16-bit timer module (TIM), a 6-channel 8-bit Pulse Width Modulator (PWM), an 8-channel, 10-bit
analog-to-digital converter (ADC) and a CAN 2.0 A, B software compatible module (MSCAN12). The
MC9S12C-Family has full 16-bit data paths throughout. The inclusion of a PLL circuit allows power
consumption and performance to be adjusted to suit operational requirements. In addition to the I/O ports
available in each module, up to 10 dedicated I/O port bits are available with Wake-Up capability from
STOP or WAIT mode. The MC9S12C-Family is available in 48, 52 and 80 pin QFP packages, with the
80 Pin version pin compatible to the HCS12 B and D- Family derivatives
1.2 Features
•
16-bit HCS12 CORE
– HCS12 CPU
i. Upward compatible with M68HC11 instruction set
ii. Interrupt stacking and programmer’s model identical to M68HC11
iii.Instruction queue
iv. Enhanced indexed addressing
– MMC (memory map and interface)
– INT (interrupt control)
– BDM (background debug mode)
– DBG12 (enhanced debug12 module, including breakpoints and change-of-flow trace buffer)
– MEBI : Multiplexed Expansion Bus Interface (available only in 80 pin package version)
Wake-up interrupt inputs
•
•
– Up to 12-port bits available for wake up interrupt function with digital filtering
Memory options
– 2K, 64K, 96K or 128KByte Flash EEPROM (erasable in 512-byte sectors)
– 2K or 4K Byte RAM
•
Analog-to-Digital Converters
19
Device User Guide — 9S12C-FamilyDGV1/D V00.03
– One 8-channel module with 10-bit resolution.
– External conversion trigger capability
•
One 1M bit per second, CAN 2.0 A, B software compatible modules
– Five receive and three transmit buffers
– Flexible identifier filter programmable as 2 x 32 bit, 4 x 16 bit or 8 x 8 bit
– Four separate interrupt channels for Rx, Tx, error and wake-up
– Low-pass filter wake-up function
– Loop-back for self test operation
•
Timer Module (TIM)
– 8-Channel Timer
– Each Channel Configurable as either Input Capture or Output Compare
– Simple PWM Mode
– Modulo Reset of Timer Counter
– 16-Bit Pulse Accumulator
– External Event Counting
– Gated Time Accumulation
•
6 PWM channels
– Programmable period and duty cycle
– 8-bit 6-channel or 16-bit 3-channel
– Separate control for each pulse width and duty cycle
– Center-aligned or left-aligned outputs
– Programmable clock select logic with a wide range of frequencies
– Fast emergency shutdown input
•
•
Serial interfaces
– One asynchronous serial communications interface (SCI)
– One synchronous serial peripheral interface (SPI)
CRG (Clock Reset Generator Module)
– Windowed COP watchdog,
– Real time interrupt,
– Clock monitor,
– Pierce or low current Colpitts oscillator
– Phase-locked loop clock frequency multiplier
20
Device User Guide — 9S12C-FamilyDGV1/D V00.03
– Limp home mode in absence of external clock
– Low power 0.5 to 16 MHz crystal oscillator reference clock
Operating frequency
•
•
– 32MHz equivalent to 16MHz Bus Speed for single chip
– 32MHz equivalent to 16MHz Bus Speed in expanded bus modes
– Option: 50MHz equivalent to 25MHz Bus Speed
Internal 2.5V Regulator
– Supports an input voltage range from 2.97V to 5.5V
– Low power mode capability
– Includes low voltage reset (LVR) circuitry
– Includes low voltage interrupt (LVI) circuitry
48-Pin LQFP, 52-Pin LQFP or 80-Pin QFP package
– Up to 58 I/O lines with 5V input and drive capability (80 pin package)
– Up to 2 dedicated 5V input only lines (IRQ, XIRQ)
– 5V 8 A/D converter inputs and 5V I/O
•
•
Development support
– Single-wire background debug™ mode (BDM)
– On-chip hardware breakpoints
– Enhanced DBG12 debug features
1.3 Modes of Operation
User modes (Expanded modes are only available in the 80 pin package version).
•
Mormal and Emulation Operating Modes
– Normal Single-Chip Mode
– Normal Expanded Wide Mode
– Normal Expanded Narrow Mode
– Emulation Expanded Wide Mode
– Emulation Expanded Narrow Mode
Special Operating Modes
•
– Special Single-Chip Mode with active Background Debug Mode
– Special Test Mode (Motorola use only)
– Special Peripheral Mode (Motorola use only)
21
Device User Guide — 9S12C-FamilyDGV1/D V00.03
•
Low power modes
– Stop Mode
– Pseudo Stop Mode
– Wait Mode
22
Device User Guide — 9S12C-FamilyDGV1/D V00.03
1.4 Block Diagram
Figure 1-1 MC9S12C-Family Block Diagram
VSSR
VDDR
VDDX
VDDA
VSSA
VRH
VDDA
VSSA
VRH
ATD
VSSX
VRL
Voltage Regulator
VRL
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
PAD0
PAD1
PAD2
PAD3
PAD4
PAD5
PAD6
PAD7
32K, 64K, 96K, 128K Byte Flash
VDD2
VSS2
VDD1
VSS1
2K, 4K Byte RAM
Background
IOC0
IOC1
IOC2
IOC3
IOC4
IOC5
IOC6
IOC7
MODC
PT0
PT1
PT2
PT3
PT4
PT5
BKGD
HCS12
CPU
Debug12 Module
MUX
XFC
VDDPLL
VSSPLL
EXTAL
XTAL
Timer
Module
Clock and
Reset
Generation
Module
PLL
COP Watchdog
Clock Monitor
Periodic Interrupt
PT6
PT7
RESET
PW0
PW1
PW2
PW3
PW4
PW5
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
XIRQ
IRQ
R/W
LSTRB/TAGLO
ECLK
MODA/IPIPE0
MODB/IPIPE1
NOACC/XCLKS
PP0
PP1
PP2
PP3
PP4
PP5
System
PWM
Module
Integration
Module
(SIM)
PP6
PP7
TEST/VPP
PJ6
PJ7
Multiplexed Address/Data Bus
RXD
TXD
PS0
PS1
PS2
PS3
SCI
DDRA
PTA
DDRB
PTB
RXCAN
TXCAN
PM0
PM1
PM2
PM3
PM4
PM5
MSCAN
SPI
MISO
SS
MOSI
2
1
A
PA
SCK
1
ADR9
9
Multiplexed
Wide Bus
0
A
T
T
A
Signals shown in Bold are not available on the 52 or 48 Pin Package
Signals shown in Bold Italic are available in the 52, but not the 48 Pin Package
D
DA
Internal Logic 2.5V
I/O Driver 5V
VDD1,2
VSS1,2
VDDX
VSSX
PLL 2.5V
A/D Converter 5V
VRL is bonded internally to VSSA
for 52 and 48 Pin packages
VDDPLL
VSSPLL
VDDA
VSSA
Voltage Regulator 5V & I/O
VDDR
VSSR
23
Device User Guide — 9S12C-FamilyDGV1/D V00.03
1.5 Device Memory Map
Table 1-1 shows the device register map of the MC9S12C-Family after reset. The following figures (
Figure 1-2, Figure 1-2, Figure 1-3 and Figure 1-4) illustrate the full device memory map with flash
and RAM.
Table 1-1 Device Register Map Overview
Address
$000 - $017
$018
Module
CORE (Ports A, B, E,Modes, Inits, Test)
Reserved
Size
24
1
$019
Voltage Regulator (VREG)
Device ID register
1
$01A - $01B
$01C - $01F
$020 - $02F
$030 - $033
$034 - $03F
$040 - $06F
$070 - $07F
$080 - $09F
$0A0 - $0C7
$0C8 - $0CF
$0D0 - $0D7
$0D8 - $0DF
$0E0 - $0FF
$100 - $10F
$110 - $13F
$140 - $17F
$180 - $23F
$240 - $27F
$280 - $3FF
2
CORE (MEMSIZ, IRQ, HPRIO)
CORE (DBG)
4
16
4
CORE (PPAGE1)
Clock and Reset Generator (CRG)
Standard Timer Module16-bit 8-channels (TIM)
Reserved
12
48
16
32
40
8
Analog to Digital Convert (ATD)
Reserved
Serial Communications Interface (SCI)
Reserved
8
Serial Peripheral Interface (SPI)
Pulse Width Modulator 8-bit 6 channels (PWM)
Flash Control Register
Reserved
8
32
16
48
64
192
64
384
Motorola Scalable CAN (MSCAN)
Reserved
Port Integration Module (PIM)
Reserved
NOTES:
1. External memory paging is not supported on this device (6.1.1 PPAGE).
24
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0000
1K Register Space
$03FF
$0000
Mappable to any 2K Boundary
$0000
$0400
16K Fixed Flash EEPROM
4K Bytes RAM
$3FFF
$3000
$3000
$4000
$3FFF
$4000
Mappable to any 4K Boundary
16K Fixed Flash EEPROM
$7FFF
$8000
$8000
16K Page Window
8 * 16K Flash EEPROM Pages
EXT
$BFFF
$C000
$C000
16K Fixed Flash EEPROM
$FFFF
$FF00
BDM
(If Active)
$FF00
$FFFF
VECTORS
VECTORS
VECTORS
$FFFF
NORMAL
SINGLE CHIP
EXPANDED
SPECIAL
SINGLE CHIP
The figure shows a useful map, which is not the map out of reset. After reset the map is:
$0000 - $03FF: Register Space
$0000 - $0FFF: 4K RAM (only 3K visible $0400 - $0FFF)
Flash Erase Sector Size is 1024 Bytes
Figure 1-2 MC9S12C128 User configurable Memory Map
25
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0000
1K Register Space
$03FF
$0000
Mappable to any 2K Boundary
$0000
$0400
16K Fixed Flash EEPROM
4K Bytes RAM
$3FFF
$3000
$3000
$4000
$3FFF
$4000
Mappable to any 4K Boundary
16K Fixed Flash EEPROM
$7FFF
$8000
$8000
16K Page Window
6 * 16K Flash EEPROM Pages
EXT
$BFFF
$C000
$C000
$FF00
16K Fixed Flash EEPROM
$FFFF
$FF00
BDM
(If Active)
VECTORS
VECTORS
VECTORS
$FFFF
$FFFF
NORMAL
SINGLE CHIP
EXPANDED
SPECIAL
SINGLE CHIP
The figure shows a useful map, which is not the map out of reset. After reset the map is:
$0000 - $03FF: Register Space
$0000 - $0FFF: 4K RAM (only 3K visible $0400 - $0FFF)
Flash Erase Sector Size is 1024 Bytes
Figure 1-3 MC9S12C96 User Configurable Memory Map
26
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0000
1K Register Space
$03FF
$0000
Mappable to any 2K Boundary
$0000
$0400
16K Fixed Flash EEPROM
4K Bytes RAM
$3FFF
$3000
$3000
$4000
$3FFF
$4000
Mappable to any 4K Boundary
16K Fixed Flash EEPROM
$7FFF
$8000
$8000
16K Page Window
4 * 16K Flash EEPROM Pages
EXT
$BFFF
$C000
$C000
16K Fixed Flash EEPROM
$FFFF
$FF00
BDM
(If Active)
$FF00
$FFFF
VECTORS
VECTORS
VECTORS
$FFFF
NORMAL
SINGLE CHIP
EXPANDED
SPECIAL
SINGLE CHIP
The figure shows a useful map, which is not the map out of reset. After reset the map is:
$0000 - $03FF: Register Space
$0000 - $0FFF: 4K RAM (only 3K visible $0400 - $0FFF)
Flash Erase Sector Size is 512 Bytes
Figure 1-4 MC9S12C64 User Configurable Memory Map
27
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0000
$03FF
1K Register Space
Mappable to any 2K Boundary
$0000
$0400
$3800
$3FFF
2K Bytes RAM
$3800
$4000
Mappable to any 2K Boundary
$8000
$8000
16K Page Window
2 * 16K Flash EEPROM Pages
EXT
$BFFF
$C000
$C000
$FF00
16K Fixed Flash EEPROM
$FFFF
$FF00
BDM
(If Active)
VECTORS
VECTORS
VECTORS
$FFFF
$FFFF
NORMAL
SINGLE CHIP
EXPANDED
SPECIAL
SINGLE CHIP
The figure shows a useful map, which is not the map out of reset. After reset the map is:
$0000 - $03FF: Register Space
$0800 - $0FFF: 2K RAM
Flash Erase Sector Size is 512 Bytes
Figure 1-5 MC9S12C32 User Configurable Memory Map
1.6 Detailed Register Map
The detailed register map of the MC9S12C Family is listed in address order below.
28
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0000 - $000F
MEBI map 1 of 3 (Core User Guide)
Address
$0000
Name
Bit 7
Bit 7
Bit 6
6
Bit 5
5
Bit 4
4
Bit 3
3
Bit 2
2
Bit 1
1
Bit 0
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
PORTA
$0001
$0002
$0003
$0004
$0005
$0006
$0007
$0008
$0009
$000A
$000B
$000C
$000D
$000E
$000F
PORTB
DDRA
Bit 7
Bit 7
6
6
5
5
4
4
3
3
2
2
1
1
Bit 0
Bit 0
DDRB
Bit 7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit 0
0
Reserved
Reserved
Reserved
Reserved
PORTE
DDRE
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit 1
0
Bit 0
0
Bit 7
Bit 7
6
5
5
4
4
3
3
2
6
0
Bit 2
0
0
PEAR
NOACCE
MODC
PUPKE
PIPOE
NECLK
0
LSTRE
RDWE
0
MODE
MODB
0
MODA
0
IVIS
0
EMK
EME
PUPAE
RDPA
0
0
0
0
PUCR
PUPEE
PUPBE
0
0
0
0
0
0
0
0
0
RDRIV
RDPK
0
RDPE
0
RDPB
0
EBICTL
Reserved
ESTR
0
0
0
0
$0010 - $0014
MMC map 1 of 4 (Core User Guide)
Address
$0010
Name
Bit 7
RAM15
0
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
0
Bit 1
0
Bit 0
RAMHAL
0
Read:
Write:
Read:
Write:
INITRM
RAM14
RAM13
RAM12
RAM11
0
0
$0011
INITRG
Name
REG14
Bit 6
REG13
Bit 5
REG12
Bit 4
REG11
Bit 3
Address
Bit 7
Bit 2
Bit 1
Bit 0
29
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0010 - $0014
MMC map 1 of 4 (Core User Guide)
Address
$0012
Name
Bit 7
EE15
0
Bit 6
EE14
0
Bit 5
EE13
0
Bit 4
EE12
0
Bit 3
Bit 2
0
Bit 1
0
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
INITEE
EE11
EEON
$0013
$0014
MISC
EXSTR1 EXSTR0 ROMHM ROMON
0
0
0
0
0
0
0
0
Reserved
$0015 - $0016
INT map 1 of 2 (Core User Guide)
Address
$0015
Name
ITCR
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
WRINT
ADR3
ADR2
ADR1
ADR0
$0016
ITEST
INTE
INTC
INTA
INT8
INT6
INT4
INT2
INT0
$0017 - $0017
MMC map 2 of 4 (Core User Guide)
Address
$0017
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
Reserved
$0018 - $0018
Miscellaneous Peripherals (Device User Guide)
Address
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
$0018
Reserved
$0019 - $0019
VREG3V3 (Voltage Regulator)
Address
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
LVDS
Bit 1
LVIE
Bit 0
LVIF
Read:
Write:
$0019
VREGCTRL
$001A - $001B
Miscellaneous Peripherals (Device User Guide)
Address
$001A
Name
Bit 7
ID15
Bit 6
ID14
Bit 5
ID13
Bit 4
ID12
Bit 3
ID11
Bit 2
ID10
Bit 1
ID9
Bit 0
ID8
Read:
Write:
Read:
Write:
PARTIDH
ID7
ID6
ID5
ID4
ID3
ID2
ID1
ID0
$001B
PARTIDL
30
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$001C - $001D
MMC map 3 of 4 (Core User Guide, Device User Guide)
Address
$001C
Name
Bit 7
Read: reg_sw0
Write:
Bit 6
0
Bit 5
Bit 4
Bit 3
0
Bit 2
Bit 1
Bit 0
eep_sw1 eep_sw0
ram_sw2 ram_sw1 ram_sw0
MEMSIZ0
Read: rom_sw1 rom_sw0
Write:
0
0
0
0
pag_sw1 pag_sw0
$001D
MEMSIZ1
$001E - $001E
MEBI map 2 of 3 (Core User Guide)
Address
$001E
Name
Bit 7
Bit 6
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
INTCR
IRQE
IRQEN
$001F - $001F
INT map 2 of 2 (Core User Guide)
Address
$001F
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
Read:
Write:
PSEL7
PSEL6
PSEL5
PSEL4
PSEL3
PSEL2
PSEL1
HPRIO
$0020 - $002F
DBG (including BKP) map 1 of 1 (Core User Guide)
Address
Name
DBGC1
Bit 7
DBGEN
AF
Bit 6
ARM
BF
Bit 5
Bit 4
Bit 3
Bit 2
0
Bit 1
Bit 0
read
write
read
write
read
write
read
write
read
write
read
write
read
write
read
write
read
write
read
write
read
write
read
write
TRGSEL BEGIN DBGBRK
CAPMOD
$0020
-
CF
0
DBGSC
TRG
$0021
-
DBGTBH
Bit 15
Bit 14
Bit 13
Bit 5
Bit 12
Bit 4
Bit 11
Bit 3
Bit 10
Bit 2
Bit 9
Bit 1
Bit 8
Bit 0
$0022
$0023
$0024
$0025
$0026
$0027
$0028
-
DBGTBL
Bit 7
TBF
Bit 6
0
-
DBGCNT
CNT
-
DBGCCX
-
DBGCCH
PAGSEL
EXTCMP
Bit 15
Bit 7
14
6
13
5
12
4
11
10
2
9
1
Bit 8
Bit 0
RWC
DBGCCL
-
3
DBGC2
BKPCT0
DBGC3
BKPCT1
DBGCAX
BKP0X
DBGCAH
BKP0H
BKABEN
FULL
BDM
TAGAB BKCEN
TAGC
RWCEN
RWBEN
BKAMBH BKAMBL BKBMBH BKBMBL RWAEN
PAGSEL
Bit 15 14
RWA
10
RWB
$0029
$002A
$002B
EXTCMP
13
12
11
9
Bit 8
31
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0020 - $002F
DBG (including BKP) map 1 of 1 (Core User Guide)
Address
$002C
Name
DBGCAL
BKP0L
DBGCBX
BKP1X
DBGCBH
BKP1H
DBGCBL
BKP1L
Bit 7
Bit 7
Bit 6
6
Bit 5
5
Bit 4
4
Bit 3
3
Bit 2
2
Bit 1
1
Bit 0
Bit 0
read
write
read
write
read
write
read
write
$002D
$002E
$002F
PAGSEL
EXTCMP
Bit 15
Bit 7
14
6
13
5
12
4
11
3
10
2
9
1
Bit 8
Bit 0
$0030 - $0031
MMC map 4 of 4 (Core User Guide)
Address
$0030
Name
Bit 7
0
Bit 6
0
Bit 5
PIX5
0
Bit 4
PIX4
0
Bit 3
PIX3
0
Bit 2
PIX2
0
Bit 1
PIX1
0
Bit 0
PIX0
0
Read:
Write:
Read:
Write:
PPAGE
0
0
$0031
Reserved
$0032 - $0033
MEBI map 3 of 3 (Core User Guide)
Address
$0032
Name
Bit 7
Bit 7
Bit 6
6
Bit 5
5
Bit 4
4
Bit 3
3
Bit 2
2
Bit 1
1
Bit 0
Bit 0
Read:
Write:
Read:
Write:
1
PORTK
(1)
$0033
DDRK
Bit 7
6
5
4
3
2
1
Bit 0
NOTES:
1. Only applicable in special emulation-only bond outs, for emulation of extended memory map.
$0034 - $003F
CRG (Clock and Reset Generator)
Address
$0034
Name
SYNR
Bit 7
0
Bit 6
0
Bit 5
SYN5
0
Bit 4
SYN4
0
Bit 3
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
SYN3
SYN2
SYN1
SYN0
0
0
$0035
$0036
$0037
$0038
$0039
$003A
REFDV
REFDV3 REFDV2 REFDV1 REFDV0
Read: TOUT7
Write:
TOUT6
TOUT5
TOUT4
TOUT3
LOCK
0
TOUT2
TRACK
0
TOUT1
TOUT0
SCM
0
CTFLG
TEST ONLY
Read:
Write:
Read:
Write:
Read:
Write:
0
0
CRGFLG
CRGINT
CLKSEL
PLLCTL
RTIF
PROF
0
LOCKIF
LOCKIE
SCMIF
SCMIE
RTIWAI
PCE
RTIE
PLLSEL
PSTP
SYSWAI ROAWAI
AUTO ACQ
PLLWAI
0
CWAI
PRE
COPWAI
SCME
Read:
CME
PLLON
Write:
32
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0034 - $003F
CRG (Clock and Reset Generator)
Address
$003B
Name
Bit 7
0
Bit 6
Bit 5
RTR5
0
Bit 4
RTR4
0
Bit 3
RTR3
0
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
RTICTL
RTR6
RTR2
RTR1
RTR0
$003C
$003D
$003E
$003F
COPCTL
WCOP
RSBCK
CR2
0
CR1
CR0
0
0
0
FORBYP
TEST ONLY
RTIBYP COPBYP
PLLBYP
TCTL4
FCM
Read: TCTL7
Write:
TCTL6
TCTL5
TCLT3
TCTL2
TCTL1
TCTL0
CTCTL
TEST ONLY
Read:
Write:
0
Bit 7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit 0
ARMCOP
$0040 - $006F
TIM (Timer 16 Bit 8 Channels)
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
$0040
TIOS
IOS7
IOS6
IOS5
IOS4
IOS3
IOS2
IOS1
IOS0
0
0
0
0
0
0
0
0
$0041
$0042
$0043
$0044
$0045
$0046
$0047
$0048
$0049
$004A
$004B
$004C
$004D
$004E
$004F
CFORC
OC7M
OC7D
FOC7
FOC6
FOC5
FOC4
FOC3
FOC2
FOC1
FOC0
OC7M7
OC7M6
OC7M5
OC7M4
OC7M3
OC7M2
OC7M1
OC7M0
OC7D7
Bit 15
OC7D6
14
OC7D5
13
OC7D4
12
OC7D3
11
OC7D2
10
OC7D1
9
OC7D0
Bit 8
TCNT (hi)
TCNT (lo)
TSCR1
TTOV
Bit 7
6
5
4
3
2
1
Bit 0
0
0
0
0
TEN
TOV7
OM7
OM3
EDG7B
EDG3B
C7I
TSWAI
TOV6
OL7
TSFRZ
TOV5
TFFCA
TOV4
OL6
TOV3
OM5
TOV2
OL5
TOV1
OM4
TOV0
OL4
TCTL1
TCTL2
TCTL3
TCTL4
TIE
OM6
OL3
OM2
OL2
OM1
OL1
OM0
OL0
EDG7A
EDG3A
EDG6B
EDG2B
EDG6A
EDG2A
EDG5B
EDG1B
C3I
EDG5A
EDG1A
C2I
EDG4B
EDG0B
C1I
EDG4A
EDG0A
C0I
C6I
0
C5I
0
C4I
0
TSCR2
TFLG1
TFLG2
TOI
TCRE
PR2
PR1
PR0
C7F
C6F
0
C5F
0
C4F
0
C3F
0
C2F
0
C1F
0
C0F
0
TOF
33
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Address
$0050
Name
Bit 7
Bit 6
14
Bit 5
13
Bit 4
12
Bit 3
11
Bit 2
10
Bit 1
9
Bit 0
Bit 8
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Bit 15
TC0 (hi)
Bit 7
Bit 15
Bit 7
6
14
6
5
13
5
4
12
4
3
11
3
2
10
2
1
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
Bit 8
Bit 0
PAI
$0051
$0052
$0053
$0054
$0055
$0056
$0057
$0058
$0059
$005A
$005B
$005C
$005D
$005E
$005F
$0060
$0061
$0062
$0063
$0064
$0065
$0066
$0067
TC0 (lo)
TC1 (hi)
TC1 (lo)
TC2 (hi)
TC2 (lo)
TC3 (hi)
TC3 (lo)
TC4 (hi)
TC4 (lo)
TC5 (hi)
TC5 (lo)
TC6 (hi)
TC6 (lo)
TC7 (hi)
TC7 (lo)
PACTL
9
1
Bit 15
Bit 7
14
6
13
5
12
4
11
3
10
2
9
1
Bit 15
Bit 7
14
6
13
5
12
4
11
3
10
2
9
1
Bit 15
Bit 7
14
6
13
5
12
4
11
3
10
2
9
1
Bit 15
Bit 7
14
6
13
5
12
4
11
3
10
2
9
1
Bit 15
Bit 7
14
6
13
5
12
4
11
3
10
2
9
1
Bit 15
14
6
13
5
12
4
11
3
10
2
9
1
Bit 7
0
PAEN
0
PAMOD
0
PEDGE
0
CLK1
0
CLK0
0
PAOVI
PAOVF
9
0
PAFLG
PAIF
Bit 8
Bit 15
14
13
12
11
10
PACNT (hi)
PACNT (lo)
Reserved
Reserved
Reserved
Reserved
Bit 7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
34
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Address
$0068
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Reserved
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
$0069
$006A
$006B
$006C
$006D
$006E
$006F
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
$0070 - $007F
Reserved
Read:
Write:
0
0
0
0
0
0
0
0
$0070
- $007F
Reserved
$0080 - $009F
ATD (Analog to Digital Converter 10 Bit 8 Channel)
Address
$0080
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
ATDCTL0
0
0
0
0
0
0
0
0
$0081
$0082
$0083
$0084
$0085
$0086
$0087
$0088
$0089
$008A
ATDCTL1
ATDCTL2
ATDCTL3
ATDCTL4
ATDCTL5
ATDSTAT0
Reserved
ATDTEST0
ATDTEST1
Reserved
ASCIF
ADPU
0
AFFC
S8C
AWAI
S4C
ETRIGLE ETRIGP
ETRIG
FIFO
ASCIE
FRZ1
PRS1
S2C
PRS4
MULT
S1C
FRZ0
PRS0
SRES8
DJM
SMP1
SMP0
SCAN
PRS3
0
PRS2
DSGN
0
CC
CB
CA
0
0
0
0
0
CC2
CC1
CC0
SCF
0
ETORF
0
FIFOR
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
SC
0
35
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0080 - $009F
ATD (Analog to Digital Converter 10 Bit 8 Channel)
Address
$008B
Name
Bit 7
CCF7
Bit 6
CCF6
Bit 5
CCF5
Bit 4
CCF4
Bit 3
CCF3
Bit 2
CCF2
Bit 1
CCF1
Bit 0
CCF0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
ATDSTAT1
0
0
0
0
0
0
0
0
$008C
$008D
$008E
$008F
$0090
$0091
$0092
$0093
$0094
$0095
$0096
$0097
$0098
$0099
$009A
$009B
$009C
$009D
$009E
$009F
Reserved
ATDDIEN
Reserved
PORTAD0
ATDDR0H
ATDDR0L
ATDDR1H
ATDDR1L
ATDDR2H
ATDDR2L
ATDDR3H
ATDDR3L
ATDDR4H
ATDDR4L
ATDDR5H
ATDDR5L
ATDDR6H
ATDDR6L
ATDDR7H
ATDDR7L
Bit 7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit 0
0
Bit7
Bit15
Bit7
6
5
13
0
4
12
0
3
11
0
2
10
0
1
9
0
9
0
9
0
9
0
9
0
9
0
9
0
9
0
BIT 0
Bit8
0
14
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
14
Bit15
Bit7
13
0
12
0
11
0
10
0
Bit8
0
Bit6
$00A0 - $00C7
Reserved
Read:
Write:
0
0
0
0
0
0
0
0
$00A0
Reserved
- $00C7
36
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$00C8 - $00CF
SCI (Asynchronous Serial Interface)
Address
$00C8
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
SBR12
SBR11
SBR10
SBR9
SBR8
SCIBDH
$00C9
$00CA
$00CB
$00CC
$00CD
$00CE
$00CF
SCIBDL
SCICR1
SCICR2
SCISR1
SCISR2
SCIDRH
SCIDRL
SBR7
SBR6
SBR5
RSRC
SBR4
M
SBR3
SBR2
ILT
SBR1
PE
SBR0
PT
LOOPS SCISWAI
WAKE
TIE
TCIE
TC
RIE
ILIE
TE
RE
NF
RWU
FE
SBK
PF
TDRE
RDRF
IDLE
OR
0
0
0
0
0
0
0
0
RAF
0
BRK13
0
TXDIR
0
R8
T8
R7
T7
R6
T6
R5
T5
R4
T4
R3
T3
R2
T2
R1
T1
R0
T0
$00D0 - $00D7
Reserved
Read:
Write:
0
0
0
0
0
0
0
0
$00D0
Reserved
- $00D7
$00D8 - $00DF
SPI (Serial Peripheral Interface)
Address
$00D8
Name
Bit 7
SPIE
0
Bit 6
SPE
0
Bit 5
SPTIE
0
Bit 4
Bit 3
Bit 2
CPHA
0
Bit 1
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
SPICR1
MSTR
CPOL
SSOE
LSBFE
$00D9
$00DA
$00DB
$00DC
$00DD
$00DE
$00DF
SPICR2
SPIBR
MODFEN BIDIROE
SPISWAI
SPC0
0
SPIF
0
0
SPPR2
0
SPPR1
SPTEF
SPPR0
SPR2
0
SPR1
0
SPR0
0
MODF
0
0
0
SPISR
0
0
0
0
0
Reserved
SPIDR
Bit7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit0
0
Reserved
Reserved
0
0
0
0
0
0
0
0
37
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$00E0 - $00FF
PWM (Pulse Width Modulator)
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
0
0
$00E0
PWME
PWME5
PWME4
PWME3
PWME2
PWME1
PWME0
0
0
0
0
0
0
0
0
0
$00E1
$00E2
$00E3
$00E4
$00E5
$00E6
$00E7
$00E8
$00E9
$00EA
$00EB
$00EC
$00ED
$00EE
$00EF
$00F0
$00F1
$00F2
$00F3
$00F4
$00F5
$00F6
PWMPOL
PWMCLK
PWMPRCLK
PWMCAE
PWMCTL
PPOL5
PCLK5
PCKB1
CAE5
PPOL4
PCLK4
PCKB0
CAE4
PPOL3
PPOL2
PCLK2
PCKA2
CAE2
PPOL1
PCLK1
PCKA1
PPOL0
PCLK0
PCKA0
PCLK3
0
PCKB2
0
CAE3
CAE1
0
CAE0
0
CON45
0
CON23
0
CON01
0
PSWAI
0
PFRZ
0
0
0
0
0
PWMTST
Test Only
0
6
0
5
0
4
0
3
0
2
PWMPRSC
PWMSCLA
PWMSCLB
PWMSCNTA
PWMSCNTB
PWMCNT0
PWMCNT1
PWMCNT2
PWMCNT3
PWMCNT4
PWMCNT5
PWMPER0
PWMPER1
PWMPER2
PWMPER3
PWMPER4
Bit 7
1
Bit 0
Bit 7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit 0
0
0
0
0
0
0
0
0
0
Bit 7
0
Bit 7
0
Bit 7
0
Bit 7
0
Bit 7
0
Bit 7
0
6
0
6
0
6
0
6
0
6
0
6
0
5
0
5
0
5
0
5
0
5
0
5
0
4
0
4
0
4
0
4
0
4
0
4
0
3
0
3
0
3
0
3
0
3
0
3
0
2
0
2
0
2
0
2
0
2
0
2
0
1
0
1
0
1
0
1
0
1
0
1
0
Bit 0
0
Bit 0
0
Bit 0
0
Bit 0
0
Bit 0
0
Bit 0
0
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
6
6
6
6
6
5
5
5
5
5
4
4
4
4
4
3
3
3
3
3
2
2
2
2
2
1
1
1
1
1
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
38
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Address
$00F7
Name
Bit 7
Bit 7
Bit 6
6
Bit 5
5
Bit 4
4
Bit 3
3
Bit 2
2
Bit 1
1
Bit 0
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
PWMPER5
$00F8
$00F9
$00FA
$00FB
$00FC
$00FD
$00FE
$00FF
PWMDTY0
PWMDTY1
PWMDTY2
PWMDTY3
PWMDTY4
PWMDTY5
Reserved
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
6
6
6
6
6
5
5
5
5
5
4
4
4
4
4
3
3
3
3
3
2
2
2
2
2
1
1
1
1
1
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
Bit 7
0
6
0
5
0
4
0
3
0
2
0
1
0
Bit 0
0
0
0
0
0
0
0
0
0
Reserved
$0100 - $010F
Flash Control Register
Address
$0100
Name
Bit 7
Read: FDIVLD
Write:
Bit 6
Bit 5
FDIV5
NV5
Bit 4
FDIV4
NV4
Bit 3
FDIV3
NV3
Bit 2
FDIV2
NV2
Bit 1
FDIV1
SEC1
Bit 0
FDIV0
SEC0
FCLKDIV
PRDIV8
Read: KEYEN1 KEYEN0
$0101
$0102
$0103
$0104
$0105
$0106
$0107
$0108
$0109
$010A
$010B
FSEC
FTSTMOD
FCNFG
FPROT
FSTAT
Write:
Read:
0
0
0
0
0
0
0
0
WRALL
0
0
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
CBEIE
FPOPEN
CCIE
KEYACC
FPHDIS
PVIOL
BKSEL1 BKSEL0
NV6
FPHS1
FPHS0
0
FPLDIS
BLANK
FPLS1
0
FPLS0
0
CCIF
CBEIF
0
ACCERR
0
0
0
0
0
0
0
0
0
0
0
0
0
FCMD
CMDB6
0
CMDB5
0
CMDB2
0
CMDB0
0
0
0
0
0
0
0
0
0
0
0
Reserved for
Factory Test
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Reserved for
Factory Test
Reserved for
Factory Test
Reserved for
Factory Test
Reserved for
Factory Test
39
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0100 - $010F
Flash Control Register
Address
$010C
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Reserved
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
$010D
$010E
$010F
Reserved
Reserved
Reserved
$0110 - $013F
Reserved
Read:
Write:
0
0
0
0
0
0
0
0
$0110
- $003F
Reserved
$0140 - $017F
CAN (Motorola Scalable CAN - MSCAN)
Address
$0140
Name
Bit 7
Bit 6
RXACT
Bit 5
Bit 4
SYNCH
Bit 3
TIME
0
Bit 2
Bit 1
Bit 0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
RXFRM
CSWAI
WUPE
SLPRQ
SLPAK
INITRQ
INITAK
CANCTL0
CANE
SJW1
SAMP
WUPIF
CLKSRC
SJW0
LOOPB
BRP5
LISTEN
BRP4
WUPM
BRP2
$0141
$0142
$0143
$0144
$0145
$0146
$0147
$0148
$0149
$014A
$014B
$014C
$014D
CANCTL1
CANBTR0
CANBTR1
CANRFLG
CANRIER
CANTFLG
CANTIER
CANTARQ
CANTAAK
CANTBSEL
CANIDAC
Reserved
Reserved
BRP3
BRP1
BRP0
TSEG22 TSEG21 TSEG20 TSEG13 TSEG12 TSEG11 TSEG10
RSTAT1
RSTAT0
TSTAT1
TSTAT0
CSCIF
OVRIF
OVRIE
TXE1
RXF
RXFIE
TXE0
WUPIE
0
CSCIE
0
RSTATE1 RSTATE0 TSTATE1 TSTATE0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TXE2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TXEIE2
TXEIE1
TXEIE0
ABTRQ2
ABTAK2
ABTRQ1
ABTAK1
ABTRQ0
ABTAK0
TX2
TX1
TX0
IDHIT2
IDHIT1
IDHIT0
IDAM1
0
IDAM0
0
0
0
0
0
0
0
0
0
40
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0140 - $017F
CAN (Motorola Scalable CAN - MSCAN)
Address
$014E
Name
Bit 7
RXERR7
Bit 6
RXERR6
Bit 5
RXERR5
Bit 4
RXERR4
Bit 3
RXERR3
Bit 2
RXERR2
Bit 1
RXERR1
Bit 0
RXERR0
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
CANRXERR
TXERR7
TXERR6
TXERR5
TXERR4
TXERR3
TXERR2
TXERR1
TXERR0
$014F
CANTXERR
$0150 -
$0153
CANIDAR0 -
CANIDAR3
AC7
AM7
AC7
AM7
AC6
AM6
AC6
AM6
AC5
AM5
AC5
AM5
AC4
AM4
AC4
AM4
AC3
AM3
AC3
AM3
AC2
AM2
AC2
AM2
AC1
AM1
AC1
AM1
AC0
AM0
AC0
AM0
$0154 -
$0157
CANIDMR0 -
CANIDMR3
$0158 -
$015B
CANIDAR4 -
CANIDAR7
$015C - CANIDMR4 -
$015F
CANIDMR7
FOREGROUND RECEIVE BUFFER see Table 1-2
$0160 -
$016F
CANRXFG
$0170 -
$017F
CANTXFG
FOREGROUND TRANSMIT BUFFER see Table 1-2
Table 1-2 Detailed MSCAN Foreground Receive and Transmit Buffer Layout
Address
Name
Bit 7
ID28
ID10
Bit 6
ID27
ID9
Bit 5
ID26
ID8
Bit 4
ID25
ID7
Bit 3
ID24
ID6
Bit 2
ID23
ID5
Bit 1
ID22
ID4
Bit 0
ID21
ID3
Extended ID Read:
Standard ID Read:
CANxRIDR0 Write:
Extended ID Read:
Standard ID Read:
CANxRIDR1 Write:
Extended ID Read:
Standard ID Read:
CANxRIDR2 Write:
Extended ID Read:
Standard ID Read:
CANxRIDR3 Write:
$xxx0
ID20
ID2
ID19
ID1
ID18
ID0
SRR=1
RTR
IDE=1
IDE=0
ID17
ID9
ID16
ID8
ID15
ID7
$xxx1
$xxx2
ID14
ID6
ID13
ID5
ID12
ID4
ID11
ID3
ID10
ID2
ID1
ID0
RTR
$xxx3
Read:
Write:
Read:
Write:
Read:
Write:
Read: TSR15
Write:
Read: TSR7
Write:
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
$xxx4- CANxRDSR0 -
$xxxB
CANxRDSR7
DLC3
DLC2
DLC1
DLC0
$xxxC
CANRxDLR
$xxxD
$xxxE
$xxxF
Reserved
TSR14
TSR6
TSR13
TSR5
TSR12
TSR4
TSR11
TSR3
TSR10
TSR2
TSR9
TSR1
TSR8
TSR0
CANxRTSRH
CANxRTSRL
Extended ID Read:
CANxTIDR0 Write:
Standard ID Read:
Write:
ID28
ID10
ID27
ID9
ID26
ID8
ID25
ID7
ID24
ID6
ID23
ID5
ID22
ID4
ID21
ID3
$xx10
41
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Address
$xx11
Name
Bit 7
ID20
Bit 6
ID19
Bit 5
ID18
Bit 4
Bit 3
Bit 2
ID17
Bit 1
ID16
Bit 0
ID15
Extended ID Read:
CANxTIDR1 Write:
Standard ID Read:
Write:
Extended ID Read:
CANxTIDR2 Write:
Standard ID Read:
Write:
Extended ID Read:
CANxTIDR3 Write:
Standard ID Read:
Write:
SRR=1
IDE=1
ID2
ID1
ID0
RTR
ID11
IDE=0
ID10
ID14
ID13
ID12
ID9
ID1
ID8
ID0
ID7
$xx12
ID6
DB7
ID5
ID4
ID3
ID2
RTR
$xx13
Read:
Write:
Read:
Write:
Read:
Write:
$xx14- CANxTDSR0 -
$xx1B
DB6
DB5
DB4
DB3
DB2
DB1
DB0
CANxTDSR7
$xx1C
CANxTDLR
DLC3
DLC2
DLC1
DLC0
$xx1D
$xx1E
$xx1F
CONxTTBPR
CANxTTSRH
CANxTTSRL
PRIO7
PRIO6
TSR14
PRIO5
TSR13
PRIO4
TSR12
PRIO3
TSR11
PRIO2
TSR10
PRIO1
TSR9
PRIO0
TSR8
Read: TSR15
Write:
Read: TSR7
Write:
TSR6
TSR5
TSR4
TSR3
TSR2
TSR1
TSR0
$0180 - $023F
Reserved
Read:
Write:
0
0
0
0
0
0
0
0
$0180
- $023F
Reserved
$0240 - $027F
PIM (Port Interface Module)
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
$0240
$0241
$0242
$0243
$0244
$0245
$0246
$0247
$0248
PTT
PTIT
PTT7
PTT6
PTT5
PTT4
PTT3
PTT2
PTT1
PTT0
PTIT7
PTIT6
PTIT5
PTIT4
PTIT3
PTIT2
PTIT1
PTIT0
DDRT
RDRT
PERT
PPST
DDRT7
RDRT7
PERT7
DDRT7
RDRT6
PERT6
DDRT5
RDRT5
PERT5
DDRT4
RDRT4
PERT4
DDRT3
RDRT3
PERT3
DDRT2
RDRT2
PERT2
DDRT1
RDRT1
PERT1
DDRT0
RDRT0
PERT0
PPST7
0
PPST6
0
PPST5
0
PPST4
0
PPST3
0
PPST2
0
PPST1
0
PPST0
0
Reserved
MODRR
PTS
0
0
0
0
0
0
MODRR4 MODRR3 MODRR2 MODRR1 MODRR0
0
PTS3
PTS2
PTS1
PTS0
42
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read: PTIP7
Write:
Read:
DDRP7
Write:
Read:
RDRP7
Write:
Read:
PERP7
Write:
Read:
PPSP7
Write:
Read:
PIEP7
Write:
Read:
PIFP7
Write:
Read:
Write:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
PTIS3
PTIS2
PTIS1
PTIS0
$0249
$024A
$024B
$024C
$024D
$024E
$024F
$0250
$0251
$0252
$0253
$0254
$0255
$0256
$0257
$0258
$0259
$025A
$025B
$025C
$025D
$025E
$025F
$0260
PTIS
DDRS
RDRS
PERS
PPSS
WOMS
Reserved
PTM
DDRS3
RDRS3
PERS3
PPSS3
DDRS2
RDRS2
PERS2
PPSS2
DDRS1
RDRS1
PERS1
PPSS1
DDRS0
RDRS0
PERS0
PPSS0
WOMS3
0
WOMS2
0
WOMS1
0
WOMS0
0
PTM5
PTM4
PTM3
PTM2
PTM1
PTM0
PTIM5
PTIM4
PTIM3
PTIM2
PTIM1
PTIM0
PTIM
DDRM
RDRM
PERM
PPSM
WOMM
Reserved
PTP
DDRM5
RDRM5
PERM5
PPSM5
DDRM4
RDRM4
PERM4
PPSM4
DDRM3
RDRM3
PERM3
PPSM3
DDRM2
RDRM2
PERM2
PPSM2
DDRM1
RDRM1
PERM1
PPSM1
DDRM0
RDRM0
PERM0
PPSM0
WOMM5 WOMM4 WOMM3 WOMM2 WOMM1 WOMM0
0
0
0
0
0
0
PTP7
PTP6
PTP5
PTP4
PTP3
PTP2
PTP1
PTP0
PTIP6
PTIP5
PTIP4
PTIP3
PTIP2
PTIP1
PTIP0
PTIP
DDRP
RDRP
PERP
PPSP
PIEP
DDRP7
RDRP6
PERP6
PPSP6
PIEP6
DDRP5
RDRP5
PERP5
PPSP5
PIEP5
DDRP4
RDRP4
PERP4
PPSP4
PIEP4
DDRP3
RDRP3
PERP3
PPSP3
PIEP3
DDRP2
RDRP2
PERP2
PPSP2
PIEP2
DDRP1
RDRP1
PERP1
PPSP1
PIEP1
DDRP0
RDRP0
PERP0
PPSS0
PIEP0
PIFP
PIFP6
0
PIFP5
0
PIFP4
0
PIFP3
0
PIFP2
0
PIFP1
0
PIFP0
0
0
Reserved
43
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
$0261
$0262
$0263
$0264
$0265
$0266
$0267
$0268
$0269
$026A
$026B
$026C
$026D
$026E
$026F
$0270
$0271
$0272
$0273
$0274
$0275
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
PTJ
PTJ7
PTJ6
PTIJ7
PTIJ6
PTIJ
DDRJ
DDRJ7
RDRJ7
PERJ7
PPSJ7
PIEJ7
DDRJ7
RDRJ6
PERJ6
PPSJ6
PIEJ6
RDRJ
PERJ
PPSJ
PIEJ
PIFJ
PIFJ7
PIFJ6
PTAD7
PTAD6
PTAD5
PTAD4
PTAD3
PTAD2
PTAD1
PTAD0
PTIJ7
PTAD
PTIAD7 PTIAD6 PTIAD5 PTIAD4 PTIAD3 PTIAD2 PTIAD1
PTIAD
DDRAD7 DDRAD6 DDRAD5 DDRAD4 DDRAD3 DDRAD2 DDRAD1 DDRAD0
RDRAD7 RDRAD6 RDRAD5 RDRAD4 RDRAD3 RDRAD2 RDRAD1 RDRAD0
PERAD7 PERAD6 PERAD5 PERAD4 PERAD3 PERAD2 PERAD1 PERAD0
PPSAD7 PPSAD6 PPSAD5 PPSAD4 PPSAD3 PPSAD2 PPSAD1 PPSAD0
DDRAD
RDRAD
PERAD
PPSAD
Reserved
0
0
0
0
0
0
0
0
$0276-
$027F
44
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$0280 - $03FF
Reserved space
Address
Name
Bit 7
0
Bit 6
0
Bit 5
0
Bit 4
0
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
0
Read:
Write:
Read:
Write:
$0280
- $2FF
Reserved
0
0
0
0
0
0
0
0
$0300 -
$03FF
Unimplemented
1.7 Part ID Assignments
The part ID is located in two 8-bit registers PARTIDH and PARTIDL (addresses $001A and $001B after
reset). The read-only value is a unique part ID for each revision of the chip. Table 1-3 shows the assigned
part ID numbers.
Table 1-3 Assigned Part ID Numbers
1
Device
Mask Set Number
0L45J
Part ID
$3300
$3300
TBD
MC9S12C32
MC9S12C32
MC9S12C64
MC9S12C96
MC9S12C128
1L45J
TBD
TBD
TBD
0L09S
$3100
NOTES:
1. The coding is as follows:
Bit 15-12: Major family identifier
Bit 11-8: Minor family identifier
Bit 7-4: Major mask set revision number including FAB transfers
Bit 3-0: Minor - non full - mask set revision
The device memory sizes are located in two 8-bit registers MEMSIZ0 and MEMSIZ1 (addresses $001C
and $001D after reset). Table 1-4 shows the read-only values of these registers. Refer to section Module
Mapping and Control (MMC) of HCS12 Core User Guide for further details.
Table 1-4 Memory size registers
Device
Register name
MEMSIZ0
MEMSIZ1
MEMSIZ0
MEMSIZ1
MEMSIZ0
MEMSIZ1
MEMSIZ0
MEMSIZ1
Value
$00
$80
$01
$C0
$01
$C0
$01
$C0
MC9S12C32
MC9S12C32
MC9S12C64
MC9S12C64
MC9S12C96
MC9S12C96
MC9S12C128
MC9S12C128
45
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Section 2 Signal Description
2.1 Device Pinout
/KWP4
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
PW3/KWP3/PP3
PW2/KWP2/PP2
PW1/KWP1/PP1
PW0/KWP0/PP0
PW0/IOC0/PT0
PW1/IOC1/PT1
PW2/IOC2/PT2
PW3/IOC3/PT3
VDD1
1
2
3
4
5
6
7
8
VRH
VDDA
PAD07/AN07
PAD06/AN06
PAD05/AN05
PAD04/AN04
PAD03/AN03
PAD02/AN02
PAD01/AN01
PAD00/AN00
VSS2
VDD2
PA7/ADDR15/DATA15
PA6/ADDR14/DATA14
PA5/ADDR13/DATA13
PA4/ADDR12/DATA12
PA3/ADDR11/DATA11
PA2/ADDR10/DATA10
PA1/ADDR9/DATA9
PA0/ADDR8/DATA8
9
VSS1
PW4/IOC4/PT4
IOC5/PT5
10
11
12
13
14
15
16
17
18
19
20
MC9S12C-Family
80 QFP
IOC6/PT6
IOC7/PT7
MODC/TAGHI/BKGD
ADDR0/DATA0/PB0
ADDR1/DATA1/PB1
ADDR2/DATA2/PB2
ADDR3/DATA3/PB3
ADDR4/DATA4/PB4
Signals shown in Bold are not available on the 52 or 48 Pin Package
Signals shown in Bold Italic are available in the 52, but not the 48 Pin Package
Figure 2-1 Pin Assignments in 80 QFP for MC9S12C-Family
46
Device User Guide — 9S12C-FamilyDGV1/D V00.03
/KWP4
VRH
39
38
37
36
35
34
33
32
31
30
29
28
27
PW3/KWP3/PP3
1
PW0/IOC0/PT0
VDDA
2
PW1/IOC1/PT1
PW2/IOC2/PT2
PW3/IOC3/PT3
VDD1
PAD07/AN07
PAD06/AN06
PAD05/AN05
3
4
5
PAD04/AN04
PAD03/AN03
PAD02/AN02
PAD01/AN01
PAD00/AN00
PA2
6
MC9S12C-Family
VSS1
7
52 QFP
PW4/IOC4/PT4
IOC5/PT5
8
9
10
11
12
13
IOC6/PT6
IOC7/PT7
PA1
MODC/BKGD
PB4
PA0
* Signals shown in Bold italic are not available on the 48 Pin Package
Figure 2-2 Pin assignments in 52 LQFP for MC9S12C-Family
47
Device User Guide — 9S12C-FamilyDGV1/D V00.03
PW0/IOC0/PT0
1
VRH
36
35
34
33
32
31
30
29
28
27
26
25
PW1/IOC1/PT1
PW2/IOC2/PT2
PW3/IOC3/PT3
VDD1
2
VDDA
3
PAD07/AN07
PAD06/AN06
PAD05/AN05
4
5
PAD04/AN04
PAD03/AN03
PAD02/AN02
PAD01/AN01
PAD00/AN00
PA0
VSS1
6
MC9S12C-Family
48 LQFP
PW4/IOC4/PT4
IOC5/PT5
7
8
9
IOC6/PT6
10
11
12
IOC7/PT7
MODC/BKGD
PB4
XIRQ/PE0
Figure 2-3 Pin Assignments in 48 LQFP for MC9S12C-Family
48
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.2 Signal Properties Summary
Table 2-1 Signal Properties
Internal Pull
Resistor
Pin Name Pin Name Pin Name Power
Function 1 Function 2 Function 3 Domain
Description
Reset
CTRL
State
EXTAL
XTAL
RESET
XFC
—
—
—
—
VDDPLL
VDDPLL
VDDX
NA
NA
NA
Oscillator pins
NA
—
—
None
NA
None
NA
External reset pin
PLL loop filter pin
Test pin only
—
—
VDDPLL
VSSX
TEST
BKGD
PE7
VPP
MODC
NOACC
—
NA
NA
TAGHI
XCLKS
VDDX
Up
Up
Background debug, mode pin, tag signal high
Port E I/O pin, access, clock select
VDDX
PUCR
Up
While RESET
pin is low: Down
PE6
PE5
IPIPE1
IPIPE0
MODB
MODA
VDDX
VDDX
Port E I/O pin and pipe status
Port E I/O pin and pipe status
While RESET
pin is low: Down
PE4
PE3
PE2
PE1
PE0
ECLK
LSTRB
R/W
—
TAGLO
—
VDDX
VDDX
VDDX
VDDX
VDDX
PUCR
PUCR
PUCR
PUCR
PUCR
Up
Up
Up
Up
Up
Port E I/O pin, bus clock output
Port E I/O pin, low strobe, tag signal low
Port E I/O pin, R/W in expanded modes
Port E input, external interrupt pin
IRQ
—
XIRQ
—
Port E input, non-maskable interrupt pin
ADDR[15:1/
DATA[15:1]
PA[7:3]
PA[2:1]
PA[0]
—
—
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
VDDA
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
PUCR
PUCR
PUCR
PUCR
PUCR
PUCR
Disabled Port A I/O pin & multiplexed address/data
Disabled Port A I/O pin & multiplexed address/data
Disabled Port A I/O pin & multiplexed address/data
Disabled Port B I/O pin & multiplexed address/data
Disabled Port B I/O pin & multiplexed address/data
Disabled Port B I/O pin & multiplexed address/data
Disabled Port AD I/O pins and ATD inputs
ADDR[10:9/
DATA[10:9]
ADDR[8]/
DATA[8]
—
ADDR[7:5]/
DATA[7:5]
PB[7:5]
PB[4]
—
ADDR[4]/
DATA[4]
—
ADDR[3:0]/
DATA[3:0]
PB[3:0]
PAD[7:0]
PP[7]
—
PERAD/P
PSAD
AN[7:0]
KWP[7]
—
PERP/
PPSP
—
Disabled Port P I/O Pins and keypad wake-up
PERP/
PPSP
Port P I/O Pins, keypad wake-up and ROMON
PP[6]
KWP[6]
ROMCTL
PW5
PW[4:3]
PW[2:0]
—
Disabled
enable.
PERP/
PPSP
PP[5]
KWP[5]
Disabled Port P I/O Pin, keypad wake-up, PW5 output
Disabled Port P I/O Pin, keypad wake-up, PWM output
Disabled Port P I/O Pins, keypad wake-up, PWM outputs
Disabled Port J I/O Pins and keypad wake-up
PERP/
PPSP
PP[4:3]
PP[2:0]
PJ[7:6]
KWP[4:3]
KWP[2:0]
KWJ[7:6]
PERP/
PPSP
PERJ/
PPSJ
49
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Internal Pull
Resistor
Pin Name Pin Name Pin Name Power
Function 1 Function 2 Function 3 Domain
Description
Reset
State
CTRL
PERM/
PPSM
PM5
PM4
SCK
MOSI
—
—
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
VDDX
Disabled Port M I/O Pin and SPI SCK signal
Disabled Port M I/O Pin and SPI MOSI signal
Disabled Port M I/O Pin and SPI SS signal
Disabled Port M I/O Pin and SPI MISO signal
Disabled Port M I/O Pin and CAN transmit signal
Disabled Port M I/O Pin and CAN receive signal
PERM/
PPSM
PERM/
PPSM
PM3
SS
—
PERM/
PPSM
PM2
MISO
—
PERM/
PPSM
PM1
TXCAN
RXCAN
—
—
PERM/
PPSM
PM0
—
PERS/
PPSS
PS[3:2]
PS1
—
Up
Up
Up
Port S I/O Pins
PERS/
PPSS
TXD
—
Port S I/O Pin and SCI transmit signal
Port S I/O Pin and SCI receive signal
PERS/
PPSS
PS0
RXD
—
PERT/
PPST
PT[7:5]
PT[4:0]
IOC[7:5]
IOC[4:0]
—
Disabled Port T I/O Pins shared with timer (TIM)
Disabled Port T I/O Pins shared with timer and PWM
PERT/
PPST
PW[4:0]
2.2.1 Pin Initialization for 48 & 52 Pin LQFP bond-out versions
Not Bonded Pins If the port pins are not bonded out in the chosen package the user should initialize the
registers to be inputs with enabled pull resistance to avoid excess current consumption. This applies to the
following pins:
(48LQFP): Port A[7:1], Port B[7:5], Port B[3:0], PortE[6,5,3,2], Port P[7:6], PortP[4:0], Port J[7:6],
PortS[3:2]
(52LQFP): Port A[7:3], Port B[7:5], Port B[3:0], PortE[6,5,3,2], Port P[7:6], PortP[2:0], Port J[7:6],
PortS[3:2]
2.3 Detailed Signal Descriptions
2.3.1 EXTAL, XTAL — Oscillator Pins
EXTAL and XTAL are the crystal driver and external clock pins. On reset all the device clocks are derived
from the EXTAL input frequency. XTAL is the crystal output.
50
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.2 RESET — External Reset Pin
RESET is an active low bidirectional control signal that acts as an input to initialize the MCU to a known
start-up state. It also acts as an open-drain output to indicate that an internal failure has been detected in
either the clock monitor or COP watchdog circuit. External circuitry connected to the RESET pin should
not include a large capacitance that would interfere with the ability of this signal to rise to a valid logic one
within 32 ECLK cycles after the low drive is released. Upon detection of any reset, an internal circuit
drives the RESET pin low and a clocked reset sequence controls when the MCU can begin normal
processing.
2.3.3 TEST / VPP — Test Pin
This pin is reserved for test and must be tied to VSS in all applications.
2.3.4 XFC — PLL Loop Filter Pin
Dedicated pin used to create the PLL loop filter. See CRG BUG for more detailed information.PLL loop
filter. Please ask your Motorola representative for the interactive application note to compute PLL loop
filter elements. Any current leakage on this pin must be avoided.
XFC
R
0
C
P
MCU
C
S
VDDPLL
VDDPLL
Figure 2-4 PLL Loop Filter Connections
2.3.5 BKGD / TAGHI / MODC — Background Debug, Tag High & Mode Pin
The BKGD / TAGHI / MODC pin is used as a pseudo-open-drain pin for the background debug
communication. In MCU expanded modes of operation when instruction tagging is on, an input low on
this pin during the falling edge of E-clock tags the high half of the instruction word being read into the
instruction queue. It is also used as a MCU operating mode select pin at the rising edge during reset, when
the state of this pin is latched to the MODC bit.
51
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.6 PA[7:0] / ADDR[15:8] / DATA[15:8] — Port A I/O Pins
PA7-PA0 are general purpose input or output pins. In MCU expanded modes of operation, these pins are
used for the multiplexed external address and data bus. PA[7:1] pins are not available in the 48 package
version. PA[7:3] are not available in the 52 pin package version.
2.3.7 PB[7:0] / ADDR[7:0] / DATA[7:0] — Port B I/O Pins
PB7-PB0 are general purpose input or output pins. In MCU expanded modes of operation, these pins are
used for the multiplexed external address and data bus. PB[7:5] and PB[3:0] pins are not available in the
48 nor 52 pin package version.
2.3.8 PE7 / NOACC / XCLKS — Port E I/O Pin 7
PE7 is a general purpose input or output pin. During MCU expanded modes of operation, the NOACC
signal, when enabled, is used to indicate that the current bus cycle is an unused or “free” cycle. This signal
will assert when the CPU is not using the bus.The XCLKS is an input signal which controls whether a
crystal in combination with the internal Colpitts (low power) oscillator is used or whether Pierce
oscillator/external clock circuitry is used. The state of this pin is latched at the rising edge of RESET. If
the input is a logic low the EXTAL pin is configured for an external clock drive or a Pierce Oscillator. If
input is a logic high a Colpitts oscillator circuit is configured on EXTAL and XTAL. Since this pin is an
input with a pull-up device during reset, if the pin is left floating, the default configuration is a Colpitts
oscillator circuit on EXTAL and XTAL.
EXTAL
C
*
DC
C
MCU
Crystal or
1
ceramic resonator
XTAL
C
2
VSSPLL
* Due to the nature of a translated ground Colpitts oscillator a
DC voltage bias is applied to the crystal
.Please contact the crystal manufacturer for crystal DC
Figure 2-5 Colpitts Oscillator Connections (PE7=1)
52
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Figure 2-6 Pierce Oscillator Connections (PE7=0)
EXTAL
C
1
MCU
RB
Crystal or
ceramic resonator
*
RS
XTAL
C
2
VSSPLL
* Rs can be zero (shorted) when use with higher frequency crystals.
Refer to manufacturer’s data.
Figure 2-7 External Clock Connections (PE7=0)
EXTAL
CMOS-COMPATIBLE
EXTERNAL OSCILLATO
(VDDPLL-Level)
R
MCU
XTAL
not connected
2.3.9 PE6 / MODB / IPIPE1 — Port E I/O Pin 6
PE6 is a general purpose input or output pin. It is used as a MCU operating mode select pin during reset.
The state of this pin is latched to the MODB bit at the rising edge of RESET. This pin is shared with the
instruction queue tracking signal IPIPE1. This pin is an input with a pull-down device which is only active
when RESET is low. PE[6] is not available in the 48 / 52 pin package versions.
53
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.10 PE5 / MODA / IPIPE0 — Port E I/O Pin 5
PE5 is a general purpose input or output pin. It is used as a MCU operating mode select pin during reset.
The state of this pin is latched to the MODA bit at the rising edge of RESET. This pin is shared with the
instruction queue tracking signal IPIPE0. This pin is an input with a pull-down device which is only active
when RESET is low. This pin is not available in the 48 / 52 pin package versions.
2.3.11 PE4 / ECLK— Port E I/O Pin [4] / E-Clock Output
ECLK is the output connection for the internal bus clock. It is used to demultiplex the address and data in
expanded modes and is used as a timing reference. ECLK frequency is equal to 1/2 the crystal frequency
out of reset. The ECLK pin is initially configured as ECLK output with stretch in all expanded modes. The
E clock output function depends upon the settings of the NECLK bit in the PEAR register, the IVIS bit in
the MODE register and the ESTR bit in the EBICTL register. All clocks, including the E clock, are halted
when the MCU is in STOP mode. It is possible to configure the MCU to interface to slow external
memory. ECLK can be stretched for such accesses. Reference the MISC register (EXSTR[1:0] bits) for
more information. In normal expanded narrow mode, the E clock is available for use in external select
decode logic or as a constant speed clock for use in the external application system. Alternatively PE4 can
be used as a general purpose input or output pin.
2.3.12 PE3 / LSTRB — Port E I/O Pin [3] / Low-Byte Strobe (LSTRB)
In all modes this pin can be used as a general-purpose I/O and is an input with an active pull-up out of
reset. If the strobe function is required, it should be enabled by setting the LSTRE bit in the PEAR register.
This signal is used in write operations. Therefore external low byte writes will not be possible until this
function is enabled. This pin is also used as TAGLO in Special Expanded modes and is multiplexed with
the LSTRB function. This pin is not available in the 48 / 52 pin package versions.
2.3.13 PE2 / R/W — Port E I/O Pin [2] / Read/Write
In all modes this pin can be used as a general-purpose I/O and is an input with an active pull-up out of
reset. If the read/write function is required it should be enabled by setting the RDWE bit in the PEAR
register. External writes will not be possible until enabled. This pin is not available in the 48 / 52 pin
package versions.
2.3.14 PE1 / IRQ — Port E input Pin [1] / Maskable Interrupt Pin
The IRQ input provides a means of applying asynchronous interrupt requests to the MCU. Either falling
edge-sensitive triggering or level-sensitive triggering is program selectable (INTCR register). IRQ is
always enabled and configured to level-sensitive triggering out of reset. It can be disabled by clearing
IRQEN bit (INTCR register). When the MCU is reset the IRQ function is masked in the condition code
register. This pin is always an input and can always be read. There is an active pull-up on this pin while in
reset and immediately out of reset. The pull-up can be turned off by clearing PUPEE in the PUCR register.
54
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.15 PE0 / XIRQ — Port E input Pin [0] / Non Maskable Interrupt Pin
The XIRQ input provides a means of requesting a non maskable interrupt after reset initialization. During
reset, the X bit in the condition code register (CCR) is set and any interrupt is masked until MCU software
enables it. Because the XIRQ input is level sensitive, it can be connected to a multiple-source wired-OR
network. This pin is always an input and can always be read. There is an active pull-up on this pin while
in reset and immediately out of reset. The pull-up can be turned off by clearing PUPEE in the PUCR
register.
2.3.16 PAD[7:0] / AN[7:0] — Port AD I/O Pins [7:0]
PAD7-PAD0 are general purpose I/O pins and also analog inputs for the analog to digital converter. In
order to use a PAD pin as a standard I/O, the corresponding ATDDIEN register bit must be set. These bits
are cleared out of reset to configure the PAD pins for A/D operation.
2.3.17 PP[7] / KWP[7] — Port P I/O Pin [7]
PP7 is a general purpose input or output pin, shared with the keypad interrupt function. When configured
as an input, it can generate interrupts causing the MCU to exit STOP or WAIT mode. This pin is not
available in the 48 / 52 pin package versions.
2.3.18 PP[6] / KWP[6]/ROMCTL — Port P I/O Pin [6]
PP6 is a general purpose input or output pin, shared with the keypad interrupt function. When configured
as an input, it can generate interrupts causing the MCU to exit STOP or WAIT mode. This pin is not
available in the 48 / 52 pin package versions. During MCU expanded modes of operation, this pin is used
to enable the Flash EEPROM memory in the memory map (ROMCTL). At the rising edge of RESET, the
state of this pin is latched to the ROMON bit.
PP6=1 in emulation modes equates to ROMON =0 (ROM space externally mapped)
PP6=0 in expanded modes equates to ROMON =0 (ROM space externally mapped)
2.3.19 PP[5:0] / KWP[5:0] / PW[5:0] — Port P I/O Pins [5:0]
PP[5:0] are general purpose input or output pins, shared with the keypad interrupt function. When
configured as inputs, they can generate interrupts causing the MCU to exit STOP or WAIT mode.
PP[5:0] are also shared with the PWM output signals, PW[5:0]. Pins PP[2:0] are only available in the 80
pin package version. Pins PP[4:3] are not available in the 48 pin package version.
2.3.20 PJ[7:6] / KWJ[7:6] — Port J I/O Pins [7:6]
PJ[7:6] are general purpose input or output pins, shared with the keypad interrupt function. When
configured as inputs, they can generate interrupts causing the MCU to exit STOP or WAIT mode. These
pins are not available in the 48 pin package version nor in the 52 pin package version.
55
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.21 PM5 / SCK — Port M I/O Pin 5
PM5 is a general purpose input or output pin and also the serial clock pin SCK for the Serial Peripheral
Interface (SPI).
2.3.22 PM4 / MOSI — Port M I/O Pin 4
PM4 is a general purpose input or output pin and also the master output (during master mode) or slave
input (during slave mode) pin for the Serial Peripheral Interface (SPI).
2.3.23 PM3 / SS — Port M I/O Pin 3
PM3 is a general purpose input or output pin and also the slave select pin SS for the Serial Peripheral
Interface (SPI).
2.3.24 PM2 / MISO — Port M I/O Pin 2
PM2 is a general purpose input or output pin and also the master input (during master mode) or slave
output (during slave mode) pin for the Serial Peripheral Interface (SPI).
2.3.25 PM1 / TXCAN — Port M I/O Pin 1
PM1 is a general purpose input or output pin and the transmit pin, TXCAN, of the CAN module.
2.3.26 PM0 / RXCAN — Port M I/O Pin 0
PM0 is a general purpose input or output pin and the receive pin, RXCAN, of the CAN module.
2.3.27 PS[3:2] — Port S I/O Pins [3:2]
PS3 and PS2 are general purpose input or output pins. These pins are not available in the 48 / 52 pin
package versions.
2.3.28 PS1 / TXD — Port S I/O Pin 1
PS1 is a general purpose input or output pin and the transmit pin, TXD, of Serial Communication Interface
(SCI).
2.3.29 PS0 / RXD — Port S I/O Pin 0
PS0 is a general purpose input or output pin and the receive pin, RXD, of Serial Communication Interface
(SCI).
56
Device User Guide — 9S12C-FamilyDGV1/D V00.03
2.3.30 PPT[7:5] / IOC[7:5] — Port T I/O Pins [7:5]
PT7-PT5 are general purpose input or output pins. They can also be configured as the timer system input
capture or output compare pins IOC7-IOC5.
2.3.31 PT[4:0] / IOC[4:0] / PW[4:0]— Port T I/O Pins [4:0]
PT4-PT0 are general purpose input or output pins. They can also be configured as the timer system input
capture or output compare pins IOC4-IOC0 or as the PWM outputs PW[4:0].
2.4 Power Supply Pins
2.4.1 VDDX,VSSX — Power & Ground Pins for I/O Drivers
External power and ground for I/O drivers. Bypass requirements depend on how heavily the MCU pins
are loaded.
2.4.2 VDDR, VSSR — Power & Ground Pins for I/O Drivers & for Internal
Voltage Regulator
External power and ground for I/O drivers and input to the internal voltage regulator. Bypass requirements
depend on how heavily the MCU pins are loaded. Connecting VDDR to ground disables the internal
voltage regulator.
2.4.3 VDD1, VDD2, VSS1, VSS2 — Core Power Pins
Power is supplied to the MCU through VDD and VSS. This 2.5V supply is derived from the internal
voltage regulator. There is no static load on those pins allowed. The internal voltage regulator is turned
off, if VDDR is tied to ground.
2.4.4 VDDA, VSSA — Power Supply Pins for ATD and VREG
VDDA, VSSA are the power supply and ground input pins for the voltage regulator reference and the
analog to digital converter.
2.4.5 VRH, VRL — ATD Reference Voltage Input Pins
VRH and VRL are the reference voltage input pins for the analog to digital converter.
2.4.6 VDDPLL, VSSPLL — Power Supply Pins for PLL
Provides operating voltage and ground for the Oscillator and the Phased-Locked Loop. This allows the
supply voltage to the Oscillator and PLL to be bypassed independently. This 2.5V voltage is generated by
the internal voltage regulator.
57
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table 2-2 MC9S12C-Family Power and Ground Connection Summary
Nominal
Voltage
Mnemonic
Description
VDD1
VDD2
Internal power and ground generated by internal regulator. These also
allow an external source to supply the core VDD/VSS voltages and bypass
the internal voltage regulator.
2.5 V
VSS1
VSS2
0V
In the 48 and 52 LQFP packages VDD2 and VSS2 are not available.
VDDR
VSSR
VDDX
VSSX
VDDA
5.0 V
0 V
External power and ground, supply to internal voltage regulator.
External power and ground, supply to pin drivers.
5.0 V
0 V
5.0 V
Operating voltage and ground for the analog-to-digital converters and the
reference for the internal voltage regulator, allows the supply voltage to the
A/D to be bypassed independently.
VSSA
0 V
VRH
VRL
5.0 V
0 V
Reference voltage low for the ATD converter.
In the 48 and 52 LQFP packages VRL is bonded to VSSA.
VDDPLL
2.5 V
Provides operating voltage and ground for the Phased-Locked Loop. This
allows the supply voltage to the PLL to be bypassed independently.
Internal power and ground generated by internal regulator.
VSSPLL
0 V
NOTE:All VSS pins must be connected together in the application. Because fast signal transitions
place high, short-duration current demands on the power supply, use bypass capacitors with
high-frequency characteristics and place them as close to the MCU as possible. Bypass requirements
depend on MCU pin load.
Section 3 System Clock Description
The Clock and Reset Generator provides the internal clock signals for the core and all peripheral modules.
Figure 3-1 shows the clock connections from the CRG to all modules. Consult the CRG Block User
Guide for details on clock generation.
58
Device User Guide — 9S12C-FamilyDGV1/D V00.03
S12_CORE
core clock
Flash
RAM
TIM
ATD
PIM
SCI
EXTAL
XTAL
SPI
bus clock
CRG
MSCAN
oscillator clock
VREG
TPM
Figure 3-1 Clock Connections
Section 4 Modes of Operation
4.1 Overview
Eight possible modes determine the operating configuration of the MC9S12C Family. Each mode has an
associated default memory map and external bus configuration controlled by a further pin.
Three low power modes exist for the device.
4.2 Chip Configuration Summary
The operating mode out of reset is determined by the states of the MODC, MODB, and MODA pins during
reset. The MODC, MODB, and MODA bits in the MODE register show the current operating mode and
provide limited mode switching during operation. The states of the MODC, MODB, and MODA pins are
latched into these bits on the rising edge of the reset signal. The ROMCTL signal allows the setting of the
ROMON bit in the MISC register thus controlling whether the internal Flash is visible in the memory map.
ROMON = 1 mean the Flash is visible in the memory map. The state of the ROMCTL pin is latched into
the ROMON bit in the MISC register on the rising edge of the reset signal.
59
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table 4-1 Mode Selection
BKGD =
MODC
PE6 =
MODB
PE5 =
MODA
PP6 =
ROMCTL
ROMON
Bit
Mode Description
Special Single Chip, BDM allowed and ACTIVE. BDM is
allowed in all other modes but a serial command is
required to make BDM active.
0
0
0
X
1
0
1
X
0
1
X
0
1
1
0
0
1
0
1
0
1
0
0
0
1
1
0
1
1
0
0
1
0
1
0
1
Emulation Expanded Narrow, BDM allowed
Special Test (Expanded Wide), BDM allowed
Emulation Expanded Wide, BDM allowed
Normal Single Chip, BDM allowed
Normal Expanded Narrow, BDM allowed
Peripheral; BDM allowed but bus operations would cause
bus conflicts (must not be used)
1
1
1
1
0
1
X
1
0
1
0
1
Normal Expanded Wide, BDM allowed
For further explanation on the modes refer to the Core User Guide.
Table 4-2 Clock Selection Based on PE7
PE7 = XCLKS
Description
1
0
Colpitts Oscillator selected
Pierce Oscillator/external clock selected
4.3 Security
The device will make available a security feature preventing the unauthorized read and write of the
memory contents. This feature allows:
•
•
•
Protection of the contents of FLASH,
Operation in single-chip mode,
Operation from external memory with internal FLASH disabled.
The user must be reminded that part of the security must lie with the user’s code. An extreme example
would be user’s code that dumps the contents of the internal program. This code would defeat the purpose
of security. At the same time the user may also wish to put a back door in the user’s program. An example
of this is the user downloads a key through the SCI which allows access to a programming routine that
updates parameters.
60
Device User Guide — 9S12C-FamilyDGV1/D V00.03
4.3.1 Securing the Microcontroller
Once the user has programmed the FLASH, the part can be secured by programming the security bits
located in the FLASH module. These non-volatile bits will keep the part secured through resetting the part
and through powering down the part.
The security byte resides in a portion of the Flash array.
Check the Flash Block User Guide for more details on the security configuration.
4.3.2 Operation of the Secured Microcontroller
4.3.2.1 Normal Single Chip Mode
This will be the most common usage of the secured part. Everything will appear the same as if the part was
not secured with the exception of BDM operation. The BDM operation will be blocked.
4.3.2.2 Executing from External Memory
The user may wish to execute from external space with a secured microcontroller. This is accomplished
by resetting directly into expanded mode. The internal FLASH will be disabled. BDM operations will be
blocked.
4.3.3 Unsecuring the Microcontroller
In order to unsecure the microcontroller, the internal FLASH must be erased. This can be done through an
external program in expanded mode or via a sequence of BDM commands. Unsecuring is also possible via
the Backdoor Key Access. Refer to Flash Block Guide for details.
Once the user has erased the FLASH, the part can be reset into special single chip mode. This invokes a
program that verifies the erasure of the internal FLASH. Once this program completes, the user can erase
and program the FLASH security bits to the unsecured state. This is generally done through the BDM, but
the user could also change to expanded mode (by writing the mode bits through the BDM) and jumping to
an external program (again through BDM commands). Note that if the part goes through a reset before the
security bits are reprogrammed to the unsecure state, the part will be secured again.
4.4 Low Power Modes
The microcontroller features three main low power modes. Consult the respective Block User Guide for
information on the module behavior in Stop, Pseudo Stop, and Wait Mode. An important source of
information about the clock system is the Clock and Reset Generator User Guide (CRG).
4.4.1 Stop
Executing the CPU STOP instruction stops all clocks and the oscillator thus putting the chip in fully static
mode. Wake up from this mode can be done via reset or external interrupts.
61
Device User Guide — 9S12C-FamilyDGV1/D V00.03
4.4.2 Pseudo Stop
This mode is entered by executing the CPU STOP instruction. In this mode the oscillator is still running
and the Real Time Interrupt (RTI) or Watchdog (COP) sub module can stay active. Other peripherals are
turned off. This mode consumes more current than the full STOP mode, but the wake up time from this
mode is significantly shorter.
4.4.3 Wait
This mode is entered by executing the CPU WAI instruction. In this mode the CPU will not execute
instructions. The internal CPU signals (address and databus) will be fully static. All peripherals stay active.
For further power consumption reduction the peripherals can individually turn off their local clocks.
4.4.4 Run
Although this is not a low power mode, unused peripheral modules should not be enabled in order to save
power.
Section 5 Resets and Interrupts
5.1 Overview
Consult the Exception Processing section of the HCS12 Core User Guide for information on resets and
interrupts.
5.2 Vectors
5.2.1 Vector Table
Table 5-1 lists interrupt sources and vectors in default order of priority.
Table 5-1 Interrupt Vector Locations
CCR
Mask
HPRIO Value
to Elevate
Vector Address
Interrupt Source
Local Enable
External Reset, Power On Reset or Low
$FFFE, $FFFF
Voltage Reset (see CRG Flags Register None
to determine reset source)
None
–
$FFFC, $FFFD
$FFFA, $FFFB
$FFF8, $FFF9
$FFF6, $FFF7
$FFF4, $FFF5
$FFF2, $FFF3
$FFF0, $FFF1
Clock Monitor fail reset
None
None
None
None
X-Bit
I-Bit
COPCTL (CME, FCME)
COP rate select
None
–
–
COP failure reset
Unimplemented instruction trap
–
SWI
XIRQ
None
–
None
–
IRQ
INTCR (IRQEN)
CRGINT (RTIE)
$F2
$F0
Real Time Interrupt
I-Bit
62
Device User Guide — 9S12C-FamilyDGV1/D V00.03
$FFEE, $FFEF
$FFEC, $FFED
$FFEA, $FFEB
$FFE8, $FFE9
$FFE6, $FFE7
$FFE4, $FFE5
$FFE2, $FFE3
$FFE0, $FFE1
$FFDE, $FFDF
$FFDC, $FFDD
$FFDA, $FFDB
$FFD8, $FFD9
Standard Timer channel 0
Standard Timer channel 1
Standard Timer channel 2
Standard Timer channel 3
Standard Timer channel 4
Standard Timer channel 5
Standard Timer channel 6
Standard Timer channel 7
Standard Timer overflow
Pulse accumulator A overflow
Pulse accumulator input edge
SPI
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
I-Bit
TIE (C0I)
TIE (C1I)
$EE
$EC
$EA
$E8
$E6
$E4
$E2
$E0
$DE
$DC
$DA
$D8
TIE (C2I)
TIE (C3I)
TIE (C4I)
TIE (C5I)
TIE (C6I)
TIE (C7I)
TMSK2 (TOI)
PACTL (PAOVI)
PACTL (PAI)
SPICR1 (SPIE, SPTIE)
SCICR2
(TIE, TCIE, RIE, ILIE)
$FFD6, $FFD7
SCI
I-Bit
$D6
$FFD4, $FFD5
$FFD2, $FFD3
$FFD0, $FFD1
$FFCE, $FFCF
$FFCC, $FFCD
$FFCA, $FFCB
$FFC8, $FFC9
$FFC6, $FFC7
$FFC4, $FFC5
$FFBA to $FFC3
$FFB8, $FFB9
$FFB6, $FFB7
$FFB4, $FFB5
$FFB2, $FFB3
$FFB0, $FFB1
$FF90 to $FFAF
$FF8E, $FF8F
$FF8C, $FF8D
$FF8A, $FF8B
$FF80 to $FF89
Reserved
I-Bit
ATD
ATDCTL2 (ASCIE)
PIEP (PIEP7-6)
$D2
$CE
Reserved
I-Bit
Port J
Reserved
Reserved
Reserved
I-Bit
CRG PLL lock
PLLCR (LOCKIE)
PLLCR (SCMIE)
$C6
$C4
CRG Self Clock Mode
I-Bit
Reserved
I-Bit
FLASH
FCNFG (CCIE, CBEIE)
CANRIER (WUPIE)
$B8
$B6
$B4
$B2
$B0
CAN wake-up
CAN errors
CAN receive
CAN transmit
I-Bit
I-Bit
I-Bit
I-Bit
CANRIER (CSCIE, OVRIE)
CANRIER (RXFIE)
CANTIER (TXEIE[2:0])
Reserved
I-Bit
Port P
PWM Emergency Shutdown
VREG LVI
PIEP (PIEP7-0)
PWMSDN(PWMIE)
CTRL0 (LVIE)
$8E
$8C
$8A
I-Bit
I-Bit
Reserved
5.3 Resets
Resets are a subset of the interrupts featured inTable 5-1. The different sources capable of generating a
system reset are summarized in Table 5-2. When a reset occurs, MCU registers and control bits are
changed to known start-up states. Refer to the respective module Block User Guides for register reset
states.
63
Device User Guide — 9S12C-FamilyDGV1/D V00.03
5.3.1 Reset Summary Table
Table 5-2 Reset Summary
Reset
Priority
Source
Vector
$FFFE, $FFFF
$FFFE, $FFFF
$FFFE, $FFFF
$FFFC, $FFFD
$FFFA, $FFFB
Power-on Reset
1
1
1
2
3
CRG Module
RESET pin
External Reset
Low Voltage Reset
Clock Monitor Reset
COP Watchdog Reset
VREG Module
CRG Module
CRG Module
5.3.2 Effects of Reset
When a reset occurs, MCU registers and control bits are changed to known start-up states. Refer to the
respective module Block User Guides for register reset states. Refer to the HCS12 Core User Guides for
mode dependent pin configuration of port A, B and E out of reset.
Refer to the PIM Block User Guide for reset configurations of all peripheral module ports.
Refer to Figure 1-2 to Figure 1-5 footnotes for locations of the memories depending on the operating
mode after reset.
The RAM array is not automatically initialized out of reset.
NOTE: For devices assembled in 48-pin or 52-pin LQFP packages all non-bonded out pins
should be configured as outputs after reset in order to avoid current drawn from
floating inputs. Refer to Table 2-1 for affected pins.
Section 6 HCS12 Core Block Description
Consult the HCS12 Core User Guide for information about the HCS12 core modules, i.e. central
processing unit (CPU), interrupt module (INT), module mapping control module (MMC), multiplexed
external bus interface (MEBI), debug12 module (DBG12) and background debug mode module (BDM).
6.1 Device-specific information
6.1.1 PPAGE
External paging is not supported on these devices. In order to access the 16K flash blocks in the address
range $8000-$BFFF the PPAGE register must be loaded with the corresponding value for this range. Refer
to Table 6-1 for device specific page mapping.
For all devices Flash Page 3F is visible in the $C000-$FFFF range if ROMON is set. For all devices Page
3E is also visible in the $4000-$7FFF range if ROMHM is cleared and ROMON is set. For all devices
apart from MC9S12C32 Flash Page 3D is visible in the $0000-$3FFF range if ROMON is set..
64
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table 6-1 Device Specfic Flash PAGE Mapping
Device
PAGE
3E
3F
PAGE visible with PPAGE contents
$00,$02,$04,$06,$08,$0A,$0C,$0E,$10,$12......$2C,$2E,$30,$32,$34,$36,$38,$3A,$3C,$3E
$01,$03,$05,$07,$09,$0B,$0D,$0F,$11,$13.....$2D,$2F,$31,$33,$35,$37,$39,$3B,$3D,$3F
$00,$04,$08,$0C,$10,$14,$18,$1C,$20,$24,$28,$2C,$30,$34,$38,$3C
$01,$05,$09,$0D,$11,$15,$19,$1D,$21,$25,$29,$2D,$31,$35,$39,$3D
$02,$06,$0A,$0E,$12,$16,$1A,$1E,$22,$26,$2A,$2E,$32,$36,$3A,$3E
$03,$07,$0B,$0F,$13,$17,$1B,$1F,$23,$27,$2B,$2F,$33,$37,$3B,$3F
$00,$02,$08,$0A,$10,$12,$18,$1A,$20,$22,$28,$2A,$30,$32,$38,$3A
$01,$03,$09,$0B,$11,$13,$19,$1B,$21,$23,$29,$2B,$31,$33,$39,$3B
$04,$0C,$14,$1C,$24,$2C,$34,$3C
MC9S12C32
MC9S12C32
MC9S12C64
MC9S12C64
MC9S12C64
MC9S12C64
MC9S12C96
MC9S12C96
MC9S12C96
MC9S12C96
MC9S12C96
MC9S12C96
MC9S12C128
MC9S12C128
MC9S12C128
MC9S12C128
MC9S12C128
MC9S12C128
MC9S12C128
MC9S12C128
3C
3D
3E
3F
3A
3B
3C
3D
3E
3F
$05,$0D,$15,$1D,$25,$2D,$35,$3D
$06,$0E,$16,$1E,$26,$2E,$36,$3E
$07,$0F,$17,$1F,$27,$2F,$37,$3F
38
$00,$08,$10,$18,$20,$28,$30,$38
39
$01,$09,$11,$19,$21,$29,$31,$39
3A
3B
3C
3D
3E
3F
$02,$0A,$12,$1A,$22,$2A,$32,$3A
$03,$0B,$13,$1B,$23,$2B,$33,$3B
$04,$0C,$14,$1C,$24,$2C,$34,$3C
$05,$0D,$15,$1D,$25,$2D,$35,$3D
$06,$0E,$16,$1E,$26,$2E,$36,$3E
$07,$0F,$17,$1F,$27,$2F,$37,$3F
6.1.2 BDM alternate clock
The BDM section of S12 Core User Guide reference to alternate clock is equivalent to oscillator clock.
6.1.3 Extended Address Range Emulation Implications
In order to emulate the MC9S12C-Family devices, external addressing of a 128K memory map is required.
This is provided in a 112 LQFP package version which includes the 3 necessary extra external address bus
signals via PortK[2:0]. This package version is for emulation only and not provided as a general
production package.
The reset state of DDRK in the S12_CORE is $00, configuring the pins as inputs.
The reset state of PUPKE in the PUCR register of the S12_CORE is "1" enabling the internal PortK
pullups.
In this reset state the pull-ups provide a defined state and prevent a floating input, thereby preventing
unneccesary current flow at the input stage.
To prevent unneccesary current flow in production package options, the states of DDRK and PUPKE
should not be changed by software.
65
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Section 7 Voltage Regulator (VREG) Block Description
Consult the VREG Block User Guide for information about the dual output linear voltage regulator.
7.1 Device-specific information
The VREG is part of the IPBus domain.
7.1.1 VREGEN
VREGEN is connected internally to VDDR.
7.1.2 VDD1, VDD2, VSS1, VSS2
In the 80 pin QFP package versions, both internal VDD and VSS of the 2.5V domain are bonded out on 2
sides of the device as two pin pairs (VDD1, VSS1 & VDD2, VSS2). VDD1 and VDD2 are connected
together internally. VSS1 and VSS2 are connected together internally.
The extra pin pair enables systems using the 80 pin package to employ better supply routing and further
decoupling.
Section 8 Recommended Printed Circuit Board Layout
The PCB must be carefully laid out to ensure proper operation of the voltage regulator as well as of the
MCU itself. The following rules must be observed:
•
Every supply pair must be decoupled by a ceramic capacitor connected as near as possible to the
corresponding pins (C1 - C6).
•
•
•
•
Central point of the ground star should be the VSSR pin.
Use low ohmic low inductance connections between VSS1, VSS2 and VSSR.
VSSPLL must be directly connected to VSSR.
Keep traces of VSSPLL, EXTAL and XTAL as short as possible and occupied board area for C7,
C8, C11 and Q1 as small as possible.
•
•
Do not place other signals or supplies underneath area occupied by C7, C8, C10 and Q1 and the
connection area to the MCU.
Central power input should be fed in at the VDDA/VSSA pins.
66
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table 8-1 Recommended External Component Values
Component
Purpose
Type
Value
220nF, 470nF1
220nF
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10
VDD1 filter cap
VDD2 filter cap (80 QFP only)
VDDA filter cap
ceramic X7R
ceramic X7R
ceramic X7R
X7R/tantalum
ceramic X7R
X7R/tantalum
100nF
VDDR filter cap
>=100nF
100nF
VDDPLL filter cap
VDDX filter cap
>=100nF
OSC load cap
See PLL specification chapter
OSC load cap
PLL loop filter cap
PLL loop filter cap
See PLL specification chapter
Colpitts mode only, if recommended by
quartz manufacturer
C11
DC cutoff cap
R1
Q1
PLL loop filter res
Quartz
See PLL Specification chapter
NOTES:
1. In 48LQFP and 52LQFP package versions, VDD2 is not available. Thus 470nF must be connect-
ed to VDD1.
67
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Figure 8-1 Recommended PCB Layout (48 LQFP)
VSSA
C3
VSSX
VDDA
VDD1
VSS1
C1
VSSR
VDDR
Q1
Note :
VSSPLL
VDDPLL
Oscillator in
Colpitts mode.
R1
68
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Figure 8-2 Recommended PCB Layout (52 LQFP)
NOTE : Oscillator in Colpitts mode.
VSSA
VSSX
C3
VDDA
VDD1
VSS1
C1
VSSR
VDDR
Q1
VSSPLL
VDDPLL
R1
69
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Figure 8-3 Recommended PCB Layout (80 QFP)
NOTE : Oscillator in Colpitts mode.
VSSA
C3
VSSX
VDDA
VSS2
VDD2
VDD1
VSS1
C2
C1
VSSR
VDDR
Q1
VSSPLL
VDDPLL
R1
70
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Section 9 Clock Reset Generator (CRG) Block Description
Consult the CRG Block User Guide for information about the Clock and Reset Generator module.
9.1 Device-specific information
The CRG is part of the IPBus domain.
The Low Voltage Reset feature uses the low voltage reset signal from the VREG module as an input to the
CRG module. When the regulator output voltage supply to the internal chip logic falls below a specified
threshold the LVR signal from the VREG module causes the CRG module to generate a reset. Consult the
VREG Block User Guide for voltage level specifications.
9.1.1 XCLKS
The XCLKS input signal is active low (see 2.3.8 PE7 / NOACC / XCLKS — Port E I/O Pin 7).
Section 10 Oscillator (OSC) Block Description
Consult the OSC Block User Guide for information about the Oscillator module.
Section 11 Timer (TIM) Block Description
Consult the TIM_16B8C Block User Guide for information about the Timer module.
The TIM is part of the IPBus domain.
Section 12 Analog to Digital Converter (ATD) Block
Description
12.1 Device-specific information
The ATD is part of the IPBus domain.
12.1.1 VRL (voltage reference low)
In the 48 and 52 pin package versions, the VRL pad is bonded internally to the VSSA pin.
Consult the ATD_10B8C Block User Guide for further information about the A/D Converter module.
71
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Section 13 Serial Communications Interface (SCI) Block
Description
Consult the SCI Block User Guide for information about the Serial Communications Interface module.
The SCI is part of the IPBus domain.
Section 14 Serial Peripheral Interface (SPI) Block
Description
Consult the SPI Block User Guide for information about the Serial Peripheral Interface module.
The SPI is part of the IPBus domain.
Section 15 Flash Block Description
Consult the FTS32K Block User Guide for information about the Flash module for the MC9S12C32.
Consult the FTS64K Block User Guide for information about the Flash module for the MC9S12C64.
Consult the FTS96K Block User Guidefor information about the Flash module for the MC9S12C96.
Consult the FTS128K Block User Guide for information about the Flash module for the MC9S12C128.
The Flash is part of the HCS12 Bus domain.
Section 16 RAM Block Description
This module supports single-cycle misaligned word accesses without wait states.
The MC9S12C32 features a single 2K byte RAM module.
The MC9S12C64, MC9S12C96 and MC9S12C128 versions feature 2 separate 2K byte RAM modules.
Consult the SRAM2K Block User Guide for information about the RAM Module
The RAM is part of the HCS12 Bus domain.
Section 17 Pulse Width Modulator (PWM) Block
Description
Only channels [5:0] of the PWM are implemented on the MC9S12C-Family.
72
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Consult the PWM_8B6C Block User Guide for information about the Pulse Width Modulator Module.
The PWM is part of the IPBus domain.
Section 18 MSCAN Block Description
Consult the MSCAN Block User Guide for information about the Motorola Scalable CAN Module.
The MSCAN is part of the IPBus domain.
Section 19 Port Integration Module (PIM) Block Description
Consult the PIM_9C32 Block User Guide for information about the Port Integration Module for all
versions of the MC9S12C-Family.
The PIM is part of the IPBus domain.
73
Device User Guide — 9S12C-FamilyDGV1/D V00.03
74
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Appendix A Electrical Characteristics
A.1 General
NOTE: The electrical characteristics given in this section are preliminary and should be
used as a guide only. Values cannot be guaranteed by Motorola and are subject to
change without notice.
NOTE:
The parts are specified and tested over the 5V and 3.3V ranges. For the
intermediate range, generally the electrical specifications for the 3.3V range
apply, but the parts are not tested in production test in the intermediate range.
This supplement contains the most accurate electrical information for the MC9S12C-Family
microcontrollers available at the time of publication. The information should be considered
PRELIMINARY and is subject to change.
This introduction is intended to give an overview on several common topics like power supply, current
injection etc.
A.1.1 Parameter Classification
The electrical parameters shown in this supplement are guaranteed by various methods. To give the
customer a better understanding the following classification is used and the parameters are tagged
accordingly in the tables where appropriate.
NOTE: This classification will be added at a later release of the specification
P: Those parameters are guaranteed during production testing on each individual device.
C: Those parameters are achieved by the design characterization by measuring a statistically relevant
sample size across process variations. They are regularly verified by production monitors.
T: Those parameters are achieved by design characterization on a small sample size from typical devices.
All values shown in the typical column are within this category.
D: Those parameters are derived mainly from simulations.
A.1.2 Power Supply
The MC9S12C-Family utilizes several pins to supply power to the I/O ports, A/D converter, oscillator and
PLL as well as the digital core.
The VDDA, VSSA pair supplies the A/D converter.
The VDDX, VSSX pair supplies the I/O pins
The VDDR, VSSR pair supplies the internal voltage regulator.
VDD1, VSS1, VDD2 and VSS2 are the supply pins for the digital logic.
VDDPLL, VSSPLL supply the oscillator and the PLL.
75
Device User Guide — 9S12C-FamilyDGV1/D V00.03
VSS1 and VSS2 are internally connected by metal.
VDD1 and VDD2 are internally connected by metal.
VDDA, VDDX, VDDR as well as VSSA, VSSX, VSSR are connected by anti-parallel diodes for ESD
protection.
NOTE: In the following context VDD5 is used for either VDDA, VDDR and VDDX; VSS5
is used for either VSSA, VSSR and VSSX unless otherwise noted.
IDD5 denotes the sum of the currents flowing into the VDDA, VDDX and VDDR
pins.
VDD is used for VDD1, VDD2 and VDDPLL, VSS is used for VSS1, VSS2 and
VSSPLL.
IDD is used for the sum of the currents flowing into VDD1 and VDD2.
A.1.3 Pins
There are four groups of functional pins.
A.1.3.1 5V I/O pins
Those I/O pins have a nominal level of 5V. This class of pins is comprised of all port I/O pins, the analog
inputs, BKGD pin and the RESET inputs.The internal structure of all those pins is identical, however some
of the functionality may be disabled. E.g. pull-up and pull-down resistors may be disabled permanently.
A.1.3.2 Analog Reference
This class is made up by the two VRH and VRL pins. In 48 and 52 pin package versions the VRL pad is
bonded to the VSSA pin.
A.1.3.3 Oscillator
The pins XFC, EXTAL, XTAL dedicated to the oscillator have a nominal 2.5V level. They are supplied
by VDDPLL.
A.1.3.4 TEST
This pin is used for production testing only.
A.1.4 Current Injection
Power supply must maintain regulation within operating V
or V range during instantaneous and
DD
DD5
operating maximum current conditions. If positive injection current (V > V
) is greater than I
, the
in
DD5
DD5
injection current may flow out of VDD5 and could result in external power supply going out of regulation.
Insure external VDD5 load will shunt current greater than maximum injection current. This will be the
greatest risk when the MCU is not consuming power; e.g. if no system clock is present, or if clock rate is
very low which would reduce overall power consumption.
76
Device User Guide — 9S12C-FamilyDGV1/D V00.03
A.1.5 Absolute Maximum Ratings
Absolute maximum ratings are stress ratings only. A functional operation under or outside those maxima
is not guaranteed. Stress beyond those limits may affect the reliability or cause permanent damage of the
device.
This device contains circuitry protecting against damage due to high static voltage or electrical fields;
however, it is advised that normal precautions be taken to avoid application of any voltages higher than
maximum-rated voltages to this high-impedance circuit. Reliability of operation is enhanced if unused
inputs are tied to an appropriate logic voltage level (e.g., either V
or V
).
SS5
DD5
Table A-1 Absolute Maximum Ratings
Num
Rating
Symbol
Min
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
-0.3
Max
6.5
3.0
3.0
0.3
0.3
6.5
6.5
3.0
10.0
Unit
V
VDD5
1
2
3
4
5
6
7
8
9
I/O, Regulator and Analog Supply Voltage
Digital Logic Supply Voltage1
VDD
V
PLL Supply Voltage (1)
VDDPLL
V
∆
Voltage difference VDDX to VDDR and VDDA
Voltage difference VSSX to VSSR and VSSA
Digital I/O Input Voltage
V
VDDX
∆
V
VSSX
VIN
VRH, VRL
VILV
V
Analog Reference
V
XFC, EXTAL, XTAL inputs
TEST input
V
VTEST
V
Instantaneous Maximum Current
Single pin limit for all digital I/O pins 2
ID
10
11
12
-25
-25
+25
+25
0
mA
mA
mA
Instantaneous Maximum Current
Single pin limit for XFC, EXTAL, XTAL3
IDL
Instantaneous Maximum Current
Single pin limit for TEST4
IDT
TA
-0.25
13
14
Operating Temperature Range (packaged)
Operating Temperature Range (junction)
Storage Temperature Range
– 40
– 40
– 65
125
140
155
°C
°C
°C
TJ
Tstg
15
NOTES:
1. The device contains an internal voltage regulator to generate the logic and PLL supply out of the I/O supply.
The absolute maximum ratings apply when the device is powered from an external source.
2. All digital I/O pins are internally clamped to VSSX and VDDX, VSSR and VDDR or VSSA and VDDA
.
3. These pins are internally clamped to VSSPLL and VDDPLL
4. This pin is clamped low to VSSPLL, but not clamped high. This pin must be tied low in applications.
77
Device User Guide — 9S12C-FamilyDGV1/D V00.03
A.1.6 ESD Protection and Latch-up Immunity
All ESD testing is in conformity with CDF-AEC-Q100 Stress test qualification for Automotive Grade
Integrated Circuits. During the device qualification ESD stresses were performed for the Human Body
Model (HBM), the Machine Model (MM) and the Charge Device Model.
A device will be defined as a failure if after exposure to ESD pulses the device no longer meets the device
specification. Complete DC parametric and functional testing is performed per the applicable device
specification at room temperature followed by hot temperature, unless specified otherwise in the device
specification.
Table A-2 ESD and Latch-up Test Conditions
Model
Description
Symbol
Value
1500
100
Unit
Ohm
pF
Series Resistance
R1
C
Storage Capacitance
Human Body
Number of Pulse per pin
positive
negative
-
3
3
-
Series Resistance
R1
C
0
Ohm
pF
Storage Capacitance
200
Machine
Latch-up
Number of Pulse per pin
positive
negative
-
3
3
-
Minimum input voltage limit
Maximum input voltage limit
-2.5
7.5
V
V
Table A-3 ESD and Latch-Up Protection Characteristics
Num
C
Rating
Symbol
VHBM
Min
2000
200
Max
Unit
V
1
2
3
C
C
C
Human Body Model (HBM)
Machine Model (MM)
-
-
-
VMM
V
VCDM
Charge Device Model (CDM)
500
V
Latch-up Current at 125°C
positive
negative
ILAT
4
5
C
C
+100
-100
-
-
mA
mA
Latch-up Current at 27°C
positive
negative
ILAT
+200
-200
A.1.7 Operating Conditions
This chapter describes the operating conditions of the devices. Unless otherwise noted those conditions
apply to all the following data.
78
Device User Guide — 9S12C-FamilyDGV1/D V00.03
NOTE: Instead of specifying ambient temperature all parameters are specified for the more
meaningful silicon junction temperature. For power dissipation calculations refer
to Section A.1.8 Power Dissipation and Thermal Characteristics.
Table A-4 Operating Conditions
Rating
Symbol
Min
2.97
2.25
2.25
-0.1
-0.1
0.5
Typ
5
Max
5.5
Unit
V
VDD5
I/O, Regulator and Analog Supply Voltage
Digital Logic Supply Voltage1
VDD
2.5
2.5
0
2.75
2.75
0.1
V
PLL Supply Voltage (1)
VDDPLL
V
∆
Voltage Difference VDDX to VDDA
Voltage Difference VSSX to VSSR and VSSA
Oscillator
V
VDDX
∆
0
0.1
V
VSSX
fosc
fbus
TJ
-
16
MHz
MHz
Bus Frequency
0.5
-
25
Operating Junction Temperature Range
-40
-
140
°C
NOTES:
1. The device contains an internal voltage regulator to generate the logic and PLL supply out of the I/O supply. .
A.1.8 Power Dissipation and Thermal Characteristics
Power dissipation and thermal characteristics are closely related. The user must assure that the maximum
operating junction temperature is not exceeded. The average chip-junction temperature (T ) in °C can be
J
obtained from:
T = T + (P • Θ
)
J
A
D
JA
T = Junction Temperature, [°C]
J
T
P
= Ambient Temperature, [°C]
A
D
= Total Chip Power Dissipation, [W]
Θ
= Package Thermal Resistance, [°C/W]
JA
The total power dissipation can be calculated from:
= P
P
+ P
D
INT
IO
P
= Chip Internal Power Dissipation, [W]
INT
Two cases with internal voltage regulator enabled and disabled must be considered:
1. Internal Voltage Regulator disabled
79
Device User Guide — 9S12C-FamilyDGV1/D V00.03
P
= I
V
+ I
V
+ I
V
INT
DD DD DDPLL DDPLL DDA DDA
2
P
=
R
I
∑
IO
DSON IO
i
i
Which is the sum of all output currents on I/O ports associated with VDDX and VDDM.
For R is valid:
DSON
V
OL
R
= ----------- ;for outputs driven low
DSON
I
OL
respectively
V
– V
DD5
OH
R
= ----------------------------------- ;for outputs driven high
DSON
I
OH
2. Internal voltage regulator enabled
= I
P
V
+ I
V
INT
DDR DDR DDA DDA
I
is the current shown in Table A-8 and not the overall current flowing into VDDR, which
DDR
additionally contains the current flowing into the external loads with output high.
2
P
=
R
I
∑
IO
DSON IO
i
i
80
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Which is the sum of all output currents on I/O ports associated with VDDX and VDDR.
1
Table A-5 Thermal Package Characteristics
Num
C
Rating
Symbol
Min
Typ
Max
Unit
Thermal Resistance LQFP48, single layer PCB2
oC/W
θJA
1
T
-
-
69
Thermal Resistance LQFP48, double sided PCB with
2 internal planes3
oC/W
θJA
2
T
-
-
53
oC/W
oC/W
oC/W
oC/W
θJB
θJC
ΨJT
θJA
3
4
5
6
T
T
T
T
Junction to Board LQFP48
30
20
4
Junction to Case LQFP48
Junction to Package Top LQFP48
Thermal Resistance LQFP52, single sided PCB
-
-
-
-
65
Thermal Resistance LQFP52, double sided PCB with
2 internal planes
oC/W
θJA
7
T
49
oC/W
oC/W
oC/W
oC/W
θJB
θJC
ΨJT
θJA
8
9
T
T
T
T
Junction to Board LQFP52
31
17
3
Junction to Case LQFP52
10
11
Junction to Package Top LQFP52
Thermal Resistance QFP 80, single sided PCB
-
-
-
-
52
Thermal Resistance QFP 80, double sided PCB with
2 internal planes
oC/W
θJA
12
T
42
oC/W
oC/W
oC/W
θJB
θJC
ΨJT
13
14
T
T
T
Junction to Board QFP80
Junction to Case QFP80
28
18
4
15
Junction to Package Top QFP80
NOTES:
1. The values for thermal resistance are achieved by package simulations
2. PC Board according to EIA/JEDEC Standard 51-2
3. PC Board according to EIA/JEDEC Standard 51-7
A.1.9 I/O Characteristics
This section describes the characteristics of all I/O pins. All parameters are not always applicable, e.g. not
all pins feature pull up/down resistances.
81
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table A-6 5V I/O Characteristics
Conditions are 4.5< VDDX <5.5V Termperature from -40˚C to +140˚C, unless otherwise noted
Num
C
P
T
Rating
Symbol
Min
Typ
Max
-
Unit
V
VIH
0.65*VDD5
1
Input High Voltage
Input High Voltage
Input Low Voltage
Input Low Voltage
Input Hysteresis
-
VIH
VIL
-
-
VDD5 + 0.3
0.35*VDD5
V
2
P
T
-
-
-
V
VIL
VSS5 - 0.3
-
V
VHYS
3
4
C
250
mV
Input Leakage Current (pins in high ohmic input
mode)1
Vin = VDD5 or VSS5
Iin
P
C
–2.5
-
-
2.5
-
µA
Output High Voltage (pins in output mode)
VOH
VDD5 – 0.8
5
V
Partial Drive I
OH
= –2mA
Output High Voltage (pins in output mode)
Full Drive IOH = –10mA
VOH
VOL
VOL
VDD5 – 0.8
6
7
P
C
-
-
-
V
V
Output Low Voltage (pins in output mode)
Partial Drive IOL = +2mA
-
-
0.8
Output Low Voltage (pins in output mode)
8
9
P
P
C
P
-
-
-
-
0.8
-130
-
V
Full Drive I
= +10mA
OL
Internal Pull Up Device Current,
tested at VIL Max.
IPUL
IPUH
IPDH
-
-10
-
µA
µA
µA
Internal Pull Up Device Current,
tested at VIH Min.
10
11
Internal Pull Down Device Current,
tested at VIH Min.
130
Internal Pull Down Device Current,
tested at VIL Max.
IPDL
Cin
12
13
C
D
10
-
-
-
µA
Input Capacitance
7
pF
Injection current2
Single Pin limit
Total Device Limit. Sum of all injected currents
IICS
IICP
14
T
-2.5
-25
-
2.5
25
mA
Port P, J Interrupt Input Pulse filtered3
Port P, J Interrupt Input Pulse passed3
tPIGN
tPVAL
15
P
P
3
µs
µs
16
10
NOTES:
1. Maximum leakage current occurs at maximum operating temperature. Current decreases by approximately one-half for
each 8 C to 12 C in the temperature range from 50 C to 125 C.
2. Refer to Section A.1.4 Current Injection, for more details
3. Parameter only applies in STOP or Pseudo STOP mode.
82
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table A-7 3.3V I/O Characteristics
Conditions are VDDX=3.3V +/-10%, Termperature from -40˚C to +140˚C, unless otherwise noted
Num
C
P
T
Rating
Symbol
Min
Typ
Max
-
Unit
V
VIH
0.65*VDD5
1
Input High Voltage
Input High Voltage
Input Low Voltage
Input Low Voltage
Input Hysteresis
-
VIH
VIL
-
-
VDD5 + 0.3
0.35*VDD5
V
2
P
T
-
-
-
V
VIL
VSS5 - 0.3
-
V
VHYS
3
4
C
250
mV
Input Leakage Current (pins in high ohmic input
mode)1
Iin
P
–2.5
-
2.5
µA
Vin = VDD5 or VSS5
Output High Voltage (pins in output mode)
VOH
VOH
VOL
VOL
IPUL
IPUH
IPDH
VDD5 – 0.4
5
6
C
P
C
P
P
C
P
-
-
-
-
-
-
-
-
V
V
Partial Drive I
OH
= –0.75mA
Output High Voltage (pins in output mode)
Full Drive I = –4.5mA
VDD5 – 0.4
-
OH
Output Low Voltage (pins in output mode)
Partial Drive I = +0.9mA
7
-
-
0.4
0.4
–60
-
V
OL
Output Low Voltage (pins in output mode)
Full Drive I = +5.5mA
8
V
OL
Internal Pull Up Device Current,
tested at VIL Max.
9
-
µA
µA
µA
Internal Pull Up Device Current,
tested at VIH Min.
10
11
-6
-
Internal Pull Down Device Current,
tested at VIH Min.
60
Internal Pull Down Device Current,
tested at VIL Max.
IPDL
Cin
12
11
C
D
6
-
-
-
µA
Input Capacitance
7
pF
Injection current2
Single Pin limit
Total Device Limit. Sum of all injected currents
IICS
IICP
12
T
-2.5
-25
-
2.5
25
mA
Port P, J Interrupt Input Pulse filtered3
Port P, J Interrupt Input Pulse passed3
tPIGN
tPVAL
13
P
P
3
µs
µs
14
10
NOTES:
1. Maximum leakage current occurs at maximum operating temperature. Current decreases by approximately one-half for
each 8 C to 12 C in the temperature range from 50 C to 125 C.
2. Refer to Section A.1.4 Current Injection, for more details
3. Parameter only applies in STOP or Pseudo STOP mode.
83
Device User Guide — 9S12C-FamilyDGV1/D V00.03
A.1.10 Supply Currents
This section describes the current consumption characteristics of the device as well as the conditions for
the measurements.
A.1.10.1 Measurement Conditions
All measurements are without output loads. Unless otherwise noted the currents are measured in single
chip mode, internal voltage regulator enabled and at 25MHz bus frequency using a 4MHz oscillator.
A.1.10.2 Additional Remarks
In expanded modes the currents flowing in the system are highly dependent on the load at the address, data
and control signals as well as on the duty cycle of those signals. No generally applicable numbers can be
given. A very good estimate is to take the single chip currents and add the currents due to the external
loads.
84
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table A-8 Supply Current Characteristics for MC9S12C32
Conditions are shown in Table A-4 with internal regulator enabled unless otherwise noted
Num
C
Rating
Run Supply Current Single Chip
Wait Supply current
Symbol
Min
Typ
Max
Unit
IDD5
1
P
40
mA
All modules enabled
VDDR<4.9V, only RTI enabled(2)
VDDR>4.9V, only RTI enabled
P
P
C
30
8
IDDW
2
mA
3.5
2.5
Pseudo Stop Current (RTI and COP disabled)(2)(3)
C
P
C
P
C
P
C
P
340
360
500
550
590
720
780
1100
-40°C
27°C
85°C
450
1
3
1450
1900
4500
µA
IDDPS
"C" Temp Option 100˚C
105°C
"V" Temp Option 120˚C
125°C
"M" Temp Option 140°C
Pseudo Stop Current (RTI and COP enabled)2 3
C
C
C
C
C
540
700
750
880
1300
-40°C
27°C
85°C
105°C
125°C
1
4
µA
IDDPS
Stop Current (3)
C
P
C
P
C
P
C
P
10
20
-40°C
27°C
85°C
80
100
140
170
300
350
520
(1)
5
1000
1400
4000
µA
IDDS
"C" Temp Option 100˚C
105°C
"V" Temp Option 120˚C
125°C
"M" Temp Option 140°C
NOTES:
1. STOP current measured in production test at increased junction temperature, hence for Temp Option "C" the test is
carried out at 100˚C although the Temperature specification is 85˚C. Similarly for "v" and "M" options the temperature
used in test lies 15˚C above the temperature option specification.
2. PLL off
3. At those low power dissipation levels TJ = TA can be assumed
85
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table A-9 Supply Current Characteristics for MC9S12C64,MC9S12C96,MC9S12C128
Conditions are shown in Table A-4 with internal regulator enabled unless otherwise noted
Num
C
Rating
Run Supply Current Single Chip,
Wait Supply current
Symbol
Min
Typ
Max
Unit
IDD5
1
P
45
mA
All modules enabled
VDDR<4.9V, only RTI enabled(2)
VDDR>4.9V, only RTI enabled
P
P
C
33
8
IDDW
2
6
mA
2.5
3.5
Pseudo Stop Current (RTI and COP disabled)(2)(3)
C
P
C
P
C
P
C
P
190
200
300
400
450
600
650
1000
-40°C
27°C
85°C
250
1
IDDPS
1400
1900
4800
µA
"C" Temp Option 100˚C
105°C
"V" Temp Option 120˚C
125°C
"M" Temp Option 140°C
Pseudo Stop Current (RTI and COP enabled)2 3
C
C
C
C
C
370
500
590
780
1200
-40°C
27°C
85°C
105°C
125°C
1
4
µA
IDDPS
Stop Current (3)
C
P
C
P
C
P
C
P
12
25
-40°C
27°C
85°C
100
130
160
200
350
400
600
(1)
5
1200
1700
4500
µA
IDDS
"C" Temp Option 100˚C
105°C
"V" Temp Option 120˚C
125°C
"M" Temp Option 140°C
NOTES:
1. STOP current measured in production test at increased junction temperature, hence for Temp Option "C" the test is
carried out at 100˚C although the Temperature specification is 85˚C. Similarly for "v" and "M" options the temperature
used in test lies 15˚C above the temperature option specification.
2. PLL off
3. At those low power dissipation levels TJ = TA can be assumed
86
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Appendix B Electrical Specifications
B.1 Voltage Regulator Operating Conditions
Table B-1 Voltage Regulator Electrical Parameters
Nu
m
C
Characteristic
Symbol
Min
Typical
Max
Unit
VVDDR, A
1
P
Input Voltages
2.97
—
5.5
V
Regulator Current
Reduced Power Mode
Shutdown Mode
IREG
2
3
P
P
—
—
20
12
50
40
µA
µA
Output Voltage Core
Full Performance Mode
Reduced Power Mode
Shutdown Mode
2.5
2.5
2.35
1.6
—
2.75
2.75
—
V
V
V
VDD
1
—
Output Voltage PLL
Full Performance Mode
Reduced Power Mode2
Reduced Power Mode3
Shutdown Mode
2.5
2.5
2.5
2.35
2.0
1.6
—
2.75
2.75
2.75
—
V
V
V
VDDPLL
4
P
4
—
Low Voltage Interrupt5
Assert Level
Deassert Level
VLVIA
VLVID
5
6
P
P
C
4.30
4.42
4.53
4.65
4.77
4.89
V
V
Low Voltage Reset6
Assert Level C32
Assert Level C64, C96, C128
TBD
2.25
2.3
2.35
VLVRA
—
V
Power-on Reset7
Assert Level
Deassert Level
VPORA
VPORD
7
0.97
—
—
—
—
2.05
V
V
NOTES:
1. High Impedance Output
2. Current IDDPLL = 1mA (Colpitts Oscillator)
3. Current IDDPLL = 3mA (Pierce Oscillator)
4. High Impedance Output
5. Monitors VDDA, active only in Full Performance Mode. Indicates I/O & ADC performance degradation due to low supply
voltage.
6. Monitors VDD, active only in Full Performance Mode. MCU is monitored by the POR in RPM (see Figure B-1)
7. Monitors VDD. Active in all modes.
NOTE: The electrical characteristics given in this section are preliminary and should be
used as a guide only. Values in this section cannot be guaranteed by Motorola and
are subject to change without notice.
87
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.2 Chip Power-up and LVI/LVR graphical explanation
Voltage regulator sub modules LVI (low voltage interrupt), POR (power-on reset) and LVR (low voltage
reset) handle chip power-up or drops of the supply voltage. Their function is described in Figure B-1.
Figure B-1 Voltage Regulator - Chip Power-up and Voltage Drops (not scaled)
V
VDDA
VLVID
VLVIA
VDD
VLVRD
VLVRA
VPORD
t
LVI
LVI enabled
LVI disabled due to LVR
POR
LVR
B.3 Output Loads
B.3.1 Resistive Loads
The on-chip voltage regulator is intended to supply the internal logic and oscillator circuits allows no
external DC loads.
88
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.3.2 Capacitive Loads
The capacitive loads are specified in Table B-2. Ceramic capacitors with X7R dielectricum are required.
Table B-2 Voltage Regulator - Capacitive Loads
Num
Characteristic
VDD external capacitive load
VDDPLL external capacitive load
Symbol
CDDext
Min
400
90
Typical
440
Max
12000
5000
Unit
nF
1
2
CDDPLLext
220
nF
89
Device User Guide — 9S12C-FamilyDGV1/D V00.03
90
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.4 ATD Characteristics
This section describes the characteristics of the analog to digital converter.
VRL is not available as a separate pin in the 48 and 52 pin versions. In this case the internal VRL pad is
bonded to the VSSA pin.
The ATD is specified and tested for both the 3.3V and 5V range. For ranges between 3.3V and 5V the
ATD accuracy is generally the same as in the 3.3V range but is not tested in this range in production test.
B.4.1 ATD Operating Characteristics In 5V Range
The Table B-3 shows conditions under which the ATD operates.
The following constraints exist to obtain full-scale, full range results:
VSSA ≤ VRL ≤ VIN ≤ VRH ≤ VDDA. This constraint exists since the sample buffer amplifier can not
drive beyond the power supply levels that it ties to. If the input level goes outside of this range it will
effectively be clipped.
Table B-3 ATD Operating Characteristics
Conditions are shown in Table A-4 unless otherwise noted. Supply Voltage 5V-10% <= VDDA <=5V+10%
Num
C
Rating
Symbol
Min
Typ
Max
Unit
Reference Potential
1
D
Low
High
VRL
VRH
VSSA
VDDA/2
VDDA/2
VDDA
V
V
Differential Reference Voltage1
ATD Clock Frequency
2
3
C
D
VRH-VRL
4.75
0.5
5.0
5.25
2.0
V
f
MHz
ATDCLK
ATD 10-Bit Conversion Period
Clock Cycles2
4
5
D
D
N
T
14
7
28
14
Cycles
µs
CONV10
CONV10
Conv, Time at 2.0MHz ATD Clock fATDCLK
ATD 8-Bit Conversion Period
Clock Cycles2
N
T
12
6
26
13
Cycles
µs
CONV10
CONV10
Conv, Time at 2.0MHz ATD Clock fATDCLK
Recovery Time (VDDA=5.0 Volts)
Reference Supply current
5
D
P
t
20
µs
REC
6
I
0.375
mA
REF
NOTES:
1. Full accuracy is not guaranteed when differential voltage is less than 4.75V
2. The minimum time assumes a final sample period of 2 ATD clocks cycles while the maximum time assumes a final sample
period of 16 ATD clocks.
B.4.2 ATD Operating Characteristics In 3.3V Range
The Table B-3 shows conditions under which the ATD operates.
The following constraints exist to obtain full-scale, full range results:
V
≤ V ≤ V ≤ V ≤ V
. This constraint exists since the sample buffer amplifier can not drive
SSA
RL
IN
RH
DDA
91
Device User Guide — 9S12C-FamilyDGV1/D V00.03
beyond the power supply levels that it ties to. If the input level goes outside of this range it will effectively
be clipped
Table B-4 ATD Operating Characteristics
Conditions are shown in Table A-4 unless otherwise noted; Supply Voltage 3.3V-10% <= VDDA <= 3.3V+10%
Num C
Rating
Symbol
Min
Typ
Max
/2
Unit
Reference Potential
1
D
Low
High
V
V
V
V
V
RL
SSA
DDA
V
V
/2
V
RH
DDA
DDA
2
3
C Differential Reference Voltage
D ATD Clock Frequency
V
-V
3.0
3.3
3.6
2.0
V
RH RL
f
0.5
MHz
ATDCLK
ATD 10-Bit Conversion Period
D
Clock Cycles1
4
5
N
T
14
7
28
14
Cycles
µs
CONV10
CONV10
Conv, Time at 2.0MHz ATD Clock fATDCLK
ATD 8-Bit Conversion Period
Clock Cycles(1)
D
N
T
12
6
26
13
Cycles
µs
CONV8
CONV8
Conv, Time at 2.0MHz ATD Clock fATDCLK
Recovery Time (VDDA=3.3 Volts)
6
7
D
P
t
20
µs
REC
Reference Supply current
I
0.250
mA
REF
NOTES:
1. The minimum time assumes a final sample period of 2 ATD clocks cycles while the maximum time assumes a final sample
period of 16 ATD clocks.
B.4.3 Factors influencing accuracy
Three factors - source resistance, source capacitance and current injection - have an influenceon the
accuracy of the ATD.
B.4.3.1 Source Resistance:
Due to the input pin leakage current as specified in Table A-6 in conjunction with the source resistance
there will be a voltage drop from the signal source to the ATD input. The maximum source resistance R
specifies results in an error of less than 1/2 LSB (2.5mV) at the maximum leakage current. If device or
S
operating conditions are less than worst case or leakage-induced error is acceptable, larger values of source
resistance is allowable.
B.4.3.2 Source capacitance
When sampling an additional internal capacitor is switched to the input. This can cause a voltage drop due
to charge sharing with the external and the pin capacitance. For a maximum sampling error of the input
voltage ≤ 1LSB, then the external filter capacitor, C ≥ 1024 * (C - C ).
f
INS
INN
92
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.4.3.3 Current injection
There are two cases to consider.
1. A current is injected into the channel being converted. The channel being stressed has conversion
values of $3FF ($FF in 8-bit mode) for analog inputs greater than VRH and $000 for values less
than VRL unless the current is higher than specified as disruptive conditions.
2. Current is injected into pins in the neighborhood of the channel being converted. A portion of this
current is picked up by the channel (coupling ratio K), This additional current impacts the accuracy
of the conversion depending on the source resistance.
The additional input voltage error on the converted channel can be calculated as V
= K * R *
ERR
S
I
, with I being the sum of the currents injected into the two pins adjacent to the converted
INJ
INJ
channel.
Table B-5 ATD Electrical Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
C
Rating
Symbol
Min
Typ
Max
Unit
RS
1
C
Max input Source Resistance
-
-
1
KΩ
Total Input Capacitance
Non Sampling
Sampling
CINN
CINS
2
T
10
15
pF
INA
Kp
Kn
3
4
5
C
C
C
Disruptive Analog Input Current
-2.5
2.5
10-4
10-2
mA
A/A
A/A
Coupling Ratio positive current injection
Coupling Ratio negative current injection
93
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.4.4 ATD accuracy (5V Range)
Table B-6 specifies the ATD conversion performance excluding any errors due to current injection, input
capacitance and source resistance.
Table B-6 ATD Conversion Performance
Conditions are shown in Table A-4 unless otherwise noted
VREF = VRH - VRL = 5.12V. Resulting to one 8 bit count = 20mV and one 10 bit count = 5mV
f
= 2.0MHz
ATDCLK
Num
C
Rating
Symbol
LSB
DNL
INL
Min
Typ
Max
Unit
mV
1
P
P
P
P
P
P
P
P
10-Bit Resolution
5
2
10-Bit Differential Nonlinearity
10-Bit Integral Nonlinearity
–1
–2
1
2
Counts
Counts
Counts
mV
3
10-Bit Absolute Error1
8-Bit Resolution
4
AE
-2.5
2.5
5
LSB
DNL
INL
20
6
8-Bit Differential Nonlinearity
8-Bit Integral Nonlinearity
–0.5
–1.0
-1.5
0.5
1.0
1.5
Counts
Counts
Counts
7
±0.5
±1
8-Bit Absolute Error(1)
8
AE
NOTES:
1. These values include quantization error which is inherently 1/2 count for any A/D converter.
B.4.5 ATD accuracy (3.3V Range)
Table B-6 specifies the ATD conversion performance excluding any errors due to current injection, input
capacitance and source resistance.
Table B-7 ATD Conversion Performance
Conditions are shown in Table A-4 unless otherwise noted
VREF = VRH - VRL = 3.328V. Resulting to one 8 bit count = 13mV and one 10 bit count = 3.25mV
f
= 2.0MHz
ATDCLK
Num
C
Rating
Symbol
LSB
DNL
INL
Min
Typ
Max
Unit
mV
1
P
P
P
P
P
P
P
P
10-Bit Resolution
3.25
2
10-Bit Differential Nonlinearity
10-Bit Integral Nonlinearity
–1.5
–3.5
-5
1.5
3.5
5
Counts
Counts
Counts
mV
3
±1.5
±2.5
13
10-Bit Absolute Error1
8-Bit Resolution
4
AE
5
LSB
DNL
INL
6
8-Bit Differential Nonlinearity
8-Bit Integral Nonlinearity
–0.5
–1.5
-2.0
0.5
1.5
2.0
Counts
Counts
Counts
7
±1
8-Bit Absolute Error(1)
8
AE
±1.5
NOTES:
1. These values include the quantization error which is inherently 1/2 count for any A/D converter.
94
Device User Guide — 9S12C-FamilyDGV1/D V00.03
For the following definitions see also Figure B-2.
Differential Non-Linearity (DNL) is defined as the difference between two adjacent switching steps.
V – V
i
i – 1
DNL(i) =
– 1
------------------------
1LSB
The Integral Non-Linearity (INL) is defined as the sum of all DNLs:
n
V – V
n
0
-------------------
1LSB
INL(n) =
DNL(i) =
– n
∑
i = 1
95
Device User Guide — 9S12C-FamilyDGV1/D V00.03
DNL
10-Bit Absolute Error Boundary
LSB
V
V
i
i-1
$3FF
$3FE
$3FD
$3FC
$3FB
$3FA
$3F9
$3F8
$3F7
$3F6
$3F5
$3F4
$3F3
8-Bit Absolute Error Boundary
$FF
$FE
$FD
2
9
8
7
6
5
4
3
2
1
0
Ideal Transfer Curve
10-Bit Transfer Curve
1
8-Bit Transfer Curve
3.25 6.5 9.75 13 16.25 19.5 22.75 26 29.25
3286 3289 3292 3295 3299 3302 3305 3309 3312 3315 3318 3321 3324 3328
Vin
mV
Figure B-2 ATD Accuracy Definitions
NOTE: Figure B-2 shows only definitions, for specification values refer to Table B-6.
96
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.5 NVM, Flash and EEPROM
B.5.1 NVM timing
The time base for all NVM program or erase operations is derived from the oscillator. A minimum
oscillator frequency f is required for performing program or erase operations. The NVM modules
NVMOSC
do not have any means to monitor the frequency and will not prevent program or erase operation at
frequencies above or below the specified minimum. Attempting to program or erase the NVM modules at
a lower frequency a full program or erase transition is not assured.
The Flash program and erase operations are timed using a clock derived from the oscillator using the
FCLKDIV and ECLKDIV registers respectively. The frequency of this clock must be set within the limits
specified as f
.
NVMOP
The minimum program and erase times shown in Table B-8 are calculated for maximum f
and
NVMOP
maximum f . The maximum times are calculated for minimum f
and a f of 2MHz.
bus
NVMOP
bus
B.5.1.1 Single Word Programming
The programming time for single word programming is dependant on the bus frequency as a well as on
the frequency f¨ and can be calculated according to the following formula.
NVMOP
1
1
t
= 9
+ 25
---------------------
----------
swpgm
f
f
NVMOP
bus
B.5.1.2 Burst Programming
This applies only to the Flash where up to 32 words in a row can be programmed consecutively using burst
programming by keeping the command pipeline filled. The time to program a consecutive word can be
calculated as:
1
1
t
= 4
+ 9
---------------------
----------
bwpgm
f
f
NVMOP
bus
The time to program a whole row is:
t
= t
+ 31 t
brpgm
swpgm
bwpgm
Burst programming is more than 2 times faster than single word programming.
B.5.1.3 Sector Erase
Erasing a 512 byte Flash sector takes:
1
t
≈ 4000
---------------------
era
f
NVMOP
97
Device User Guide — 9S12C-FamilyDGV1/D V00.03
The setup times can be ignored for this operation.
B.5.1.4 Mass Erase
Erasing a NVM block takes:
1
t
≈ 20000
---------------------
mass
The setup times can be ignored for this operation.
f
NVMOP
Table B-8 NVM Timing Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
C
D
D
D
P
D
D
P
P
D
Rating
Symbol
fNVMOSC
fNVMBUS
fNVMOP
tswpgm
Min
0.5
1
Typ
Max
Unit
MHz
MHz
kHz
µs
501
1
External Oscillator Clock
2
Bus frequency for Programming or Erase Operations
Operating Frequency
3
150
200
74.53
313
462
20.42
678.42
204
4
Single Word Programming Time
Flash Burst Programming consecutive word
Flash Burst Programming Time for 32 Words
Sector Erase Time
tbwpgm
tbrpgm
tera
5
µs
1035.53
26.73
1333
6
µs
7
ms
1004
115
tmass
t check
8
Mass Erase Time
ms
327786
tcyc
9
Blank Check Time Flash per block
NOTES:
1. Restrictions for oscillator in crystal mode apply!
2. Minimum Programming times are achieved under maximum NVM operating frequency f NVMOP and maximum bus frequen-
cy fbus
.
3. Maximum Erase and Programming times are achieved under particular combinations of f NVMOP and bus frequency f bus
. Refer to formulae in Sections A.3.1.1 - A.3.1.4 for guidance.
4. Minimum Erase times are achieved under maximum NVM operating frequency f NVMOP
5. Minimum time, if first word in the array is not blank
.
6. Maximum time to complete check on an erased block.
B.5.2 NVM Reliability
The reliability of the NVM blocks is guaranteed by stress test during qualification, constant process
monitors and burn-in to screen early life failures.
The failure rates for data retention and program/erase cycling are specified at <2ppm defects over lifetime
at the operating conditions noted.
A program/erase cycle is specified as two transitions of the cell value from erased → programmed →
erased, 1 → 0 → 1.
98
Device User Guide — 9S12C-FamilyDGV1/D V00.03
NOTE: All values shown in Table B-9 are target values and subject to further extensive
characterization.
Table B-9 NVM Reliability Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
C
C
C
Rating
Symbol
tNVMRET
nFLPE
Min
15
Typ Max Unit
Years
Data Retention at an average junction temperature of
1
2
TJavg = 85°C
Flash number of Program/Erase cycles
10,000
Cycles
99
Device User Guide — 9S12C-FamilyDGV1/D V00.03
100
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.6 Reset, Oscillator and PLL
This section summarizes the electrical characteristics of the various startup scenarios for Oscillator and
Phase-Locked-Loop (PLL).
B.6.1 Startup
Table B-10 summarizes several startup characteristics explained in this section. Detailed description of the
startup behavior can be found in the Clock and Reset Generator (CRG) Block User Guide.
Table B-10 Startup Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
C
T
Rating
Symbol
VPORR
VPORA
PWRSTL
nRST
Min
Typ
Max
Unit
V
1
2
3
4
POR release level
POR assert level
2.07
T
0.97
2
V
tosc
nosc
D
D
Reset input pulse width, minimum input time
Startup from Reset
192
196
Interrupt pulse width, IRQ edge-sensitive
mode
PWIRQ
5
D
20
ns
tWRS
VLVRR
VLVRA
tcyc
V
6
7
8
D
P
P
Wait recovery startup time
LVR release level
14
2.25
LVR assert level
2.55
V
B.6.1.1 POR
The release level V
and the assert level V
are derived from the V Supply. They are also valid
DD
PORR
PORA
if the device is powered externally. After releasing the POR reset the oscillator and the clock quality check
are started. If after a time t no valid oscillation is detected, the MCU will start using the internal self
CQOUT
clock. The fastest startup time possible is given by n
.
uposc
B.6.1.2 LVR
The release level V
and the assert level V
are derived from the V Supply. They are also valid
LVRR
LVRA DD
if the device is powered externally. After releasing the LVR reset the oscillator and the clock quality check
are started. If after a time t no valid oscillation is detected, the MCU will start using the internal self
CQOUT
clock. The fastest startup time possible is given by n
.
uposc
B.6.1.3 SRAM Data Retention
Provided an appropriate external reset signal is applied to the MCU, preventing the CPU from executing
code when VDD5 is out of specification limits, the SRAM contents integrity is guaranteed if after the reset
the PORF bit in the CRG Flags Register has not been set.
101
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.6.1.4 External Reset
When external reset is asserted for a time greater than PW
the CRG module generates an internal
RSTL
reset, and the CPU starts fetching the reset vector without doing a clock quality check, if there was an
oscillation before reset.
B.6.1.5 Stop Recovery
Out of STOP the controller can be woken up by an external interrupt. A clock quality check as after POR
is performed before releasing the clocks to the system.
B.6.1.6 Pseudo Stop and Wait Recovery
The recovery from Pseudo STOP and Wait are essentially the same since the oscillator was not stopped in
both modes. The controller can be woken up by internal or external interrupts. After t the CPU starts
wrs
fetching the interrupt vector.
B.6.2 Oscillator
The device features an internal Colpitts oscillator. By asserting the XCLKS input during reset this
oscillator can be bypassed allowing the input of a square wave. Before asserting the oscillator to the
internal system clocks the quality of the oscillation is checked for each start from either power-on, STOP
or oscillator fail. t
specifies the maximum time before switching to the internal self clock mode in
CQOUT
case no proper oscillation is detected. The quality monitor also determines the minimum oscillator start-up
102
Device User Guide — 9S12C-FamilyDGV1/D V00.03
time t
. The device features a clock monitor. A time-out is asserted if the frequency of the incoming
UPOSC
clock signal is below the Clock Monitor FailureAssert Frequency f
CMFA.
Table B-11 Oscillator Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num
1a
1b
2
C
C
C
P
C
D
P
P
D
D
D
D
D
Rating
Symbol
Min
0.5
Typ
Max
16
Unit
MHz
MHz
µA
fOSC
Crystal oscillator range (Colpitts)
Crystal oscillator range (Pierce) 1(4)
Startup Current
fOSC
iOSC
0.5
40
100
82
1003
2.5
tUPOSC
tCQOUT
fCMFA
fEXT
3
Oscillator start-up time (Colpitts)
Clock Quality check time-out
Clock Monitor Failure Assert Frequency
ms
s
4
0.45
50
5
100
200
50
KHz
MHz
ns
External square wave input frequency 4
External square wave pulse width low
External square wave pulse width high
External square wave rise time
6
0.5
9.5
9.5
tEXTL
tEXTH
tEXTR
tEXTF
CIN
7
8
ns
9
1
1
ns
10
11
External square wave fall time
ns
Input Capacitance (EXTAL, XTAL pins)
7
pF
DC Operating Bias in Colpitts Configuration
on EXTAL Pin
VDCBIAS
12
C
1.1
V
NOTES:
1. Depending on the crystal a damping series resistor might be necessary
2. fosc = 4MHz, C = 22pF.
3. Maximum value is for extreme cases using high Q, low frequency crystals
4. XCLKS =0 during reset
B.6.3 Phase Locked Loop
The oscillator provides the reference clock for the PLL. The PLL´s Voltage Controlled Oscillator (VCO)
is also the system clock source in self clock mode.
B.6.3.1 XFC Component Selection
This section describes the selection of the XFC components to achieve a good filter characteristics.
103
Device User Guide — 9S12C-FamilyDGV1/D V00.03
C
p
VDDPLL
R
C
XFC Pin
s
Phase
VCO
f
f
vco
f
1
ref
osc
∆
K
K
Φ
V
refdv+1
Detector
f
cmp
Loop Divider
1
1
2
synr+1
Figure B-3 Basic PLL functional diagram
The following procedure can be used to calculate the resistance and capacitance values using typical
values for K , f and i from Table B-12.
1
1
ch
The grey boxes show the calculation for f
= 50MHz and f = 1MHz. E.g., these frequencies are used
ref
VCO
for f
= 4MHz and a 25MHz bus clock.
OSC
The VCO Gain at the desired VCO frequency is approximated by:
(f1 – fvco
-----------------------
K1 1V
)
(60 – 50)
-----------------------
–100
K = K e
= -90.48MHz/V
= –100 e
V
1
The phase detector relationship is given by:
K = – i
K
= 316.7Hz/Ω
Φ
ch
V
i is the current in tracking mode.
ch
The loop bandwidth f should be chosen to fulfill the Gardner’s stability criteria by at least a factor of 10,
C
typical values are 50. ζ = 0.9 ensures a good transient response.
2 ζ f
f
ref
1
ref
f < ------------------------------------------
→ f < ------------- ;(ζ = 0.9)
------
10
C
C
4 10
fC < 25kHz
2
π ζ + 1 + ζ
104
Device User Guide — 9S12C-FamilyDGV1/D V00.03
And finally the frequency relationship is defined as
f
VCO
n = ------------- = 2 (synr + 1)
= 50
f
ref
With the above values the resistance can be calculated. The example is shown for a loop bandwidth
f =10kHz:
C
2 π n f
C
= 2*π*50*10kHz/(316.7Hz/Ω)=9.9kΩ=~10kΩ
R = ----------------------------
K
Φ
The capacitance C can now be calculated as:
s
2
0.516
≈ --------------;(ζ = 0.9)
2 ζ
= 5.19nF =~ 4.7nF
C =
---------------------
π f
s
f
R
R
C
C
The capacitance C should be chosen in the range of:
p
C ⁄ 20 ≤ C ≤ C ⁄ 10
Cp = 470pF
s
p
s
B.6.3.2 Jitter Information
The basic functionality of the PLL is shown in Figure B-3. With each transition of the clock f , the
cmp
deviation from the reference clock f is measured and input voltage to the VCO is adjusted
ref
accordingly.The adjustment is done continuously with no abrupt changes in the clock output frequency.
Noise, voltage, temperature and other factors cause slight variations in the control loop resulting in a clock
jitter. This jitter affects the real minimum and maximum clock periods as illustrated in Figure B-4.
105
Device User Guide — 9S12C-FamilyDGV1/D V00.03
1
2
3
N-1
N
0
t
min1
t
nom
t
max1
t
minN
t
maxN
Figure B-4 Jitter Definitions
is at its maximum for one clock period, and decreases towards zero for larger
The relative deviation of t
nom
number of clock periods (N).
Defining the jitter as:
t
(N)
t
(N)
max
min
J(N) = max 1 –
, 1 –
--------------------
---------------------
N t
N t
nom
nom
For N < 100, the following equation is a good fit for the maximum jitter:
j
1
J(N) =
+ j
-------
2
N
J(N)
1
5
10
20
N
Figure B-5 Maximum bus clock jitter approximation
106
Device User Guide — 9S12C-FamilyDGV1/D V00.03
This is very important to notice with respect to timers, serial modules where a pre-scaler will eliminate the
effect of the jitter to a large extent.
Table B-12 PLL Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
Rating
Symbol
fSCM
Min
1
Typ
Max
5.5
Unit
MHz
MHz
1
2
P Self Clock Mode frequency
D VCO locking range
fVCO
8
50
Lock Detector transition from Acquisition to Tracking
mode
1
|∆trk
|∆Lock
|∆unl
|∆unt
|
3
D
3
4
%
(1)
|
4
5
D Lock Detection
0
1.5
2.5
%
(1)
|
D Un-Lock Detection
0.5
%
Lock Detector transition from Tracking to Acquisition
mode
(1)
|
6
D
6
8
%
PLLON Total Stabilization delay (Auto Mode) 2
C
tstab
tacq
tal
7
8
9
0.5
0.3
ms
ms
PLLON Acquisition mode stabilization delay (2)
D
PLLON Tracking mode stabilization delay (2)
D
0.2
ms
K1
f1
10 D Fitting parameter VCO loop gain
11 D Fitting parameter VCO loop frequency
12 D Charge pump current acquisition mode
13 D Charge pump current tracking mode
-100
60
MHz/V
MHz
µA
| ich
| ich
j1
|
38.5
3.5
|
µA
Jitter fit parameter 1(2)
Jitter fit parameter 2(2)
14
15
C
C
1.1
%
j2
0.13
%
NOTES:
1. % deviation from target frequency
2. fOSC = 4MHz, fBUS = 25MHz equivalent fVCO = 50MHz: REFDV = #$03, SYNR = #$018, Cs = 4.7nF, Cp = 470pF, Rs =
10KΩ.
107
Device User Guide — 9S12C-FamilyDGV1/D V00.03
108
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.7 MSCAN
Table B-13 MSCAN Wake-up Pulse Characteristics
Conditions are shown in Table A-4 unless otherwise noted
Num C
Rating
Symbol
tWUP
Min
Typ
Max
1
2
P MSCAN Wake-up dominant pulse filtered
P MSCAN Wake-up dominant pulse pass
2
tWUP
5
109
Device User Guide — 9S12C-FamilyDGV1/D V00.03
110
Device User Guide — 9S12C-FamilyDGV1/D V00.03
B.8 SPI
Appendix C Electrical Specifications
This section provides electrical parametrics and ratings for the SPI.
In Table C-1 the measurement conditions are listed.
Table C-1 Measurement Conditions
Description
Value
Unit
Drive mode
full drive mode
—
Load capacitance CLOAD,
on all outputs
50
pF
V
Thresholds for delay
measurement points
(20% / 80%) VDDX
C.1 Master Mode
In Figure C-1 the timing diagram for master mode with transmission format CPHA=0 is depicted.
1
SS
(OUTPUT)
2
1
12
12
13
13
3
SCK
0)
4
(CPOL
=
(OUTPUT)
4
SCK
= 1)
(CPOL
(OUTPUT)
5
6
MISO
(INPUT)
MSB IN2
LSB IN
BIT 6 . . . 1
10
9
11
MOSI
(OUTPUT)
MSB OUT2
BIT 6 . . . 1
LSB OUT
1.if configured as an output.
2. LSBF = 0. For LSBF = 1, bit order is LSB, bit 1, ..., bit 6, MSB.
Figure C-1 SPI Master Timing (CPHA=0)
In Figure C-2 the timing diagram for master mode with transmission format CPHA=1 is depicted.
111
Device User Guide — 9S12C-FamilyDGV1/D V00.03
1
SS
(OUTPUT)
1
12
12
13
13
3
2
SCK
0)
(OUTPUT)
(CPOL
=
4
4
SCK
= 1)
(CPOL
(OUTPUT)
5
6
MISO
MSB IN2
BIT 6 . . . 1
11
BIT 6 . . . 1
LSB IN
(INPUT)
9
MOSI
(OUTPUT)
MASTER MSB OUT2
PORT DATA
MASTER LSB OUT
PORT DATA
1.If configured as output
2. LSBF = 0. For LSBF = 1, bit order is LSB, bit 1, ..., bit 6, MSB.
Figure C-2 SPI Master Timing (CPHA=1)
In Table C-2 the timing characteristics for master mode are listed.
Table C-2 SPI Master Mode Timing Characteristics
Num
C
Characteristic
Symbol
Unit
Min
1/2048
2
Typ
—
Max
fsck
tsck
tlead
tlag
twsck
tsu
fbus
tbus
tsck
tsck
tsck
ns
1
1
P
P
D
D
D
D
D
D
D
D
D
D
SCK Frequency
1/2
2048
—
SCK Period
—
2
Enable Lead Time
—
1/2
1/2
1/2
—
3
Enable Lag Time
—
—
4
Clock (SCK) High or Low Time
Data Setup Time (Inputs)
Data Hold Time (Inputs)
Data Valid after SCK Edge
Data Valid after SS fall (CPHA=0)
Data Hold Time (Outputs)
Rise and Fall Time Inputs
Rise and Fall Time Outputs
—
—
5
8
—
thi
6
8
—
—
ns
tvsck
tvss
tho
9
—
—
30
15
—
ns
10
11
12
13
—
—
ns
20
—
—
ns
trfi
—
8
ns
trfo
—
—
8
ns
112
Device User Guide — 9S12C-FamilyDGV1/D V00.03
C.2 Slave Mode
In Figure C-3 the timing diagram for slave mode with transmission format CPHA=0 is depicted.
SS
(INPUT)
1
12
12
13
13
3
SCK
0)
(CPOL
=
(INPUT)
4
4
2
SCK
(CPOL
= 1)
10
7
(INPUT)
8
9
11
11
MISO
(OUTPUT)
see
note
SEE
BIT 6 . . . 1
SLAVE LSB OUT
SLAVE MSB
6
NOTE
5
MOSI
(INPUT)
BIT 6 . . . 1
MSB IN
LSB IN
NOTE: Not defined!
Figure C-3 SPI Slave Timing (CPHA=0)
In Figure C-4 the timing diagram for slave mode with transmission format CPHA=1 is depicted.
113
Device User Guide — 9S12C-FamilyDGV1/D V00.03
SS
(INPUT)
3
1
12
13
13
2
SCK
0)
(INPUT)
(CPOL
=
4
4
12
11
SCK
= 1)
(INPUT)
(CPOL
8
9
MISO
see
BIT 6 . . . 1
SLAVE
5
MSB OUT
6
SLAVE LSB OUT
LSB IN
note
(OUTPUT)
7
MOSI
(INPUT)
MSB IN
BIT 6 . . . 1
NOTE: Not defined!
Figure C-4 SPI Slave Timing (CPHA=1)
In Table C-3 the timing characteristics for slave mode are listed.
Table C-3 SPI Slave Mode Timing Characteristics
Num
C
Characteristic
Symbol
Unit
Min
DC
4
Typ
—
Max
1/4
∞
fsck
tsck
tlead
tlag
fbus
tbus
tbus
tbus
tbus
ns
1
1
2
3
4
5
6
P
P
D
D
D
D
D
SCK Frequency
SCK Period
—
Enable Lead Time
4
—
—
Enable Lag Time
4
—
—
twsck
tsu
Clock (SCK) High or Low Time
Data Setup Time (Inputs)
Data Hold Time (Inputs)
4
—
—
8
—
—
thi
8
—
—
ns
Slave Access Time (time to data
active)
ta
7
D
—
—
20
22
ns
tdis
8
9
D
D
Slave MISO Disable Time
Data Valid after SCK Edge
—
—
—
—
ns
ns
1
1
tvsck
30 + tbus
tvss
tho
trfi
10
11
D
D
D
D
Data Valid after SS fall
—
20
—
—
—
—
—
—
ns
ns
ns
ns
30 + tbus
Data Hold Time (Outputs)
Rise and Fall Time Inputs
Rise and Fall Time Outputs
—
8
12
trfo
13
8
NOTES:
1. tbus added due to internal synchronization delay
114
Device User Guide — 9S12C-FamilyDGV1/D V00.03
C.3 External Bus Timing
A timing diagram of the external multiplexed-bus is illustrated in Figure C-5 with the actual timing
values shown on table Table C-4. All major bus signals are included in the diagram. While both a data
write and data read cycle are shown, only one or the other would occur on a particular bus cycle.
C.3.1 General Muxed Bus Timing
The expanded bus timings are highly dependent on the load conditions. The timing parameters shown
assume a balanced load across all outputs.
Figure C-5 General External Bus Timing
1, 2
3
4
ECLK
PE4
5
6
16
10
9
15
11
Addr/Data
(read)
PA, PB
data
data
data
addr
7
8
12
14
data
13
Addr/Data
(write)
PA, PB
addr
17
20
19
22
25
18
21
R/W
PE2
LSTRB
PE3
24
27
23
26
NOACC
PE7
28
29
PIPO0
PIPO1, PE6,5
115
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table C-4 Expanded Bus Timing Characteristics (5V Range)
Conditions are 4.75V < VDDX < 5.25V, Junction Temperature -40˚C to +140˚C, CLOAD = 50pF
Num
1
C
P
P
D
D
D
D
D
D
D
D
D
D
D
Rating
Frequency of operation (E-clock)
Cycle time
Symbol
fo
Min
0
Typ
Max
Unit
MHz
ns
25.0
tcyc
2
40
19
19
PWEL
3
Pulse width, E low
ns
Pulse width, E high1
PWEH
tAD
4
ns
5
Address delay time
8
ns
Address valid time to E rise (PWEL–tAD
)
tAV
6
11
2
ns
tMAH
tAHDS
tDHA
tDSR
tDHR
tDDW
tDHW
tDSW
7
Muxed address hold time
Address hold to data valid
Data hold to address
Read data setup time
Read data hold time
Write data delay time
Write data hold time
ns
8
7
ns
9
2
ns
10
11
12
13
13
0
ns
ns
7
ns
2
12
19
6
ns
Write data setup time(1) (PWEH–tDDW
Address access time(1) (tcyc–tAD–tDSR
)
14
15
D
D
ns
ns
tACCA
)
E high access time(1) (PWEH–tDSR
Read/write delay time
)
tACCE
tRWD
tRWV
tRWH
tLSD
tLSV
16
17
18
19
20
21
22
23
24
25
26
27
28
D
D
D
D
D
D
D
D
D
D
D
D
D
D
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
7
7
7
Read/write valid time to E rise (PWEL–tRWD
Read/write hold time
)
14
2
Low strobe delay time
Low strobe valid time to E rise (PWEL–tLSD
)
14
2
tLSH
tNOD
tNOV
tNOH
tP0D
tP0V
Low strobe hold time
NOACC strobe delay time
NOACC valid time to E rise (PWEL–tLSD
NOACC hold time
)
14
2
IPIPO[1:0] delay time
2
7
IPIPO[1:0] valid time to E rise (PWEL–tP0D
)
11
2
IPIPO[1:0] delay time(1) (PWEH-tP1V
)
tP1D
tP1V
25
29
IPIPO[1:0] valid time to E fall
11
NOTES:
1. Affected by clock stretch: add N x tcyc where N=0,1,2 or 3, depending on the number of clock stretches.
116
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Table C-5 Expanded Bus Timing Characteristics (3.3V Range)
Conditions are VDDX=3.3V+/-10%, Junction Temperature -40˚C to +140˚C, CLOAD = 50pF
Num
1
C
P
P
D
D
D
D
D
D
D
D
D
D
D
Rating
Frequency of operation (E-clock)
Cycle time
Symbol
fo
Min
0
Typ
Max
Unit
MHz
ns
16.0
tcyc
2
62.5
30
PWEL
3
Pulse width, E low
ns
Pulse width, E high1
PWEH
tAD
4
30
ns
5
Address delay time
16
ns
Address valid time to E rise (PWEL–tAD
)
tAV
6
16
2
ns
tMAH
tAHDS
tDHA
tDSR
tDHR
tDDW
tDHW
tDSW
7
Muxed address hold time
Address hold to data valid
Data hold to address
Read data setup time
Read data hold time
Write data delay time
Write data hold time
ns
8
7
ns
9
2
ns
10
11
12
13
15
0
ns
ns
15
ns
2
ns
Write data setup time(1) (PWEH–tDDW
Address access time(1)
)
14
15
16
D
D
15
29
15
ns
ns
tACCA
E high access time(1) (PWEH–tDSR
Read/write delay time
)
tACCE
tRWD
tRWV
tRWH
tLSD
tLSV
D
D
D
D
D
D
D
D
D
D
D
D
D
D
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
17
18
14
14
14
Read/write valid time to E rise (PWEL–tRWD
)
16
2
19
Read/write hold time
20
Low strobe delay time
Low strobe valid time to E rise (PWEL–tLSD
Low strobe hold time
)
21
16
2
tLSH
tNOD
tNOV
tNOH
tP0D
tP0V
22
23
NOACC strobe delay time
NOACC valid time to E rise (PWEL–tLSD
)
24
16
2
25
NOACC hold time
26
IPIPO[1:0] delay time
2
14
25
IPIPO[1:0] valid time to E rise (PWEL–tP0D
)
27
16
2
IPIPO[1:0] delay time(1)
tP1D
tP1V
28
29
IPIPO[1:0] valid time to E fall
11
NOTES:
1. Affected by clock stretch: add N x tcyc where N=0,1,2 or 3, depending on the number of clock stretches.
117
Device User Guide — 9S12C-FamilyDGV1/D V00.03
118
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Appendix D Package Information
D.1 General
This section provides the physical dimensions of the MC9S12C Family packages 48LQFP, 52LQFP,
80QFP.
119
Device User Guide — 9S12C-FamilyDGV1/D V00.03
D.2 80-pin QFP package
L
60
41
61
40
B
B
P
-A-
-B-
L
V
B
-A-,-B-,-D-
DETAIL A
DETAIL A
21
80
F
1
20
-D-
A
S
M
S
S
S
0.20
H
A-B
A-B
D
D
0.05 A-B
J
N
M
S
0.20
C
D
M
E
DETAIL C
M
S
S
0.20
C
A-B
D
SECTION B-B
VIEW ROTATED 90
C
DATUM
PLANE
-H-
°
-C-
0.10
H
SEATING
PLANE
M
G
NOTES:
MILLIMETERS
1. DIMENSIONING AND TOLERANCING PER
ANSI Y14.5M, 1982.
DIM
A
B
C
D
E
MIN
13.90
13.90
2.15
MAX
14.10
14.10
2.45
2. CONTROLLING DIMENSION: MILLIMETER.
3. DATUM PLANE -H- IS LOCATED AT BOTTOM OF
LEAD AND IS COINCIDENT WITH THE
LEAD WHERE THE LEAD EXITS THE PLASTIC
BODY AT THE BOTTOM OF THE PARTING LINE.
4. DATUMS -A-, -B- AND -D- TO BE
DETERMINED AT DATUM PLANE -H-.
5. DIMENSIONS S AND V TO BE DETERMINED
AT SEATING PLANE -C-.
6. DIMENSIONS A AND B DO NOT INCLUDE
MOLD PROTRUSION. ALLOWABLE
PROTRUSION IS 0.25 PER SIDE. DIMENSIONS
A AND B DO INCLUDE MOLD MISMATCH
AND ARE DETERMINED AT DATUM PLANE -H-.
7. DIMENSION D DOES NOT INCLUDE DAMBAR
PROTRUSION. ALLOWABLE DAMBAR
PROTRUSION SHALL BE 0.08 TOTAL IN
EXCESS OF THE D DIMENSION AT MAXIMUM
MATERIAL CONDITION. DAMBAR CANNOT
BE LOCATED ON THE LOWER RADIUS OR
THE FOOT.
U
0.22
0.38
2.00
2.40
T
F
0.22
0.33
G
H
J
K
L
M
N
P
Q
R
S
0.65 BSC
DATUM
PLANE
---
0.13
0.65
0.25
0.23
0.95
-H-
R
12.35 REF
5
0.13
10
0.17
°
°
0.325 BSC
K
0
7
Q
°
°
W
0.13
16.95
0.13
0.30
17.45
---
X
T
DETAIL C
U
V
W
X
0
---
17.45
0.45
°
16.95
0.35
1.6 REF
Figure D-1 80-pin QFP Mechanical Dimensions (case no. 841B)
120
Device User Guide — 9S12C-FamilyDGV1/D V00.03
D.3 52-pin LQFP package
4X
4X 13 TIPS
0.20 (0.008) T L-M N
0.20 (0.008)
H
L-M
N
-X-
X=L, M, N
52
40
C
1
39
L
AB
AB
G
3X VIEW Y
-L-
-M-
B1
B
V
VIEW Y
F
BASE METAL
PLATING
V1
13
27
J
U
14
26
-N-
D
A1
S1
M
S
S
0.13 (0.005)
T
L-M
N
SECTION AB-AB
A
ROTATED 90 ° CLOCKWISE
S
NOTES:
1.
DIMENSIONING AND TOLERANCING PER ANSI
Y14.5M, 1982.
2.
3.
CONTROLLING DIMENSION: MILLIMETER
DATUM PLANE -H- IS LOCATED AT BOTTOM OF
LEADANDISCOINCIDENTWITHTHELEADWHERE
THE LEAD EXITS THE PLASTIC BODY AT THE
BOTTOM OF THE PARTING LINE.
4X θ2
4X θ3
C
4.
5.
6.
DATUMS -L-, -M- AND -N- TO BE DETERMINED AT
DATUM PLANE -H-.
DIMENSIONS S AND V TO BE DETERMINED AT
SEATING PLANE -T-.
DIMENSIONS A AND B DO NOT INCLUDE MOLD
PROTRUSION. ALLOWABLE PROTRUSION IS 0.25
(0.010) PER SIDE. DIMENSIONS A AND B DO
INCLUDE MOLD MISMATCH AND ARE
DETERMINED AT DATUM PLANE -H-
0.10 (0.004)
T
-H-
-T-
SEATING
PLANE
VIEW AA
7. DIMENSION D DOES NOT INCLUDE DAMBAR
PROTRUSION. DAMBAR PROTRUSION SHALL NOT
CAUSE THE LEAD WIDTH TO EXCEED 0.46 (0.018).
MINIMUM SPACE BETWEEN PROTRUSION AND
ADJACENT LEAD OR PROTRUSION 0.07 (0.003).
S
0.05 (0.002)
MILLIMETERS
MIN MAX
10.00 BSC
5.00 BSC
10.00 BSC
5.00 BSC
INCHES
MIN MAX
0.394 BSC
0.197 BSC
0.394 BSC
0.197 BSC
W
2X R R1
DIM
A
A1
B
B1
C
C1
C2
D
θ1
0.25 (0.010)
C2
θ
---
0.05
1.30
0.20
0.45
0.22
1.70
---
0.067
GAGE PLANE
0.20
1.50
0.40
0.75
0.35
0.002 0.008
0.051
0.008
0.018
0.009
0.059
0.016
0.030
0.014
K
E
E
F
C1
G
0.65 BSC
0.026 BSC
J
K
0.07
0.50 REF
0.20
0.003
0.020 REF
0.008
VIEW AA
Z
R1
S
S1
U
0.08
0.20
0.003
0.008
12.00 BSC
6.00 BSC
0.09 0.16
0.472 BSC
0.236 BSC
0.004 0.006
V
12.00 BSC
6.00 BSC
0.20 REF
1.00 REF
0.472 BSC
0.236 BSC
0.008 REF
0.039 REF
V1
W
Z
θ
0
0
12
12
7
---
REF
REF
0
0
12
12
7
---
REF
REF
°
°
°
°
°
°
θ
θ
θ
1
2
3
°
°
°
°
Figure D-2 52-pin LQFP Mechanical Dimensions (case no. 848D-03)
121
Device User Guide — 9S12C-FamilyDGV1/D V00.03
D.4 48-pin LQFP package
4X
NOTES:
0.200 AB T-U Z
1. DIMENSIONING AND TOLERANCING PER
ASME Y14.5M, 1994.
1. CONTROLLING DIMENSION: MILLIMETER.
2. DATUM PLANE AB IS LOCATED AT BOTTOM
OF LEAD AND IS COINCIDENT WITH THE
LEAD WHERE THE LEAD EXITS THE PLASTIC
BODY AT THE BOTTOM OF THE PARTING
LINE.
DETAIL Y
9
A
P
A1
48
37
3. DATUMS T, U, AND Z TO BE DETERMINED AT
DATUM PLANE AB.
4. DIMENSIONS S AND V TO BE DETERMINED
AT SEATING PLANE AC.
1
36
5. DIMENSIONS A AND B DO NOT INCLUDE
MOLD PROTRUSION. ALLOWABLE
PROTRUSION IS 0.250 PER SIDE. DIMENSIONS
AANDBDOINCLUDEMOLDMISMATCHAND
ARE DETERMINED AT DATUM PLANE AB.
6. DIMENSION D DOES NOT INCLUDE DAMBAR
PROTRUSION. DAMBAR PROTRUSION SHALL
NOT CAUSE THE D DIMENSION TO EXCEED
0.350.
7. MINIMUM SOLDER PLATE THICKNESS
SHALL BE 0.0076.
8. EXACT SHAPE OF EACH CORNER IS
OPTIONAL.
T
U
B
V
AE
AE
B1
V1
12
25
MILLIMETERS
13
24
DIM MIN MAX
Z
A
A1
B
7.000 BSC
3.500 BSC
7.000 BSC
S1
T, U, Z
B1
C
D
E
F
G
H
J
K
L
M
N
P
3.500 BSC
1.400 1.600
0.170 0.270
1.350 1.450
0.170 0.230
0.500 BSC
0.050 0.150
0.090 0.200
0.500 0.700
S
DETAIL Y
4X
0.200 AC T-U Z
0
7
°
°
0.080 AC
12 REF
°
G
AB
AC
0.090 0.160
0.250 BSC
0.150 0.250
9.000 BSC
4.500 BSC
9.000 BSC
4.500 BSC
0.200 REF
1.000 REF
R
S
S1
V
V1
W
AA
AD
°
M
BASE METAL
TOP & BOTTOM
R
N
J
E
C
F
D
M
0.080
AC T-U Z
SECTION AE-AE
W
H
°
L
K
DETAIL AD
AA
Figure D-3 48-pin LQFP Mechanical Dimensions (case no.932-03 ISSUE F)
122
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Appendix E Emulation Information
E.1 General
In order to emulate the MC9S12C-Family devices, external addressing of a 128K memory map is required.
This is provided in a 112 LQFP package version which includes the 3 necessary extra external address bus
signals via PortK. This package version is for emulation only and not provided as a general production
package.
84
83
82
81
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
PW3/KWP3/PP3
PW2/KWP2/PP2
PW1/KWP1/PP1
/PW0/KWP0/PP0
NC
XADDR16/PK2
XADDR15/PK1
XADDR14/PK0
IOC0/PT0
1
2
3
4
5
6
7
8
VRH
VDDA
NC
PAD07/AN07
NC
PAD06/AN06
NC
PAD05/AN05
NC
PAD04/AN04
NC
PAD03/AN03
NC
PAD02/AN02
NC
PAD01/AN01
NC
PAD00/AN00
VSS2
9
IOC1/PT1
IOC2/PT2
IOC3/PT3
VDD1
VSS1
IOC4/PT4
IOC5/PT5
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
MC9S12C Family
IOC6/PT6
IOC7/PT7
NC
NC
NC
NC
VDD2
PA7/ADDR15/DATA15
PA6/ADDR14/DATA14
PA5/ADDR13/DATA13
PA4/ADDR12/DATA12
PA3/ADDR11/DATA11
PA2/ADDR10/DATA10
PA1/ADDR9/DATA9
PA0/ADDR8/DATA8
MODC/TAGHI/BKGD
ADDR0/DATA0/PB0
ADDR1/DATA1/PB1
ADDR2/DATA2/PB2
ADDR3/DATA3/PB3
ADDR4/DATA4/PB4
Signals shown in Bold are available only in the 112 Pin Package. Pins marked "NC" are not connected
Figure 19-1 Pin Assignments in 112-pin LQFP
123
Device User Guide — 9S12C-FamilyDGV1/D V00.03
E.1.1 PK[2:0] / XADDR[16:14]
PK2-PK0 provide the expanded address XADDR[16:14] for the external bus.
Refer to the S12 Core user guide for detailed information about external address page access.
Internal Pull
Resistor
Pin Name
Function 1
Pin Name
Power
Description
Function 2 Domain
Reset
CTRL
State
PK[2:0]
XADDR[16:14]
VDDX
PUPKE
Up
Port K I/O Pins
The reset state of DDRK in the S12_CORE is $00, configuring the pins as inputs.
The reset state of PUPKE in the PUCR register of the S12_CORE is "1" enabling the internal pullup
resistors at PortK[2:0].
In this reset state the pull-up resistors provide a defined state and prevent a floating input, thereby
preventing unneccesary current consumption at the input stage.
124
Device User Guide — 9S12C-FamilyDGV1/D V00.03
E.2 112-pin LQFP package
4X
0.20
T L-M N
4X 28 TIPS
0.20
T L-M N
4X
P
J1
J1
PIN 1
112
85
IDENT
C
1
84
L
VIEW Y
X
108X
G
X=L, M OR N
VIEW Y
V
B
L
M
AA
J
B1
V1
28
57
BASE
METAL
F
D
29
56
M
0.13
T
L-M
N
N
SECTION J1-J1
A1
S1
ROTATED 90 COUNTERCLOCKWISE
°
NOTES:
1. DIMENSIONING AND TOLERANCING PER
ASME Y14.5M, 1994.
A
2. DIMENSIONS IN MILLIMETERS.
3. DATUMS L, M AND N TO BE DETERMINED AT
SEATING PLANE, DATUM T.
S
4. DIMENSIONS S AND V TO BE DETERMINED AT
SEATING PLANE, DATUM T.
5. DIMENSIONS A AND B DO NOT INCLUDE
MOLD PROTRUSION. ALLOWABLE
PROTRUSION IS 0.25 PER SIDE. DIMENSIONS
A AND B INCLUDE MOLD MISMATCH.
6. DIMENSION D DOES NOT INCLUDE DAMBAR
PROTRUSION. ALLOWABLE DAMBAR
PROTRUSION SHALL NOT CAUSE THE D
DIMENSION TO EXCEED 0.46.
C2
VIEW AB
θ2
C
0.050
112X
0.10
T
SEATING
PLANE
MILLIMETERS
DIM
A
MIN
MAX
θ3
20.000 BSC
A1
B
B1
C
C1
C2
D
10.000 BSC
20.000 BSC
10.000 BSC
T
---
0.050
1.350
0.270
0.450
0.270
1.600
0.150
1.450
0.370
0.750
0.330
θ
E
F
G
0.650 BSC
J
K
P
0.090
0.500 REF
0.325 BSC
0.170
R R2
R1
R2
S
0.100
0.100
22.000 BSC
0.200
0.200
0.25
R R1
S1
V
V1
Y
11.000 BSC
22.000 BSC
11.000 BSC
0.250 REF
1.000 REF
GAGE PLANE
(K)
Z
C1
θ1
AA
θ
0.090
0.160
E
8
°
°
°
°
0
°
°
°
°
θ
θ
θ
1
2
3
3
7
(Y)
(Z)
13
13
11
11
VIEW AB
Figure 19-2 112-pin LQFP mechanical dimensions (case no. 987)80-pin QFP Mechanical
Dimensions (case no. 841B)
125
Device User Guide — 9S12C-FamilyDGV1/D V00.03
126
Device User Guide — 9S12C-FamilyDGV1/D V00.03
Device User Guide End Sheet
127
Device User Guide — 9S12C-FamilyDGV1/D V00.03
FINAL PAGE OF
128
PAGES
128
相关型号:
©2020 ICPDF网 联系我们和版权申明