16-bit Microcontrollers MC9S12A512 Target Applications Features Benefits > Instrumentation High-Performance 16-bit HCS12 CPU Core > Energy management > 25 MHz bus operation at 5V for 40 ns > Opcode compatible with the 68HC11 > Industrial control minimum instruction cycle time and 68HC12 > Robotics > C-optimized architecture produces extremely > Safety equipment compact code > Security On-Chip Debug Interface > Dedicated serial debug interface > Real-time in-circuit emulation and debug without expensive and cumbersome > On-chip breakpoints box emulators Overview > Read/write memory and registers while running Freescale Semiconductors MC9S12A512 at full speed Flash microcontroller (MCU) is the next Integrated Third-Generation Flash Memory generation of the highly successful 68HC12 > In-application reprogrammable > Flexibility to change code in the field architecture. Using Freescales industry-leading > Self-timed, fast programming > Efficient end-of-line programming 0.25 s Flash, the A512 is part of a Fast Flash page erase20 ms > Total program time for 512 KB code is less pin-compatible family that is planned to (512 bytes) than 10 seconds scale from 32 KB to 512 KB of Flash memory. Can program 16 bits in 20 s while > Reduces production programming in burst mode cost through ultra-fast programming The MC9S12A512 provides an upward migration path from Freescales 68HC08, > 5V Flash program/erase/read > No external high voltage or charge pump required 68HC11 and 68HC12 architectures for > Flash granularity512 byte Flash erase/2 byte Flash program > Virtual EEPROM implementation, Flash array applications that need larger memory, more usable for EE extension > Four independently programmable peripherals and higher performance. Flash arrays > Can erase one array while executing code from another > Flexible block protection and security 4 KB Integrated EEPROM > Flexible protection scheme for protection > Can erase 4 bytes at a time and program HCS12 CPU against accidental program or erase 2 bytes at a time for calibration, security, personality and diagnostic information > EEPROM can be programmed in 46 s 512 KB Flash 10-bit Analog-to-Digital Converter (ADC) 2 x SCI > Two, 8-channel ADCs > Fast, easy conversion from analog inputs 14 KB RAM 4 KB EEPROM like position sensors, analog meters and > 7 s, 10-bit single conversion time, scan mode photovoltaic cells to digital values for 2 I C available CPU processing ATD0 ATD1 10-bit, 8-ch. > ADC run in parallel for a 7 s conversion 10-bit, 8-ch. 3 x SPI for two 10-bits or, in other words, 3.5 s for 10-bits Enhanced Capture Timer 16-bit, 8-ch. Vreg 5V to 2.5V PWM 16-Key Wake-Up 8-bit, 8-ch./16-bit, 4-ch. IRQ Ports Internal BusData Sheets Features Benefits 9S12DP512DGV1 9S12DX512 Device Guide Clock Generation Module with Phase-Lock Loop (PLL) S12BDMV4 HCS12 Background Debug (BDM) Block Guide > Clock monitor with limp home mode in case of > Reliable, robust operation S12BKVD1 HCS12 Breakpoint (BKP) Block Guide no external clock > Provides high performance using low-cost S12CPUV2 HCS12 CPU Reference Manual > Programmable clock frequency with 1024 reference crystals S12ATD10B8CV2 HCS12 10-bit, 8-Channel Analog to options ranging from divide by 16 to multiply Digital Converter (ADC) Block Guide > Reduces generated noise by 64 form base oscillator S12BDLCV1 HCS12 Byte Data Link Controller > Reduces power consumption (BDLC) Block Guide > Slow mode divider S12CRGV4 HCS12 Clocks and Reset Generator > Easily able to implement real-time clock > Real-time interrupt (CRG) Block S12DP256PIMV3 9S12DP256 Port Integration > Watchdog Module (PIM) S12ECT16B8CV1 HCS12 16-bit, 8-Channel Enhanced Enhanced Capture Timer Capture Timer (ECT) Block Guide S12EETS4KV2 HCS12 4K EEPROM Block Guide > 8-channel, 16-bit with input capture, output > Flexible, programmable timer system compare and pulse accumulator S12FTS512K4V1 HCS12 512K Flash Block Guide 2 S12IICV2 HCS12 I C Block Guide > 16-bit modulus down counter S12INTV1 HCS12 Interrupt (INT) Block Guide S12MEBIV3 HCS12 Multiplexed External Bus 8-bit or 16-bit Pulse-Wide Modulation (PWM) Interface (MEBI) Block Guide > 8-channel, 8-bit or 4-channel, 16-bit PWM > Efficiently implement motor control, battery S12MMCV4 HCS12 Module Mapping Control (MMC) charging or digital-to-analog (DAC) functions Block Guide > PWM supports center-aligned operation S12PWM8B8CV1 HCS12 8-bit, 8-Channel Pulse Width Modulator (PWM) Block Guide Two Serial Communications Interfaces S12SCIV2 HCS12 Serial Communications Interface (SCI) Block Guide > Asynchronous communication between the S12SPIV3 HSC12 Serial Peripheral Interface (SPI) MCU and a terminal, computer or Block Guide a network of MCUs S12VREGV1 HCS12 Voltage Regulator Block Guide Three Serial Peripheral Interfaces > High-speed synchronous communication Cost-Effective Development Tools between multiple MCUs or between MCU For more information on development tools, please refer to the Freescale Development Tool Selector Guide (SG1011). and serial peripherals M68KIT912DP256 Evaluation kit for development and 495 evaluation of HCS12 application code 2 Inter IC (I C) Bus that includes the M68EVB912DP256 and USBMULTILINKBDM > Provides a simple, efficient method of data exchange between devices M68CYCLONEPRO HC08/HCS08/HC12/HCS12 499 stand-alone Flash programmer or > Minimizes the need for large numbers in-circuit emulator, debugger, Flash programmer USB, serial or Ethernet of connections between devices and interface options eliminates the need for an address decoder USBMULTILINKBDM Universal HCS08/HCS12 in-circuit 99 emulator, debugger, and Flash programmer USB PC interface Up to 91 Input/Output (I/O) Lines CWX-H12-SE CodeWarrior Special Edition for > Programmable pull-ups/pull-downs > Reduce system cost Free HCS12 MCUs includes integrated development environment (IDE), > Dual drive capability > Able to tailor application for minimum EMC or linker, debugger, unlimited assembler, high current loads Processor Expert auto-code generator, full-chip simulation and limited C compiler Application Notes and Engineering Bulletins Package Options AN2206 Security and Protection on the HCS12 Family Part Number Package Temp. Range AN2213 Using Cosmic Softwares M68HC12 Compiler for MC9S12DP256 Software Development MC9S12A512CPV 112 LQFP -40C to +85C 112-Lead LQFP AN2216 MC9S12DP256 Software Development Using Metrowerks CodeWarrior AN2250 Audio Reproduction on HCS12 Microcontrollers EB386 HCS12 D-Family Compatibility 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: MC9S12A512FS REV 1