16-bit Microcontrollers MC9S12A64 Target Applications > Instrumentation Features Benefits High-Performance 16-bit HCS12 CPU Core > Energy management > 25 MHz bus operation at 5V for 40 ns minimum instruction cycle time > Industrial control > Opcode compatible with the 68HC11 and 68HC12 > C-optimized architecture produces extremely compact code > Robotics On-Chip Debug Interface > Safety equipment > Dedicated serial debug interface > Security > 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 Integrated Third-Generation Flash Memory Overview The MC9S12A64 Flash microcontroller (MCU) is the next generation of the highly successful 68HC12 architecture. Utilizing Freescale’s industry-leading 0.25µ Flash, the A64 is part of > In-application reprogrammable > Efficient end-of-line programming > Self-timed, fast programming > Total program time for 164 KB code is less than 5s • Fast Flash page erase—20 ms (512 bytes) • Can program 16 bits in 20 µs while in burst mode > Reduces production programming cost through ultra-fast programming a pin-compatible family that is planned to scale > 5V Flash program/erase/read > No external high voltage or charge pump required from 32 KB to 512 KB of Flash memory. The > Flash granularity—512 byte Flash erase/2 byte Flash program MC9S12A64 provides an upward migration > Virtual EEPROM implementation, Flash array usable for EE extension > Flexible block protection and security path from Freescale’s 68HC08, 68HC11 and > Flexibility to change code in the field 68HC12 architectures for applications that need larger memory, more peripherals and higher performance. 1 KB Integrated EEPROM > Flexible protection scheme for protection against accidental program or erase > EEPROM can be programmed in 46 µs > Can erase 4 bytes at a time and program 2 bytes at a time for calibration, security, personality and diagnostic information 10-bit Analog-to-Digital Converter (ADC) > Two eight-channel ADCs HCS12 CPU > 7 µs, 10-bit single conversion time, scan mode available 64 KB Flash 2 x SCI 4 KB RAM 1 KB EEPROM I2C ADC0 8-ch., 10-bit ADC1 8-ch., 10-bit Internal Bus SPI Vreg 5V to 2.5V 16-Keyboard Wake-Up IRQ Ports > Can effectively have 3.5 µs conversion time by sampling same signal with both ADCs Clock Generation Module with Phase-Lock Loop (PLL) > Clock monitor with limp home mode in case of no external clock Enhanced Capture Timer 8-ch., 16-bit PWM 8-ch., 8-bit/4-ch., 16-bit > Fast, easy conversion from analog inputs, such as position sensors, analog meters and photovoltaic cells, to digital values for CPU processing > Programmable clock frequency with 1,024 options ranging from divide by 16 to multiply by 64 form base oscillator > Reliable, robust operation > Provides high performance using low-cost reference crystals > Reduces generated noise > Real-time interrupt > Reduces power consumption > Watchdog > Easily able to implement real-time clock Features Benefits Data Sheets > Flexible, programmable timer system S12DJ64PIMV1 S12BDMV4 9S12DJ64DGV1 Enhanced Capture Timer > 8-channel, 16-bit with input capture, output compare and pulse accumulator > 16-bit modulus down counter S12BKPV1 8-bit or 16-bit Pulse-Width Modulation (PWM) S12INTV1 S12MMCV4 > 8-channel, 8-bit or 4-channel, 16-bit PWM > PWM supports center-aligned operation > Efficiently implements motor control, battery charging or digital-to-analog functions S12MEBIV3 > Asynchronous communication between the MCU and a terminal, computer or a network of microcontrollers S12CPUV2 S12CRGV4 S12ECT16B8CV1 S12ATD10B8CV2 SC12IICV2 Two Serial Communications Interfaces (SCIs) > 8192 prescaler options > Exact baud rate matching One Serial Peripheral Interface (SPI) > Up to 12.5 Mbps > High-speed synchronous communication between multiple MCUs or between MCU and serial peripherals Inter-IC (I2C) Bus > 256 clock-rate options S12SPIV2 S12SCIV2 S12PWM8B8CV1 S12EETS1KV1 S12FTS64KV1 S12BDLCV1 S12VREGV1 S12OSCV2 MC9S12DJ64 Device User Guide PIM 9DJ64 Block Guide Background Debug Module (BDM) V4 Breakpoint (BKP) Module V1 Block User Guide Interrupt (INT) Module V1 Module Mapping Control (MMC) V4 Multiplexed External Bus Interface (MEBI) ModulV3 Block User Guide S12CPUV2 Reference Manual CRG Block User Guide ECT 16B8C Block User Guide ATD 10B8C Block User Guide HCS12 Inter-Integrated Circuit (I2C) Block Guide SPI Block User Guide HCS12 Serial Communications Interface (SCI) Block Guide PWM 8B8C Block User Guide EETS1K Block User Guide FTS64K Block User Guide BDLC Block Guide VREG Block User Guide OSC Block User Guide > 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 Up to 91 Input/Output (I/O) Lines Development Tools USBMULTILINKBDM M68KIT912DP256 > Programmable pull-ups/pull-downs > Reduce system cost > Dual drive capability > Able to tailor application for minimum EMC or high current loads M68CYCLONEPRO CWX-H12-SE: Application Notes and Engineering Bulletins Universal HC12/HCS12 in-circuit emulator, debugger and Flash programming through BDM interface Includes M68MULTILINK12 and an MC9S12DP256 evaluation board HC08/HCS08/HC12/HCS12 stand-alone Flash programmer or in-circuit emulator, debugger and Flash programmer; USB, serial or Ethernet interface options CodeWarrior™ Development Studio for HCS12 with Processor Expert™ autocode generator, full-chip simulation, assembler, linker and C compiler (code size limited—compiler upgrades available) AN1284 Transporting M68HC11 Code to M68HC12 Devices AN1716 Using M68HC12 Indexed Indirect Addressing AN1775 Expanding Digital Input with an A/D Converter AN1783 Determining MCU Oscillator Start-Up Parameters Part Number Package Temp Range AN2104 Using Background Debug Mode for the M68HC12 Family MC9S12A64CFU 80 QFP -40°C to +85°C AN2204 Fast NVM Programming for the MC9S12DP256 MC9S12A64CPV 112 QFP -40°C to +85°C AN2216 MC9S12DP256 Software Development Using Metrowerks CodeWarrior™ AN2318 Using the I2C Bus with HCS12 Microcontrollers EB396 Use of OSC2/XTAL As a Clock Output on Motorola Microcontrollers Learn More: For more information about Freescale products, please visit www.freescale.com. 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: MC9S12A64FS REV 0 Package Options