2 Independent ADCs (16-Bit and 24-Bit Resolution)
24-Bit No Missing Codes, Primary ADC
21-Bit rms (18.5-Bit p-p) Effective Resolution @ 20 Hz
Offset Drift 10 nV/C, Gain Drift 0.5 ppm/C
Memory
62 Kbytes On-Chip Flash/EE Program Memory
4 Kbytes On-Chip Flash/EE Data Memory
Flash/EE, 100 Year Retention, 100 Kcycles Endurance
3 Levels of Flash/EE Program Memory Security
In-Circuit Serial Download (No External Hardware)
High Speed User Download (5 Seconds)
2304 Bytes On-Chip Data RAM
Internal Power on Reset Circuit
12-Bit Voltage Output DAC
Dual 16-Bit - DACs/PWMs
On-Chip Temperature Sensor
Dual Excitation Current Sources
Time Interval Counter (Wake-Up/RTC Timer)
UART, SPI
®
, and I2C® Serial I/O
High Speed Baud Rate Generator (Including 115,200)
Watchdog Timer (WDT)
Power Supply Monitor
(PSM)
Power
Normal: 2.3 mA Max @ 3.6 V (Core CLK = 1.57 MHz)
Power-Down: 20 A Max with Wake-Up Timer Running
Specified for 3 V and 5 V Operation
Package and Temperature Range
52-Lead MQFP (14 mm
56-Lead LFCSP (8 mm
14 mm), –40C to +125C
8 mm), –40C to +85C
APPLICATIONS
Intelligent Sensors
Weigh Scales
Portable Instrumentation, Battery-Powered Systems
4–20 mA Transmitters
Data Logging
Precision System Monitoring
REV. A
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 rights of third parties that
may result from its use. No license is granted by implication or otherwise
under any patent or patent rights of Analog Devices. Trademarks and
registered trademarks are the property of their respective companies.
ADuC834
FUNCTIONAL BLOCK DIAGRAM
AV
DD
12-BIT
DAC
DUAL
16-BIT
-
DAC
DUAL
16-BIT
PWM
PERIPHERALS
POWER SUPPLY MON
WATCHDOG TIMER
UART, SPI, AND I2C
CURRENT
SOURCE
MUX
SERIAL I/O
BUF
IEXC1
IEXC2
DAC
PWM0
PWM1
AIN1
AIN2
AIN3
AIN4
AIN5
REFIN–
REFIN+
RESET
DV
DGND
AV
DD
MUX
MUX
EXTERNAL
V
REF
DETECT
POR
DD
OSC
XTAL2XTAL1
BUF
AGND
TEMP
SENSOR
INTERNAL
BAND GAP
V
REF
PLL AND PROG
CLOCK DIV
WAKE-UP/
RTC TIMER
ADuC834
PRIMARY
PGA
24-BIT
-
ADC
AUXILIARY
16-BIT
-
ADC
8051-BASED MCU WITH ADDITIONAL
62 KBYTES FLASH/EE PROGRAM MEMORY
4 KBYTES FLASH/EE DATA MEMORY
2304 BYTES USER RAM
3 16 BIT TIMERS
BAUD RATE TIMER
4 PARALLEL
PORTS
GENERAL DESCRIPTION
The ADuC834 is a complete smart transducer front end,
integrating two high resolution - ADCs, an 8-bit MCU, and
program/data Flash/EE memory on a single chip.
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 and
programmable output data rates are intended for the measurement
of wide dynamic range, low frequency signals, such as those in
weigh scale, strain-gage, pressure transducer, or temperature
measurement applications.
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
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
with 12 core clock periods per machine cycle.
62 Kbytes of nonvolatile Flash/EE program memory, 4 Kbytes of
nonvolatile Flash/EE data memory, and 2304 bytes of data RAM
are provided on-chip. The program memory can be configured
as data memory to give up to 60 Kbytes of NV data memory in
data logging applications.
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. The ADuC834 is supported by a QuickStart™
development system featuring low cost software and hardware
development tools.
± 400 0 1 (Unipolar Mode 0 mV to 40 mV)mV
± 800 1 0 (Unipolar Mode 0 mV to 80 mV)mV
± 1600 1 1 (Unipolar Mode 0 mV to 160 mV)mV
± 3201 0 0 (Unipolar Mode 0 mV to 320 mV)mV
± 6401 0 1 (Unipolar Mode 0 mV to 640 mV)mV
± 1.281 1 0 (Unipolar Mode 0 V to 1.28 V)V
Analog Input Current
2
Analog Input Current Drift± 5T
Absolute AIN Voltage Limits
Auxiliary ADC
Input Voltage Range
9, 10
2
± 2.561 1 1 (Unipolar Mode 0 V to 2.56 V)V
± 1T
± 5T
± 15T
= 85°CnA max
MAX
= 125°CnA max
MAX
= 85°CpA/°C typ
MAX
= 125°CpA/°C typ
MAX
AGND + 100 mVV min
– 100 mVV max
AV
DD
0 to V
REF
Unipolar Mode, for Bipolar ModeV
See Note 11
Average Analog Input Current125Input Current Will Vary with InputnA/V typ
Average Analog Input Current Drift
Absolute AIN Voltage Limits
External Reference Inputs
REFIN(+) to REFIN(–) Range
2, 11
2
± 2Voltage on the Unbuffered Auxiliary ADC pA/V/°C typ
AGND – 30 mVV min
+ 30 mVV max
AV
DD
2
1V min
AV
DD
V max
Average Reference Input Current1Both ADCs EnabledA/V typ
Average Reference Input Current Drift± 0.1nA/V/°C typ
‘NO Ext. REF’ Trigger Voltage0.3NOXREF Bit Active if V
0.65NOXREF Bit Inactive if V
< 0.3 VV min
REF
> 0.65 VV max
REF
ADC SYSTEM CALIBRATION
Full-Scale Calibration Limit+1.05 FSV max
Zero-Scale Calibration Limit–1.05 FSV min
Input Span0.8 FSV min
2.1 FSV max
ANALOG (DAC) OUTPUT
Voltage Range0 to V
0 to AV
REF
DD
DACRN = 0 in DACCON SFRV typ
DACRN = 1 in DACCON SFRV typ
Resistive Load10From DAC Output to AGNDkΩ typ
Capacitive Load100From DAC Output to AGNDpF typ
Output Impedance0.5Ω typ
I
SINK
50A typ
TEMPERATURE SENSOR
Accuracy± 2°C typ
Thermal Impedance (
)90 MQFP Package°C/W typ
JA
52CSP Package (Base Floating)
12
°C/W typ
REV. A–4–
ADuC834
ParameterADuC834Test Conditions/CommentsUnit
TRANSDUCER BURNOUT CURRENT SOURCES
AIN+ Current–100AIN+ Is the Selected Positive Input tonA typ
the Primary ADC
AIN– Current+100AIN– Is the Selected Negative Input tonA typ
the Auxiliary ADC
Initial Tolerance @ 25°C± 10% typ
Drift0.03%/°C typ
EXCITATION CURRENT SOURCES
Output Current–200Available from Each Current SourceA typ
Initial Tolerance @ 25°C± 10% typ
Drift200ppm/°C typ
Initial Current Matching @ 25°C± 1
Drift Matching20ppm/°C typ
Line Regulation (AV
Load Regulation0.1A/V typ
Output Compliance
Trip Point Selection Range2.63Four Trip Points Selectable in This Range V min
DD
4.63Programmed via TPA1–0 in PSMCONV max
AV
Power Supply Trip Point Accuracy± 3.0T
DD
± 4.0T
DV
Trip Point Selection Range2.63Four Trip Points Selectable in This Range V min
DD
= 85°C% max
MAX
= 125°C% max
MAX
4.63Programmed via TPD1–0 in PSMCONV max
Power Supply Trip Point Accuracy± 3.0T
DV
DD
± 4.0T
= 85C% max
MAX
= 125C% max
MAX
WATCHDOG TIMER (WDT)
Timeout Period0Nine Timeout Periods in This Rangems min
2000Programmed via PRE3–0 in WDCONms max
MCU CORE CLOCK RATEClock Rate Generated via On-Chip PLL
MCU Clock Rate
2
98.3Programmable via CD2–0 Bits inkHz min
PLLCON SFR
12.58MHz max
START-UP TIME
At Power-On300ms typ
After External RESET in Normal Mode3ms typ
After WDT Reset in Normal Mode3Controlled via WDCON SFRms typ
From Idle Mode10s typ
From Power-Down Mode
Oscillator RunningOSC_PD Bit = 0 in PLLCON SFR
Wake-Up with INT0 Interrupt20s typ
Wake-Up with SPI Interrupt20s typ
Wake-Up with TIC Interrupt20s typ
Wake-Up with External RESET3ms typ
Oscillator Powered DownOSC_PD Bit = 1 in PLLCON SFR
Wake-Up with INT0 Interrupt20s typ
Wake-Up with SPI Interrupt20s typ
Wake-Up with External RESET5ms typ
FLASH/EE MEMORY RELIABILITY CHARACTERISTICS
Endurance
Data Retention
16
17
100,000Cycles min
100Years min
15
REV. A–6–
ParameterADuC834Test Conditions/CommentsUnit
POWER REQUIREMENTSDV
and AVDD Can Be Set Independently
DD
Power Supply Voltages
, 3 V Nominal Operation 2.7V min
AV
DD
3.6V max
, 5 V Nominal Operation 4.75V min
AV
DD
5.25V max
, 3 V Nominal Operation 2.7V min
DV
DD
3.6V max
, 5 V Nominal Operation 4.75V min
DV
DD
5.25V max
5 V POWER CONSUMPTIONDV
Power Supply Currents Normal Mode
18, 19
= 4.75 V to 5.25 V, AVDD = 5.25 V
DD
DVDD Current4Core CLK = 1.57 MHzmA max
Current13Core CLK = 12.58 MHzmA typ
DV
DD
16Core CLK = 12.58 MHzmA max
AV
Current180Core CLK = 1.57 MHz or 12.58 MHzA max
DD
Typical Additional Power Supply CurrentsCore CLK = 1.57 MHz
and DIDD)
(AI
DD
PSM Peripheral50A typ
Primary ADC1mA typ
Auxiliary ADC500A typ
DAC150A typ
Dual Current Sources400A typ
3 V POWER CONSUMPTIONDV
Power Supply Currents Normal Mode
18, 19
= 2.7 V to 3.6 V
DD
DVDD Current2.3Core CLK = 1.57 MHzmA max
Current8Core CLK = 12.58 MHzmA typ
DV
DD
10Core CLK = 12.58 MHzmA max
Current180AVDD = 5.25 V, Core CLK = 1.57 MHz
AV
DD
Power Supply Currents Power-Down Mode
Current20T
DV
DD
Current10Osc. OffA typ
DV
DD
Current1AVDD = 5.25 V; T
AV
DD
18, 19
40T
or 12.58 MHzA max
Core CLK = 1.57 MHz or 12.58 MHz
= 85°C; Osc. On, TIC OnA max
MAX
= 125°C; Osc. On, TIC OnA max
MAX
= 85°C; Osc.
MAX
On or Osc. OffA max
3AV
= 5.25 V; T
DD
= 125°C; Osc.
MAX
On or Osc. OffA max
ADuC834
REV. A
–7–
ADuC834
NOTES
1
Temperature Range for ADuC834BS (MQFP package) is –40°C to +125°C.
Temperature Range for ADuC834BCP (CSP package) is –40°C to +85°C.
2
These numbers are not production tested but are guaranteed by design and/or characterization data on production release.
3
System Zero-Scale Calibration can remove this error.
4
The primary ADC is factory calibrated at 25°C with AVDD = DVDD = 5 V yielding this full-scale error of 10 V. If user power supply or temperature conditions are
significantly different from these, an Internal Full-Scale Calibration will restore this error to 10 V. A system zero-scale and full-scale calibration will remove this
error altogether.
5
Gain Error Drift is a span drift. To calculate Full-Scale Error Drift, add the Offset Error Drift to the Gain Error Drift times the full-scale input.
6
The auxiliary ADC is factory calibrated at 25°C with AVDD = DVDD = 5 V yielding this full-scale error of –2.5 LSB. A system zero-scale and full-scale calibration
will remove this error altogether.
7
DAC linearity and ac specifications are calculated using: reduced code range of 48 to 4095, 0 to V
8
Gain Error is a measure of the span error of the DAC.
9
In general terms, the bipolar input voltage range to the primary ADC is given by RangeADC = ± (V
V
= REFIN(+) to REFIN(–) voltage and V
REF
and RN2, RN1, RN0 = 1, 1, 0 the Range
10
1.25 V is used as the reference voltage to the ADC when internal V
11
In bipolar mode, the Auxiliary ADC can only be driven to a minimum of AGND – 30 mV as indicated by the Auxiliary ADC absolute AIN voltage limits. The
bipolar range is still –V
12
The ADuC834BCP (CSP Package) has been qualified and tested with the base of the CSP Package floating.
13
Pins configured in SPI Mode, pins configured as digital inputs during this test.
14
Pins configured in I2C Mode only.
15
Flash/EE Memory Reliability Characteristics apply to both the Flash/EE program memory and Flash/EE data memory.
16
Endurance is qualified to 100 Kcycles as per JEDEC Std. 22 method A117 and measured at –40 °C, +25°C, +85°C, and +125°C. Typical endurance at 25°C
REF
to +V
; however, the negative voltage is limited to –30 mV.
REF
= 1.25 V when internal ADC V
REF
= ± 1.28 V. In unipolar mode, the effective range is 0 V to 1.28 V in our example.
ADC
is selected via XREF0 and XREF1 bits in ADC0CON and ADC1CON, respectively.
REF
is selected. RN = decimal equivalent of RN2, RN1, RN0, e.g., V
REF
is 700 Kcycles.
17
Retention lifetime equivalent at junction temperature (TJ) = 55°C as per JEDEC Std. 22, Method A117. Retention lifetime based on an activation energy of 0.6eV
will derate with junction temperature as shown in Figure 16 in the Flash/EE Memory section of this data sheet.
18
Power Supply current consumption is measured in Normal, Idle, and Power-Down modes under the following conditions:
Normal mode: Reset = 0.4 V, Digital I/O pins = open circuit, Core Clk changed via CD bits in PLLCON, Core Executing internal software loop.
Idle mode: Reset = 0.4 V, Digital I/O pins = open circuit, Core Clk changed via CD bits in PLLCON, PCON.0 = 1, Core Execution suspended in idle mode.
Power-Down mode: Reset = 0.4 V, All P0 pins and P1.2–P1.7 Pins = 0.4 V, All other digital I/O pins are open circuit, Core Clk changed via CD bits in
PLLCON, PCON.1 = 1, Core Execution suspended in power-down mode, OSC turned ON or OFF via OSC_PD bit (PLLCON.7) in PLLCON SFR.
19
DVDD power supply current will increase typically by 3 mA (3 V operation) and 10 mA (5 V operation) during a Flash/EE memory program or erase cycle.
Specifications subject to change without notice.
; reduced code range of 100 to 3950, 0 to VDD.
REF
2RN)/125, where:
REF
= 2.5 V
REF
REV. A–8–
ADuC834
ABSOLUTE MAXIMUM RATINGS
(TA = 25°C, unless otherwise noted.)
1
AVDD to AGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
to DGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
AV
DD
to AGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DV
DD
DV
to DGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DD
AGND to DGND
to DVDD . . . . . . . . . . . . . . . . . . . . . . . . . . –2 V to +5 V
AV
DD
Analog Input Voltage to AGND
2
. . . . . . . . . . . . . . . . . . . . –0.3 V to +0.3 V
3
. . . . –0.3 V to AVDD + 0.3 V
Reference Input Voltage to AGND . . –0.3 V to AVDD + 0.3 V
Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the
device at these or any other conditions above those listed in the operational sections
of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
2
AGND and DGND are shorted internally on the ADuC834.
3
Applies to P1.2 to P1.7 pins operating in analog or digital input modes.
PIN CONFIGURATION
52-Lead MQFP
52
1
13
PIN 1
IDENTIFIER
14
ADuC834
TOP VIEW
(Not To Scale)
56-Lead LFCSP
56
PIN 1
1
IDENTIFIER
ADuC834
TOP VIEW
(Not To Scale)
14
15
40
39
27
26
43
42
29
28
ORDERING GUIDE
TemperaturePackagePackage
ModelRangeDescriptionOption
ADuC834BS–40°C to +125°C52-Lead Metric Quad Flat PackageS-52
ADuC834BCP–40°C to +85°C56-Lead Frame Chip Scale PackageCP-56
EVAL-ADuC834QSQuickStart Development System
CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily
accumulate on the human body and test equipment and can discharge without detection. Although the
ADuC834 features proprietary ESD protection circuitry, permanent damage may occur on devices
subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are recommended
to avoid performance degradation or loss of functionality.
REV. A
–9–
ADuC834
P0.0 (AD0)
444546
43
P0.2 (AD2)
P0.1 (AD1)
P0.3 (AD3)
P0.4 (AD4)
49
50
P0.5 (AD5)
P0.6 (AD6)
P0.7 (AD7)
52
51
P1.0 (T2)
2
1
P1.1 (T2EX)
P1.4 (AIN1)
P1.3 (AIN5/IEXC 2)
P1.2 (DAC/IEXC 1)
3
P1.5 (AIN2)
9
4
10
P1.6 (AIN3)
P1.7 (AIN4/DAC)
12
11
28
ADuC834
AIN1
AIN2
AIN3
AIN4
AIN5
REFIN
REFIN
IEXC 1
IEXC 2
*PIN NUMBERS REFER TO THE 52-LEAD MQFP PACKAGE
SHADED AREAS REPRESENT THE NEW FEATURES OF THE ADuC834 OVER THE ADuC824
SENSOR
200A
5
AV
AIN
MUX
AIN
MUX
TEMP
CURRENT
SOURCE
MUX
6
DD
AGND
BAND GAP
REFERENCE
DETECT
200A
48
20
34
DD
DV
BUF
PGA
AUXILIARY ADC
16-BIT
- ADC
V
REF
POR
21
35
47
DGND
PRIMARY ADC
24-BIT
- ADC
ADC CONTROL
AND
CALIBRATION
62 KBYTES PROGRAM/
FLASH/EE
4 KBYTES DATA
FLASH/EE
2 DATA POINTERS
11-BIT STACK POINTER
DOWNLOADER
DEBUGGER
UART
SERIAL PORT
16
RXD
17
TXD
15
RESET
CONTROL
CALIBRATION
UART
TIMER
Figure 1. Detailed Block Diagram
P2.0 (A8/ A16 )
P2.1 (A9/A17)
29
30 31
ADC
AND
41
P2.3 (A11/A19)
P2.2 (A10/A18)
8052
MCU
CORE
EMULATOR
SINGLE-PIN
42
40
EA
PSEN
P2.4 (A12/A20)
36
37
CONTROL
CONTROL
ALE
P2.6 (A14/A22)
P2.7 (A15/A23)
P2.5 (A13/A21)
38
39
DAC
PWM
2304 BYTES
USER RAM
WATCHDOG
TIMER
POWER SUPPLY
MONITOR
SPI/I2C SERIAL
INTERFACE
26
27
SCLOCK
MOSI/SDATA
P3.0 (RXD)
P3.1 (TXD)18P3.2 (INT0)19P3.3 (INT1)
17
16
12-BIT
VOLTAGE
OUTPUT DAC
DUAL
16-BIT
- DAC
DUAL
16-BIT
PWM
PLL WITH PROG.
CLOCK DIVIDER
WAKE-UP/
RTC TIMER
13
14
SS
MISO
P3.4 (T0/PWMCLK)
P3.6 (WR)
P3.5 (T1)
22
16-BIT
COUNTER
TIMERS
25
24
23
BUF
MUX
OSC
32
33
XTAL1
P3.7 (RD)
3
1
2
22
23
1
2
18
19
XTAL2
DAC
PWM0
PWM1
T0
T1
T2
T2EX
INT0
INT1
PIN FUNCTION DESCRIPTIONS
Pin No.Pin No.
52-Lead 56-Lead
MQFPCSPMnemonic
Type*
Description
1, 256, 1P1.0/P1.1I/OP1.0 and P1.1 can function as a digital inputs or digital outputs and have a
pull-up configuration as described below for Port 3. P1.0 and P1.1 have an
increased current drive sink capability of 10 mA.
P1.0/T2/PWM0I/OP1.0 and P1.1 also have various secondary functions as described below.
P1.0 can also be used to provide a clock input to Timer 2. When enabled, counter
2 is incremented in response to a negative transition on the T2 input pin.
If the PWM is enabled, the PWM0 output will appear at this pin.
P1.1/T2EX/PWM1 I/OP1.1 can also be used to provide a control input to Timer 2. When enabled, a
negative transition on the T2EX input pin will cause a Timer 2 capture or reload
event. If the PWM is enabled, the PWM1 output will appear at this pin.
REV. A–10–
ADuC834
PIN FUNCTION DESCRIPTIONS (continued)
Pin No.Pin No.
52-Lead 56-Lead
MQFPCSPMnemonic
3–4,2–3,P1.2–P1.7IPort 1.2 to Port 1.7 have no digital output driver; they can function as a digital
9–1211–14input for which ‘0’ must be written to the port bit. As a digital input, these pins
P1.2/DAC/IEXC1 I/OThe voltage output from the DAC or one or both current sources (200 A or
P1.3/AIN5/IEXC2 I/OAuxiliary ADC Input or one or both current sources can be configured at this pin.
P1.4/AIN1IPrimary ADC, Positive Analog Input
P1.5/AIN2IPrimary ADC, Negative Analog Input
P1.6/AIN3IAuxiliary ADC Input or Muxed Primary ADC, Positive Analog Input
P1.7/AIN4/DACI/OAuxiliary ADC Input or Muxed Primary ADC, Negative Analog Input. The voltage
54, 5AV
DD
66, 7, 8AGNDSAnalog Ground. Ground reference pin for the analog circuitry.
79REFIN(–)IReference Input, Negative Terminal
810REFIN(+)IReference Input, Positive Terminal
1315SSISlave Select Input for the SPI Interface. A weak pull-up is present on this pin.
1416MISOI/OMaster Input/Slave Output for the SPI Interface. There is a weak pull-up on this
1517RESETIReset Input. A high level on this pin for 16 core clock cycles while the oscillator is
16–19,18–21,P3.0–P3.7I/OBidirectional port pins with internal pull-up resistors. Port 3 pins that have 1s written
22–2524–27to them are pulled high by the internal pull-up resistors, and in that state can be used
P3.0/RXDI/OReceiver Data for UART Serial Port
P3.1/TXDI/OTransmitter Data for UART Serial Port
P3.2/INT0I/OExternal Interrupt 0. This pin can also be used as a gate control input to Timer 0.
P3.3/INT1I/OExternal Interrupt 1. This pin can also be used as a gate control input to Timer 1.
P3.4/T0/I/OTimer/Counter 0 External Input. If the PWM is enabled, an external clock may be
PWMCLKinput at this pin.
P3.5/T1I/OTimer/Counter 1 External Input
P3.6/WRI/OExternal Data Memory Write Strobe. Latches the data byte from Port 0 into an
P3.7/RDI/OExternal Data Memory Read Strobe. Enables the data from an external data
20, 34, 48 22, 36, 51
DV
DD
21, 35,23, 37,DGNDSDigital Ground. Ground reference point for the digital circuitry.
4738, 50
26SCLOCKI/OSerial Interface Clock for Either the I
27MOSI/SDATAI/OSerial Data I/O for the I
Type*
Description
must be driven high or low externally.
These pins also have the following analog functionality:
2 200 A) can be configured to appear at this pin.
output from the DAC can also be configured to appear at this pin.
SAnalog Supply Voltage, 3 V or 5 V
input pin.
running resets the device. There is an internal weak pull-down and a Schmitt
trigger input stage on this pin.
as inputs. As inputs, Port 3 pins being pulled externally low will source current
because of the internal pull-up resistors. When driving a 0-to-1 output transition,
a strong pull-up is active for two core clock periods of the instruction cycle.
Port 3 pins also have various secondary functions including:
external data memory.
memory to Port 0.
SDigital Supply, 3 V or 5 V.
Schmitt-triggered input and a weak internal pull-up is present on this pin unless
it is outputting logic low. This pin can also be directly controlled in software as a
digital output pin.
2
C Interface or Master Output/Slave Input for the SPI
Interface. A weak internal pull-up is present on this pin unless it is outputting logic
low. This pin can also be directly controlled in software as a digital output pin.
28–3130–33P2.0–P2.7I/OPort 2 is a bidirectional port with internal pull-up resistors. Port 2 pins that have 1s
36–3939–42(A8–A15)written to them are pulled high by the internal pull-up resistors, and in that state can
(A16–A23)be used as inputs. As inputs, Port 2 pins being pulled externally low will source current
because of the internal pull-up resistors.
Port 2 emits the high order address bytes during fetches from external program memory
and middle and high order address bytes during accesses to the 24-bit external data
memory space.
3234XTAL1IInput to the Crystal Oscillator Inverter
3335XTAL2OOutput from the Crystal Oscillator Inverter. (See “Hardware Design Considerations”
for description.)
4043EAI/OExternal Access Enable, Logic Input. When held high, this input enables the device
to fetch code from internal program memory locations 0000h to F7FFh. When held
low, this input enables the device to fetch all instructions from external program
memory. To determine the mode of code execution, i.e., internal or external, the
EA pin is sampled at the end of an external RESET assertion or as part of a device
power cycle. EA may also be used as an external emulation I/O pin, and therefore
the voltage level at this pin must not be changed during normal mode operation
as it may cause an emulation interrupt that will halt code execution.
4144PSENOProgram Store Enable, Logic Output. This output is a control signal that enables
the external program memory to the bus during external fetch operations. It is
active every six oscillator periods except during external data memory accesses.
This pin remains high during internal program execution.
PSEN can also be used to enable serial download mode when pulled low through a
resistor at the end of an external RESET assertion or as part of a device power cycle.
4245ALEOAddress Latch Enable, Logic Output. This output is used to latch the low byte (and
page byte for 24-bit data address space accesses) of the address to external memory
during external code or data memory access cycles. It is activated every six oscillator
periods except during an external data memory access. It can be disabled by setting
the PCON.4 bit in the PCON SFR.
43–4646–49P0.0–P0.7I/OP0.0–P0.7, these pins are part of Port0, which is an 8-bit, open-drain, bidirectional
49–5252–55(AD0–AD3)I/O port. Port 0 pins that have 1s written to them float and in that state can be used
(AD4–AD7)as high impedance inputs. An external pull-up resistor will be required on P0 outputs
to force a valid logic high level externally. Port 0 is also the multiplexed low-order
address and databus during accesses to external program or data memory. In this
application, it uses strong internal pull-ups when emitting 1s.
*I = Input, O = Output, S = Supply.
REV. A–12–
ADuC834
BIT-ADDRESSABLE
(BIT ADDRESSES)
FOUR BANKS OF EIGHT
REGISTERS
R0–R7
BANKS
SELECTED
VIA
BITS IN PSW
11
10
01
00
07H
0FH
17H
1FH
2FH
7FH
00H
08H
10H
18H
20H
RESET VALUE OF
STACK POINTER
30H
GENERAL-PURPOSE
AREA
MEMORY ORGANIZATION
The ADuC834 contains four different memory blocks, namely:
• 62 Kbytes of On-Chip Flash/EE Program Memory
• 4 Kbytes of On-Chip Flash/EE Data Memory
• 256 bytes of General-Purpose RAM
• 2 Kbytes of Internal XRAM
(1) Flash/EE Program Memory
The ADuC834 provides 62 Kbytes of Flash/EE program
memory to run user code. The user can choose to run code from
this internal memory or run code from an external program
memory.
If the user applies power or resets the device while the EA pin is
pulled low externally, the part will execute code from the external
program space; otherwise, if EA is pulled high externally, the
part defaults to code execution from its internal 62 Kbytes of
Flash/EE program memory.
Unlike the ADuC824, where code execution can overflow from
the internal code space to external code space once the PC
becomes greater than 1FFFH, the ADuC834 does not support
the rollover from F7FFH in internal code space to F800H in
external code space. Instead, the 2048 bytes between F800H
and FFFFH will appear as NOP instructions to user code.
Permanently embedded firmware allows code to be serially
downloaded to the 62 Kbytes of internal code space via the
UART serial port while the device is in-circuit. No external
hardware is required.
Kbytes
56
runtime; thus the code space can be upgraded in the field
a user defined protocol or it can be used as a data
This will be discussed in more detail in the Flash/EE
of the program memory can be reprogrammed during
using
memory.
Memory
section of the data sheet.
(2) Flash/EE Data Memory
4
Kbytes
of Flash/EE Data Memory are available to the user
and can be accessed indirectly via a group of registers mapped
into the Special Function Register (SFR) area. Access to the
Flash/EE Data memory is discussed in detail later as part of the
Flash/EE Memory section in this data sheet.
(3) General-Purpose RAM
The general-purpose RAM is divided into two separate memories,
namely the upper and the lower 128 bytes of RAM. The lower
128 bytes of RAM can be accessed through direct or indirect
addressing; the upper 128 bytes of RAM can only be accessed
through indirect addressing as it shares the same address space
as the SFR space, which can only be accessed through direct
addressing.
The lower 128 bytes of internal data memory are mapped as
shown in Figure 2. The lowest 32 bytes are grouped into four
banks of eight registers addressed as R0 through R7. The next
GENERAL NOTES PERTAINING TO THIS DATA SHEET
1. SET implies a Logic 1 state and CLEARED implies a Logic 0 state unless
otherwise stated.
2. SET and CLEARED also imply that the bit is set or automatically cleared by
the ADuC834 hardware unless otherwise stated.
3. User software should not write 1s to reserved or unimplemented bits as they may
be used in future products.
4. Any pin numbers used throughout this data sheet refer to the 52-lead MQFP
package, unless otherwise stated.
REV. A
16 bytes (128 bits), locations 20H through 2FH above the register
banks, form a block of directly addressable bit locations at bit
addresses 00H through 7FH. The stack can be located anywhere
in the internal memory address space, and the stack depth can
be expanded up to 2048 bytes.
Reset initializes the stack pointer to location 07H. Any CALL
or PUSH pre-increments the SP before loading the stack.
Therefore, loading the stack starts from locations 08H, which is
also the first register (R0) of register bank 1. Thus, if one is
going to use more than one register bank, the stack pointer should
be initialized to an area of RAM not used for data storage.
Figure 2. Lower 128 Bytes of Internal Data Memory
(4) Internal XRAM
The ADuC834 contains 2 Kbytes of on-chip extended data
memory. This memory, although on-chip, is accessed via the
MOVX instruction. The 2 Kbytes of internal XRAM are
mapped into the bottom 2
CFG834.0 bit is set. Otherwise, access to the external
if the
data
memory will occur just like a standard 8051.
Kbytes
of the external address space
Even with the CFG834.0 bit set, access to the external XRAM
will occur once the 24-bit DPTR is greater than 0007FFH.
FFFFFFH
000000H
EXTERNAL
DATA
MEMORY
SPACE
(24-BIT
ADDRESS
SPACE)
CFG834.0 = 0
FFFFFFH
000800H
0007FFH
000000H
EXTERNAL
DATA
MEMORY
SPACE
(24-BIT
ADDRESS
SPACE)
2 KBYTES
ON-CHIP
XRAM
CFG834.0 = 1
Figure 3. Internal and External XRAM
–13–
ADuC834
When accessing the internal XRAM, the P0 and P2 port pins,
as well as the RD and WR strobes, will not be output as per a
standard 8051 MOVX instruction. This allows the user to use
these port pins as standard I/O.
The upper 1792 bytes of the internal XRAM can be configured
to be used as an extended 11-bit stack pointer. By default, the
stack will operate exactly like an 8052 in that it will roll over from
FFH to 00H in the general-purpose RAM. On the ADuC834
however, it is possible (by setting CFG834.7) to enable the 11-bit
extended stack pointer. In this case, the stack will roll over from
FFH in RAM to 0100H in XRAM. The 11-bit stack pointer is
visible in the SP and SPH SFRs. The SP SFR is located at 81H
as with a standard 8052. The SPH SFR is located at B7H. The
3 LSBs of this SFR contain the three extra bits necessary to extend
the 8-bit stack pointer into an 11-bit stack pointer.
07FFH
UPPER 1792
BYTES OF
ON-CHIP XRAM
(DATA + STACK
FOR EXSP = 1,
DATA ONLY
FOR EXSP = 0)
CFG834.7 = 0
FFH
00H
CFG834.7 = 1
256 BYTES OF
ON-CHIP DATA
RAM
(DATA +
STACK)
100H
00H
LOWER 256
BYTES OF
ON-CHIP XRAM
(DATA ONLY)
Figure 4. Extended Stack Pointer Operation
External Data Memory (External XRAM)
Just like a standard 8051 compatible core, the ADuC834 can
access external data memory using a MOVX instruction. The
MOVX instruction automatically outputs the various control
strobes required to access the data memory.
The ADuC834 however, can access up to 16 Mbytes of external
data memory. This is an enhancement of the 64 Kbytes external
data memory space available on a standard 8051 compatible core.
The external data memory is discussed in more detail in the
ADuC834 Hardware Design Considerations section.
SPECIAL FUNCTION REGISTERS (SFRS)
The SFR space is mapped into the upper 128 bytes of internal
data memory space and accessed by direct addressing only. It
provides an interface between the CPU and all on-chip peripherals. A block diagram showing the programming model of the
ADuC834 via the SFR area is shown in Figure 5.
62 KBYTE ELECTRICALLY
REPROGRAMMABLE
NONVOLATILE FLASH/EE
PROGRAM MEMORY
8051
COMPATIBLE
CORE
256 BYTES RAM
2K XRAM
128-BYTE
SPECIAL
FUNCTION
REGISTER
AREA
4 KBYTE
ELECTRICALLY
REPROGRAMMABLE
NONVOLATILE
FLASH/EE DATA
MEMORY
DUAL - ADCs
OTHER ON-CHIP
PERIPHERALS
TEMP SENSOR
CURRENT SOURCES
12-BIT DAC
SERIAL I/O
WDT, PSM
TIC, PLL
Figure 5. Programming Model
All registers, except the Program Counter (PC) and the four
general-purpose register banks, reside in the SFR area. The SFR
registers include control, configuration, and data registers that
provide an interface between the CPU and all on-chip peripherals.
Accumulator SFR (ACC)
ACC is the Accumulator Register and is used for math operations
including addition, subtraction, integer multiplication and division,
and Boolean bit manipulations. The mnemonics for accumulatorspecific instructions refer to the Accumulator as A.
B SFR (B)
The B Register is used with the ACC for multiplication and
division operations. For other instructions, it can be treated as
a general-purpose scratchpad register.
Data Pointer (DPTR)
The Data Pointer is made up of three 8-bit registers, named DPP
(page byte), DPH (high byte) and DPL (low byte). These are
used to provide memory addresses for internal and external
code access and external data access. It may be manipulated as
a 16-bit register (DPTR = DPH, DPL), although INC DPTR
instructions will automatically carry over to DPP, or as three
independent 8-bit registers (DPP, DPH, DPL).
The ADuC834 supports dual data pointers. Refer to the Dual
Data Pointer section in this data sheet.
REV. A–14–
ADuC834
Stack Pointer (SP and SPH)
The SP SFR is the stack pointer and is used to hold an internal
RAM address that is called the ‘top of the stack.’ The SP Register
is incremented before data is stored during PUSH and CALL
executions. While the Stack may reside anywhere in on-chip
RAM, the SP Register is initialized to 07H after a reset. This
causes the stack to begin at location 08H.
As mentioned earlier, the ADuC834 offers an extended 11-bit
stack pointer. The three extra bits to make up the 11-bit stack
pointer are the 3 LSBs of the SPH byte located at B7H.
Program Status Word (PSW)
The PSW SFR contains several bits reflecting the current status
of the CPU as detailed in Table I.
SFR AddressD0H
Power-On Default Value00H
Bit AddressableYes
Table I. PSW SFR Bit Designations
BitNameDescription
7CYCarry Flag
6ACAuxiliary Carry Flag
5F0General-Purpose Flag
4RS1Register Bank Select Bits
3RS0RS1RS0Selected Bank
000
011
102
113
2OVOverflow Flag
1F1General-Purpose Flag
0PParity Bit
Power Control SFR (PCON)
The PCON SFR contains bits for power-saving options and
general-purpose status flags as shown in Table II.
The TIC (wake-up/RTC timer) can be used to accurately wake up
the ADuC834 from power-down at regular intervals. To use the
TIC to wake up the ADuC834 from power-down, the OSC_PD
bit in the PLLCON SFR must be clear and the TIC must be
enabled.
SFR Address87H
Power-On Default Value00H
Bit AddressableNo
Table II. PCON SFR Bit Designations
BitNameDescription
7SMODDouble UART Baud Rate
6SERIPDSPI Power-Down Interrupt Enable
5INT0PDINT0 Power-Down Interrupt Enable
4ALEOFFDisable ALE Output
3GF1General-Purpose Flag Bit
2GF0General-Purpose Flag Bit
1PDPower-Down Mode Enable
0IDLIdle Mode Enable
ADuC834 CONFIGURATION SFR (CFG834)
The CFG834 SFR contains the necessary bits to configure the
internal XRAM and the extended SP. By default it configures
the user into 8051 mode, i.e., extended SP is disabled, internal
XRAM is disabled.
SFR AddressAFH
Power-On Default Value00H
Bit AddressableNo
Table III. CFG834 SFR Bit Designations
BitNameDescription
7EXSP
6–––Reserved for Future Use
5–––Reserved for Future Use
4–––Reserved for Future Use
3–––Reserved for Future Use
2–––Reserved for Future Use
1–––Reserved for Future Use
0XRAMENXRAM Enable Bit. If this bit is set, the
Extended SP Enable. If this bit is set, the
stack will roll over from SPH/SP = 00FFH
to 0100H. If this bit is clear, the SPH SFR
will be disabled and the stack will roll
over from SP = FFH to SP = 00H
internal XRAM will be mapped into the
lower 2 Kbytes of the external address
space. If this bit is clear, the internal
XRAM will not be accessible and the
external data memory will be mapped
into the lower 2 Kbytes of external data
memory. (See Figure 3.)
REV. A
–15–
ADuC834
COMPLETE SFR MAP
Figure 6 shows a full SFR memory map and the SFR contents
after RESET. NOT USED indicates unoccupied SFR locations. Unoccupied locations in the SFR address space are not
ISPI
WCOL
SPE
SPIM
CPOL
CPHA
SPR1
SPR0
FFH 0
FEH 0
FDH 0
FCH 0
FBH 0
FAH
F9H 0
1
F7H 0 F6H 0 F5H 0 F4H0 F3H 0 F2HF1H 0 F0H 0
MDO
EFH 0 EEH 0 EDH 0 ECH 0
E7H 0 E6H 0 E5H 0 E4H 0 E3H 0 E2HE1H 0 E0H 0
DFH 0
D7H 0ACD6H 0F0D5H 0
CFH 0
C7H 0
BFH 0
B7H 1WRB6H 1T1B5H 1T0B4H 1
AFH
A7HA6HA5H 1 A4H 1 A3H 1 A2HA1H 1 A0H 1
9FH 0
97H 1 96H 1 95H1 94H 1 93H 1 92H
8FH 0
87H 1 86H 1 85H1 84H 1 83H 1 82H81H 1 80H 1
MDEMCOMDI
RDY0
RDY1
DEH 0
CAL
DDH 0
CY
TF2
EXF2
RCLK
CEH 0
CDH 0
PRE2
C6H 0
PADC
BEH 0
PRE1
C5H 0 C4H 1
PT2
BDH 0PSBCH 0
PRE3
RD
EA
EADC
SM1
TR1
ET2
ADHESACH 0
SM2
9DH 0
TF0
8DH 0
AEH
000
11
SM0
9EH 0
TF1
8EH 0
NOTES
1
CALIBRATION COEFFICIENTS ARE PRECONFIGURED AT POWER-UP TO FACTORY CALIBRATED VALUES.
2
THESE SFRS MAINTAIN THEIR PRERESET VALUES AFTER A RESET IF TIMECON.0 = 1.
SFR MAP KEY:
I2CM
EBH 0 EAHE9H 0 E8H 0
ERR0
NOXREF
DCH 0
DBH 0
RSI
RS0
D4H 0
D3H 0OVD2HFID1H 0PD0H 0
TCLK
EXEN2
CCH 0
CBH 0
PRE0
WDIR
C3H 0
PT1
BBH 0
INT1
B3H 1
ET1
ABH 0
REN
TB8
9CH 0
9BH 0
TR0
8CH 0
IE1
8BH 0
THESE BITS ARE CONTAINED IN THIS BYTE.
BIT MNEMONIC
BIT BIT ADDRESS
RESET DEFAULT
BIT VALUE
SFR NOTE:
SFRs WHOSE ADDRESSES END IN 0H OR 8H ARE BIT-ADDRESSABLE.
0
I2CRS I2CTXI2CI
0
0
ERR1
DAHD9H 0 D8H 0
0
0
TR2
CNT2
CAH
C9H 0
0
WDS
WDE
C2H
C1H 0
0
PX1
PT0
BAH
B9H 0
TXD
INT0
B2H
B1H 1
1
EX1
ET0
AAH
A9H 0
0
1
RB8
9AHT199H 0R198H 0
0
T2EX
91H 1T290H 1
1
IT1
IE0
0
1
0
IE0
89H 0
IT0
88H
0
8AH
89H
F8H 0
CAP2
C8H 0
WDWR
C0H 0
PX0
B8H 0
RXD
B0H 1
EX0
A8H 0
IT0
88H 0
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
BITS
TCON
88H 00H
implemented; i.e., no register exists at this location. If an unoccupied location is read, an unspecified value is returned. SFR locations
that are reserved for future use are shaded (RESERVED) and
should not be accessed by user software.
SPICON
04H
B
00H
I2CCON
00H
ACC
00H
00H
PSW
00H
T2CON
00H
WDCON
10H
IP
00H
P3
FFH
IE
00H
P2
FFH
SCON
00H
P1
FFH
TCON
00H
P0
FFH
RESERVED RESERVED
RESERVED
RESERVED
B1H
F8H
F0H
E8H
E0H
ADCSTAT
D8H
D0H
C8H
C0H
B8H
B0H
A8H
A0H
98H
90H
88H
80H
MNEMONIC
RESET DEFAULT VALUE
SFR ADDRESS
DACL
FBH
RESERVEDRESERVED
11111
GN0LGN0MGN0H
E9H
55H
EAH
OF0L
E1H
00H
E2H
ADC0L
D9H
ADCMODE
D1H
B9H
00H
00H
ECON
00H
DAH
ADC0CON
D2H
CAH
C2H
RESERVED RESERVED
PWM0LPWM0H
00H
B2H
IEIP2
A9H
A0H
TIMECON
A1H
99H
SBUF
00H
00H
HTHSEC
A2H
RESERVED
NOT USEDRESERVEDRESERVEDRESERVED
EBH
55H
OF0M
ADC0M
00H
00H
OF0H
E3H
ADC0H
DBH
ADC1CON
D3H
07H
RCAP2L
CHIPID
00H
2H
RCAP2H
CBH
RESERVED
PWM1LPWM1H
00H
B3H
RESERVEDRESERVEDRESERVEDRESERVED
SEC
A3H
00H
RESERVED
00H
53H
80H
00H
00H
00H
00H
00H
DACH
FCH
00H
GN1L
ECH
9AH
OF1L
E4H
00H
ADC1L
DCH
00H
SF
D4H
45H
TL2
CCH
00H
RESERVED
EDATA1
BCH
00H
00H
B4H
2222
MIN
A4H
00H
NOT USED
DACCON
FDH
EDH
E5H
ADC1H
DDH
D5H
CDH
RESERVED
EDATA2
BDH
RESERVED
A5H
9DH
RESERVEDRESERVEDRESERVEDRESERVEDRESERVEDRESERVED
TMOD
89H
SP
81H
00H
07H
8AH
82H
TL0
DPL
00H
00H
8BH
83H
TL1
DPH
00H
00H
8CH
84H
TH0
DPP
00H
00H
8DH
00H
GN1H
59H
OF1H
80H
RESERVED
00H
ICON
RESERVED
00H
TH2
RESERVED RESERVED
00H
00H
RESERVED
AEH
HOUR
00H
T3FD
00H
TH1
RESERVED RESERVED
00H
RESERVEDRESERVED
RESERVEDRESERVED
SPIDAT
F7H
RESERVEDRESERVED
RESERVEDRESERVED
PSMCON
DFH
PLLCON
D7H
EADRL
C6H
EDATA3
BEH
00H
00H
EADRH
C7H
EDATA4
BFH
SPH
B7H
PWMCONCFG834
AFH
00H
INTVAL
A6H
T3CON
9EH
00H
00H
DPCON
A7H
RESERVED
RESERVED
PCON
87H
00H
DEH
03H
00H
00H
00H
00H
00H
00H
Figure 6. Special Function Register Locations and Their Reset Default Values
REV. A–16–
ADuC834
ADC SFR INTERFACE
Both ADCs are controlled and configured via a number of SFRs that are mentioned here and described in more detail in the
following pages.
ADCSTATADC Status Register. Holds general status of
the primary and auxiliary ADCs.
ADCMODEADC Mode Register. Controls general modes
of operation for primary and auxiliary ADCs.
ADC0CONPrimary ADC Control Register. Controls
specific configuration of primary ADC.
ADC1CONAuxiliary ADC Control Register. Controls
specific configuration of auxiliary ADC.
SFSinc Filter Register. Configures the decimation
factor for the Sinc
and auxiliary ADC update rates.
ICONCurrent Source Control Register. Allows
user control of the various on-chip current
source options.
ADCSTAT—(ADC Status Register)
This SFR reflects the status of both ADCs including data ready, calibration, and various (ADC-related) error and warning conditions
including reference detect and conversion overflow/underflow flags.
SFR AddressD8H
Power-On Default Value00H
Bit AddressableYes
3
filter and thus the primary
ADC0L/M/HPrimary ADC 24-bit conversion result is held
in these three 8-bit registers.
ADC1L/H
OF0L/M/HPrimary ADC 24-bit Offset Calibration
OF1L/HAuxiliary ADC 16-bit Offset Calibration
GN0L/M/HPrimary ADC 24-bit Gain Calibration
GN1L/HAuxiliary ADC 16-bit Gain Calibration
Auxiliary ADC 16-bit conversion result is held
in these two 8-bit registers.
Coefficient is held in these three 8-bit registers.
Coefficient is held in these two 8-bit registers.
Coefficient is held in these three 8-bit registers.
Coefficient is held in these two 8-bit registers.
Table IV. ADCSTAT SFR Bit Designations
BitNameDescription
7RDY0Ready Bit for primary ADC.
Set by hardware on completion of ADC conversion or calibration cycle.
Cleared directly by the user or indirectly by write to the mode bits to start another primary
ADC conversion or calibration. The primary ADC is inhibited from writing further results to its
data or calibration registers until the RDY0 bit is cleared.
6RDY1Ready Bit for auxiliary ADC. Same definition as RDY0 referred to the auxiliary ADC.
5CALCalibration Status Bit.
Set by hardware on completion of calibration.
Cleared indirectly by a write to the mode bits to start another ADC conversion or calibration.
4NOXREFNo External Reference Bit (only active if primary or auxiliary ADC is active).
Set to indicate that one or both of the REFIN pins is floating or the applied voltage is below
a specified threshold. When Set, conversion results are clamped to all ones, if using external
reference.
Cleared to indicate valid V
3ERR0Primary ADC Error Bit.
Set by hardware to indicate that the result written to the primary ADC data registers has
been clamped to all zeros or all ones. After a calibration, this bit also flags error conditions that
caused the calibration registers not to be written.
Cleared by a write to the mode bits to initiate a conversion or calibration.
2ERR1Auxiliary ADC Error Bit. Same definition as ERR0 referred to the auxiliary ADC.
1–––Reserved for Future Use
0–––Reserved for Future Use
REF
.
REV. A
–17–
ADuC834
ADCMODE (ADC Mode Register)
Used to control the operational mode of both ADCs.
SFR AddressD1H
Power-On Default Value00H
Bit AddressableNo
Table V. ADCMODE SFR Bit Designations
BitNameDescription
7–––Reserved for Future Use
6–––Reserved for Future Use
5ADC0ENPrimary ADC Enable.
Set by the user to enable the primary ADC and place it in the mode selected in MD2–MD0 below.
Cleared by the user to place the primary ADC in power-down mode.
4ADC1ENAuxiliary ADC Enable.
Set by the user to enable the auxiliary ADC and place it in the mode selected in MD2–MD0 below.
Cleared by the user to place the auxiliary ADC in power-down mode.
3–––Reserved for Future Use
2MD2Primary and auxiliary ADC Mode bits.
1MD1These bits select the operational mode of the enabled ADC as follows:
0MD0MD2 MD1 MD0
000ADC Power-Down Mode (Power-On Default)
001Idle Mode. In Idle Mode, the ADC filter and modulator are held in a reset state
although the modulator clocks are still provided.
010Single Conversion Mode. In Single Conversion Mode, a single conversion is
performed on the enabled ADC. On completion of the conversion, the ADC data
registers (ADC0H/M/L and/or ADC1H/L) are updated, the relevant flags in the
ADCSTAT SFR are written, and power-down is re-entered with the MD2–MD0
accordingly being written to 000.
011Continuous Conversion. In Continuous Conversion Mode, the ADC data registers
are regularly updated at the selected update rate (see SF Register).
100Internal Zero-Scale Calibration. Internal short automatically connected to the
enabled ADC input(s).
101Internal Full-Scale Calibration Internal or External V
XREF0 and XREF1 bits in ADC0/1CON) is automatically connected to the
enabled ADC input(s) for this calibration.
110System Zero-Scale Calibration. User should connect system zero-scale input to
the enabled ADC input(s) as selected by CH1/CH0 and ACH1/ACH0 bits in
the ADC0/1CON Register.
111System Full-Scale Calibration. User should connect system full-scale input to
the enabled ADC input(s) as selected by CH1/CH0 and ACH1/ACH0 bits in the
ADC0/1CON Register.
NOTES
1. Any change to the MD bits will immediately reset both ADCs. A write to the MD2–0 Bits with no change is also treated as a reset. (See exception to this in Note 3 below.)
2. If ADC0CON is written when ADC0EN = 1, or if ADC0EN is changed from 0 to 1, then both ADCs are also immediately reset. In other words, the primary ADC
is given priority over the auxiliary ADC and any change requested on the primary ADC is immediately responded to.
3. On the other hand, if ADC1CON is written or if ADC1EN is changed from 0 to 1, only the auxiliary ADC is reset. For example, if the primary ADC is continuously
converting when the auxiliary ADC change or enable occurs, the primary ADC continues undisturbed. Rather than allow the auxiliary ADC to operate with a phase
difference from the primary ADC, the auxiliary ADC will fall into step with the outputs of the primary ADC. The result is that the first conversion time for the
auxiliary ADC will be delayed up to three outputs while the auxiliary ADC update rate is synchronized to the primary ADC.
4. Once ADCMODE has been written with a calibration mode, the RDY0/1 bits (ADCSTAT) are immediately reset and the calibration commences. On completion,
the appropriate calibration registers are written, the relevant bits in ADCSTAT are written, and the MD2–0 bits are reset to 000 to indicate the ADC is back in
power-down mode.
5. Any calibration request of the auxiliary ADC while the temperature sensor is selected will fail to complete. Although the RDY1 bit will be set at the end of the
calibration cycle, no update of the calibration SFRs will take place and the ERR1 bit will be set.
6. Calibrations are performed at maximum SF (see SF SFR) value guaranteeing optimum calibration operation.
(as determined by
REF
REV. A–18–
ADuC834
ADC0CON (Primary ADC Control Register) and ADC1CON (Auxiliary ADC Control Register)
The ADC0CON and ADC1CON SFRs are used to configure the primary and auxiliary ADC for reference and channel selection,
unipolar or bipolar coding and, in the case of the primary ADC, for range (the auxiliary ADC operates on a fixed input range of ± V
ADC0CONPrimary ADC Control SFR
SFR AddressD2H
Power-On Default Value 07H
Bit AddressableNo
Table VI. ADC0CON SFR Bit Designations
ADC1CONAuxiliary ADC Control SFR
SFR AddressD3H
Power-On Default Value00H
Bit AddressableNo
BitNameDescription
7–––Reserved for Future Use
6XREF0Primary ADC External Reference Select Bit.
Set by user to enable the primary ADC to use the external reference via REFIN(+)/REFIN(–).
Cleared by user to enable the primary ADC to use the internal band gap reference (V
= 1.25 V).
REF
5CH1Primary ADC Channel Selection Bits
4CH0Written by the user to select the differential input pairs used by the primary ADC as follows:
Set by user to enable unipolar coding, i.e., zero differential input will result in 000000H output.
Cleared by user to enable bipolar coding, i.e., zero differential input will result in 800000H output.
2RN2Primary ADC Range Bits.
1RN1Written by the user to select the primary ADC input range as follows:
0RN0RN2RN1RN0Selected Primary ADC Input Range (V
= 2.5 V)
REF
000± 20 mV (0 mV–20 mV in Unipolar Mode)
001± 40 mV (0 mV–40 mV in Unipolar Mode)
010± 80 mV (0 mV–80 mV in Unipolar Mode)
011± 160 mV(0 mV–160 mV in Unipolar Mode)
100± 320 mV(0 mV–320 mV in Unipolar Mode)
101± 640 mV(0 mV–640 mV in Unipolar Mode)
110± 1.28 V (0 V–1.28 V in Unipolar Mode)
111± 2.56 V (0 V–2.56 V in Unipolar Mode)
REF
).
Table VII. ADC1CON SFR Bit Designations
BitNameDescription
7–––Reserved for Future Use
6XREF1Auxiliary ADC External Reference Bit.
Set by user to enable the auxiliary ADC to use the external reference via REFIN(+)/REFIN(–).
Cleared by user to enable the auxiliary ADC to use the internal band gap reference.
5ACH1Auxiliary ADC Channel Selection Bits.
4ACH0Written by the user to select the single-ended input pins used to drive the auxiliary ADC as follows:
ACH1ACH0Positive InputNegative Input
00AIN3AGND
01AIN4AGND
10Temp SensorAGND (Temp Sensor routed to the ADC input)
11AIN5AGND
3UNI1Auxiliary ADC Unipolar Bit.
Set by user to enable unipolar coding, i.e., zero input will result in 0000H output.
Cleared by user to enable bipolar coding, i.e., zero input will result in 8000H output.
2–––Reserved for Future Use
1–––Reserved for Future Use
0–––Reserved for Future Use
NOTES
1. When the temperature sensor is selected, user code must select internal reference via XREF1 bit above and clear the UNI1 bit (ADC1CON.3) to select bipolar coding.
2. The temperature sensor is factory calibrated to yield conversion results 8000H at 0°C.
3. A +1°C change in temperature will result in a +1 LSB change in the ADC1H Register ADC conversion result.
REV. A
–19–
ADuC834
ADC0H/ADC0M/ADC0L (Primary ADC Conversion Result Registers)
These three 8-bit registers hold the 24-bit conversion result from the primary ADC.
SFR AddressADC0HHigh Data ByteDBH
ADC0MMiddle Data ByteDAH
ADC0LLow Data ByteD9H
Power-On Default Value00HADC0H, ADC0M, ADC0L
Bit AddressableNoADC0H, ADC0M, ADC0L
ADC1H/ADC1L (Auxiliary ADC Conversion Result Registers)
These two 8-bit registers hold the 16-bit conversion result from the auxiliary ADC.
SFR AddressADC1HHigh Data ByteDDH
ADC1LLow Data ByteDCH
Power-On Default Value00HADC1H, ADC1L
Bit AddressableNoADC1H, ADC1L
These three 8-bit registers hold the 24-bit offset calibration coefficient for the primary ADC. These registers are configured at power-on
with a factory default value of 800000H. However, these bytes will be automatically overwritten if an internal or system zero-scale
calibration of the primary ADC is initiated by the user via MD2–0 bits in the ADCMODE Register.
SFR AddressOF0HPrimary ADC Offset Coefficient High ByteE3H
These two 8-bit registers hold the 16-bit offset calibration coefficient for the auxiliary ADC. These registers are configured at power-on
with a factory default value of 8000H. However, these bytes will be automatically overwritten if an internal or system zero-scale calibration of the auxiliary ADC is initiated by the user via the MD2–0 bits in the ADCMODE Register.
SFR AddressOF1HAuxiliary ADC Offset Coefficient High ByteE5H
OF1LAuxiliary ADC Offset Coefficient Low ByteE4H
Power-On Default Value8000HOF1H and OF1L, respectively
Bit AddressableNoOF1H, OF1L
GN0H/GN0M/GN0L (Primary ADC Gain Calibration Registers*)
These three 8-bit registers hold the 24-bit gain calibration coefficient for the primary ADC. These registers are configured at power-on
with a factory-calculated internal full-scale calibration coefficient. Every device will have an individual coefficient. However, these
bytes will be automatically overwritten if an internal or system full-scale calibration of the primary ADC is initiated by the user via
MD2–0 bits in the ADCMODE Register.
SFR AddressGN0HPrimary ADC Gain Coefficient High ByteEBH
GN0MPrimary ADC Gain Coefficient Middle ByteEAH
GN0LPrimary ADC Gain Coefficient Low ByteE9H
Power-On Default ValueConfigured at Factory Final Test; see Notes above.
Bit AddressableNoGN0H, GN0M, GN0L
GN1H/GN1L (Auxiliary ADC Gain Calibration Registers*)
These two 8-bit registers hold the 16-bit gain calibration coefficient for the auxiliary ADC. These registers are configured at power-on
with a factory-calculated internal full-scale calibration coefficient. Every device will have an individual coefficient. However, these
bytes will be automatically overwritten if an internal or system full-scale calibration of the auxiliary ADC is initiated by the user via
MD2–0 bits in the ADCMODE Register.
SFR AddressGN1HAuxiliary ADC Gain Coefficient High ByteEDH
GN1LAuxiliary ADC Gain Coefficient Low ByteECH
Power-On Default ValueConfigured at Factory Final Test; see Notes above.
Bit AddressableNoGN1H, GN1L
*These registers can be overwritten by user software only if Mode bits MD0–2 (ADCMODE SFR) are zero.
REV. A–20–
ADuC834
SF (Sinc Filter Register)
The number in this register sets the decimation factor and thus
the output update rate for the primary and auxiliary ADCs.
This SFR cannot be written by user software while either ADC
is active. The update rate applies to both primary and auxiliary
ADCs and is calculated as follows:
1
Where:f
f
=×
ADCMOD
= ADC Output Update Rate
ADC
f
= Modulator Clock Frequency = 32.768 kHz
MOD
318
×
SF
f
×
SF = Decimal Value of SF Register
The allowable range for SF is 0DH to FFH. Examples of SF values
and corresponding conversion update rates (f
times (t
) are shown in Table VIII. The power-on default
ADC
) and conversion
ADC
value for the SF Register is 45H, resulting in a default ADC
update rate of just under 20 Hz. Both ADC inputs are chopped
to minimize offset errors, which means that the settling time for
a single conversion, or the time to a first conversion result in
Continuous Conversion mode, is 2 t
. As mentioned earlier,
ADC
all calibration cycles will be carried out automatically with a
maximum, i.e., FFH, SF value to ensure optimum calibration
performance. Once a calibration cycle has completed, the value
in the SF Register will be that programmed by user software.
Table VIII. SF SFR Bit Designations
SF(dec)SF(hex)f
(Hz)t
ADC
130D105.39.52
694519.7950.34
255FF5.35186.77
ICON (Current Sources Control Register)
Used to control and configure the various excitation and burnout current source options available on-chip.
SFR AddressD5H
Power-On Default Value00H
Bit AddressableNo
Table IX. ICON SFR Bit Designations
ADC
(ms)
BitNameDescription
7–––Reserved for Future Use
6BOBurnout Current Enable Bit.
Set by user to enable both transducer burnout current sources in the primary ADC signal paths.
Cleared by user to disable both transducer burnout current sources.
5ADC1ICAuxiliary ADC Current Correction Bit.
Set by user to allow scaling of the auxiliary ADC by an internal current source calibration word.
4ADC0ICPrimary ADC Current Correction Bit.
Set by user to allow scaling of the primary ADC by an internal current source calibration word.
3I2PIN*Current Source-2 Pin Select Bit.
Set by user to enable current source-2 (200 A) to external Pin 3 (P1.2/DAC/IEXC1).
Cleared by user to enable current source-2 (200 A) to external Pin 4 (P1.3/AIN5/IEXC2).
2I1PIN*Current Source-1 Pin Select Bit.
Set by user to enable current source-1 (200 A) to external Pin 4 (P1.3/AIN5/IEXC2).
Cleared by user to enable current source-1 (200 A) to external Pin 3 (P1.2/DAC/IEXC1).
1I2ENCurrent Source-2 Enable Bit.
Set by user to turn on excitation current source-2 (200 A).
Cleared by user to turn off excitation current source-2 (200 A).
0I1ENCurrent Source-1 Enable Bit.
Set by user to turn on excitation current source-1 (200 A).
Cleared by user to turn off excitation current source-1 (200 A).
*Both current sources can be enabled to the same external pin, yielding a 400 A current source.
REV. A
–21–
ADuC834
PRIMARY AND AUXILIARY ADC NOISE
PERFORMANCE
Tables X, XI, and XII show the output rms noise in V and
output peak-to-peak resolution in bits (rounded to the nearest
0.5 LSB) for some typical output update rates on both the primary
and auxiliary ADCs. The numbers are typical and are generated
at a differential input voltage of 0 V. The output update rate is
Typical Output RMS Noise vs. Input Range and Update Rate; Output RMS Noise in V
SFData Update
selected via the Sinc Filter (SF) SFR. It is important to note
that the peak-to-peak resolution figures represent the resolution
for which there will be no code flicker within a six-sigma limit.
The QuickStart Development system PC software comes
complete with an ADC noise evaluation tool. This tool can be
easily used with the evaluation board to see these figures from
silicon.
Input Range
WordRate (Hz)20 mV40 mV80 mV160 mV320 mV640 mV1.28 V2.56 V
*Based on a six-sigma limit, the rms resolution is 2.7 bits greater than the peak-to-peak resolution.
Table XII. Auxiliary ADC
Typical Output RMS Noise vs. Update Rate*
Output RMS Noise in V
SFData
WordR
UpdateInput Range
ate (Hz)2.5 V
13105.310.75
6919.792.00
2555.351.15
*ADC converting in Bipolar mode
Peak-to-Peak Resolution vs. Update Rate
Peak-to-Peak Resolution in Bits
SFData UpdateInput Range
WordRate (Hz)2.5 V
13105.316
6919.7916
2555.3516
NOTES
1
ADC converting in Bipolar mode
2
In Unipolar mode, peak-to-peak resolution at 105 Hz is 15 bits.
1
2
REV. A–22–
ADuC834
PRIMARY AND AUXILIARY ADC CIRCUIT DESCRIPTION
Overview
The ADuC834 incorporates two independent - ADCs (primary
and auxiliary) with on-chip digital filtering intended for the measurement of wide dynamic range, low frequency signals such as those
in weigh-scale, strain gage, pressure transducer, or temperature
measurement applications.
Primary ADC
This ADC is intended to convert the primary sensor input. The
input is buffered and can be programmed for one of eight input
ranges from ±20 mV to ± 2.56 V being driven from one of three
differential input channel options AIN1/2, AIN3/4, or AIN3/2.
The input channel is internally buffered, allowing the part to
handle significant source impedances on the analog input and
DIFFERENTIAL
REFERENCE
THE EXTERNAL REFERENCE
INPUT TO THE ADuC834 IS
DIFFERENTIAL AND
FACILITATES RATIOMETRIC
OPERATION. THE EXTERNAL
REFERENCE VOLTAGE IS
SELECTED VIA THE XREF0 BIT
IN ADC0CON.
REFERENCE DETECT
CIRCUITRY TESTS FOR OPEN OR
SHORTED REFERENCE INPUTS.
BURNOUT CURRENTS
TWO 100nA BURNOUT
CURRENTS ALLOW THE
USER TO EASILY DETECT
IF A TRANSDUCER HAS
BURNED OUT OR GONE
OPEN-CIRCUIT.
ANALOG INPUT CHOPPING
THE INPUTS ARE
ALTERNATELY REVERSED
THROUGH THE
CONVERSION CYCLE.
CHOPPING YIELDS
EXCELLENT ADC OFFSET
AND OFFSET DRIFT
PERFORMANCE.
PROGRAMMABLE GAIN
AMPLIFIER
THE PROGRAMMABLE
GAIN AMPLIFIER ALLOWS
EIGHT UNIPOLAR AND
EIGHT BIPOLAR INPUT
RANGES FROM 20mV TO
2.56V (EXT V
REF
REFIN(–)
= 2.5V).
REFIN(+)
allowing R/C filtering (for noise rejection or RFI reduction) to be
placed on the analog inputs if required. On-chip burnout currents
can also be turned on. These currents can be used to check that
a transducer on the selected channel is still operational before
attempting to take measurements.
The ADC employs a - conversion technique to realize up to
24 bits of no missing codes performance. The - modulator con-
verts the sampled input signal into a digital pulse train whose duty
cycle contains the digital information. A Sinc
3
programmable lowpass filter is then employed to decimate the modulator output data
stream to give a valid data conversion result at programmable
output rates from 5.35 Hz (186.77 ms) to 105.03 Hz (9.52 ms).
A chopping scheme is also employed to minimize ADC offset errors.
A block diagram of the primary ADC is shown in Figure 7.
- ADC
THE - ARCHITECTURE
ENSURES 24 BITS NO
MISSING CODES. THE
- ADC IS
ENTIRE
CHOPPED TO REMOVE
DRIFT ERROR.
OUTPUT AVERAGE
AS PART OF THE CHOPPING
IMPLEMENTATION, EACH
DATA-WORD OUTPUT
FROM THE FILTER IS
SUMMED AND AVERAGED
WITH ITS PREDECESSOR
TO NULL ADC CHANNEL
OFFSET ERRORS.
AV
AIN1
AIN2
AIN3
AIN4
ANALOG MULTIPLEXER
A DIFFERENTIAL MULTIPLEXER
ALLOWS SELECTION OF THREE
FULLY DIFFERENTIAL PAIR OPTIONS AND
ADDITIONAL INTERNAL SHORT OPTION
(AIN2–AIN2). THE MULTIPLEXER IS
CONTROLLED VIA THE CHANNEL
SELECTION BITS IN ADC0CON.
MUX
AGND
DD
CHOP
BUFFER
PGA
BUFFER AMPLIFIER
THE BUFFER AMPLIFIER
PRESENTS A HIGH
IMPEDANCE INPUT STAGE
FOR THE ANALOG INPUTS,
ALLOWING SIGNIFICANT
EXTERNAL SOURCE
IMPEDANCES.
-
MODULATOR
- MODULATOR
THE MODULATOR PROVIDES
A HIGH FREQUENCY 1-BIT
DATA STREAM (THE OUTPUT
OF WHICH IS ALSO CHOPPED)
TO THE DIGITAL FILTER,
THE DUTY CYCLE OF WHICH
REPRESENTS THE SAMPLED
ANALOG INPUT VOLTAGE.
Figure 7. Primary ADC Block Diagram
- ADC
PROGRAMMABLE
DIGITAL
FILTER
CHOP
PROGRAMMABLE
DIGITAL FILTER
THE SINC3 FILTER REMOVES
QUANTIZATION NOISE INTRODUCED
BY THE MODULATOR. THE UPDATE
RATE AND BANDWIDTH OF THIS
FILTER ARE PROGRAMMABLE
VIA THE SF SFR.
OUTPUT
AVERAGE
DIGTAL OUTPUT
RESULT WRITTEN
TO ADC0H/M/L
OUTPUT
SCALING
OUTPUT SCALING
THE OUPUT WORD FROM THE
DIGITAL FILTER IS SCALED
BY THE CALIBRATION
COEFFICIENTS BEFORE
BEING PROVIDED AS
THE CONVERSION RESULT.
SFRS
REV. A
–23–
ADuC834
Auxiliary ADC
The auxiliary ADC is intended to convert supplementary inputs
such as those from a cold junction diode or thermistor. This ADC
is not buffered and has a fixed input range of 0 V to 2.5 V
(assuming an external 2.5 V reference). The single-ended inputs
can be driven from AIN3, AIN4, or AIN5 Pins, or directly from
the on-chip temperature sensor voltage. A block diagram of the
auxiliary ADC is shown in Figure 8.
Analog Input Channels
The primary ADC has four associated analog input pins (labelled
AIN1 to AIN4) that can be configured as two fully differential input
channels. Channel selection bits in the ADC0CON SFR detailed
in Table VI allow three combinations of differential pair selection
as well as an additional shorted input option (AIN2–AIN2).
DIFFERENTIAL REFERENCE
THE EXTERNAL REFERENCE INPUT
TO THE ADuC834 IS DIFFERENTIAL
AND FACILITATES RATIOMETRIC
OPERATION. THE EXTERNAL
REFERENCE VOLTAGE IS SELECTED
ANALOG INPUT CHOPPING
THE INPUTS ARE ALTERNATELY
REVERSED THROUGH THE
CONVERSION CYCLE. CHOPPING
YIELDS EXCELLENT ADC
OFFSET AND OFFSET DRIFT
PERFORMANCE.
VIA THE XREF1 BIT IN ADC1CON.
REFERENCE DETECT
CIRCUITRY TESTS FOR OPEN OR
SHORTED REFERENCE INPUTS.
REFIN(–)
REFIN(+)
The auxiliary ADC has three external input pins (labelled AIN3 to
AIN5) as well as an internal connection to the on-chip temperature
sensor. All inputs to the auxiliary ADC are single-ended inputs
referenced to the AGND on the part. Channel selection bits in
the ADC1CON SFR previously detailed in Table VII allow
selection of one of four inputs.
Two input multiplexers switch the selected input channel to the
on-chip buffer amplifier in the case of the primary ADC and
directly to the - modulator input in the case of the auxiliary
ADC. When the analog input channel is switched, the settling
time of the part must elapse before a new valid word is available
from the ADC.
-
THE
ENSURES 16 BITS NO MISSING
CODES. THE ENTIRE
IS CHOPPED TO REMOVE
ADC
-
ARCHITECTURE
DRIFT ERRORS.
-
ADC
OUTPUT AVERAGE
AS PART OF THE CHOPPING
IMPLEMENTATION, EACH
DATA-WORD OUTPUT
FROM THE FILTER IS
SUMMED AND AVERAGED
WITH ITS PREDECESSOR
TO NULL ADC CHANNEL
OFFSET ERRORS.
AIN3
AIN4
AIN5
ON-CHIP
TEMPERATURE
SENSOR
ANALOG MULTIPLEXER
A DIFFERENTIAL MULTIPLEXER
ALLOWS SELECTION OF THREE
EXTERNAL SINGLE ENDED INPUTS
OR THE ON-CHIP TEMP. SENSOR.
THE MULTIPLEXER IS CONTROLLED
VIA THE CHANNEL SELECTION
BITS IN ADC1CON.
MU
MUX
X
CHOP
- ADC
-
MODULATOR
-
MODULATOR
THE MODULATOR PROVIDES A
HIGH FREQUENCY 1-BIT DATA
STREAM (THE OUTPUT OF WHICH
IS ALSO CHOPPED) TO THE
DIGITAL FILTER,
THE DUTY CYCLE OF WHICH
REPRESENTS THE SAMPLED
ANALOG INPUT VOLTAGE.
PROGRAMMABLE
DIGITAL FILTER
PROGRAMMABLE DIGITAL
THE SINC3 FILTER REMOVES
QUANTIZATION NOISE INTRODUCED
BY THE MODULATOR. THE UPDATE
RATE AND BANDWIDTH OF THIS
FILTER ARE PROGRAMMABLE
VIA THE SF SFR.
Figure 8. Auxiliary ADC Block Diagram
CHOP
FILTER
OUTPUT
AVERAGE
DIGTAL OUTPUT
RESULT WRITTEN
OUTPUT
SCALING
OUTPUT SCALING
THE OUPUT WORD FROM THE
DIGITAL FILTER IS SCALED BY
COEFFICIENTS BEFORE
BEING PROVIDED AS
THE CONVERSION RESULT.
TO ADC1H/L SFRs
THE CALIBRATION
REV. A–24–
Loading...
+ 56 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.