Integrated, Precision Battery Sensor for Automotive ADuC7033 FEATURES Memory 96 kB Flash/EE memory, 6 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 LIN 2.0-compatible (slave) support via UART with Fully differential, buffered input 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 LQFP 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 TCK TDI TDO NTRST TMS PRECISION ANALOG ACQUISITION ADuC7033 IIN+ 16-BIT BUF PGA - ADC 2.6V LDO MEMORY IIN PSM 96KB FLASH RESET POR 6KB RAM VBAT RESULT DIGITAL PRECISION ACCUMULATOR COMPARATOR ARM7TDMI XTAL1 OSC MCU LOW POWER OSC XTAL2 20MHz ON-CHIP PLL 16-BIT MUX VTEMP BUF - ADC WU GPIO PORT VREF 3 TIMERS TEMPERATURE PRECISION UART PORT WDT STI SENSOR REFERENCE SPI PORT W/U TIMER LIN 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 20072010 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 GPIO 0 GPIO 1 GPIO 2 GPIO 3 GPIO 4 GPIO 5 GPIO 6 GPIO 7 GPIO 8 06847-001ADuC7033 TABLE OF CONTENTS Features .............................................................................................. 1 Synchronization of Timers Across Asynchronous Clock Domains ...................................................................................... 74 Applications ....................................................................................... 1 Programming the Timers .......................................................... 75 Functional Block Diagram .............................................................. 1 Timer0Lifetime Timer ........................................................... 77 Revision History ............................................................................... 3 Timer1.......................................................................................... 80 Specif icat ions ..................................................................................... 4 Timer2 or Wake-Up Timer ....................................................... 82 Electrical Specifications ............................................................... 4 Timer3 or Watchdog Timer ...................................................... 84 Timing Specifications ................................................................ 10 Timer4 or STI Timer .................................................................. 86 Absolute Maximum Ratings .......................................................... 15 General-Purpose Input/Output .................................................... 88 ESD Caution ................................................................................ 15 High Voltage Peripheral Control Interface ................................. 99 Pin Configuration and Function Descriptions ........................... 16 Wake-Up (WU) Pin ................................................................. 106 Typical Performance Characteristics ........................................... 19 Handling Interrupts from the High Voltage Peripheral Terminology .................................................................................... 20 Control Interface ...................................................................... 107 Theory of Operation ...................................................................... 21 Low Voltage Flag (LVF) ........................................................... 107 Overview of the ARM7TDMI Core ......................................... 21 High Voltage Diagnostics ........................................................ 107 Memory Organization ............................................................... 23 UART Serial Interface .................................................................. 108 Reset ............................................................................................. 25 Baud Rate Generation .............................................................. 108 Flash/EE Memory ........................................................................... 26 UART Register Definition ....................................................... 108 Programming Flash/EE Memory In-Circuit .......................... 26 Serial Peripheral Interface ........................................................... 114 Flash/EE Memory Control Interface ....................................... 26 MISO (Master In, Slave Out Data I/O Pin) .......................... 114 Flash/EE Memory Security ....................................................... 30 MOSI (Master Out, Slave In Pin) ........................................... 114 Flash/EE Memory Reliability .................................................... 33 SCLK (Serial Clock I/O Pin) ................................................... 114 CODE Execution Time from SRAM and Flash/EE ............... 33 SS Chip Select ( ) Input Pin ....................................................... 114 ADuC7033 Kernel ...................................................................... 34 SPI Register Definitions .......................................................... 114 Memory Mapped Registers ........................................................... 36 Serial Test Interface ...................................................................... 117 Complete MMR Listing ............................................................. 37 LIN (Local Interconnect Network) Interface............................ 121 16-Bit, - Analog-to-Digital Converters .................................. 43 LIN MMR Description ............................................................ 121 Current Channel ADC (I-ADC) .............................................. 43 LIN Hardware Interface .......................................................... 126 Voltage/Temperature Channel ADC (V/T-ADC) ................. 45 Bit Serial Device (BSD) Interface ............................................... 130 ADC Ground Switch .................................................................. 46 BSD Communication Hardware Interface ............................ 130 ADC Noise Performance Tables ............................................... 47 BSD Related MMRs ................................................................. 130 ADC MMR Interface ................................................................. 48 BSD Communications Frame ................................................. 131 ADC Power Modes of Operation ............................................. 59 BSD Data Reception................................................................. 132 ADC Diagnostics ........................................................................ 64 BSD Data Transmission ........................................................... 132 Power Supply Support Circuits ..................................................... 65 Wake-Up from BSD Interface ................................................. 133 System Clocks ................................................................................. 66 Part Identification ......................................................................... 134 Low Power Clock Calibration ................................................... 69 Schematic ....................................................................................... 137 Processor Reference Peripherals ................................................... 72 Outline Dimensions ..................................................................... 138 Interrupt System ......................................................................... 72 Ordering Guide ........................................................................ 138 Timers .............................................................................................. 74 Rev. B Page 2 of 140