MicroConverter, 12-Bit ADCs and DACs with Embedded 62 kBytes Flash MCU ADuC831 FEATURES FUNCTIONAL BLOCK DIAGRAM ANALOG I/O 8-Channel, 247 kSPS 12-Bit ADC 12-BIT ADuC831 BUF DAC DAC DC Performance: 1 LSB INL AC Performance: 71 dB SNR DMA Controller for High Speed ADC-to-RAM Capture 12-BIT DAC BUF DAC ADC0 2 12-Bit (Monotonic) Voltage Output DACs T/H ADC1 12-BIT ADC Dual Output PWM/ - DACs 16-BIT On-Chip Temperature Sensor Function 3 C MUX - DAC ADC5 On-Chip Voltage Reference 16-BIT ADC6 PWM0 Memory - DAC HARDWARE ADC7 CALIBRATON MUX 62 kBytes On-Chip Flash/EE Program Memory 16-BIT PWM1 4 kBytes On-Chip Flash/EE Data Memory TEMP PWM SENSOR Flash/EE, 100 Yr Retention, 100 kCycles Endurance 16-BIT 2304 Bytes On-Chip Data RAM PWM 8051 Based Core 8051-BASED MCU WITH ADDITIONAL 8051 Compatible Instruction Set (16 MHz Max) PERIPHERALS 12 Interrupt Sources, 2 Priority Levels 62 kBYTES FLASH/EE PROGRAM MEMORY 4 kBYTES FLASH/EE DATA MEMORY Dual Data Pointer 2304 BYTES USER RAM Extended 11-Bit Stack Pointer 3 16 BIT TIMERS POWER SUPPLY MON 1 REAL TIME CLOCK WATCHDOG TIMER INTERNAL On-Chip Peripherals BAND GAP OSC 2 PARALLEL UART, I C, AND SPI Time Interval Counter (TIC) VREF PORTS SERIAL I/O 2 UART, I C , and SPI Serial I/O V XTAL1 XTAL2 Watchdog Timer (WDT), Power Supply Monitor (PSM) REF Power GENERAL DESCRIPTION Specified for 3 V and 5 V Operation The ADuC831 is a fully integrated 247 kSPS data acquisition Normal, Idle, and Power-Down Modes system incorporating a high performance self-calibrating multi- Power-Down: 20 A 3 V channel 12-bit ADC, dual 12-bit DACs, and programmable APPLICATIONS 8-bit MCU on a single chip. Optical NetworkingLaser Power Control The microcontroller core is an 8052, and therefore 8051- Base Station Systems instruction-set compatible with 12 core clock periods per machine Precision Instrumentation, Smart Sensors cycle. 62 kBytes of nonvolatile Flash/EE program memory are Transient Capture Systems provided on-chip. Four kBytes of nonvolatile Flash/EE data DAS and Communications Systems memory, 256 bytes RAM and 2 kBytes of extended RAM are Pin compatible upgrade to existing ADuC812 systems also integrated on-chip. that require additional code or data memory. Runs The ADuC831 also incorporates additional analog functionality from 1 MHz16 MHz to external crystal. with two 12-bit DACs, power supply monitor, and a band gap reference. On-chip digital peripherals include two 16-bit - The ADuC832 is also available. Functionally is the same DACs, dual output 16-bit PWM, watchdog timer, time interval as the ADuC831, except the ADuC832 runs from a 32 kHz counter, three timers/counters, Timer 3 for baud rate generation external crystal with on-chip PLL. 2 and serial I/O ports (I C, SPI and UART). On-chip factory firmware supports in-circuit serial download and debug modes (via UART), as well as single-pin emulation mode MicroConverter is a registered trademark and QuickStart is a trademark via the EA pin. The ADuC831 is supported by QuickStart and of Analog Devices, Inc. QuickStart Plus development systems featuring low cost software SPI is a registered trademark of Motorola, Inc. and hardware development tools. A functional block diagram of 2 I C is a registered trademark of Philips Corporation. the ADuC831 is shown above with a more detailed block diagram shown in Figure 1. REV. A The part is specified for 3 V and 5 V operation over the extended industrial temperature range, and is available in a 52-lead plastic quad flatpack package and in a 56-lead chip scale package. Rev. A 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 20022016 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. ADuC831 TABLE OF CONTENTS FEATURES 1 Flash/EE Program Memory Security 28 Using the Flash/EE Data Memory 29 GENERAL DESCRIPTION . 1 ECONFlash/EE Memory Control SFR 29 Flash/EE Memory Timing 30 SPECIFICATIONS 3 ADuC831 CONFIGURATION REGISTER (CFG831) 31 ABSOLUTE MAXIMUM RATINGS . 7 USER INTERFACE TO OTHER ON-CHIP ORDERING GUIDE . 7 ADuC831 PERIPHERALS . 32 PIN CONFIGURATION 8 Using the DAC 33 Pulsewidth Modulator (PWM) . 35 PIN FUNCTION DESCRIPTIONS 9 Serial Peripheral Interface 38 2 TERMINOLOGY . 10 I C Compatible Interface . 40 Dual Data Pointer 42 TYPICAL PERFORMANCE CHARACTERISTICS 11 Power Supply Monitor . 43 MEMORY ORGANIZATION . 14 Watchdog Timer . 44 Timer Interval Counter 45 OVERVIEW OF MCU-RELATED SFRS 15 Accumulator SFR (ACC) . 15 8052 COMPATIBLE ON-CHIP PERIPHERALS 47 B SFR (B) 15 Parallel I/O Ports 03 47 Stack Pointer SFR (SP AND SPH) . 15 Timers/Counters . 50 Data Pointer (DPTR) . 16 UART Serial Interface . 55 Program Status Word SFR (PSW) 16 UART Serial Port Control Register . 55 Power Control SFR (PCON) 16 UART Operating Modes . 56 UART Serial Port Baud Rate Generation 56 SPECIAL FUNCTION REGISTERS 17 Timer 1 Generated Baud Rates 57 Timer 2 Generated Baud Rates 57 ADC CIRCUIT INFORMATION 18 Timer 3 Generated Baud Rates 58 General Overview . 18 Interrupt System . 59 ADC Transfer Function 18 ADuC831 HARDWARE DESIGN CONSIDERATIONS 60 Typical Operation 18 Clock Oscillator 60 ADCCON1 (ADC Control SFR 1) 19 External Memory Interface . 60 ADCCON2 (ADC Control SFR 2) 20 Power Supplies . 61 ADCCON3 (ADC Control SFR 3) 21 Power Consumption 62 Driving the A/D Converter 22 Power Saving Modes 62 Voltage Reference Connections 23 Power-On Reset 62 Configuring the ADC 24 Grounding and Board Layout Recommendations 63 ADC DMA Mode 24 Micro Operation during ADC DMA Mode . 25 OTHER HARDWARE CONSIDERATIONS 63 ADC Offset and Gain Calibration Coefficients 25 In-Circuit Serial Download Access . 63 Calibrating the ADC 25 Embedded Serial Port Debugger . 64 Single-Pin Emulation Mode . 64 NONVOLATILE FLASH MEMORY 27 Typical System Configuration . 64 Flash Memory Overview . 27 Flash/EE Memory and the ADuC831 . 27 DEVELOPMENT TOOLS 65 ADuC831 Flash/EE Memory Reliability . 27 TIMING SPECIFICATIONS 66 Using the Flash/EE Program Memory . 28 ULOAD Mode . 28 OUTLINE DIMENSIONS 76 REV. A 2