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
Specied for 3 V and 5 V Operation
Package and Temperature Range
52-Lead MQFP (14 mm 14 mm), –40C to +125C
56-Lead LFCSP (8 mm 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
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
use, nor for any infringements of patents or other rights of third parties
registered trademarks are the property of their respective companies.
GENERAL DESCRIPTION
The ADuC836 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 ltering 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 congured as
data memory to give up to 60 Kbytes of NV data memory in data
logging applications.
On-chip factory rmware supports in-circuit serial download and
debug modes (via UART), as well as single-pin emulation mode
via the EA pin. The ADuC836 is supported by a QuickStart™
development system featuring low cost software and hardware
development tools.
(AVDD = 2.7 V to 3.6 V or 4.75 V to 5.25 V, DVDD = 2.7 V to 3.6 V or 4.75 V to 5.25 V,
REFIN(+) = 2.5 V; REFIN(–) = AGND; AGND = DGND = 0 V; XTAL1/XTAL2 =
SPECIFICATIONS
32.768 kHz Crystal; all specications T
Parameter ADuC836 Test Conditions/Comments Unit
ADC SPECIFICATIONS
Conversion Rate 5.4 On Both Channels Hz min
105 Programmable in 0.732 ms Increments Hz max
Primary ADC
No Missing Codes2 16 20 Hz Update Rate Bits min
Resolution 13.5 Range = ±20 mV, 20 Hz Update Rate Bits p-p typ
16 Range = ±2.56 V, 20 Hz Update Rate Bits p-p typ
Output Noise See Tables X and XI in Output Noise Varies with Selected
ADuC836 ADC Description Update Rate and Gain Range
Integral Nonlinearity ±15 1 LSB
Offset Error3 ±3 V typ
Offset Error Drift ±10 nV/°C typ
Full-Scale Error4 ±10 Range = ±20 mV to ±640 mV V typ
±0.5 Range = ±1.28 V to ±2.56 V LSB typ
Gain Error Drift5 ±0.5 ppm/°C typ
ADC Range Matching ±2 AIN = 18 mV V typ
Power Supply Rejection (PSR) 95 AIN = 7.8 mV, Range = ±20 mV dBs typ
80 AIN = 1 V, Range = ±2.56 V dBs typ
Common-Mode DC Rejection
On AIN 95 At DC, AIN = 7.8 mV, Range = ±20 mV dBs typ
113 At DC, AIN = 1 V, Range = ±2.56 V dBs typ
On REFIN 125 At DC, AIN = 1 V, Range = ±2.56 V dBs typ
Common-Mode 50 Hz/60 Hz Rejection 20 Hz Update Rate
On AIN 95 50 Hz/60 Hz ±1 Hz, AIN = 7.8 mV, dBs typ
Range = ±20 mV
90 50 Hz/60 Hz ±1 Hz, AIN = 1 V, dBs typ
Range = ±2.56 V
On REFIN 90 50 Hz/60 Hz ±1 Hz, AIN = 1 V, dBs typ
Range = ±2.56 V
Normal Mode 50 Hz/60 Hz Rejection
On AIN 60 50 Hz/60 Hz ±1 Hz, 20 Hz Update Rate dBs typ
On REFIN 60 50 Hz/60 Hz ±1 Hz, 20 Hz Update Rate dBs typ
Auxiliary ADC
No Missing Codes2 16 Bits min
Resolution 16 Range = ±2.5 V, 20 Hz Update Rate Bits p-p typ
Output Noise See Table XII in ADuC836 Output Noise Varies with Selected
ADC Description Update Rate
Integral Nonlinearity ±15 ppm of FSR max
Offset Error3 –2 LSB typ
Offset Error Drift 1 V/°C typ
Full-Scale Error6 –2.5 LSB typ
Gain Error Drift5 ±0.5 ppm/°C typ
Power Supply Rejection (PSR) 80 AIN = 1 V, 20 Hz Update Rate dBs typ
Normal Mode 50 Hz/60 Hz Rejection
On AIN 60 50 Hz/60 Hz ±1 Hz dBs typ
On REFIN 60 50 Hz/60 Hz ±1 Hz, 20 Hz Update Rate dBs typ
DAC PERFORMANCE
DC Specications
Resolution 12 Bits
Relative Accuracy ±3 LSB typ
Differential Nonlinearity –1 Guaranteed 12-Bit Monotonic LSB max
Offset Error ±50 mV max
Gain Error8 ±1 AVDD Range % max
±1 V
AC Specications
Voltage Output Settling Time 15 Settling Time to 1 LSB of Final Value s typ
Digital-to-Analog Glitch Energy 10 1 LSB Change at Major Carry nVs typ
7
2, 7
1
to T
MIN
REF
, unless otherwise noted.)
MAX
ppm of FSR max
Range % typ
REV. A
–3–
ADuC836
ADuC836
–5–
REV. A
REV. A
SPECIFICATIONS (continued)
Parameter ADuC836 Test Conditions/Comments Unit
INTERNAL REFERENCE
ADC Reference
Reference Voltage 1.25 ± 1% Initial Tolerance @ 25°C, VDD = 5 V V min/max
Power Supply Rejection 45 dBs typ
Reference Tempco 100 ppm/°C typ
DAC Reference
Reference Voltage 2.5 ± 1% Initial Tolerance @ 25°C, VDD = 5 V V min/max
Power Supply Rejection 50 dBs typ
Reference Tempco ±100 ppm/°C typ
ANALOG INPUTS/REFERENCE INPUTS
Primary ADC
Differential Input Voltage Ranges
RN2, RN1, RN0 of ADC0CON Set to
Bipolar Mode (ADC0CON3 = 0) ±20 0 0 0 (Unipolar Mode 0 mV to 20 mV) mV
±40 0 0 1 (Unipolar Mode 0 mV to 40 mV) mV
±80 0 1 0 (Unipolar Mode 0 mV to 80 mV) mV
±160 0 1 1 (Unipolar Mode 0 mV to 160 mV) mV
±320 1 0 0 (Unipolar Mode 0 mV to 320 mV) mV
±640 1 0 1 (Unipolar Mode 0 mV to 640 mV) mV
±1.28 1 1 0 (Unipolar Mode 0 V to 1.28 V) V
±2.56 1 1 1 (Unipolar Mode 0 V to 2.56 V) V
Analog Input Current2 ±1 T
±5 T
Analog Input Current Drift ±5 T
±15 T
Absolute AIN Voltage Limits2 AGND + 100 mV V min
AVDD – 100 mV V max
Auxiliary ADC
Input Voltage Range
9, 10
0 to V
See Note 11
Average Analog Input Current 125 Input Current Will Vary with Input nA/V typ
Average Analog Input Current Drift2 ±2 Voltage on the Unbuffered Auxiliary ADC pA/V/°C typ
Absolute AIN Voltage Limits
AVDD + 30 mV V max
External Reference Inputs
REFIN(+) to REFIN(–) Range2 1 V min
AVDD V max
Average Reference Input Current 1 Both ADCs Enabled A/V typ
Average Reference Input Current Drift ±0.1 nA/V/°C typ
“NO Ext. REF” Trigger Voltage 0.3 NOXREF Bit Active if V
0.65 NOXREF Bit Inactive if V
ADC SYSTEM CALIBRATION
Full-Scale Calibration Limit 1.05 FS V max
Zero-Scale Calibration Limit –1.05 FS V min
Input Span 0.8 FS V min
2.1 FS V max
ANALOG (DAC) OUTPUT
Voltage Range 0 to V
0 to AVDD DACRN = 1 in DACCON SFR V typ
Resistive Load 10 From DAC Output to AGND k typ
Capacitive Load 100 From DAC Output to AGND pF typ
Output Impedance 0.5 typ
I
50 A typ
SINK
TEMPERATURE SENSOR
Accuracy ±2 °C typ
Thermal Impedance (JA) 90 MQFP Package °C/W typ
52 CSP Package (Base Floating)12 °C/W typ
9, 10
External Reference Voltage = 2.5 V
= 85°C nA max
MAX
= 125°C nA max
MAX
= 85°C pA/°C typ
MAX
= 125°C pA/°C typ
MAX
Unipolar Mode, for Bipolar Mode V
REF
2, 11
AGND – 30 mV V min
< 0.3 V V min
REF
> 0.65 V V max
REF
DACRN = 0 in DACCON SFR V typ
REF
–4–
ADuC836
REV. A
Parameter ADuC836 Test Conditions/Comments Unit
TRANSDUCER BURNOUT CURRENT SOURCES
AIN+ Current –100 AIN+ Is the Selected Positive Input nA typ
to the Primary ADC
AIN– Current +100 AIN– Is the Selected Negative Input nA typ
to the Auxiliary ADC
Initial Tolerance @ 25°C ±10 % typ
Drift 0.03 %/°C typ
EXCITATION CURRENT SOURCES
Output Current –200 Available from Each Current Source A typ
Initial Tolerance @ 25°C ±10 % typ
Drift 200 ppm/°C typ
Initial Current Matching @ 25°C ±1 Matching between Both Current Sources % typ
Drift Matching 20 ppm/°C typ
Line Regulation (AVDD) 1 AVDD = 5 V + 5% A/V typ
Load Regulation 0.1 A/V typ
Output Compliance2 AVDD – 0.6 V max
AGND V min
LOGIC INPUTS
All Inputs Except SCLOCK, RESET,
and XTAL1
V
INL
0.4 DVDD = 3 V V max
V
INH
SCLOCK and RESET Only
(Schmitt-Triggered Inputs)
VT+ 1.3/3 DVDD = 5 V V min/V max
0.95/2.5 DVDD = 3 V V min/V max
VT– 0.8/1.4 DVDD = 5 V V min/V max
0.4/1.1 DVDD = 3 V V min/V max
V
T+ – VT–
0.3/0.85 DVDD = 3 V V min/V max
Input Currents
Port 0, P1.2–P1.7, EA ±10 VIN = 0 V or VDD A max
SCLOCK, MOSI, MISO, SS13 –10 min, –40 max VIN = 0 V, DVDD = 5 V, Internal Pull-Up A min/A max
±10 VIN = VDD, DVDD = 5 V A max
RESET ±10 VIN = 0 V, DVDD = 5 V A max
35 min, 105 max VIN = VDD, DVDD = 5 V, A min/A max
Internal Pull-Down
P1.0, P1.1, Ports 2 and 3 ±10 VIN = VDD, DVDD = 5 V A max
–180 VIN = 2 V, DVDD = 5 V A min
–660 A max
–20 VIN = 450 mV, DVDD = 5V A min
–75 A max
Input Capacitance 5 All Digital Inputs pF typ
CRYSTAL OSCILLATOR (XTAL1 AND XTAL2)
Logic Inputs, XTAL1 Only
V
INL
0.4 DVDD = 3 V V max
V
INH
2.5 DVDD = 3 V V min
XTAL1 Input Capacitance 18 pF typ
XTAL2 Output Capacitance 18 pF typ
2
, Input Low Voltage 0.8 DVDD = 5 V V max
, Input High Voltage 2.0 V min
2
0.3/0.85 DVDD = 5 V V min/V max
2
, Input Low Voltage 0.8 DVDD = 5 V V max
, Input High Voltage 3.5 DVDD = 5 V V min
–5–
ADuC836
ADuC836
–7–
REV. A
REV. A
SPECIFICATIONS
(continued)
Parameter ADuC836 Test Conditions/Comments Unit
LOGIC OUTPUTS (Not Including XTAL2)
VOH, Output High Voltage 2.4 VDD = 5 V, I
2.4 VDD = 3 V, I
VOL, Output Low Voltage14 0.4 I
0.4 I
0.4 I
2
= 80 A V min
SOURCE
= 20 A V min
SOURCE
= 8 mA, SCLOCK, MOSI/SDATA V max
SINK
= 10 mA, P1.0 and P1.1 V max
SINK
= 1.6 mA, All Other Outputs V max
SINK
Floating State Leakage Current2 ±10 A max
Floating State Output Capacitance 5 pF typ
POWER SUPPLY MONITOR (PSM)
AVDD Trip Point Selection Range 2.63 Four Trip Points Selectable in This Range V min
4.63 Programmed via TPA1–0 in PSMCON V max
AVDD Power Supply Trip Point Accuracy ±3.0 T
±4.0 T
= 85°C % max
MAX
= 125°C % max
MAX
DVDD Trip Point Selection Range 2.63 Four Trip Points Selectable in This Range V min
4.63 Programmed via TPD1–0 in PSMCON V max
DVDD Power Supply Trip Point Accuracy ±3.0 T
±4.0 T
= 85C % max
MAX
= 125C % max
MAX
WATCHDOG TIMER (WDT)
Timeout Period 0 Nine Timeout Periods in This Range ms min
2000 Programmed via PRE3–0 in WDCON ms max
MCU CORE CLOCK RATE Clock Rate Generated via On-Chip PLL
MCU Clock Rate2 98.3 Programmable via CD2–0 Bits in kHz min
PLLCON SFR
12.58 MHz max
START-UP TIME
At Power-On 300 ms typ
After External RESET in Normal Mode 3 ms typ
After WDT Reset in Normal Mode 3 Controlled via WDCON SFR ms typ
From Idle Mode 10 s typ
From Power-Down Mode
Oscillator Running OSC_PD Bit = 0 in PLLCON SFR
Wake-Up with INT0 Interrupt 20 s typ
Wake-Up with SPI Interrupt 20 s typ
Wake-Up with TIC Interrupt 20 s typ
Wake-Up with External RESET 3 ms typ
Oscillator Powered Down OSC_PD Bit = 1 in PLLCON SFR
Wake-Up with INT0 Interrupt 20 s typ
Wake-Up with SPI Interrupt 20 s typ
Wake-Up with External RESET 5 ms typ
FLASH/EE MEMORY RELIABILITY CHARACTERISTICS
15
Endurance16 100,000 Cycles min
Data Retention17 100 Years min
–6–
ADuC836
REV. A
Parameter ADuC836 Test Conditions/Comments Unit
POWER REQUIREMENTS DVDD and AVDD Can Be Set Independently
Power Supply Voltages
AVDD, 3 V Nominal Operation 2.7 V min
3.6 V max
AVDD, 5 V Nominal Operation 4.75 V min
5.25 V max
DVDD, 3 V Nominal Operation 2.7 V min
3.6 V max
DVDD, 5 V Nominal Operation 4.75 V min
5.25 V max
5 V POWER CONSUMPTION DVDD = 4.75 V to 5.25 V, AVDD = 5.25 V
Power Supply Currents Normal Mode
DVDD Current 4 Core CLK = 1.57 MHz mA max
DVDD Current 13 Core CLK = 12.58MHz mA typ
16 Core CLK = 12.58MHz mA max
AVDD Current 180 Core CLK = 1.57 MHz or 12.58 MHz A max
Power Supply Currents Power-Down Mode
DVDD Current 53 T
100 T
DVDD Current 30 T
80 T
AVDD Current 1 T
3 T
Typical Additional Power Supply Currents Core CLK = 1.57 MHz
(AIDD and DIDD)
PSM Peripheral 50 A typ
Primary ADC 1 mA typ
Auxiliary ADC 500 A typ
DAC 150 A typ
Dual Current Sources 400 A typ
3 V POWER CONSUMPTION DVDD = 2.7 V to 3.6 V
Power Supply Currents Normal Mode
DVDD Current 2.3 Core CLK = 1.57 MHz mA max
DVDD Current 8 Core CLK = 12.58MHz mA typ
10 Core CLK = 12.58MHz mA max
AVDD Current 180 AVDD = 5.25 V, Core CLK = 1.57 MHz
or 12.58 MHz A max
Power Supply Currents Power-Down Mode
DVDD Current 20 T
40 T
DVDD Current 10 Osc. Off A typ
AVDD Current 1 AVDD = 5.25 V; T
Osc. On or Osc. Off A max
3 AVDD = 5.25 V; T
Osc. On or Osc. Off A max
18, 19
18, 19
18, 19
Core CLK = 1.57 MHz or 12.58 MHz
= 85°C; Osc. On, TIC On A max
MAX
= 125°C; Osc. On, TIC On A max
MAX
= 85°C; Osc. Off A max
MAX
= 125°C; Osc. Off A max
MAX
= 85°C; Osc. On or Osc. Off A max
MAX
= 125°C; Osc. On or Osc. Off A max
MAX
18, 19
Core CLK = 1.57 MHz or 12.58 MHz
= 85°C; Osc. On, TIC On A max
MAX
= 125°C; Osc. On, TIC On A max
MAX
= 85°C;
MAX
= 125°C;
MAX
–7–
ADuC836
ADuC836
–9–
REV. A
NOTES
1 Temperature range for ADuC836BS (MQFP package) is –40°C to +125°C. Temperature range for ADuC836BCP (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 signicantly
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 specications are calculated using: reduced code range of 48 to 4095, 0 to V
; reduced code range of 100 to 3950, 0 to VDD.
REF
8 Gain Error is a measurement of the span error of the DAC.
9 In general terms, the bipolar input voltage range to the primary ADC is given by Range
V
= REFIN(+) to REFIN(–) voltage and V
REF
V
= 2.5 V and RN2, RN1, RN0 = 1, 1, 0 the Range
REF
10
1.25 V is used as the reference voltage to the auxiliary 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 ADuC836BCP (CSP package) has been qualied and tested with the base of the CSP package oating.
13
Pins congured in SPI mode, pins congured as digital inputs during this test.
14
Pins congured in I2C mode only.
15
Flash/EE Memory Reliability Characteristics apply to both the Flash/EE program memor y and Flash/EE data memory.
16
Endurance is qualied 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 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.6 eV will
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
= ±(V
ADC
is selected. RN = decimal equivalent of RN2, RN1, RN0, e.g.,
REF
2RN)/125, where:
REF
derate with junction temperature as shown in Figure 16 in the Flash/EE Memory section.
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.
Specications subject to change without notice.
–8–
REV. A
ADuC836
ABSOLUTE MAXIMUM RATINGS
(TA= 25°C, unless otherwise noted.)
1
AVDD to AGND . . . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
AVDD to DGND . . . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DVDD to AGND . . . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DVDD to DGND . . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
AGND to DGND2 . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +0.3 V
AVDD to DVDD . . . . . . . . . . . . . . . . . . . . . . . . . . . . –2 V to +5 V
Analog Input Voltage to AGND3 . . . . . . –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
specication 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 ADuC836.
3
Applies to P1.2 to P1.7 pins operating in analog or digital input modes.
PIN CONFIGURATIONS
52-Lead MQFP
56-Lead LFCSP
ORDERING GUIDE
Model Temperature Range Package Description Package Option
ADuC836BS –40°C to +125°C 52-Lead Metric Quad Flat Package S-52
ADuC836BCP –40°C to +85°C 56-Lead Lead Frame Chip Scale Package CP-56
EVAL-ADuC836QS QuickStart 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 ADuC836
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–
ADuC836
ADuC836
–11–
PLL WITH PROG.
CLOCK DIVIDER
WATCHDOG
TIMER
2304 BYTES
USER RAM
POWER SUPPLY
MONITOR
AIN3
AIN4
AIN5
AIN1
AIN2
REFIN
REFIN
IEXC 2
IEXC 1
AIN
MUX
TEMP
SENSOR
AIN
MUX
BAND GAP
REFERENCE
V
REF
DETECT
CURRENT
SOURCE
MUX
200A
200A
5
AV
DD
6
AGND
20
21
DGND
35
26
SCLOCK
27
MOSI/SDATA
14
MISO
13
SS
XTAL1
P0.0 (AD0)
P0.1 (AD1
)
P0.3 (AD3)
P0.4 (AD4)P0.5 (AD5)P0.6 (AD6)P0.7 (AD7
)
43
444546
49
50
51
52
P0.2 (AD2)
BUF
ADuC836
AUXILIARY ADC
16-BIT
- ADC
ADC CONTROL
AND
CALIBRATION
PGA
PRIMARY ADC
16-BIT
- ADC
ADC
CONTROL
AND
CALIBRATION
3
22
T0
23
T1
2
T2EX
T2
1
INT0
INT1
DAC
40
EA
41
PSEN
17
TXD
16
RXD
4 KBYTES DATA
FLASH/EE
62 KBYTES PROGRAM/
FLASH/EE
UART
SERIAL PORT
8052
MCU
CORE
DOWNLOADER
DEBUGGER
BUF
SINGLE-PIN
EMULATOR
SPI/I2C SERIAL
INTERFACE
16-BIT
COUNTER
TIMERS
WAKE-UP/
RTC TIME
R
XTAL2
33
OSC
P1.0 (T2)
P1.1 (T2EX
)
P1.2 (DAC/IEXC 1)
P1.4 (AIN1
)
P1.5 (AIN2
)
P1.6 (AIN3)P1.7 (AIN4/DAC
)
P1.3 (AIN5/IEXC 2)
1
2
3
4
9
10
11
12
P2.0 (A8/ A16 )
P2.1 (A9/A17
)
P2.2 (A10 /A1 8)
P2.3 (A11/A19
)
P2.4 (A12 /A2 0
)
P2.5 (A13 /A2 1
)
P2.6 (A14 /A2 2
)
P2.7 (A15 /A2 3)
28
29
30 31
36
39
38
37
16
P3.0 (RXD)
17
P3.1 (TXD)18P3.2 (INT0)19P3.3 (INT1)
22
P3.4 (T0/PWMCLK)
23
P3.5 (T1)
24
25
P3.7 (RD)
P3.6
(WR)
12-BIT
VOLTAGE
OUTPUT DAC
2 DATA POINTERS
11-BIT STACK POINTER
PWM0
PWM1
PWM
CONTROL
1
2
32
42
ALE
15
RESET
48
DV
DD
34
47
UART
TIMER
*PIN NUMBERS REFER TO THE 52-LEAD MQFP PACKAGE
SHADED AREAS REPRESENT THE NEW FEATURES OF THE ADuC836 OVER THE ADuC816
1, 2 56, 1 P1.0/P1.1 I/O P1.0 and P1.1 can function as digital inputs or digital outputs and have a pull-up
PIN FUNCTION DESCRIPTIONS
conguration as described for Port 3. P1.0 and P1.1 have an increased current drive
P1.0/T2/PWM0 I/O P1.0 and P1.1 also have various secondary functions as described below. P1.0 can be
sink capability of 10 mA.
used to provide a clock input to Timer 2. When enabled, Counter 2 is incremented
P1.1/T2EX/PWM1 I/O P1.1 can also be used to provide a control input to Timer 2. When enabled, a PWM1
3–4, 2–3, P1.2–P1.7 I Port 1.2 to Port 1.7 have no digital output driver; they can function as a digital input
9–12 11–14 for which 0 must be written to the port bit. As a digital input, these pins must be
driven high or low externally. These pins also have the following analog functionality:
P1.2/DAC/IEXC1 I/O The voltage output from the DAC or one or both current sources (200 µA or
2 200 µA) can be congured to appear at this pin.
P1.3/AIN5/IEXC2 I/O Auxiliary ADC input or one or both current sources can be congured at this pin.
in response to a negative transition on the T2 input pin. If the PWM is enabled, the
PWM0 output will appear at this pin.
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.
P1.4/AIN1 I Primary ADC, Positive Analog Input
P1.5/AIN2 I Primary ADC, Negative Analog Input
P1.6/AIN3 I Auxiliary ADC Input or Muxed Primary ADC, Positive Analog Input
P1.7/AIN4/DAC I/O Auxiliary ADC Input or Muxed Primary ADC, Negative Analog Input. The voltage
output from the DAC can also be congured to appear at this pin.
5 4, 5 AVDD S Analog Supply Voltage, 3 V or 5 V
6 6, 7, 8 AGND S Analog Ground. Ground reference pin for the analog circuitry.
7 9 REFIN(–) I Reference Input, Negative Terminal
8 10 REFIN(+) I Reference Input, Positive Terminal
13 15 SS I Slave Select Input for the SPI Interface. A weak pull-up is present on this pin.
14 16 MISO I/O Master Input/Slave Output for the SPI Interface. A weak pull-up is present on this input pin.
15 17 RESET I Reset Input. A high level on this pin for 16 core clock cycles while the oscillator is
running resets the device. There is an internal weak pull-down and a Schmitt trigger
input stage on this pin.
16–19, 18–21, P3.0–P3.7 I/O P3.0–P3.7 are bidirectional port pins with internal pull-up resistors. Port 3 pins that
22–25 24–27 have 1s written to them are pulled high by the internal pull-up resistors, and in that
state can be used 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:
P3.0/RXD I/O Receiver Data for UART Serial Port
P3.1/TXD I/O Transmitter Data for UART Serial Port
P3.2/INT0 I/O External Interrupt 0. This pin can also be used as a gate control input to Timer 0.
P3.3/INT1 I/O External Interrupt 1. This pin can also be used as a gate control input to Timer 1.
P3.4/T0/PWMCLK I/O Timer/Counter 0 External Input. If the PWM is enabled, an external clock may be
input at this pin.
P3.5/T1 I/O Timer/Counter 1 External Input
P3.6/WR I/O External Data Memory Write Strobe. Latches the data byte from Port 0 into an
external data memory.
P3.7/RD I/O External Data Memory Read Strobe. Enables the data from an external data memory
to Port 0.
20, 34, 48 22, 36, 51, DVDD S Digital Supply, 3 V or 5 V
21, 35, 47 23, 37, 38, DGND S Digital Ground. Ground reference point for the digital circuitry.
50
26 SCLOCK I/O Serial Interface Clock for either the I2C or SPI Interface. As an input, this pin is a
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.
27 MOSI/SDATA I/O Serial Data I/O for the I2C 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–31 30–33 P2.0–P2.7 I/O Port 2 is a bidirectional port with internal pull-up resistors. Port 2 pins that have 1s
36–39 39–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.
32 34 XTAL1 I Input to the Crystal Oscillator Inverter
33 35 XTAL2 O Output from the Crystal Oscillator Inverter. (See the Hardware Design Considerations
40 43 EA I/O External 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.
41 44 PSEN O Program 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.
42 45 ALE O Address 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–46 46–49 P0.0–P0.7 I/O These pins are part of Port 0, which is an 8-bit, open-drain, bidirectional
49–52 52–55 (AD0–AD3) I/O port. Port 0 pins that have 1s written to them oat 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 data bus 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.
–12–
REV. A
ADuC836
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
EXTERNAL
DATA
MEMORY
SPACE
(24-BIT
ADDRESS
SPACE)
000000H
FFFFFFH
CFG836.0 = 0
EXTERNAL
DATA
MEMORY
SPACE
(24-BIT
ADDRESS
SPACE)
000000H
FFFFFFH
CFG836.0 = 1
0007FFH
000800H
2 KBYTES
ON-CHIP
XRAM
MEMORY ORGANIZATION
The ADuC836 contains four different memory blocks:
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 ADuC836 provides 62 Kbytes of Flash/EE program
ory 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 ADuC816, where code execution can overow from the
internal code space to external code space once the PC becomes
greater than 1FFFH, the ADuC836 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 rmware 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.
56
Kbytes
of the program memory can be reprogrammed during
runtime; thus the code space can be upgraded in the eld
user dened protocol or it can be used as a data
is discussed in more detail in the Flash/EE
Memory section.
using a
memory. This
(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 in the Flash/EE Memory section.
(3) General-Purpose RAM
The general-purpose RAM is divided into two separate memories:
the upper and 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 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.
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 ADuC836 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
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 location 08H, which is also the rst 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.
mem-
Figure 2. Lower 128 Bytes of Internal Data Memory
(4) Internal XRAM
The ADuC836 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 Kbytes of the external address space if the CFG836.0
bit is set. Otherwise, access to the external data memory will occur
just like a standard 8051.
Even with the CFG836.0 bit set, access to the external XRAM
will occur once the 24-bit DPTR is greater than 0007FFH.
Figure 3. Internal and External XRAM
–13–
ADuC836
ADuC836
–15–
UPPER 1792
BYTES OF
ON-CHIP XRAM
(DATA + STACK
FOR EXSP = 1,
DATA ONLY
FOR EXSP = 0)
256 BYTES OF
ON-CHIP DATA
RAM
(DATA +
STACK)
LOWER 256
BYTES OF
ON-CHIP XRAM
(DATA ONLY)
00H
FFH
00H
07FFH
CFG836.7 = 0
CFG836.7 = 1
100H
128-BYTE
SPECIAL
FUNCTION
REGISTER
AREA
62 KBYTE ELECTRICALLY
REPROGRAMMABLE
NONVOLATILE FLASH/EE
PROGRAM MEMORY
8051
COMPATIBLE
CORE
OTHER ON-CHIP
PERIPHERALS
TEMP SENSOR
CURRENT SOURCES
12-BIT DAC
SERIAL I/O
WDT, PSM
TIC, PLL
DUAL - ADCs
4 KBYTE
ELECTRICALLY
REPROGRAMMABLE
NONVOLATILE
FLASH/EE DATA
MEMORY
256 BYTES RAM
2K XRAM
REV. A
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 congured
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 ADuC836
however, it is possible (by setting CFG836.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.
Figure 4. Extended Stack Pointer Operation
External Data Memory (External XRAM)
Just like a standard 8051 compatible core, the ADuC836 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 ADuC836, 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
ADuC836 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
ADuC836 via the SFR area is shown in Figure 5.
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, conguration, and data registers that
provide an interface between the CPU and all on-chip peripherals.
Accumulator SFR (ACC)
ACC is the Accumulator Register, which is used for math
operations including addition, subtraction, integer multiplication,
and division, and Boolean bit manipulations. The mnemonics for
accumulator-specic 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 scratch pad 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 ADuC836 supports dual data pointers. For more information,
refer to the Dual Data Pointer section.
–14–
REV. A
ADuC836
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 Regis
is incremented before data is stored, during PUSH and
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 ADuC836 offers an extended 11-bit
stack pointer. The three extra bits that 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 reecting the current status
of the CPU as detailed in Table I.
SFR Address D0H
Power-On Default Value 00H
Bit Addressable Yes
Table I. PSW SFR Bit Designations
Bit Name Description
7 CY Carry Flag
6 AC Auxiliary Carry Flag
5 F0 General-Purpose Flag
4 RS1 Register Bank Select Bits
3 RS0 RS1 RS0 Selected Bank
0 0 0
0 1 1
1 0 2
1 1 3
2 OV Overow Flag
1 F1 General-Purpose Flag
0 P Parity Bit
Power Control SFR (PCON)
The PCON SFR contains bits for power saving options and
general-purpose status ags, as shown in Table II.
The TIC (Wake-Up/RTC timer) can be used to accurately wake
up the ADuC836 from power-down at regular intervals. To use
the TIC to wake up the ADuC836 from power-down, the OSC_PD
bit in the PLLCON SFR must be clear and the TIC must be
enabled.
SFR Address 87H
Power-On Default Value 00H
Bit Addressable No
ter
CALL
Table II. PCON SFR Bit Designations
Bit Name Description
7 SMOD Double UART Baud Rate
6 SERIPD SPI Power-Down Interrupt Enable
5 INT0PD INT0 Power-Down Interrupt Enable
4 ALEOFF Disable ALE Output
3 GF1 General-Purpose Flag Bit
2 GF0 General-Purpose Flag Bit
1 PD Power-Down Mode Enable
0 IDL Idle Mode Enable
ADuC836 CONFIGURATION SFR (CFG836)
The CFG836 SFR contains the necessary bits to congure the
internal XRAM and the extended SP. By default it congures
the user into 8051 mode, i.e., extended SP is disabled, internal
XRAM is disabled.
SFR Address AFH
Power-On Default Value 00H
Bit Addressable No
Table III. CFG836 SFR Bit Designations
Bit Name Description
7 EXSP 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.
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
0 XRAMEN XRAM Enable Bit. If this bit is set, the in-
ternal 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–
ADuC836
ADuC836
–17–
SPICON
F8H
04H
RESERVED RESERVED
RESERVEDRESERVED
RESERVEDRESERVED
NOT USEDRESERVEDRESERVEDRESERVED
RESERVEDRESERVED
RESERVEDRESERVED
RESERVED
RESERVED
RESERVED RESERVED
RESERVED
RESERVED RESERVED
RESERVEDRESERVED
NOT USED
RESERVED
RESERVED
RESERVED RESERVED
RESERVED
DACL
FBH
00H
DACH
FCH
00H
DACCON
FDH
00H
B
F0H
00H
I2CCON
E8H
00H
ACC
E0H
00H
ADCSTAT
D8H
00H
PSW
D0H
00H
T2CON
00H
WDCON
C0H
10H
IP
B8H
00H
P3
B0H
FFH
IE
A8H
00H
P2
A0H
FFH
SCON
98H
00H
P1
90H
FFH
TCON
88H
00H
P0
80H
FFH
ADCMODE
D1H
00H
ECON
B9H
00H
IEIP2
A9H
A0
H
TIMECON
A1H
00H
SBUF
99H
00H
TMOD
89H
00H
SP
81H
07H
EAH
55H
OF0M
E2H
00H
ADC0M
DAH
00H
ADC0CON
D2H
07H
RCAP2L
CAH
00H
CHIPID
C2H
2H
HTHSEC
A2H
00H
TL0
8AH
00H
DPL
82H
00H
EBH
53H
OF0H
E3H
80H
ADC0H
DBH
00H
ADC1CON
D3H
00H
RCAP2H
CBH
00H
SEC
A3H
00H
TL1
8BH
00H
DPH
83H
00H
RESERVED
RESERVEDRESERVEDRESERVEDRESERVED
GN1L
ECH
9A
H
OF1L
E4H
00H
ADC1L
DCH
00H
SF
D4H
45H
TL2
CCH
00H
EDATA1
BCH
00H
MIN
A4H
00H
TH0
8CH
00H
DPP
84H
00H
RESERVED
GN1H
EDH
59H
OF1H
E5H
80H
ADC1H
DDH
00H
ICON
D5H
00H
TH2
CDH
00H
EDATA2
BDH
00H
HOUR
A5H
00H
TH1
8DH
00H
RESERVED
EADRL
C6H
00H
EDATA3
BEH
00H
INTVAL
A6H
00H
SPIDAT
F7H
00H
PSMCON
DFH
DE
H
PLLCON
D7H
03H
EDATA4
BFH
00H
PCON
87H
00H
GN0MGN0H
C8H
PWMCONCFG836
DPCO
N
SPH
PWM0LPWM0H
PWM1LPWM1H
B1H
00H
B4H
00H
B3H
00H
B2
H
00H
B7
H
00H
AF
H
00H
AE
H
00H
A7
H
00H
EADRH
C7H
00H
T3CON
9EH
00H
RESERVED
RESERVED
T3FD
9DH
00H
RESERVEDRESERVEDRESERVEDRESERVEDRESERVEDRESERVED
RESERVED
RESERVED
2222
1111
ISPI
FFH 0
WCOL
FEH 0
SPE
FDH 0
SPIM
FCH 0
CPOL
FBH 0
CPHA
FAH
SPR1
F9H 0
SPR0
F8H 0
BITS
F7H 0 F6H 0 F5H 0 F4H 0 F3H 0 F2HF1H 0 F0H 0
BITS
MDO
EFH 0 EEH 0 EDH 0 ECH 0
I2CM
EBH 0 EAHE9H 0 E8H 0
BITS
E7H 0 E6H 0 E5H 0 E4H 0 E3H 0 E2HE1H 0 E0H 0
BITS
RDY0
DFH 0
RDY1
DEH 0
CAL
DDH 0
NOXREF
DCH 0
ERR0
DBH 0
ERR1
DAHD9H 0 D8H 0
BITS
CY
D7H 0ACD6H 0F0D5H 0
RSI
D4H 0
RS0
D3H 0OVD2HFID1H 0PD0H 0
BITS
TF2
CFH 0
EXF2
CEH 0
RCLK
CDH 0
TCLK
CCH 0
EXEN2
CBH 0
TR2
CAH
CNT2
C9H 0
CAP2
C8H 0
BITS
PRE2
C7H 0
PRE1
C6H 0
PRE0
C5H 0 C4H 1
WDIR
C3H 0
WDS
C2H
WDE
C1H 0
WDWR
C0H 0
BITS
BFH 0
PADC
BEH 0
PT2
BDH 0PSBCH 0
PT1
BBH 0
PX1
BAH
PT0
B9H 0
PX0
B8H 0
BITS
RD
B7H 1WRB6H 1T1B5H 1T0B4H 1
INT1
B3H 1
INT0
B2H
TXD
B1H 1
RXD
B0H 1
BITS
EA
AFH
EADC
AEH
ET2
ADHESACH 0
ET1
ABH 0
EX1
AAH
ET0
A9H 0
EX0
A8H 0
BITS
A7HA6HA5H 1 A4H 1 A3H 1 A2HA1H 1 A0H 1
BITS
SM0
9FH 0
SM1
9EH 0
SM2
9DH 0
REN
9CH 0
TB8
9BH 0
RB8
9AHT199H 0R198H 0
BITS
97H 1 96H 1 95H 1 94H 1 93H 1 92H
T2EX
91H 1T290H 1
BITS
TF1
8FH 0
TR1
8EH 0
TF0
8DH 0
TR0
8CH 0
IE1
8BH 0
IT1
8AH
IE0
89H 0
IT0
88H 0
BITS
87H 1 86H 1 85H 1 84H 1 83H 1 82H81H 1 80H 1
BITS
1
1
0
1
0
1
1
0
0
0
0
0
0
0
PRE3
000
0
11
MDEMCOMDI
I2CRS I2CTXI2CI
IE0
89H
0
IT0
88H
0
TCON
88H 00H
BIT MNEMONIC
BIT BIT ADDRESS
MNEMONI
C
RESET DEFAULT VALUE
SFR ADDRESS
THESE BITS ARE CONTAINED IN THIS BYTE.
RESET DEFAUL
T
BIT VALU
E
SFR MAP KEY:
SFR NOTE:
SFRs WHOSE ADDRESSES END IN 0H OR 8H ARE BIT ADDRESSABLE.
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.
RESERVED
RESERVED
RESERVED
REV. A
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
Figure 6. Special Function Register Locations and Their Reset Default Values
not implemented, i.e., no register exists at this location. If an
unoccupied location is read, an unspecied value is returned.
SFR locations that are reserved for future use are shaded
(RESERVED) and should not be accessed by user software.
–16–
REV. A
ADuC836
ADC SFR INTERFACE
Both ADCs are controlled and congured via a number of SFRs that are summarized here and described in more detail in the
following sections.
ADCSTAT ADC Status Register. Holds general status of the
primary and auxiliary ADCs.
ADCMODE ADC Mode Register. Controls general modes of
operation for primary and auxiliary ADCs
ADC0CON Primary ADC Control Register. Controls specic
conguration of primary ADC.
ADC1CON Auxiliary ADC Control Register. Controls
specic conguration of auxiliary ADC.
SF Sinc Filter Register. Congures the decimation
factor for the Sinc3 lter and thus the primary
and auxiliary ADC update rates.
ICON Current Source Control Register. Allows the user
to control of the various on-chip current source
options.
ADCSTAT (ADC Status Register)
This SFR reects the status of both ADCs including data ready, calibration, and various (ADC related) error and warning conditions
such as reference detect and conversion overow/underow ags.
SFR Address D8H
Power-On Default Value 00H
Bit Addressable Yes
ADC0M/H Primary ADC 16-bit conversion result is held in
GN1L/H Auxiliary ADC 16-bit Gain Calibration Coefcient
Auxiliary ADC 16-bit conversion result is held
these two 8-bit registers.
is held in these two 8-bit registers.
is held in these two 8-bit registers.
Coefcient
is held in these two 8-bit registers.
is held in these two 8-bit registers.
in
Table IV. ADCSTAT SFR Bit Designations
Bit Name Description
7 RDY0 Ready Bit for Primary ADC.
Set by hardware on completion of ADC conversion or calibration cycle.
Cleared directly by the user or indirectly by writing 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.
6 RDY1 Ready Bit for Auxiliary ADC. Same denition as RDY0 referred to the auxiliary ADC.
5 CAL Calibration 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.
4 NOXREF No External Reference Bit (only active if primary or auxiliary ADC is active).
Set to indicate that one or both of the REFIN pins is oating or the applied voltage is below a specied threshold.
When set, conversion results are clamped to all ones, if using external reference.
Cleared to indicate valid V
3 ERR0 Primary 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 ags 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.
2 ERR1 Auxiliary ADC Error Bit. Same denition as ERR0 referred to the auxiliary ADC.
1 ––– Reserved for Future Use
0 ––– Reserved for Future Use
REF
.
REV. A
–17–
ADuC836
ADuC836
–19–
REV. A
ADCMODE (ADC Mode Register)
Used to control the operational mode of both ADCs.
SFR Address D1H
Power-On Default Value 00H
Bit Addressable No
Table V. ADCMODE SFR Bit Designations
Bit Name Description
7 ––– Reserved for Future Use
6 ––– Reserved for Future Use
5 ADC0EN Primary 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.
4 ADC1EN Auxiliary 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
2 MD2 Primary and Auxiliary ADC Mode bits.
1 MD1 These bits select the operational mode of the enabled ADC as follows:
0 MD0 MD2 MD1 MD0
0 0 0 ADC Power-Down Mode (Power-On Default)
0 0 1 Idle Mode. The ADC lter and modulator are held in a reset state although the
modulator clocks are still provided.
0 1 0 Single Conversion Mode. A single conversion is performed on the enabled ADC.
On completion of the conversion, the ADC data registers (ADC0H/M and/or ADC1H/L)
are updated, the relevant ags in the ADCSTAT SFR are written, and power-down is
re-entered with the MD2–MD0 accordingly being written to 000.
0 1 1 Continuous Conversion. The ADC data registers are regularly updated at the selected
update rate (see SF Register).
1 0 0 Internal Zero-Scale Calibration. Internal short automatically connected to the enabled
ADC input(s).
1 0 1 Internal Full-Scale Calibration. Internal or external V
(as determined by XREF0
REF
and XREF1 bits in ADC0/1CON) is automatically connected to the enabled ADC
input(s) for this calibration.
1 1 0 System 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.
1 1 1 System Full-Scale Calibration. User should connect system full-scale input to the
enabled ADC input(s) as selected by the 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.)
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 rst 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.
–18–
REV. A
ADuC836
ADC0CON (Primary ADC Control Register) and ADC1CON (Auxiliary ADC Control Register)
The ADC0CON and ADC1CON SFRs are used to congure the primary and auxiliary ADC for reference and channel selection,
unipolar or bipolar coding and, in the case of the primary ADC, range (the auxiliary ADC operates on a xed input range of ±V
ADC0CON Primary ADC Control SFR
SFR Address D2H
Power-On Default Value 07H
Bit Addressable No
Table VI. ADC0CON SFR Bit Designations
ADC1CON Auxiliary ADC Control SFR
SFR Address D3H
Power-On Default Value 00H
Bit Addressable No
Bit Name Description
7 ––– Reserved for Future Use
6 XREF0 Primary 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
5 CH1 Primary ADC Channel Selection Bits.
4 CH0 Written 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.
2 RN2 Primary ADC Range Bits.
1 RN1 Written by the user to select the primary ADC input range as follows:
0 RN0 RN2 RN1 RN0 Selected Primary ADC Input Range (V
= 2.5 V)
REF
0 0 0 ±20 mV (0 mV–20 mV in Unipolar Mode)
0 0 1 ±40 mV (0 mV–40 mV in Unipolar Mode)
0 1 0 ±80 mV (0 mV–80 mV in Unipolar Mode)
0 1 1 ±160 mV (0 mV–160 mV in Unipolar Mode)
1 0 0 ±320 mV (0 mV–320 mV in Unipolar Mode)
1 0 1 ±640 mV (0 mV–640 mV in Unipolar Mode)
1 1 0 ±1.28 V (0 V–1.28 V in Unipolar Mode)
1 1 1 ±2.56 V (0 V–2.56 V in Unipolar Mode)
REF
).
Table VII. ADC1CON SFR Bit Designations
Bit Name Description
7 ––– Reserved for Future Use
6 XREF1 Auxiliary 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.
5 ACH1 Auxiliary ADC Channel Selection Bits.
4 ACH0 Written by the user to select the single-ended input pins used to drive the auxiliary ADC as follows:
ACH1 ACH0 Positive Input Negative Input
0 0 AIN3 AGND
0 1 AIN4 AGND
1 0 Temp Sensor AGND (Temp Sensor routed to the ADC input)
1 1 AIN5 AGND
3 UNI1 Auxiliary 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–
ADuC836
ADuC836
–21–
REV. A
ADC0H/ADC0M (Primary ADC Conversion Result Registers)
These two 8-bit registers hold the 16-bit conversion result from the primary ADC.
SFR Address ADC0H High Data Byte DBH
ADC0M Middle Data Byte DAH
Power-On Default Value 00H ADC0H, ADC0M
Bit Addressable No ADC0H, ADC0M
ADC1H/ADC1L (Auxiliary ADC Conversion Result Registers)
These two 8-bit registers hold the 16-bit conversion result from the auxiliary ADC.
SFR Address ADC1H High Data Byte DDH
ADC1L Low Data Byte DCH
Power-On Default Value 00H ADC1H, ADC1L
Bit Addressable No ADC1H, ADC1L
These two 8-bit registers hold the 16-bit offset calibration coefcient for the primary ADC. These registers are congured 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 Address OF0H Primary ADC Offset Coefcient High Byte E3H
OF0M Primary ADC Offset Coefcient Middle Byte E2H
Power-On Default Value 80000H OF0H, OF0M respectively
Bit Addressable No OF0H, OF0M
These two 8-bit registers hold the 16-bit offset calibration coefcient for the auxiliary ADC. These registers are congured 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 Address OF1H Auxiliary ADC Offset Coefcient High Byte E5H
OF1L Auxiliary ADC Offset Coefcient Low Byte E4H
Power-On Default Value 8000H OF1H and OF1L, respectively
Bit Addressable No OF1H, OF1L
GN0H/GN0M (Primary ADC Gain Calibration Registers*)
These two 8-bit registers hold the 16-bit gain calibration coefcient for the primary ADC. These registers are congured at power-on
with a factory-calculated internal full-scale calibration coefcient. Every device will have an individual coefcient. 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 Address GN0H Primary ADC Gain Coefcient High Byte EBH
GN0M Primary ADC Gain Coefcient Middle Byte EAH
Power-On Default Value Congured at Factory Final Test; See Notes above.
Bit Addressable No GN0H, GN0M
GN1H/GN1L (Auxiliary ADC Gain Calibration Registers*)
These two 8-bit registers hold the 16-bit gain calibration coefcient for the auxiliary ADC. These registers are congured at power-on
with a factory-calculated internal full-scale calibration coefcient. Every device will have an individual coefcient. 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 Address GN1H Auxiliary ADC Gain Coefcient High Byte EDH
GN1L Auxiliary ADC Gain Coefcient Low Byte ECH
Power-On Default Value Congured at Factory Final Test; see notes above.
Bit Addressable No GN1H, GN1L
*These registers can be overwritten by user software only if Mode bits MD0–2 (ADCMODE SFR) are zero.
–20–
REV. A
ADuC836
f
SF
f
ADCMOD
=×
×
×
1
318
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:
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 rst conversion result in Continuous
Conversion mode, is 2 t
. As mentioned earlier, all calibra-
ADC
tion 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.
where: f
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
version times (t
The icon SFR is used to control and congure the various excitation and burnout current source options available on-chip.
SFR Address D5H
Power-On Default Value 00H
Bit Addressable No
Table IX. ICON SFR Bit Designations
Bit Name Description
7 ––– Reserved for Future Use
6 BO Burnout Current Enable Bit.
Set by user to enable both transducer burnout current sources in the primary ADC signal paths.
Cleared by the user to disable both transducer burnout current sources.
5 ADC1IC Auxiliary ADC Current Correction Bit. Set by user to allow scaling of the auxiliary ADC by an internal current
source calibration word.
4 ADC0IC Primary ADC Current Correction Bit.
Set by user to allow scaling of the primary ADC by an internal current source calibration word.
3 I2PIN* 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).
2 I1PIN* 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).
1 I2EN Current 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).
0 I1EN Current 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–
ADuC836
ADuC836
–23–
REV. A
PRIMARY AND AUXILIARY ADC NOISE PERFORMANCE
Tables X, XI, and XII show the output rms noise in mV 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 selected
Typical Output RMS Noise vs. Input Range and Update Rate; Output RMS Noise in V
SF Data Update
via the Sinc Filter (SF) SFR. It is important to note that the
peak-to-peak resolution gures represent the resolution for which
there will be no code icker 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 gures from silicon.
Input Range
Word Rate (Hz) 20 mV 40 mV 80 mV 160 mV 320 mV 640 mV 1.28 V 2.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
SF Data Update Input Range
Word Rate (Hz) 2.5 V
13 105.3 10.75
69 19.79 2.00
255 5.35 1.15
*ADC converting in Bipolar mode
Peak-to-Peak Resolution vs. Update Rate
Peak-to-Peak Resolution in Bits
SF Data Update Input Range
Word Rate (Hz) 2.5 V
13 105.3 16
69 19.79 16
255 5.35 16
NOTES
1
ADC converting in Bipolar mode
2
In Unipolar mode, peak-to-peak resolution at 105 Hz is 15 bits.
1
2
–22–
REV. A
ADuC836
-
MODULATOR
PROGRAMMABL
E
DIGITAL
FILTE
R
- ADC
BUFFER
AGND
AV
DD
REFIN(–)
REFIN(+
)
CHOP
AIN1
AIN2
AIN3
AIN4
OUTPUT
AVERAGE
OUTPUT
SCALING
DIGTAL OUTPUT
RESULT WRITTEN
TO ADC0H/M/
L
SFRS
PGA
CHO
P
OUTPUT AVERAGE
AS PART OF THE CHOPPING
IMPLEMENTATION, EACH
DATA-WORD OUTPUT
FROM THE FILTER IS
SUMMED AND AVERAGED
WITH ITS PREDECESSO
R
TO NULL ADC CHANNEL
OFFSET ERRORS
.
- ADC
THE
-
ARCHITECTURE
ENSURES 24 BITS NO
MISSING CODES. TH
E
ENTIRE
-
ADC IS
CHOPPED TO REMOVE
DRIFT ERROR.
DIFFERENTIAL
REFERENCE
THE EXTERNAL REFERENCE
INPUT TO THE ADuC836 IS
DIFFERENTIAL AND
FACILITATES RATIOMETRIC
OPERATION. THE EXTERNAL
REFERENCE VOLTAGE IS
SELECTED VIA THE XREF0 BI
T
IN ADC0CON.
REFERENCE DETECT
CIRCUITRY TESTS FOR OPEN OR
SHORTED REFERENCE INPUTS
.
ANALOG INPUT CHOPPING
THE INPUTS ARE
ALTERNATELY REVERSED
THROUGH THE
CONVERSION CYCLE.
CHOPPING YIELDS
EXCELLENT ADC OFFSET
AND OFFSET DRIFT
PERFORMANCE.
BURNOUT CURRENTS
TWO 100nA BURNOUT
CURRENTS ALLOW THE
USER TO EASILY DETECT
IF A TRANSDUCER HAS
BURNED OUT OR GONE
OPEN-CIRCUIT.
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.
BUFFER AMPLIFIER
THE BUFFER AMPLIFIER
PRESENTS A HIGH
IMPEDANCE INPUT STAGE
FOR THE ANALOG INPUTS,
ALLOWING SIGNIFICANT
EXTERNAL SOURCE
IMPEDANCES.
THE MODULATOR PROVIDES
A HIGH FREQUENCY 1-BI
T
DATA STREAM (THE OUTPUT
OF WHICH IS ALSO CHOPPED
)
TO THE DIGITAL FILTER,
THE DUTY CYCLE OF WHIC
H
REPRESENTS THE SAMPLED
ANALOG INPUT VOLTAGE
.
- MODULATOR
PROGRAMMABLE
DIGITAL FILTE
R
THE SINC
3
FILTER REMOVES
QUANTIZATION NOISE INTRODUCE
D
BY THE MODULATOR. THE UPDAT
E
RATE AND BANDWIDTH OF THIS
FILTER ARE PROGRAMMABL
E
VIA THE SF
SFR.
THE OUPUT WORD FROM THE
DIGITAL FILTER IS SCALED
BY THE CALIBRATIO
N
COEFFICIENTS BEFORE
BEING PROVIDED AS
THE CONVERSION RESULT.
OUTPUT SCALING
PROGRAMMABLE GAIN
AMPLIFIE
R
THE PROGRAMMABLE
GAIN AMPLIFIER ALLOWS
EIGHT UNIPOLAR AND
EIGHT BIPOLAR INPUT
RANGES FROM 20mV TO
2.56V (EXT V
REF
= 2.5V).
MUX
PRIMARY AND AUXILIARY ADC CIRCUIT DESCRIPTION
Overview
The ADuC836 incorporates two independent - ADCs (primary
and auxiliary) with on-chip digital ltering 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 signicant source impedances on the analog input and
allowing R/C ltering (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
16 bits of no missing codes performance. The - modulator
converts the sampled input signal into a digital pulse train whose
duty cycle contains the digital information. A Sinc3 programmable
low-pass lter 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.
REV. A
Figure 7. Primary ADC Block Diagram
–23–
ADuC836
ADuC836
–25–
MUX
AIN3
AIN4
AIN5
ON-CHI
P
TEMPERATURE
SENSO
R
-
MODULATOR
PROGRAMMABL
E
DIGITAL FILTE
R
- ADC
REFIN(–
)
REFIN(+
)
CHOP
OUTPUT
AVERAG
E
OUTPUT
SCALIN
G
DIGTAL OUTPUT
RESULT WRITTE
N
TO ADC1H/L SFRs
CHOP
-
ADC
THE
-
ARCHITECTURE
ENSURES 16 BITS NO MISSING
CODES. THE ENTIRE
-
ADC
IS CHOPPED TO REMOVE
DRIFT ERRORS
.
MUX
OUTPUT AVERAGE
AS PART OF THE CHOPPING
IMPLEMENTATION, EACH
DATA-WORD OUTPUT
FROM THE FILTER IS
SUMMED AND AVERAGED
WITH ITS PREDECESSO
R
TO NULL ADC CHANNEL
OFFSET ERRORS.
THE MODULATOR PROVIDES A
HIGH FREQUENCY 1-BIT DATA
STREAM (THE OUTPUT OF WHICH
IS ALSO CHOPPED) TO TH
E
DIGITAL FILTER,
THE DUTY CYCLE OF WHICH
REPRESENTS THE SAMPLED
ANALOG INPUT VOLTAGE.
-
MODULATOR
PROGRAMMABLE DIGITAL
FILTE
R
THE SINC
3
FILTER REMOVES
QUANTIZATION NOISE INTRODUCE
D
BY THE MODULATOR. THE UPDAT
E
RATE AND BANDWIDTH OF THIS
FILTER ARE PROGRAMMABLE
VIA THE SF SFR.
THE OUPUT WORD FROM THE
DIGITAL FILTER IS SCALED BY
THE CALIBRATIO
N
COEFFICIENTS BEFORE
BEING PROVIDED AS
THE CONVERSION RESULT.
OUTPUT SCALING
ANALOG INPUT CHOPPING
THE INPUTS ARE ALTERNATELY
REVERSED THROUGH THE
CONVERSION CYCLE. CHOPPING
YIELDS EXCELLENT ADC
OFFSET AND OFFSET DRIFT
PERFORMANCE
.
DIFFERENTIAL REFERENCE
THE EXTERNAL REFERENCE INPUT
TO THE ADuC836 IS DIFFERENTIAL
AND FACILITATES RATIOMETRIC
OPERATION. THE EXTERNAL
REFERENCE VOLTAGE IS SELECTE
D
VIA THE XREF1 BIT IN ADC1CON.
REFERENCE DETECT
CIRCUITRY TESTS FOR OPEN OR
SHORTED REFERENCE INPUTS.
ANALOG MULTIPLEXER
A DIFFERENTIAL MULTIPLEXER
ALLOWS SELECTION OF THRE
E
EXTERNAL SINGLE ENDED INPUT
S
OR THE ON-CHIP TEMP. SENSOR.
THE MULTIPLEXER IS CONTROLLE
D
VIA THE CHANNEL SELECTION
BITS IN ADC1CON.
REV. A
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 xed 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 (labeled
AIN1 to AIN4) that can be congured 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).
The auxiliary ADC has three external input pins (labeled 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 detailed in Table VII allow selection
of one of four inputs.
Two input multiplexers switch the selected input channel to the
on-chip buffer amplier 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.
Figure 8. Auxiliary ADC Block Diagram
–24–
REV. A
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.