MicroConverter , Small Package 12-Bit ADC with Embedded Flash MCU ADuC814 FEATURES FUNCTIONAL BLOCK DIAGRAM ANALOG I/O ADuC814 6-channel 247 kSPS ADC AIN0 DAC0 DAC0 BUF 12-BIT ADC DAC AIN T/H CONTROL CONTROL 12-bit resolution MUX ADC LOGIC LOGIC DAC1 DAC1 AIN5 BUF ADC high speed data capture mode Programmable reference via on-chip DAC for low TEMP MONITOR level inputs, ADC performance specified to VREF = 1 V Dual voltage output DACs 8051-BASED MCU WITH ADDITIONAL POWER- INTERNAL PERIPHERALS ON BAND GAP 12-bit resolution, 15 s settling time RESET V 8 KBYTES FLASH/EE PROGRAM MEMORY REF 640 BYTES FLASH/EE DATA MEMORY Memory PROG. 256 BYTES USER RAM CLOCK 3 16-BIT ON-CHIP MONITORS 8 kbytes on-chip Flash/EE program memory DIVIDER V BUF REF TIMER/COUNTERS POWER SUPPLY 1 WAKE-UP/RTC MONITOR 640 bytes on-chip Flash/EE data memory TIMER WATCHDOG TIMER OSC Flash/EE, 100 year retention, 100 kcycle endurance C AND 10 DIGITAL UART AND SPI REF PLL I/O PINS SERIAL I/O 3 levels of Flash/EE program memory security In-circuit serial downlaod (no external hardware) XTAL1 XTAL2 256 bytes on-chip data RAM Figure 1. 8051 based core GENERAL DESCRIPTION 8051 compatible instruction set The ADuC814 is a fully integrated 247 kSPS, 12-bit data acquisi- 32 kHz external crystal, tion system incorporating a high performance multichannel on-chip programmable PLL (16.78 MHz max) ADC, an 8-bit MCU, and program/data Flash/EE memory on a Three 16-bit timer/counters single chip. 11 programmable I/O lines This low power device operates from a 32 kHz crystal with an 11 interrupt sources, 2 priority levels on-chip PLL generating a high frequency clock of 16.78 MHz. Power This clock is, in turn, routed through a programmable clock Specified for 3 V and 5 V operation divider from which the MCU core clock operating frequency is Normal: 3 mA 3 V (core CLK = 2.1 MHz) generated. Power-down: 15 A (32 kHz oscillator running) The microcontroller core is an 8052 and is compatible with an On-chip peripherals 8051 instruction. 8 kBytes of nonvolatile Flash/EE program Power-on reset circuit (no need for external POR device) memory are provided on-chip. 640 bytes of nonvolatile Flash/EE Temperature monitor (1.5C accuracy) data memory and 256 bytes RAM are also integrated on-chip. Precision voltage reference Time interval counter (wake-up/RTC timer) The ADuC814 also incorporates additional analog functionality UART serial I/O with dual 12-bit DACs, a power supply monitor, and a band gap 2 SPI/I C compatible serial I/O reference. On-chip digital peripherals include a watchdog timer, Watchdog timer (WDT), power supply monitor (PSM) time interval counter, three timer/counters, and two serial I/O Package and temperature range ports (SPI and UART). 28-lead TSSOP 4.4 mm 9.7 mm package On-chip factory firmware supports in-circuit serial download Fully specified for 40C to +125C operation and debug modes (via UART), as well as single-pin emulation mode via the DLOAD pin. The ADuC814 is supported by a APPLICATIONS QuickStart Development System. Optical networkinglaser power control The part operates from a single 3 V or 5 V supply over the Base station systemspower amplifier bias control extended temperature range 40C to +125C. When operating Precision instruments, smart sensors from 3 V supplies, the power dissipation for the part is below Battery-powered systems, precision system monitors 10 mW. The ADuC814 is housed in a 28-lead TSSOP package. Rev. A 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. One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Specifications subject to change without notice. No license is granted by implication Tel: 781.329.4700 www.analog.com or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners. Fax: 781.326.8703 2003 Analog Devices, Inc. All rights reserved. 02748-A-001ADuC814 TABLE OF CONTENTS Specifications..................................................................................... 4 ADC Offset and Gain Calibration Overview ......................... 28 Absolute Maximum Ratings............................................................ 9 ADC Offset and Gain Calibration Coefficients ..................... 28 ESD Caution.................................................................................. 9 Calibrating the ADC .................................................................. 29 Pin Configuration and Function Description ............................ 10 Initiating Calibration in Code .................................................. 29 Terminology .................................................................................... 12 Nonvolitile Flash/EE Memory ...................................................... 30 ADC Specifications .................................................................... 12 Flash/EE Memory Overview .................................................... 30 DAC Specifications..................................................................... 12 Flash/EE Memory and the ADuC814...................................... 30 Typical Performance Curves ......................................................... 13 ADuC814 Flash/EE Memory Reliability................................. 30 ADuC814 Architecture, Main Features ....................................... 16 Using Flash/EE Program Memory........................................... 31 Memory Organization ............................................................... 17 Serial Downloading (In-Circuit Programming)................ 31 Overview of MCU-Related SFRs.............................................. 18 Parallel Programming............................................................ 31 Accumulator SFR ................................................................... 18 Flash/EE Program Memory Security....................................... 31 B SFR........................................................................................ 18 Lock Mode .............................................................................. 31 Stack Pointer SFR ................................................................... 18 Secure Mode ........................................................................... 31 Data Pointer ............................................................................ 18 Serial Safe Mode ..................................................................... 31 Program Status Word SFR..................................................... 18 Using Flash/EE Data Memory.................................................. 32 Power Control SFR................................................................. 19 ECONFlash/EE Memory Control SFR ........................... 32 Special Function Registers ........................................................ 20 Flash/EE Memory Timing ........................................................ 33 ADC Circuit Information.............................................................. 21 Using the Flash/EE Memory Interface ................................ 33 General Overview....................................................................... 21 Programming a Byte.............................................................. 33 ADC Transfer Function............................................................. 21 User Interface to Other On-Chip ADuC814 Peripherals.......... 34 ADC Data Output Format .................................................... 21 DACs ............................................................................................ 34 SFR Interface to ADC Block ..................................................... 22 Using the DACs ...................................................................... 35 ADCCON1 (ADC Control SFR 1) .......................................... 22 On-Chip PLL .............................................................................. 37 ADCCON2 (ADC Control SFR 2) .......................................... 23 Time Interval Counter (TIC).................................................... 38 ADCCON3 (ADC Control SFR 3) .......................................... 24 Watchdog Timer......................................................................... 41 Driving the ADC............................................................................. 25 Power Supply Monitor............................................................... 42 Voltage Reference Connections................................................ 26 ADuC814 Configuration Register (CFG814) ........................ 43 Configuring the ADC ................................................................ 26 Serial Peripheral Interface..................................................... 43 Initiating ADC Conversions ..................................................... 27 External Clock ........................................................................ 43 ADC High Speed Data Capture Mode .................................... 27 Rev. A Page 2 of 72