16-bit Microcontrollers
MC9S12DJ64
Target Applications
> Automotive applications
> Industrial control
Features
High-Performance 16-bit HCS12 CPU Core
Benefits
> 25 MHz bus operation at 5V for 40 ns
minimum instruction cycle time
> Object code compatible 68HC12
> Assembly source code compatible with
the 68HC11
> C-optimized architecture produces extremely
compact code
Overview
Freescale Semiconductor’s HCS12 family of
microcontrollers (MCUs) is the next generation
of the highly successful 68HC12 architecture.
Using Freescale’s industry-leading 0.25 µs Flash,
the MC9S12DJ64 is part of a pin-compatible
family that scales from 32 KB to 512 KB of
Flash memory. The DJ64 provides an upward
migration path from Freescale’s 68HC08,
68HC11 and 68HC12 architectures for
applications that need larger memory, more
peripherals and higher performance. Also, with
the increasing number of CAN/J1850-based
electronic control units (ECUs), its multiple
network modules support this environment by
enabling highly efficient communications
between different network buses.
On-Chip Debug Interface
> Dedicated serial debug interface
> On-chip breakpoints
> Real-time in-circuit emulation and debug
without expensive and cumbersome box
emulators
> Read/write memory and registers while
running at full speed
Network Modules
> One msCAN module implementing the CAN
2.0 A/B protocol
• Five receive buffers per module with FIFO
storage scheme
• Three transmit buffers per module with
internal prioritization
> One J1850 module
Integrated Third-Generation Flash Memory
> Programmable bit rate up to 1 Mbps
> FIFO receive approach superior for
event-driven networks
> Ability to send and receive messages across
an SAE J1850 serial communication network
> In-application reprogrammable
> Self-timed, fast programming
• Fast Flash page erase—20 ms (512 bytes)
• Can program 16 bits in 20 µs while
in burst mode
> 5V Flash program/erase/read
> Flash granularity—512 byte Flash erase/
2 byte Flash program
> Flexibility to change code in the field
> Efficient end-of-line programming
> Total program time for 128 KB code
is less than five seconds
> Reduces production programming cost
through ultra-fast programming
> No external high voltage or charge
pump required
> Virtual EEPROM implementation, Flash array
usable for EE extension
HCS12 CPU
2 x SCI
1 x SPI
IC
2
> Flexible block protection and security
64 KB Flash
1 KB Integrated EEPROM
4 KB RAM
ATD0
8-ch., 10-bit
Internal Bus
1 KB EEPROM
ATD1
8-ch., 10-bit
> Flexible protection scheme for protection
against accidental program or erase
> EEPROM can be programmed in 46 µs
10-bit Analog-to-Digital Converter (ADC)
Vreg 5V to 2.5V
16-Key Wake-Up
IRQ Ports
BDLC
J1850 Interface
> Can erase 4 bytes at a time and program
2 bytes at a time for calibration, security,
personality and diagnostic information
Enhanced Capture Timer
8-ch., 16-bit
> Two, 8-channel ADCs
> 7 µs, 10-bit single conversion time, scan
mode available
> Fast, easy conversion from analog inputs like
temperature, pressure and fluid levels to digital
values for CPU processing
> Can effectively have 3.5 µs conversion time
by sampling same signal with both ADCs
1 x CAN
2.0 A/B
PWM
8-ch., 8-bit/4-ch., 16-bit
Data Sheets
Features
Benefits
9S12DJ64DGV1
S12A64PIMV1
S12BDMV4
S12BKVD1
S12CPUV2
S12MSCANV2
S12ATD10B8CV2
S12CRGV3
S12ECT16B8CV1
Clock Generation Module with Phase-Lock Loop (PLL)
> Clock monitor with self clock mode in case
of no external clock
> Programmable clock frequency with 1024
options ranging from divide by 16 to multiply
by 64 from base oscillator
> Real-time interrupt
> Watchdog
Enhanced Capture Timer
> Reliable, robust operation
> Provides high performance using low-cost
reference crystals
> Reduces generated noise
> Reduces power consumption
> Easily able to implement real-time clock
> 8-channel, 16-bit with input capture, output
compare and pulse accumulator
> 16-bit modulus down counter
8-bit or 16-bit Pulse-Width Modulation (PWM)
> Flexible, programmable timer system
S12EETS2KV1
S12FTS128KV1
S12IICV2
S12INTV1
S12MEBIV3
S12MMCV4
S12PWM8B8CV1
> 8-channel, 8-bit or 4-channel, 16-bit PWM
> PWM supports center-aligned operation
Two Serial Communications Interfaces
> Efficiently implement motor control, battery
charging or digital-to-analog (DAC) functions
> 8192 prescaler options
> Asynchronous communication between the
MCU and a terminal, computer or a network
of MCUs
> Exact baud rate matching
S12SCIV2
S12SPIV2
S12VREGV1
S12BDLCV1
One Serial Peripheral Interface
> Up to 12.5 Mbps
> High-speed synchronous communication
between multiple MCUs or between MCU and
serial peripherals
MC9S12A64 Device Guide
MC9S12A64 Port Integration
Module Block Guide
HCS12 Background Debug (BDM)
Block Guide
HCS12 Breakpoint (BKP) Block Guide
HCS12 CPU Reference Manual
HCS12 Motorola Scalable Controller
Area Network Block Guide
HCS12 10-bit 8-channel Analog to
Digital Block Guide
HCS12 Clock Reset Generator
Block Guide
HCS12 16-bit 8-channel Enhanced
Capture Timer Block Guide
HCS12 2K EEPROM Block Guide
HCS12 128K Flash Block Guide
HCS12 I
2
C Block Guide
HCS12 Interrupt (INT) Block Guide
HCS12 Multiplexed External Bus
Interface (MEBI) Block Guide
HCS12 Module Mapping Control
(MMC) Block Guide
HCS12 8-bit 8-channel Pulse-Width
Modulator Block Guide
HCS12 Serial Communications
Interface Block Guide
HCS12 Serial Peripheral Interface
Block Guide
HCS12 Voltage Regulator
Block Guide
HCS12 Byte Data Link Controller
Block Guide
Inter-IC (I
2
C) Bus
Cost-Effective Development Tools
> Provides a simple, efficient method of data
exchange between devices
> Minimizes the need for large numbers of
connections between devices and eliminates
the need for an address decoder
For more information on development tools, please refer to
the Freescale Development Tool Selector Guide (SG1011).
M68KIT912DP256
$495*
Evaluation kit for development and
evaluation of HCS12 application
code that includes the
M68EVB912DP256 and
USBMULTILINKBDM
HC08/HCS08/HC12/HCS12
stand-alone Flash programmer or
in-circuit emulator, debugger, Flash
programmer; USB, serial or Ethernet
interface options
> 256 clock-rate options
Up to 91 Input/Output (I/O) Lines
> Programmable pull-ups/pull-downs
> Dual drive capability
> Reduce system cost
> Able to tailor application for minimum
EMC or high current loads
M68CYCLONEPRO
$499*
USBMULTILINKBDM
Universal HCS08/HCS12 in-circuit
$99*
emulator, debugger, and Flash
programmer; USB PC interface
Application Notes and Engineering Bulletins
AN1284
AN1716
AN1775
AN1783
AN2104
AN2204
AN2216
AN2318
BCANPSV2.0
BDLCRM
EB396
Transporting M68HC11 Code to M68HC12 Devices
Using M68HC12 Indexed Indirect Addressing
Expanding Digital Input with an A/D Converter
Determining MCU Oscillator Start-Up Parameters
Using Background Debug Mode for the M68HC12 Family
Fast NVM Programming for the MC9S12DP256
MC9S12DP256 Software Development Using Metrowerks CodeWarrior™
Using the I
2
C Bus with HCS12 Microcontrollers
Bosch Controller Area Network (CAN) Version 2.0 Protocol Standard
Byte Data Link Controller Reference Manual
Use of OSC2/XTAL as a Clock Output on Motorola Microcontrollers
CWX-H12-SE
Free*
CodeWarrior™ Special Edition for
HCS12 MCUs; includes integrated
development environment (IDE),
linker, debugger, unlimited
assembler, Processor Expert™
auto-code generator, full-chip
simulation and limited C compiler
Package Options
Part Number
Package
Temp. Range
MC9S12DJ64CFU
MC9S12DJ64VFU
MC9S12DJ64MFU
MC9S12DJ64CPV
MC9S12DJ64VPV
MC9S12DJ64MPV
80 QFP
80 QFP
80 QFP
112 LQFP
112 LQFP
112 LQFP
-40°C to +85°C
-40°C to +105°C
-40°C to +125°C
-40°C to +85°C
-40°C to +105°C
-40°C to +125°C
112-Lead LQFP
80-Lead QFP
Learn More:
For more information about Freescale products, please visit
www.freescale.com.
*Price indicated is MSRP.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names
are the property of their respective owners. This product incorporates SuperFlash
®
technology licensed from SST.
© Freescale Semiconductor, Inc. 2005
Document Number: MC9S12DJ64FS
REV 0