Original Release Date 18 June Revised 16 Aug Motorola, Inc
Revision History
Table of Contents
MC9S12DT128B Device User Guide
Modes of Operation
Resets and Interrupts
System Clock Description
HCS12 Core Block Description
Clock and Reset Generator CRG Block Description
Appendix B Package Information
MC9S12DT128B Device User Guide
List of Figures
Order Partnumber Example
MC9S12DT128B Device User Guide
List of Tables
MC9S12DT128B Device User Guide
Preface
Derivative Differences1
Modules MC9S12DT128B MC9S12DG128B MC9S12DJ128B MC9S12DB128B
Document References
User Guide Version Document Order Number
Features
Introduction
Overview
MC9S12DT128B Device User Guide
Modes of Operation
Block Diagram
1shows a block diagram of the MC9S12DT128B device
MC9S12DT128B Block Diagram
Address Module Size Bytes
Device Memory Map
Device Memory Map
Core MEMSIZ, IRQ, Hprio
MC9S12DT128B Memory Map
Detailed Register Map
$0000 $000F Mebi map 1 of 3 Core User Guide
$0010 $0014 MMC map 1 of 4 Core User Guide
$001E $001E Mebi map 2 of 3 Core User Guide
$0015 $0016 INT map 1 of 2 Core User Guide
$0017 $0017 MMC map 2 of 4 Core User Guide
$001F $001F INT map 2 of 2 Core User Guide
$0030 $0031 MMC map 4 of 4 Core User Guide
$0020 $0027Reserved
$0028 $002F BKP Core User Guide
$0032 $0033 Mebi map 3 of 3 Core User Guide
$0034 $003F CRG Clock and Reset Generator
$0040 $007F ECT Enhanced Capture Timer 16 Bit 8 Channels
TCTL4
TCTL3
EDG7A EDG6B EDG6A EDG5B EDG5A EDG4B EDG4A
EDG3A EDG2B EDG2A EDG1B EDG1A EDG0B EDG0A
Flmc
Mcctl
Mczi Modmc Rdmcl Mcen MCPR1 MCPR0
Mcflg
Fifo FRZ1 FRZ0
Ascif
Adpu Affc Awai Etrigle Etrigp Ascie
SRES8 SMP1 SMP0
$00A0 $00C7 PWM Pulse Width Modulator 8 Bit 8 Channel
Pwmscntb
Pwmsclb
Pwmscnta
PWMCNT0
SCI0 Asynchronous Serial Interface
$00D0 $00D7 SCI1 Asynchronous Serial Interface
SPI0 Serial Peripheral Interface
$00E0 $00E7 IIC Inter IC Bus
$00E8 $00EF Bdlc Byte Level Data Link Controller J1850
$00F0 $00F7 SPI1 Serial Peripheral Interface
$00F8 $00FFReserved
$0100 $010F Flash Control Register fts128k2
$0110 $011B Eeprom Control Register eets2k
ATD1TEST0
$011C $011F Reserved for RAM Control Register
Eaddrlo
ATD1TEST1
$0140 $017F CAN0 Motorola Scalable can Mscan
CAN0TIER
CAN0TFLG
TXE2 TXE1 TXE0
TXEIE2 TXEIE1 TXEIE0
$0180 $01BF CAN1 Motorola Scalable can Mscan
$01C0 $01FFReserved
$0200 $023FReserved
$0240 $027F PIM Port Integration Module
Perp
Ptip
PTIP7 PTIP6 PTIP5 PTIP4 PTIP3 PTIP2 PTIP1 PTIP0
PERP7
$0280 $02BF CAN4 Motorola Scalable can Mscan
$02C0 $02FFReserved
$0300 $035F Byteflight
BFTDATA0
Bftident
Bftlen
Bfrident
Assigned Part ID Numbers
Part ID Assignments
$0360 $03FFReserved
Memory size registers
MC9S12DT128B Device User Guide
Signal Description
Device Pinout
PAD14/AN14
IOC0/PT0
Pin Name
Signal Properties Summary
Signal Properties
Description
PE1 IRQ Vddr
PM2 Rxbf RXCAN1 RXCAN0 MISO0 Vddx
PM3 Txbf TXCAN1 TXCAN0 SS0 Vddx
Ppsm SPI0 Perm
CAN1, CAN0, Miso
Reset External Reset Pin
Detailed Signal Descriptions
EXTAL, Xtal Oscillator Pins
Test Test Pin
10 PA70 / ADDR158 / DATA158 Port a I/O Pins
7 PAD148 / AN160 Port AD Input Pins
9 PAD60 / AN060 Port AD Input Pins
11 PB70 / ADDR70 / DATA70 Port B I/O Pins
Colpitts Oscillator Connections PE7=1
Pierce Oscillator Connections PE7=0
15 PE4 / Eclk Port E I/O Pin
13 PE6 / Modb / IPIPE1 Port E I/O Pin
14 PE5 / Moda / IPIPE0 Port E I/O Pin
16 PE3 / Lstrb / Taglo Port E I/O Pin
23 PH4 / KWH4 Port H I/O Pin
21 PH6 / KWH6 Port H I/O Pin
22 PH5 / KWH5 Port H I/O Pin
24 PH3 / KWH3 / SS1 Port H I/O Pin
29 PJ6 / KWJ6 / RXCAN4 / SDA Port J I/O Pin
30 PJ10 / KWJ10 Port J I/O Pins
32 PK50 / XADDR1914 Port K I/O Pins
31 PK7 / ECS / Romctl Port K I/O Pin
38 PM2 / Rxbf / RXCAN1 / RXCAN0 / MISO0 Port M I/O Pin
36 PM4 / Bfpsyn / RXCAN0 / RXCAN4/ MOSI0 Port M I/O Pin
37 PM3 / Txbf / TXCAN1 / TXCAN0 / SS0 Port M I/O Pin
39 PM1 / TXCAN0 / TXB Port M I/O Pin
45 PP3 / KWP3 / PWM3 / SS1 Port P I/O Pin
43 PP5 / KWP5 / PWM5 Port P I/O Pin
44 PP4 / KWP4 / PWM4 Port P I/O Pin
46 PP2 / KWP2 / PWM2 / SCK1 Port P I/O Pin
Power Supply Pins
VDDX,VSSX Power & Ground Pins for I/O Drivers
3 VDD1, VDD2, VSS1, VSS2 Core Power Pins
Vssa
VDDPLL, Vsspll Power Supply Pins for PLL
VDDA, Vssa Power Supply Pins for ATD and Vreg
5 VRH, VRL ATD Reference Voltage Input Pins
Vregen On Chip Voltage Regulator Enable
MC9S12DT128B Device User Guide
System Clock Description
Clock Connections
MC9S12DT128B Device User Guide
Modes of Operation
Chip Configuration Summary
Mode Selection
Clock Selection Based on PE7
Security
Securing the Microcontroller
Operation of the Secured Microcontroller
Low Power Modes
MC9S12DT128B Device User Guide
Vector Table
Resets and Interrupts
Vectors
Interrupt Vector Locations
Effects of Reset
1 I/O pins
Memory
MC9S12DT128B Device User Guide
HCS12 Core Block Description
Clock and Reset Generator CRG Block Description
Enhanced Capture Timer ECT Block Description
Analog to Digital Converter ATD Block Description
J1850 Bdlc Block Description
Description
Serial Peripheral Interface SPI Block Description
Byteflight BF Block Description
Port Integration Module PIM Block Description
RAM Block Description
Mscan Block Description
Voltage Regulator Vreg Block Description
Printed Circuit Board Layout Proposal
Suggested External Component Values
Component Purpose Type Value
Recommended PCB Layout for 112LQFP Colpitts Oscillator
Recommended PCB Layout for 80QFP Colpitts Oscillator
Recommended PCB Layout for 112LQFP Pierce Oscillator
Recommended PCB Layout for 80QFP Pierce Oscillator
General
Appendix a Electrical Characteristics
Power Supply
Parameter Classification
Pins
Current Injection
ESD Protection and Latch-up Immunity
Num Rating Symbol Min Max Unit
Absolute Maximum Ratings
Table A-1 Absolute Maximum Ratings1
Operating Conditions
Table A-3 ESD and Latch-Up Protection Characteristics
Model Description Symbol Value Unit
Table A-2 ESD and Latch-up Test Conditions
Power Dissipation and Thermal Characteristics
Rating Symbol Min Typ Max Unit
Table A-4 Operating Conditions
Pint = IDD ⋅ VDD + Iddpll ⋅ Vddpll + Idda ⋅ Vdda
9 I/O Characteristics
Table A-5 Thermal Package Characteristics1
Num Rating Symbol Min Typ Max Unit
Table A-6 5V I/O Characteristics
Supply Currents
Measurement Conditions
Additional Remarks
Table A-7 Supply Current Characteristics
Table A-8 ATD Operating Characteristics
ATD Characteristics
ATD Operating Characteristics
Factors influencing accuracy
Table A-9 ATD Electrical Characteristics
Source capacitance
Current injection
ATD accuracy
Table A-10 ATD Conversion Performance
Figure A-1 ATD Accuracy Definitions
Single Word Programming
NVM, Flash and Eeprom
NVM timing
Burst Programming
Mass Erase
Table A-11 NVM Timing Characteristics
Sector Erase
Blank Check
Table A-12 NVM Reliability Characteristics
NVM Reliability
Num Rating Cycles Data Retention Unit Lifetime
100
Voltage Regulator
Table A-13 Voltage Regulator Recommended Load Capacitances
102
Reset, Oscillator and PLL
Startup
Pseudo Stop and Wait Recovery
Table A-15 Oscillator Characteristics
Oscillator
Phase Locked Loop
XFC Pin
XFC Component Selection
⋅ synr +
Jitter Information
= max ⎜ ⋅ t nom
Table A-16 PLL Characteristics
Table A-17 Mscan Wake-up Pulse Characteristics
Mscan
110
Master Mode
Mosi Port Data
LSB Master LSB OUT
Slave Mode
Table A-19 SPI Slave Mode Timing Characteristics
External Bus Timing
General Muxed Bus Timing
Eclk PE4
PA, PB
ECS PK7 PE2 Lstrb PE3 Noacc PE7 PIPO0
Table A-20 Expanded Bus Timing Characteristics
Pweh
118
Appendix B Package Information
112-pin Lqfp mechanical dimensions case no
112-pin Lqfp package
80-pin QFP Mechanical Dimensions case no B
80-pin QFP package
122
User Guide End Sheet
124