Data Sheet
FEATURES
Precision Analog Microcontroller, 12-Bit
Analog I/O, ARM7TDMI MCU
ADuC7019/20/21/22/24/25/26/27/28/29
On-chip peripherals
UART, 2× I
2
C® and SPI serial I/O
Up to 40-pin GPIO port
1
4× general-purpose timers
Wake-up and watchdog timers (WDT)
Power supply monitor
3-phase, 16-bit PWM generator
1
Programmable logic array (PLA)
External memory interface, up to 512 kB
1
Power
Specified for 3 V operation
Active mode: 11 mA @ 5 MHz, 40 mA @ 41.78 MHz
Packages and temperature range
From 40-lead 6 mm × 6 mm LFCSP to 80-lead LQFP
1
Fully specified for –40°C to +125°C operation
Tools
Low cost QuickStart™ development system
Full third-party support
Analog I/O
Multichannel, 12-bit, 1 MSPS ADC
Up to 16 ADC channels
1
Fully differential and single-ended modes
0 V to V
REF
analog input range
12-bit voltage output DACs
Up to 4 DAC outputs available
1
On-chip voltage reference
On-chip temperature sensor (±3°C)
Voltage comparator
Microcontroller
ARM7TDMI core, 16-bit/32-bit RISC architecture
JTAG port supports code download and debug
Clocking options
Trimmed on-chip oscillator (±3%)
External watch crystal
External clock source up to 44 MHz
41.78 MHz PLL with programmable divider
Memory
62 kB Flash/EE memory, 8 kB SRAM
In-circuit download, JTAG-based debug
Software-triggered in-circuit reprogrammability
APPLICATIONS
Industrial control and automation systems
Smart sensors, precision instrumentation
Base station systems, optical networking
FUNCTIONAL BLOCK DIAGRAM
12-BIT
DAC
ADC0 TO ADC4,
ADC12 TO ADC14
MUX
1MSPS
12-BIT ADC
DAC0
ADuC7019
12-BIT
DAC
12-BIT
DAC
DAC1
ADC15
CMP0
CMP1
CMP
OUT
V
REF
OSC
AND PLL
PSM
RST
TEMP
SENSOR
DAC2
BAND GAP
REF
XCLKI
XCLKO
ARM7TDMI-BASED MCU WITH
ADDITIONAL PERIPHERALS
PLA
2k × 32 SRAM
31k × 16 FLASH/EEPROM
SERIAL I/O
UART, SPI, I
2
C
GPIO
3-PHASE
PWM
(SEE NOTE 1)
POR
4 GENERAL-
PURPOSE TIMERS
JTAG
NOTES
1. SEE APPLICATION NOTE AN-798.
Figure 1.
1
Depending on part model. See Ordering Guide for more information.
Document Feedback
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781.329.4700
©2005-2013 Analog Devices, Inc. All rights reserved.
Technical Support
www.analog.com
Rev. F
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
rights of third parties that may result from its use. Specifications subject to change without notice. No
license is granted by implication or otherwise under any patent or patent rights of Analog Devices.
Trademarks and registered trademarks are the property of their respective owners.
04955-100
ADuC7019/20/21/22/24/25/26/27/28/29
TABLE OF CONTENTS
Features .............................................................................................. 1
Applications ....................................................................................... 1
Functional Block Diagram .............................................................. 1
Revision History ............................................................................... 3
General Description ......................................................................... 4
Detailed Block Diagram .............................................................. 9
Specifications................................................................................... 10
Timing Specifications ................................................................ 13
Absolute Maximum Ratings .......................................................... 20
ESD Caution ................................................................................ 20
Pin Configurations and Function Descriptions ......................... 21
ADuC7019/ADuC7020/ADuC7021/ADuC7022 .................. 21
ADuC7024/ADuC7025 ............................................................. 25
ADuC7026/ADuC7027 ............................................................. 28
ADuC7028 ................................................................................... 31
ADuC7029 ................................................................................... 33
Typical Performance Characteristics ........................................... 35
Terminology .................................................................................... 38
ADC Specifications .................................................................... 38
DAC Specifications..................................................................... 38
Overview of the ARM7TDMI Core ............................................. 39
Thumb Mode (T)........................................................................ 39
Long Multiply (M) ...................................................................... 39
EmbeddedICE (I) ....................................................................... 39
Exceptions ................................................................................... 39
ARM Registers ............................................................................ 39
Interrupt Latency ........................................................................ 40
Memory Organization ................................................................... 41
Memory Access ........................................................................... 41
Flash/EE Memory ....................................................................... 41
SRAM ........................................................................................... 41
Memory Mapped Registers ....................................................... 41
ADC Circuit Overview .................................................................. 45
Transfer Function ....................................................................... 45
Typical Operation ....................................................................... 46
MMRs Interface .......................................................................... 46
Converter Operation .................................................................. 48
Driving the Analog Inputs ........................................................ 49
Data Sheet
Calibration................................................................................... 50
Temperature Sensor ................................................................... 50
Band Gap Reference ................................................................... 50
Nonvolatile Flash/EE Memory ..................................................... 51
Programming .............................................................................. 51
Security ........................................................................................ 52
Flash/EE Control Interface ....................................................... 52
Execution Time from SRAM and Flash/EE............................ 54
Reset and Remap ........................................................................ 54
Other Analog Peripherals .............................................................. 56
DAC.............................................................................................. 56
Power Supply Monitor ............................................................... 57
Comparator ................................................................................. 57
Oscillator and PLL—Power Control ........................................ 58
Digital Peripherals .......................................................................... 61
3-Phase PWM ............................................................................. 61
Description of the PWM Block ................................................ 62
General-Purpose Input/Output................................................ 67
Serial Port Mux ........................................................................... 70
UART Serial Interface ................................................................ 70
Serial Peripheral Interface ......................................................... 74
I
2
C-Compatible Interfaces......................................................... 76
Programmable Logic Array (PLA)........................................... 80
Processor Reference Peripherals................................................... 83
Interrupt System ......................................................................... 83
Timers .......................................................................................... 84
External Memory Interfacing ................................................... 89
Hardware Design Considerations ................................................ 93
Power Supplies ............................................................................ 93
Grounding and Board Layout Recommendations................. 94
Clock Oscillator .......................................................................... 94
Power-On Reset Operation ....................................................... 95
Typical System Configuration .................................................. 95
Development Tools......................................................................... 96
PC-Based Tools ........................................................................... 96
In-Circuit Serial Downloader ................................................... 96
Outline Dimensions ....................................................................... 97
Ordering Guide ........................................................................ 101
Rev. F | Page 2 of 104
Data Sheet
REVISION HISTORY
5/13—Rev. E to Rev. F
Changes to Figure 1........................................................................... 1
Added Figure 2 to Figure 10; Renumbered Sequentially ............. 4
Changes to Figure 19; Added Figure 20 .......................................21
Changes to EPAD Note in Figure 21 and Figure 22 ..................... 22
Changes to EPAD Note in Table 11.................................................... 23
Changes to EPAD Note in Figure 23 ............................................25
Changes to EPAD Note in Table 12 ..............................................26
Changes to Table 14 ........................................................................31
Changes to Table 15 ........................................................................33
Changes to Table 82 ........................................................................68
Added Table 83, Figure 73, Figure 74, Following Text, and
Table 84; Renumbered Sequentially ..............................................69
Changes to Bit 2 Description, Table 98 ........................................71
Changes to Table 101 ......................................................................72
Changes to Timer2 (Wake-Up Timer) Section ...........................87
Changes to Figure 94 ......................................................................95
Updated Outline Dimensions ........................................................97
Changes to Ordering Guide .........................................................101
7/12—Rev. D to Rev. E
Changed SCLOCK to SCLK When Refering to SPI Clock,
SPIMISO to MISO when Refering to SPI MISO, SPIMOSI to
MOSI when Refering to SPI MOSI, and SPICSL to CS when
Refering to SPI Chip Select ............................................... Universal
Changes to Table 4, Table 5, and Figure 5 ....................................11
Changes to Endnote 1 in Table 6 and Figure 6 ............................12
Changes to Table 7 and Figure 7 ...................................................13
Changes to Table 8 and Figure 8 ...................................................14
Changes to Table 9 and Figure 9 ...................................................15
Changed EPAD Note in Figure 12 and Table 11 .........................18
Changed EPAD Note in Figure 13 and Table 12 .........................21
Changes to Bit 6 in Table 18...........................................................43
Changes to Example Source Code (External Crystal Selection)
Section and Example Source Code (External Clock Selection)
Section ...............................................................................................55
Changes to Serial Peripheral Interface Section ...........................69
Changes to SPICON[10] and SPICON[9] Descriptions in
Table 123............................................................................................70
Changes to Timer Interval Down Equation and Added Timer
Interval Up Equation ......................................................................79
Added Hour:Minute:Second:1/128 Format Section ...................80
Changes to Table 189 ......................................................................84
Removed CP-40-10 Package ..........................................................92
Changes to Ordering Guide ...........................................................96
5/11—Rev. C to Rev. D
Changes to Table 4 ..........................................................................11
Changes to Table 105 ......................................................................67
ADuC7019/20/21/22/24/25/26/27/28/29
Updated Outline Dimensions........................................................ 91
Changes to Ordering Guide ........................................................... 94
12/09—Rev. B to Rev. C
Added ADuC7029 Part ..................................................... Universal
Added Table Numbers and Renumbered Tables ............... Universal
Changes to Figure Numbers ............................................. Universal
Changes to Table 1 ............................................................................ 6
Changes to Figure 3 ......................................................................... 9
Changes to Table 3 and Figure 4 ................................................... 10
Changes to Table 10 ........................................................................ 16
Changes to Figure 55 ...................................................................... 53
Changes to Serial Peripheral Interface Section ........................... 69
Changes to Table 137 ...................................................................... 73
Changes to Figure 71 and Figure 72 ............................................. 85
Changes to Figure 73 and Figure 74 ............................................. 86
Updated Outline Dimensions........................................................ 91
Changes to Ordering Guide ........................................................... 94
3/07—Rev. A to Rev. B
Added ADuC7028 Part ..................................................... Universal
Updated Format ................................................................. Universal
Changes to Figure 2 .......................................................................... 5
Changes to Table 1 ............................................................................ 6
Changes to ADuC7026/ADuC7027 Section ............................... 23
Changes to Figure 21 ...................................................................... 28
Changes to Figure 32 Caption ....................................................... 30
Changes to Table 14 ........................................................................ 35
Changes to ADC Circuit Overview Section ................................ 38
Changes to Programming Section ................................................ 44
Changes to Flash/EE Control Interface Section.......................... 45
Changes to Table 24 ........................................................................ 47
Changes to RSTCLR Register Section .......................................... 48
Changes to Figure 52 ...................................................................... 49
Changes to Figure 53 ...................................................................... 50
Changes to Comparator Section ................................................... 50
Changes to Oscillator and PLL—Power Control Section .......... 51
Changes to Digital Peripherals Section ........................................ 54
Changes to Interrupt System Section ........................................... 75
Changes to Timers Section ............................................................ 76
Changes to External Memory Interfacing Section ..................... 80
Added IOV
DD
Supply Sensitivity Section ..................................... 84
Changes to Ordering Guide ........................................................... 90
1/06—Rev. 0 to Rev. A
Changes to Table 1 ............................................................................ 6
Added the Flash/EE Memory Reliability Section ....................... 43
Changes to Table 30 ........................................................................ 52
Changes to Serial Peripheral Interface ......................................... 66
Changes to Ordering Guide ........................................................... 90
10/05—Revision 0: Initial Version
Rev. F | Page 3 of 104
ADuC7019/20/21/22/24/25/26/27/28/29
GENERAL DESCRIPTION
The ADuC7019/20/21/22/24/25/26/27/28/29 are fully integrated,
1 MSPS, 12-bit data acquisition systems incorporating high
performance multichannel ADCs, 16-bit/32-bit MCUs, and
Flash®/EE memory on a single chip.
The ADC consists of up to 12 single-ended inputs. An additional
four inputs are available but are multiplexed with the four DAC
output pins. The four DAC outputs are available only on certain
models (ADuC7020, ADuC7026, ADuC7028, and ADuC7029).
However, in many cases where the DAC outputs are not present,
these pins can still be used as additional ADC inputs, giving a
maximum of 16 ADC input channels. The ADC can operate in
single-ended or differential input mode. The ADC input voltage
is 0 V to V
REF
. A low drift band gap reference, temperature sensor,
and voltage comparator complete the ADC peripheral set.
Depending on the part model, up to four buffered voltage
output DACs are available on-chip. The DAC output range is
programmable to one of three voltage ranges.
Data Sheet
The devices operate from an on-chip oscillator and a PLL
generating an internal high frequency clock of 41.78 MHz
(UCLK). This clock is routed through a programmable clock
divider from which the MCU core clock operating frequency
is generated. The microcontroller core is an ARM7TDMI®,
16-bit/32-bit RISC machine, which offers up to 41 MIPS peak
performance. Eight kilobytes of SRAM and 62 kilobytes of
nonvolatile Flash/EE memory are provided on-chip. The
ARM7TDMI core views all memory and registers as a single
linear array.
On-chip factory firmware supports in-circuit serial download
via the UART or I
2
C serial interface port; nonintrusive emulation
is also supported via the JTAG interface. These features are
incorporated into a low cost QuickStart™ development system
supporting this MicroConverter® family.
The parts operate from 2.7 V to 3.6 V and are specified over an
industrial temperature range of −40°C to +125°C. When
operating at 41.78 MHz, the power dissipation is typically
120 mW. The ADuC7019/20/21/22/24/25/26/27/28/29 are
available in a variety of memory models and packages (see
Ordering Guide).
12-BIT
DAC
ADC0 TO ADC4,
ADC12 TO ADC15
MUX
1MSPS
12-BIT ADC
DAC0
ADuC7020
12-BIT
DAC
12-BIT
DAC
12-BIT
DAC
DAC1
TEMP
SENSOR
CMP0
CMP1
CMP
OUT
V
REF
OSC
AND PLL
PSM
RST
PLA
BAND GAP
REF
DAC2
DAC3
XCLKI
XCLKO
ARM7TDMI-BASED MCU WITH
ADDITIONAL PERIPHERALS
2k × 32 SRAM
31k × 16 FLASH/EEPROM
SERIAL I/O
UART, SPI, I
2
C
GPIO
3-PHASE
PWM
(SEE NOTE 1)
POR
4 GENERAL-
PURPOSE TIMERS
JTAG
NOTES
1. SEE APPLICATION NOTE AN-798.
Figure 2.
Rev. F | Page 4 of 104
04955-101
Data Sheet
ADuC7019/20/21/22/24/25/26/27/28/29
12-BIT
DAC
ADC0 TO ADC7,
ADC12 TO ADC13
MUX
1MSPS
12-BIT ADC
DAC0
ADuC7021
12-BIT
DAC
DAC1
TEMP
SENSOR
CMP0
CMP1
CMP
OUT
V
REF
OSC
AND PLL
PSM
RST
PLA
3-PHASE
PWM
(SEE NOTE 1)
BAND GAP
REF
XCLKI
XCLKO
ARM7TDMI-BASED MCU WITH
ADDITIONAL PERIPHERALS
2k × 32 SRAM
31k × 16 FLASH/EEPROM
SERIAL I/O
UART, SPI, I
2
C
GPIO
POR
4 GENERAL-
PURPOSE TIMERS
JTAG
NOTES
1. SEE APPLICATION NOTE AN-798.
Figure 3.
ADC0 TO ADC9
MUX
1MSPS
12-BIT ADC
ADuC7022
TEMP
SENSOR
CMP0
CMP1
CMP
OUT
V
REF
OSC
AND PLL
PSM
RST
PLA
3-PHASE
PWM
(SEE NOTE 1)
BAND GAP
REF
XCLKI
XCLKO
ARM7TDMI-BASED MCU WITH
ADDITIONAL PERIPHERALS
2k × 32 SRAM
31k × 16 FLASH/EEPROM
SERIAL I/O
UART, SPI, I
2
C
GPIO
POR
4 GENERAL-
PURPOSE TIMERS
JTAG
NOTES
1. SEE APPLICATION NOTE AN-798.
Figure 4.
Rev. F | Page 5 of 104
04955-103
04955-102