Precision Analog Microcontroller, 12-Bit Analog I/O, ARM7TDMI MCU Data Sheet ADuC7019/20/21/22/24/25/26/27/28/29 FEATURES On-chip peripherals 2 UART, 2 I C and SPI serial I/O Analog I/O 1 Up to 40-pin GPIO port Multichannel, 12-bit, 1 MSPS ADC 1 4 general-purpose timers Up to 16 ADC channels Wake-up and watchdog timers (WDT) Fully differential and single-ended modes Power supply monitor 0 V to V analog input range REF 1 3-phase, 16-bit PWM generator 12-bit voltage output DACs 1 Programmable logic array (PLA) Up to 4 DAC outputs available 1 External memory interface, up to 512 kB On-chip voltage reference Power On-chip temperature sensor (3C) Specified for 3 V operation Voltage comparator Active mode: 11 mA 5 MHz, 40 mA 41.78 MHz Microcontroller Packages and temperature range ARM7TDMI core, 16-bit/32-bit RISC architecture 1 From 40-lead 6 mm 6 mm LFCSP to 80-lead LQFP JTAG port supports code download and debug Fully specified for 40C to +125C operation Clocking options Tools Trimmed on-chip oscillator (3%) Low cost QuickStart development system External watch crystal Full third-party support External clock source up to 44 MHz 41.78 MHz PLL with programmable divider APPLICATIONS Memory Industrial control and automation systems 62 kB Flash/EE memory, 8 kB SRAM Smart sensors, precision instrumentation In-circuit download, JTAG-based debug Base station systems, optical networking Software-triggered in-circuit reprogrammability FUNCTIONAL BLOCK DIAGRAM 12-BIT DAC0 DAC ADC0 TO ADC4, 1MSPS MUX ADC12 TO ADC14 12-BIT ADC 12-BIT ADuC7019 DAC1 DAC ADC15 TEMP SENSOR 12-BIT DAC2 DAC CMP0 CMP1 BAND GAP REF CMP OUT V REF 3-PHASE OSC PWM XCLKI ARM7TDMI-BASED MCU WITH AND PLL ADDITIONAL PERIPHERALS XCLKO (SEE NOTE 1) 2k 32 SRAM PLA GPIO PSM 31k 16 FLASH/EEPROM 4 GENERAL- SERIAL I/O RST POR JTAG 2 PURPOSE TIMERS UART, SPI, I C NOTES 1. SEE APPLICATION NOTE AN-798. Figure 1. 1 Depending on part model. See Ordering Guide for more information. Rev. G Document Feedback Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. rights of third parties that may result from its use. Specifications subject to change without notice. No Tel: 781.329.4700 20052015 Analog Devices, Inc. All rights reserved. license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Technical Support www.analog.com Trademarks and registered trademarks are the property of their respective owners. 04955-100ADuC7019/20/21/22/24/25/26/27/28/29 Data Sheet TABLE OF CONTENTS Features .............................................................................................. 1 C a l ibr at ion ................................................................................... 50 Applications ....................................................................................... 1 Temperature Sensor ................................................................... 50 Functional Block Diagram .............................................................. 1 Band Gap Reference ................................................................... 50 Revision History ............................................................................... 3 Nonvolatile Flash/EE Memory ..................................................... 51 General Description ......................................................................... 4 Programming .............................................................................. 51 Detailed Block Diagram .............................................................. 9 Security ........................................................................................ 52 Specif icat ions ................................................................................... 10 Flash/EE Control Interface ....................................................... 52 Timing Specifications ................................................................ 13 Execution Time from SRAM and Flash/EE ............................ 54 Absolute Maximum Ratings .......................................................... 20 Reset and Remap ........................................................................ 54 ESD Caution ................................................................................ 20 Other Analog Peripherals .............................................................. 56 Pin Configurations and Function Descriptions ......................... 21 DAC .............................................................................................. 56 ADuC7019/ADuC7020/ADuC7021/ADuC7022 .................. 21 Power Supply Monitor ............................................................... 57 ADuC7024/ADuC7025 ............................................................. 25 Comparator ................................................................................. 57 ADuC7026/ADuC7027 ............................................................. 28 Oscillator and PLLPower Control ........................................ 58 ADuC7028 ................................................................................... 31 Digital Peripherals .......................................................................... 61 ADuC7029 ................................................................................... 33 3-Phase PWM ............................................................................. 61 Typical Performance Characteristics ........................................... 35 Description of the PWM Block ................................................ 62 Terminology .................................................................................... 38 General-Purpose Input/Output................................................ 67 ADC Specifications .................................................................... 38 Serial Port Mux ........................................................................... 70 DAC Specifications..................................................................... 38 UART Serial Interface ................................................................ 70 Overview of the ARM7TDMI Core ............................................. 39 Serial Peripheral Interface ......................................................... 74 2 Thumb Mode (T) ........................................................................ 39 I C-Compatible Interfaces ......................................................... 76 Long Multiply (M) ...................................................................... 39 Programmable Logic Array (PLA)........................................... 80 EmbeddedICE (I) ....................................................................... 39 Processor Reference Peripherals ................................................... 83 Exceptions ................................................................................... 39 Interrupt System ......................................................................... 83 ARM Registers ............................................................................ 39 Timers .......................................................................................... 84 Interrupt Latency ........................................................................ 40 External Memory Interfacing ................................................... 89 Memory Organization ................................................................... 41 Hardware Design Considerations ................................................ 93 Memory Access ........................................................................... 41 Power Supplies ............................................................................ 93 Flash/EE Memory ....................................................................... 41 Grounding and Board Layout Recommendations ................. 94 SRAM ........................................................................................... 41 Clock Oscillator .......................................................................... 94 Memory Mapped Registers ....................................................... 41 Power-On Reset Operation ....................................................... 95 ADC Circuit Overview .................................................................. 45 Typical System Configuration .................................................. 95 Transfer Function ....................................................................... 45 Development Tools......................................................................... 96 Typical Operation ....................................................................... 46 PC-Based Tools ........................................................................... 96 MMRs Interface .......................................................................... 46 In-Circuit Serial Downloader ................................................... 96 Converter Operation .................................................................. 48 Outline Dimensions ....................................................................... 97 Driving the Analog Inputs ........................................................ 49 Ordering Guide ........................................................................ 100 Rev. G Page 2 of 101