ADUC816BCP ,Precision Analog Microcontroller: 1MIPS 8052 MCU + 8kB Flash + Dual 16-Bit ADC + 12-Bit DACOVERVIEW OF MCU-RELATED SFRS . . . . . . . . . . . . . . . . . . 23SERIAL PERIPHERAL INTERFACE . . ..
ADUC824BCP ,Precision Analog Microcontroller: 1MIPS 8052 MCU + 8kB Flash + 16/24-Bit ADC + 12-Bit DACOVERVIEW OF MCU-RELATED SFRS 23On-Chip PLL ... 42Accumulator (ACC) .. 23Time Interval Counter (TIC) ..
ADUC824BS ,Precision Analog Microcontroller: 1MIPS 8052 MCU + 8kB Flash + 16/24-Bit ADC + 12-Bit DACSPECIFICATIONSConversion Rate 5.4 On Both Channels Hz min105 Programmable in 0.732 ms Increments Hz ..
ADUC824BSZ , MicroConverter®, Dual-Channel 16-/24-Bit ADCs with Embedded FLASH MCU
ADUC831BS ,MicroConverter/ 12-Bit ADCs and DACs with Embedded 62 kBytes Flash MCUOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Interrupt System . . . . . ..
ADUC834BS ,MicroConverter, Dual 16-/24- Bit ADCs with Embedded 62KB FLASH MCUSPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . 8Programming the Flash/EE Data Memory ..
AM27512 , 65,536x8-Bit UV Erasable PROM
AM27512-25DC , 65,536x8-Bit UV Erasable PROM
AM27512-25DI , 65,536x8-Bit UV Erasable PROM
AM27512-25DM , 65,536x8-Bit UV Erasable PROM
AM27512-30DC , 65,536x8-Bit UV Erasable PROM
AM27512-30DI , 65,536x8-Bit UV Erasable PROM
ADUC816BCP
Precision Analog Microcontroller: 1MIPS 8052 MCU + 8kB Flash + Dual 16-Bit ADC + 12-Bit DAC
REV.0
MicroConverter®, Dual-Channel
16-Bit ADCs with Embedded Flash MCU
FUNCTIONAL BLOCK DIAGRAM
FEATURES
High-Resolution Sigma-Delta ADCs
Dual 16-Bit Independent ADCs
Programmable Gain Front End
16-Bit No Missing Codes, Primary ADC
13-Bit p-p Resolution @ 20Hz, 20mV Range
16-Bit p-p Resolution @ 20Hz, 2.56V Range
MemoryKbytes On-Chip Flash/EE Program Memory
640 Bytes On-Chip Flash/EE Data Memory
Flash/EE, 100Year Retention, 100Kcycles Endurance
256 Bytes On-Chip Data RAM
8051-Based Core
8051-Compatible Instruction Set (12.58MHz Max)kHz External Crystal, On-Chip Programmable PLL
Three 16-Bit Timer/Counters
26 Programmable I/O Lines
11 Interrupt Sources, Two Priority Levels
Power
Specified for 3V and 5V Operation
Normal: 3mA @ 3V (Core CLK = 1.5MHz)
Power-Down: 20�A (32
kHz Crystal Running)
On-Chip Peripherals
On-Chip Temperature Sensor
12-Bit Voltage Output DAC
Dual Excitation Current Sources
Reference Detect Circuit
Time Interval Counter (TIC)
UART Serial I/O2C®-Compatible and SPI® Serial I/O
Watchdog Timer (WDT), Power Supply Monitor (PSM)
APPLICATIONS
Intelligent Sensors (IEEE1451.2-Compatible)
Weigh Scales
Portable Instrumentation
Pressure Transducers
4–20mA TransmittersMicroConverter is a registered trademark of Analog Devices, Inc.
SPI is a registered trademark of Motorola, Inc.
I2C is a registered trademark of Philips Semiconductors, Inc.
GENERAL DESCRIPTIONThe ADuC816 is a complete smart transducer front-end, inte-
grating two high-resolution sigma-delta ADCs, an 8-bit MCU,
and program/data Flash/EE Memory on a single chip. This low
power device accepts low-level signals directly from a transducer.
The two independent ADCs (Primary and Auxiliary) include a
temperature sensor and a PGA (allowing direct measurement of
low-level signals). The ADCs with on-chip digital filtering are
intended for the measurement of wide dynamic range, low
frequency signals, such as those in weigh scale, strain gauge,
pressure transducer, or temperature measurement applications.
The ADC output data rates are programmable and the ADC
output resolution will vary with the programmed gain and
output rate.
The device operates from a 32 kHz crystal with an on-chip PLL
generating a high-frequency clock of 12.58 MHz. This clock is,
in turn, routed through a programmable clock divider from which
the MCU core clock operating frequency is generated. The
microcontroller core is an 8052 and therefore 8051-instruction-
set-compatible. The microcontroller core machine cycle consists
of 12 core clock periods of the selected core operating frequency.
8 Kbytes of nonvolatile Flash/EE program memory are provided
on-chip. 640 bytes of nonvolatile Flash/EE data memory and
256bytes RAM are also integrated on-chip.
The ADuC816 also incorporates additional analog functionality
with a 12-bit DAC, current sources, power supply monitor,
and a bandgap reference. On-chip digital peripherals include a
watchdog timer, time interval counter, three timers/counters,
and three serial I/O ports (SPI, UART, and I2C-compatible).
On-chip factory firmware supports in-circuit serial download and
debug modes (via UART), as well as single-pin emulation mode
via the EA pin. A functional block diagram of the ADuC816 is
shown above with a more detailed block diagram shown in
Figure 12.
The part operates from a single 3 V or 5 V supply. When operating
from 3 V supplies, the power dissipation for the part is below
10 mW. The ADuC816 is housed in a 52-lead MQFP package.
ADuC816FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
TIMING SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . 18
ORDERING GUIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
PIN FUNCTION DESCRIPTIONS . . . . . . . . . . . . . . . . . . . . . . 19
ADuC816 BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . 21
MEMORY ORGANIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
OVERVIEW OF MCU-RELATED SFRS . . . . . . . . . . . . . . . . . . 23
Accumulator SFR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
B SFR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Stack Pointer SFR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Data Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Program Status Word SFR . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Power Control SFR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
SPECIAL FUNCTION REGISTERS . . . . . . . . . . . . . . . . . . . . . 24
SFR INTERFACE TO THE PRIMARY AND
AUXILIARY ADCs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
ADCSTAT (ADC Status Register) . . . . . . . . . . . . . . . . . . . . . . 25
ADCMODE (ADC Mode Register) . . . . . . . . . . . . . . . . . . . . . 26
ADC0CON (Primary ADC Control Register) . . . . . . . . . . . . . . 27
ADC1CON (Auxiliary ADC Control Register) . . . . . . . . . . . . . 28
SF (Sinc Filter Register) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
ICON (Current Sources Control Register) . . . . . . . . . . . . . . . . 29
ADC0H/ADC0M (Primary ADC Conversion Result
Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
ADC1H/ADC1L (Auxiliary ADC Conversion Result
Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
OF0H/OF0M (Primary ADC Offset Calibration
Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
OF1H/OF1L (Auxiliary ADC Offset Calibration
Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
GN0H/GN0M (Primary ADC Gain Calibration
Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
GN1H/GN1L (Auxiliary ADC Gain Calibration
Registers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
PRIMARY AND AUXILIARY ADC CIRCUIT
DESCRIPTION OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Primary ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Auxiliary ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
PRIMARY AND AUXILIARY ADC NOISE
PERFORMANCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Analog Input Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Primary and Auxiliary ADC Inputs . . . . . . . . . . . . . . . . . . . . . . 33
Analog Input Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Programmable Gain Amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Bipolar/Unipolar Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Burnout Currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Excitation Currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Reference Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Reference Detect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Sigma-Delta Modulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Digital Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
ADC Chopping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
NONVOLATILE FLASH/EE MEMORY . . . . . . . . . . . . . . . . . . 37
Flash/EE Memory Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Flash/EE Memory and the ADuC816 . . . . . . . . . . . . . . . . . . . . 37
ADuC816 Flash/EE Memory Reliability . . . . . . . . . . . . . . . . . . 37
Using the Flash/EE Program Memory . . . . . . . . . . . . . . . . . . . . 38
Flash/EE Program Memory Security . . . . . . . . . . . . . . . . . . . . . 38
Using the Flash/EE Memory Interface . . . . . . . . . . . . . . . . . . . . 40
Erase-All . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Program a Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
USER INTERFACE TO OTHER ON-CHIP ADuC816
PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
DAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
On-Chip PLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Time Interval Counter (TIC) . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Power Supply Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
SERIAL PERIPHERAL INTERFACE . . . . . . . . . . . . . . . . . . . . . 48
MISO (Master In, Slave Out Data I/O Pin), Pin 14 . . . . . . . . . 48
MOSI (Master Out, Slave In Pin), Pin 27 . . . . . . . . . . . . . . . . . 48
SCLOCK (Serial Clock I/O Pin), Pin 26 . . . . . . . . . . . . . . . . . . 48
SS (Slave Select Input Pin), Pin 13 . . . . . . . . . . . . . . . . . . . . . . 48
Using the SPI Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
SPI Interface—Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
SPI Interface—Slave Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492C-COMPATIBLE INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . 50
8051-COMPATIBLE ON-CHIP PERIPHERALS . . . . . . . . . . . . 51
Parallel I/O Ports 0–3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Timers/Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
TIMER/COUNTER 0 AND 1 OPERATING MODES . . . . . . . . 54
Mode 0 (13-Bit Timer/Counter) . . . . . . . . . . . . . . . . . . . . . . . . 54
Mode 1 (16-Bit Timer/Counter) . . . . . . . . . . . . . . . . . . . . . . . . 54
Mode 2 (8-Bit Timer/Counter with Autoreload) . . . . . . . . . . . . 54
Mode 3 (Two 8-Bit Timer/Counters) . . . . . . . . . . . . . . . . . . . . 54
Timer/Counter 2 Data Registers . . . . . . . . . . . . . . . . . . . . . . . . 55
TH2 and TL2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
RCAP2H and RCAP2L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Timer/Counter 2 Operating Modes . . . . . . . . . . . . . . . . . . . . . . 56
16-Bit Autoreload Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
16-Bit Capture Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
UART SERIAL INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
SBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Mode 0: 8-Bit Shift Register Mode . . . . . . . . . . . . . . . . . . . . . . 58
Mode 1: 8-Bit UART, Variable Baud Rate . . . . . . . . . . . . . . . . 58
Mode 2: 9-Bit UART with Fixed Baud Rate . . . . . . . . . . . . . . . 58
Mode 3: 9-Bit UART with Variable Baud Rate . . . . . . . . . . . . . 58
UART Serial Port Baud Rate Generation . . . . . . . . . . . . . . . . . 58
Timer 1 Generated Baud Rates . . . . . . . . . . . . . . . . . . . . . . . . . 59
Timer 2 Generated Baud Rates . . . . . . . . . . . . . . . . . . . . . . . . . 59
INTERRUPT SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Interrupt Priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
ADuC816 HARDWARE DESIGN CONSIDERATIONS . . . . . . 62
Clock Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
External Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Power-On Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Power Supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Power Consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Power-Saving Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Grounding and Board Layout Recommendations . . . . . . . . . . . 64
ADuC816 System Self-Identification . . . . . . . . . . . . . . . . . . . . . 65
OTHER HARDWARE CONSIDERATIONS . . . . . . . . . . . . . . . 65
In-Circuit Serial Download Access . . . . . . . . . . . . . . . . . . . . . . 65
Embedded Serial Port Debugger . . . . . . . . . . . . . . . . . . . . . . . . 65
Single-Pin Emulation Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Enhanced-Hooks Emulation Mode . . . . . . . . . . . . . . . . . . . . . . 66
Typical System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 66
QUICKSTART DEVELOPMENT SYSTEM . . . . . . . . . . . . . . . 67
Download—In-Circuit Serial Downloader . . . . . . . . . . . . . . . . . 67
DeBug—In-Circuit Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . 67
TABLE OF CONTENTS
ADuC816DAC PERFORMANCE
(AVDD = 2.7V to 3.6V or 4.75V to 5.25V, DVDD = 2.7V to 3.6V or 4.75V to 5.25V,
REFIN(+) = 2.5V; REFIN(–) = AGND; AGND = DGND = 0V; XTAL1/XTAL2 = 32.768kHz Crystal; all specifications TMIN to TMAX unless otherwise noted.)SPECIFICATIONS1
ADuC816–SPECIFICATIONS1
ADuC816EXCITATION CURRENT SOURCES
LOGIC INPUTS