Integrated Precision Battery Sensor for Automotive ADuC7034 FEATURES Memory 32 kB Flash/EE memory, 4 kB SRAM High precision ADCs 10,000-cycle Flash/EE endurance, 20-year Flash/EE Dual channel, simultaneous sampling, 16-bit - ADCs retention Programmable ADC throughput from 1 Hz to 8 kHz In-circuit download via JTAG and LIN On-chip 5 ppm/C voltage reference On-chip peripherals Current channel SAEJ2602/LIN 2.0-compatible (slave) support via UART Fully differential, buffered input with hardware synchronization Programmable gain from 1 to 512 Flexible wake-up I/O pin, master/slave SPI serial I/O ADC input range: 200 mV to +300 mV 9-pin GPIO port, 3 general-purpose timers Digital comparators with current accumulator feature Wake-up and watchdog timers Voltage channel Power supply monitor and on-chip power-on reset Buffered, on-chip attenuator for 12 V battery inputs Power Temperature channel Operates directly from 12 V battery supply External and on-chip temperature sensor options Current consumption Microcontroller Normal mode 10 mA at 10 MHz ARM7TDMI core, 16-/32-bit RISC architecture Low power monitor mode 20.48 MHz PLL with programmable divider Package and temperature range PLL input source 48-lead, 7 mm 7 mm LFCSP On-chip precision oscillator Fully specified for 40C to +115C operation On-chip low power oscillator External (32.768 kHz) watch crystal APPLICATIONS JTAG port supports code download and debug Battery sensing/management for automotive systems FUNCTIONAL BLOCK DIAGRAM ADuC7034 PRECISION ANALOG ACQUISITION RESET IIN+ 16-BIT 2.6V LDO MEMORY BUF PGA - ADC PSM 32kB FLASH IIN POR 4kB RAM VBAT XTAL1 RESULT DIGITAL PRECISION ARM7TDMI XTAL2 ACCUMULATOR COMPARATOR OSC MCU LOW POWER OSC 20MHz ON-CHIP PLL 16-BIT MUX BUF VTEMP WU - ADC GPIO PORT STI 3 TIMERS UART PORT WDT SPI PORT TEMPERATURE PRECISION WU TIMER SENSOR LIN REFERENCE VREF LIN/BSD Figure 1. Rev. B 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 www.analog.com license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Fax: 781.461.3113 20082010 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. VDD REG AVDD REG DVDD AGND DGND VSS IO VSS TCK TDI GPIO 0 GPIO 1 TDO GPIO 2 NTRST GPIO 3 GPIO 4 TMS GPIO 5 GPIO 6 GPIO 7 GPIO 8 07116-001ADuC7034 TABLE OF CONTENTS Features .............................................................................................. 1 ADC Comparator and Accumulator ....................................... 56 Applications ....................................................................................... 1 ADC Sinc3 Digital Filter Response .......................................... 56 Functional Block Diagram .............................................................. 1 ADC Calibration ........................................................................ 59 Revision History ............................................................................... 3 ADC Diagnostics ........................................................................ 60 Specif icat ions ..................................................................................... 4 Power Supply Support Circuits ..................................................... 61 Electrical Specifications ............................................................... 4 ADuC7034 System Clocks ............................................................ 62 Timing Specifications ................................................................ 10 System Clock Registers .............................................................. 63 Absolute Maximum Ratings .......................................................... 15 Low Power Clock Calibration ................................................... 66 ESD Caution ................................................................................ 15 Processor Reference Peripherals ................................................... 68 Pin Configuration and Function Descriptions ........................... 16 Interrupt System ......................................................................... 68 Typical Performance Characteristics ........................................... 18 Timers .............................................................................................. 71 Terminology .................................................................................... 19 Synchronization of timers Across Asynchronous Clock Domains ...................................................................................... 71 Theory of Operation ...................................................................... 20 Programming the Timers .......................................................... 72 Overview of the ARM7TDMI Core ......................................... 20 Timer0Lifetime Timer ........................................................... 74 Memory Organization ............................................................... 22 Timer1.......................................................................................... 76 Reset ............................................................................................. 24 Timer2Wake-Up Timer ......................................................... 78 Flash/EE Memory ........................................................................... 25 Timer3Watchdog Timer ........................................................ 80 Programming Flash/EE Memory In-Circuit .......................... 25 Timer4STI Timer ................................................................... 82 Flash/EE Control Interface ........................................................ 25 General-Purpose I/O ..................................................................... 84 Flash/EE Memory Security ....................................................... 28 General-Purpose I/O Registers ................................................ 86 Flash/EE Memory Reliability .................................................... 29 High Voltage Peripheral Control Interface ................................. 95 CODE Execution Time from SRAM and Flash/EE ............... 30 High Voltage Peripheral Control Interface Registers ............ 96 ADuC7034 Kernel ...................................................................... 31 Wake-Up (WU) Pin ................................................................. 102 Memory-Mapped Registers ........................................................... 33 Handling Interrupts from the High Voltage Peripheral Complete MMR Listing ............................................................. 34 Control Interface ...................................................................... 103 16-Bit Sigma-Delta Analog-to-Digital Converters .................... 40 Low Voltage Flag (LVF) ........................................................... 103 Current Channel ADC (I-ADC) .............................................. 40 High Voltage Diagnostics ........................................................ 103 Voltage/Temperature Channel ADC (V-/T-ADC) ..................... 42 UART Serial Interface .................................................................. 104 ADC Ground Switch .................................................................. 43 Baud Rate Generation .............................................................. 104 ADC Noise Performance Tables ............................................... 43 UART Register Definition ....................................................... 105 ADC MMR Interface ................................................................. 44 Serial Peripheral Interface ........................................................... 110 ADC Power Modes of Operation ............................................. 55 MISO Pin ................................................................................... 110 Rev. B Page 2 of 136