Integrated, Precision Battery Sensor for Automotive Systems Data Sheet ADuC7039 FEATURES Memory 64 kB Flash/EE memory options, 4-kB SRAM High precision ADC 10,000-cycle Flash/EE endurance, 20-year Flash/EE Dual channel, simultaneous sampling, 16-bit, - ADCs retention Programmable ADC throughput from 10 Hz to 1 kHz In-circuit download via JTAG and LIN On-chip 5 ppm/C voltage reference On-chip peripherals Current channel SAEJ2602/LIN 2.1-compatible slave Fully differential, buffered input SPI Programmable gain GPIO port ADC input range: 200 mV to +300 mV 1 general-purpose timer Digital comparator with current accumulator feature Wake-up and watchdog timers Voltage channel On-chip power-on-reset Buffered, on-chip attenuator for 12 V battery input Power Temperature channel Operates directly from 12 V battery supply External and on-chip temperature sensor options Current consumption 7.5 mA (10 MHz) Microcontroller Low power monitor mode ARM7TDMI-S core, 16-/32-bit RISC architecture Package and temperature range 20.48 MHz PLL 32-pin, 6 mm 6 mm LFCSP On-chip precision oscillator Fully specified for 40C to +115C operation JTAG port supports code download and debug Qualified for automotive applications APPLICATIONS Battery sensing/management for automotive systems FUNCTIONAL BLOCK DIAGRAM RTCK TCK TDI TDO NTRST TMS PRECISION ANALOG ACQUISITION ADuC7039 IIN+ 16-BIT BUF PGA MEMORY - ADC LDO 64kB FLASH IIN RESET POR 4kB RAM VBAT RESULT DIGITAL PRECISION ACCUMULATOR COMPARATOR 20MHz OSC ARM7TDMI LOW POWER MCU OSC ON-CHIP PLL 16-BIT MUX VTEMP BUF - ADC GND SW 1 TIMER GPIO PORT TEMPERATURE PRECISION WDT SPI PORT LIN SENSOR REFERENCE W/U TIMER LIN Figure 1. Rev. D 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 20102013 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. VDD REG AVDD REG DVDD AGND DGND VSS IO VSS GPIO 5 GPIO 4/IRQ1 GPIO 3/MOSI GPIO 2/MISO GPIO 1/SCLK GPIO 0/SS 08463-001ADuC7039 Data Sheet TABLE OF CONTENTS Features .............................................................................................. 1 Power Supply Support Circuits ..................................................... 48 Applications ....................................................................................... 1 System Clocks ................................................................................. 49 Functional Block Diagram .............................................................. 1 Oscillators Calibration ............................................................... 54 Revision History ............................................................................... 3 Interrupt System ............................................................................. 59 Specifications ..................................................................................... 4 Timers .............................................................................................. 61 Electrical Specifications ............................................................... 4 Synchronization of Timers Across Asynchronous Clock Domains ...................................................................................... 61 Timing Specifications .................................................................. 8 Programming the Timers .......................................................... 62 Absolute Maximum Ratings ............................................................ 9 Timer0General-Purpose Timer ........................................... 63 ESD Caution .................................................................................. 9 Timer1Wake-Up Timer ......................................................... 65 Pin Configuration and Function Descriptions ........................... 10 Timer2Watchdog Timer ........................................................ 67 Terminology .................................................................................... 12 General-Purpose Input/Output .................................................... 69 Theory of Operation ...................................................................... 13 Serial Peripheral Interface (SPI) ................................................... 74 Overview of the ARM7TDMI-S Core ..................................... 13 Master In, Slave Out (MISO) Pin ............................................. 74 Memory Organization ............................................................... 15 Master Out, Slave In (MOSI) Pin ............................................. 74 Reset ............................................................................................. 16 Serial Clock I/O (SCLK) Pin ..................................................... 74 Flash/EE Memory ........................................................................... 17 Slave Select (SS) Pin ................................................................... 74 Flash/EE MMR Interface ........................................................... 17 SPI MMR Interface .................................................................... 74 Flash/EE Memory Signature ..................................................... 21 High Voltage Peripheral Control Interface ................................. 78 Flash/EE Memory Security ....................................................... 22 Low Voltage Flag (LVF) ............................................................. 81 Flash/EE Memory Reliability .................................................... 24 Handling HV Interface Interrupt and HV Communication 81 ADuC7039 Kernel ...................................................................... 24 LIN (Local Interconnect Network) Interface.............................. 83 Memory Mapped Registers (MMR) ............................................. 26 LIN Physical Interface ............................................................... 83 Complete MMR Listing ............................................................. 27 LIN Diagnostic ........................................................................... 84 16-Bit, Sigma-Delta Analog-to-Digital Converters ................... 30 LIN Communication ................................................................. 84 ADC Ground Switch .................................................................. 33 LIN MMRs .................................................................................. 84 ADC Noise Performance Tables ............................................... 33 Part Identification ........................................................................... 88 ADC MMR Interface ................................................................. 34 Recommended Schematic ............................................................. 90 ADC Sinc3 Digital Filter Response .......................................... 43 Outline Dimensions ....................................................................... 91 ADC Modes of Operation ......................................................... 44 Ordering Guide .......................................................................... 91 ADC Configuration ................................................................... 46 Automotive Products ................................................................. 91 I-ADC Diagnostics ..................................................................... 47 Rev. D Page 2 of 92