Two Independent ADCs (16- and 24-Bit Resolution)
Programmable Gain Front End
24-Bit No Missing Codes, Primary ADC
13-Bit p-p Resolution @ 20 Hz, 20 mV Range
18-Bit p-p Resolution @ 20 Hz, 2.56 V Range
Memory
8 KB On-Chip Flash/EE Program Memory
640 Bytes On-Chip Flash/EE Data Memory
Flash/EE, 100 Year Retention, 100 Kcycles Endurance
256 Bytes On-Chip Data RAM
8051-Based Core
8051-Compatible Instruction Set (12.58 MHz Max)
32 kHz External Crystal, On-Chip Programmable PLL
Three 16-Bit Timer/Counters
26 Programmable I/O Lines
11 Interrupt Sources, Two Priority Levels
Power
Specified for 3 V and 5 V Operation
Normal: 3 mA @ 3 V (Core CLK = 1.5 MHz)
Power-Down: 20 A (32 kHz Crystal Running)
On-Chip Peripherals
On-Chip Temperature Sensor
12-Bit Voltage Output DAC
Dual Excitation Current Sources
Reference Detect Circuit
Time Interval Counter (TIC)
UART Serial I/O
2C®
-Compatible and SPI® Serial I/O
I
Watchdog Timer (WDT), Power Supply Monitor (PSM)
The ADuC824 is a complete smart transducer front-end, integrating two high-resolution sigma delta ADCs, an 8-bit MCU,
and program/data Flash/EE Memory on a single chip. This low
power device accepts low-level signals directly from a transducer.
The two independent ADCs (Primary and Auxiliary) include a
temperature sensor and a PGA (allowing direct measurement of
MicroConverter is a registered trademark of Analog Devices, Inc.
SPI is a registered trademark of Motorola, Inc.
I2C is a registered trademark of Philips Semiconductors, Inc.
REV.B
Information furnished by Analog Devices is believed to be accurate and
reliable. However, no responsibility is assumed by Analog Devices for its
use, nor for any infringements of patents or other 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.
ADuC824
FUNCTIONAL BLOCK DIAGRAM
AIN1
AIN2
AIN3
AIN4
AIN5
AVDD
MUX
MUX
TEMP
SENSOR
INTERNAL
BANDGAP
VREF
EXTERNAL
VREF
DETECT
REFIN+REFIN–
BUF
AGND
CLOCK
DIVIDER
PGA
AUXILIARY
16-BIT - ADC
PROG.
OSC
AND
PLL
XTAL2XTAL1
ADuC824
PRIMARY
24-BIT - ADC
12-BIT
VOLTAGE O/P
DAC
8051-BASED MCU WITH ADDITIONAL
8 KBYTES FLASH/EE PROGRAM MEMORY
TIMER/COUNTERS
1 TIME INTERVAL
PERIPHERALS
640 BYTES FLASH/EE DATA MEMORY
256 BYTES USER RAM
3 16 BIT
COUNTER
4 PARALLEL
PORTS
low-level signals). The ADCs with on-chip digital filtering are
intended for the measurement of wide dynamic range, low-frequency
signals, such as those in weigh scale, strain-gauge, pressure transducer, or temperature measurement applications. The ADC output
data rates are programmable and the ADC output resolution will
vary with the programmed gain and output rate.
The device operates from a 32 kHz crystal with an on-chip PLL
generating a high-frequency clock of 12.58 MHz. This clock is,
in turn, routed through a programmable clock divider from
which the MCU core clock operating frequency is generated. The
microcontroller core is an 8052 and therefore 8051-instructionset-compatible. The microcontroller core machine cycle consists
of 12 core clock periods of the selected core operating frequency.
8 Kbytes of nonvolatile Flash/EE program memory are provided
on-chip. 640 bytes of nonvolatile Flash/EE data memory and
256 bytes RAM are also integrated on-chip.
The ADuC824 also incorporates additional analog functionality
with a 12-bit DAC, current sources, power supply monitor,
and a bandgap reference. On-chip digital peripherals include a
watchdog timer, time interval counter, three timers/counters,
and three serial I/O ports (SPI, UART, and I
On-chip factory firmware supports in-circuit serial download and
debug modes (via UART), as well as single-pin emulation mode
via the EA pin. A functional block diagram of the ADuC824 is
shown above with a more detailed block diagram shown in
Figure 12.
The part operates from a single 3 V or 5 V supply. When operating
from 3 V supplies, the power dissipation for the part is below
10 mW. The ADuC824 is housed in a 52-lead MQFP package.
Revision History .................................................................. 68
–2–
REV. B
ADuC824
(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;
1
SPECIFICATIONS
unless otherwise noted.)
ParameterADuC824BSTest Conditions/CommentsUnit
ADC SPECIFICATIONS
Conversion Rate5.4On Both ChannelsHz min
Primary ADC
No Missing Codes
Resolution13Range = ± 20 mV, 20 Hz Update RateBits p-p typ
Output NoiseSee Tables IX and X Output Noise Varies with Selected
Integral Nonlinearity± 15ppm of FSR max
Offset Error
Offset Error Drift± 10nV/°C typ
Full-Scale Error
Gain Error Drift
ADC Range Matching±2AIN = 18 mVµV typ
Power Supply Rejection (PSR)113AIN = 7.8 mV, Range = ± 20 mVdBs typ
Common-Mode DC Rejection
On AIN95At DC, AIN = 7.8 mV, Range = ±20 mV dBs min
On AIN113At DC, AIN = 1 V, Range = ± 2.56 VdBs typ
On REFIN125At DC, AIN = 1 V, Range = ±2.56 VdBs typ
Common-Mode 50 Hz/60Hz Rejection
On AIN9550 Hz/60 Hz ±1 Hz, AIN = 7.8 mV,dBs min
On REFIN9050 Hz/60 Hz ±1 Hz, AIN = 1 V,dBs min
Normal Mode 50 Hz/60 Hz Rejection
On AIN6050 Hz/60 Hz ±1 Hz, 20 Hz Update RatedBs min
On REFIN6050 Hz/60 Hz ±1 Hz, 20 Hz Update RatedBs min
Auxiliary ADC
No Missing Codes
Resolution16Range = ± 2.5 V, 20 Hz Update RateBits p-p typ
Output NoiseSee Table XIOutput Noise Varies with Selected
Integral Nonlinearity± 15ppm of FSR max
Offset Error
Offset Error Drift1µV/°C typ
Full-Scale Error
Gain Error Drift
Power Supply Rejection (PSR)80AIN = 1 V, 20 Hz Update RatedBs min
Normal Mode 50 Hz/60 Hz Rejection
On AIN6050 Hz/60 Hz ±1 HzdBs min
On REFIN6050 Hz/60 Hz ±1 Hz, 20 Hz Update RatedBs min
DAC PERFORMANCE
DC Specifications
Resolution12Bits
Relative Accuracy± 3LSB typ
Differential Nonlinearity–1Guaranteed 12-Bit MonotonicLSB max
Offset Error± 50mV max
Gain Error
AC Specifications
Voltage Output Settling Time15Settling Time to 1 LSB of Final Valueµs typ
Digital-to-Analog Glitch Energy101 LSB Change at Major CarrynVs typ
2
3
4
5
2
3
6
5
7
8
2, 7
REFIN(–) = AGND; AGND = DGND = 0 V; XTAL1/XTAL2 = 32.768 kHz Crystal; all specifications T
105Programmable in 0.732 ms IncrementsHz max
2420 Hz Update RateBits min
18Range = ±2.56 V, 20 Hz Update RateBits p-p typ
in ADC DescriptionUpdate Rate and Gain Range
± 3µV typ
± 10µV typ
± 0.5ppm/°C typ
80AIN = 1 V, Range = ±2.56 VdBs min
2
20 Hz Update Rate
Range = ± 20 mV
9050 Hz/60 Hz ±1 Hz, AIN = 1 V,dBs min
Range = ±2.56 V
2
Range = ±2.56 V
16Bits min
in ADC DescriptionUpdate Rate
–2LSB typ
–2.5LSB typ
± 0.5ppm/°C typ
2
± 1AV
± 1V
Range% max
DD
Range% typ
REF
MIN
to T
MAX
REV. B
–3–
ADuC824
ParameterADuC824BSTest Conditions/CommentsUnit
INTERNAL REFERENCE
ADC Reference
Reference Voltage1.25 ± 1%Initial Tolerance @ 25°C, V
Power Supply Rejection45dBs typ
Reference Tempco100ppm/°C typ
DAC Reference
Reference Voltage2.5 ± 1%Initial Tolerance @ 25°C, VDD = 5 VV min/max
Power Supply Rejection50dBs typ
Reference Tempco± 100ppm/°C typ
ANALOG INPUTS/REFERENCE INPUTS
Primary ADC
Differential Input Voltage Ranges
9, 10
External Reference Voltage = 2.5 V
RN2, RN1, RN0 of ADC0CON Set to
± 400 0 1(Unipolar Mode 0 to 40 mV)mV
± 800 1 0(Unipolar Mode 0 to 80 mV)mV
± 1600 1 1(Unipolar Mode 0 to 160 mV)mV
± 3201 0 0(Unipolar Mode 0 to 320 mV)mV
± 6401 0 1(Unipolar Mode 0 to 640 mV)mV
± 1.281 1 0(Unipolar Mode 0 to 1.28 V)V
± 2.561 1 1(Unipolar Mode 0 to 2.56 V)V
± 1nA max
Analog Input Current
2
Analog Input Current Drift± 5pA/°C typ
Absolute AIN Voltage LimitsAGND + 100 mVV min
– 100 mVV max
AV
Auxiliary ADC
Input Voltage Range
9, 10
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 ADCpA/V/°C typ
AGND – 30 mVV min
+ 30 mVV max
AV
DD
1V min
AV
DD
Average Reference Input Current1Both ADCs EnabledµA/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
ADC SYSTEM CALIBRATION
Full-Scale Calibration Limit+1.05 × FSV max
Zero-Scale Calibration Limit–1.05 × FSV min
Input Span+0.8 × FSV min
+2.1 × FSV max
ANALOG (DAC) OUTPUTS
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
50µA typ
TEMPERATURE SENSOR
Accuracy± 2°C typ
Thermal Impedance (θJA)90°C/W typ
= 5 VV min/max
DD
< 0.3 VV min
REF
> 0.65 VV max
REF
V max
–4–
REV. B
ParameterADuC824BSTest 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 Drift±10% typ
Drift0.03%/°C typ
EXCITATION CURRENT SOURCES
Output Current–200Available from Each Current SourceµA typ
Initial Tolerance @ 25°C± 10% typ
Drift200ppm/°C typ
Initial Current Matching @ 25°C± 1Matching Between Both Current Sources % typ
Drift Matching20ppm/°C typ
Line Regulation (AV
Current2DVDD = 4.75 V to 5.25 V, Core CLK = 12.58 MHzmA typ
DD
Current140Measured at AVDD = 5.25 V, Core CLK = 12.58 MHz µA typ
AV
DD
Power Supply Currents Power-Down Mode
DV
Current50DVDD = 4.75 V to 5.25 V, Osc. On, TIC OnµA max
DD
AV
Current1Measured at AVDD = 5.25 V, Osc. On or Osc. OffµA max
DD
DV
Current20DVDD = 4.75 V to 5.25 V, Osc. OffµA max
DD
Typical Additional Power Supply CurrentsCore CLK = 1.57 MHz, AV
(AI
and DIDD)
DD
PSM Peripheral50µA typ
Primary ADC1mA typ
Auxiliary ADC500µA typ
DAC150µA typ
Dual Current Sources400µA typ
NOTES
1
Temperature Range: –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 than 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
reduced code range of 48 to 3995, 0 to VDD.
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 Range
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 A
range is still –V
12
Pins configured in I2C-compatible mode or SPI mode, pins configured as digital inputs during this test.
13
Pins configured in I2C-compatible mode only.
14
Flash/EE Memory Reliability Characteristics apply to both the Flash/EE program memory and Flash/EE data memory.
15
Endurance is qualified to 100 Kcycles as per JEDEC Std. 22 method A117 and measured at –40 °C, +25°C and +85°C; typical endurance at 25°C is 700 K cycles.
16
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.6e V
will derate with junction temperature as shown in Figure 27 in the Flash/EE Memory description section of this data sheet.
17
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.
18
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.
REF
to +V
; however, the negative voltage is limited to –30 mV.
REF
17, 18
2.1DV
8DV
17, 18
750DV
1DV
17, 18
20DV
5DV
,
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
REF
– 30 mV as indicated by the Auxiliary ADC absolute AIN voltage limits. The bipolar
GND
= 2.7 V to 3.6 V, Core CLK = 1.57 MHzmA max
DD
= 2.7 V to 3.6 V, Core CLK = 12.58 MHzmA max
DD
= 2.7 V to 3.6 V, Core CLK = 1.57 MHzµA typ
DD
= 2.7 V to 3.6 V, Core CLK = 12.58 MHzmA typ
DD
Core CLK = 1.57 MHz or 12.58 MHz
= 2.7 V to 3.6 V, Osc. On, TIC OnµA max
DD
= 2.7 V to 3.6 V, Osc. OffµA typ
DD
= ± (V
ADC
is selected. RN = decimal equivalent of RN2, RN1, RN0, e.g., V
2RN)/125, where:
REF
= DVDD = 5 V
DD
REF
= 2.5 V
REV. B
–7–
ADuC824
(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;
all specifications T
MIN
to T
unless otherwise noted.)
MAX
TIMING SPECIFICATIONS
1, 2, 3
32.768 kHz External Crystal
ParameterMinTypMaxUnitFigure
CLOCK INPUT (External Clock Driven XTAL1)
t
CK
t
CKL
t
CKH
t
CKR
t
CKF
1/t
CORE
t
CORE
t
CYC
NOTES
1
AC inputs during testing are driven at DVDD – 0.5 V for a Logic 1 and 0.45 V for a Logic 0. Timing measurements are made at VIH min for a Logic 1 and VIL max for
a Logic 0 as shown in Figure 2.
2
For timing purposes, a port pin is no longer floating when a 100 mV change from load voltage occurs. A port pin begins to float when a 100 mV change from the
loaded VOH/VOL level occurs as shown in Figure 2.
3
C
for Port0, ALE, PSEN outputs = 100 pF; C
LOAD
4
ADuC824 internal PLL locks onto a multiple (384 times) the external crystal frequency of 32.768 kHz to provide a Stable 12.583 MHz internal clock for the system.
The core can operate at this frequency or at a binary submultiple called Core_Clk, selected via the PLLCON SFR.
5
This number is measured at the default Core_Clk operating frequency of 1.57 MHz.
6
ADuC824 Machine Cycle Time is nominally defined as 12/Core_CLK.
XTAL1 Period30.52µs1
XTAL1 Width Low15.24µs1
XTAL1 Width High15.24µs1
XTAL1 Rise Time20ns1
XTAL1 Fall Time20ns1
ADuC824 Core Clock Frequency
ADuC824 Core Clock Period
ADuC824 Machine Cycle Time
LOAD
4
5
6
0.09812.58MHz
0.636µs
0.957.6122.45µs
for all other outputs = 80 pF unless otherwise noted.
t
CHK
t
CKR
DVDD – 0.5V
0.45V
t
CKL
t
CK
Figure 1. XTAL1 Input
+ 0.9V
0.2DV
DD
TEST POINTS
0.2DV
DD –
0.1V
V
LOAD
V
LOAD
LOAD
+ 0.1V
– 0.1V
V
Figure 2. Timing Waveform Characteristics
TIMING
REFERENCE
POINTS
t
CKF
V
– 0.1V
V
LOAD
LOAD
+ 0.1V
V
LOAD
–8–
REV. B
ADuC824
12.58 MHz Core_ClkVariable Core_Clk
ParameterMinMaxMinMaxUnitFigure
EXTERNAL PROGRAM MEMORY
t
LHLL
t
AVLL
t
LLAX
t
LLIV
t
LLPL
t
PLPH
t
PLIV
t
PXIX
t
PXIZ
t
AVIV
t
PLAZ
t
PHAX
ALE Pulsewidth1192t
Address Valid to ALE Low39t
Address Hold after ALE Low49t
ALE Low to Valid Instruction In2184t
ALE Low to PSEN Low49t
PSEN Pulsewidth1933t
PSEN Low to Valid Instruction In1333t
Input Instruction Hold after PSEN00ns3
Input Instruction Float after PSEN54t
Address to Valid Instruction In2925t
PSEN Low to Address Float2525ns3
Address Hold after PSEN High00ns3
CORE_CLK
t
LHLL
– 40ns3
CORE
– 40ns3
CORE
– 30ns3
CORE
– 30ns3
CORE
– 45ns3
CORE
– 100ns3
CORE
– 105ns3
CORE
– 25ns3
CORE
– 105ns3
CORE
ALE (O)
PSEN (O)
PORT 0 (I/O)
PORT 2 (O)
PLAZ
PCH
t
PLPH
t
LLIV
t
PLIV
t
PXIX
INSTRUCTION
(IN)
t
AVLL
PCL
(OUT)
t
LLPL
t
LLAX
t
t
AVIV
Figure 3. External Program Memory Read Cycle
t
PXIZ
t
PHAX
REV. B
–9–
ADuC824
12.58 MHz Core_ClkVariable Core_Clk
ParameterMinMaxMinMaxUnitFigure
EXTERNAL DATA MEMORY READ CYCLE
t
RLRH
t
AVLL
t
LLAX
t
RLDV
t
RHDX
t
RHDZ
t
LLDV
t
AVDV
t
LLWL
t
AVWL
t
RLAZ
t
WHLH
RD Pulsewidth3776t
Address Valid after ALE Low39t
Address Hold after ALE Low44t
RD Low to Valid Data In2325t
Data and Address Hold after RD00ns4
Data Float after RD892t
ALE Low to Valid Data In4868t
Address to Valid Data In5509t
ALE Low to RD Low1882883t
Address Valid to RD Low1884t
RD Low to Address Float00ns4
RD High to ALE High39119t
CORE_CLK
ALE (O)
– 100ns4
CORE
– 40ns4
CORE
– 35ns4
CORE
– 503t
CORE
– 130ns4
CORE
– 40t
CORE
– 165ns4
CORE
– 70ns4
CORE
– 150ns4
CORE
– 165ns4
CORE
+ 50ns4
CORE
+ 40ns4
CORE
PSEN (O)
RD (O)
PORT 0 (I/O)
PORT 2 (O)
t
LLDV
t
AVLL
t
LLAX
A0–A7
(OUT)
t
AVDV
A16–A23
t
AVWL
t
LLWL
t
RLAZ
t
RLDV
A8–A15
t
RLRH
t
RHDX
DATA (IN)
Figure 4. External Data Memory Read Cycle
t
WHLH
t
RHDZ
–10–
REV. B
ADuC824
12.58 MHz Core_ClkVariable Core_Clk
ParameterMinMaxMinMaxUnitFigure
EXTERNAL DATA MEMORY WRITE CYCLE
t
WLWH
t
AVLL
t
LLAX
t
LLWL
t
AVWL
t
QVWX
t
QVWH
t
WHQX
t
WHLH
WR Pulsewidth3776t
Address Valid after ALE Low39t
Address Hold after ALE Low44t
ALE Low to WR Low1882883t
Address Valid to WR Low1884t
Data Valid to WR Transition29t
Data Setup before WR4067t
Data and Address Hold after WR29tWR High to ALE High39119t
CORE_CLK
ALE (O)
– 100ns5
CORE
– 40ns5
CORE
– 35ns5
CORE
– 503t
CORE
– 130ns5
CORE
– 50ns5
CORE
– 150ns5
CORE
– 50ns5
CORE
– 40t
CORE
+ 50ns5
CORE
+ 40ns5
CORE
PSEN (O)
WR (O)
PORT 0 (O)
PORT 2 (O)
t
QVWX
t
t
QVWH
DATA
A8–A15
WLWH
t
AVLL
t
LLAX
A0–A7
A16–A23
t
AVWL
t
LLWL
Figure 5. External Data Memory Write Cycle
t
WHLH
t
WHQX
REV. B
–11–
ADuC824
12.58 MHz Core_ClkVariable Core_Clk
ParameterMinTypMaxMinTypMaxUnitFigure
UART TIMING (Shift Register Mode)
t
XLXL
t
QVXH
t
DVXH
t
XHDX
t
XHQX
Serial Port Clock Cycle Time0.9512t
Output Data Setup to Clock66210t
Input Data Setup to Clock2922t
– 133ns6
CORE
+ 133ns6
CORE
CORE
Input Data Hold after Clock00ns6
Output Data Hold after Clock422t
ALE (O)
– 117ns6
CORE
t
XLXL
µs6
(OUTPUT CLOCK)
(OUTPUT DATA)
TXD
RXD
RXD
(INPUT DATA)
01
MSB
MSB
67
t
t
QVXH
BIT 6
DVXH
t
XHQX
t
XHDX
BIT 6BIT 1
BIT 1
Figure 6. UART Timing in Shift Register Mode
SET RI
OR
SET TI
LSB
–12–
REV. B
ADuC824
ParameterMinMaxUnitFigure
2
I
C-COMPATIBLE INTERFACE TIMING
t
L
t
H
t
SHD
t
DSU
t
DHD
t
RSU
t
PSU
t
BUF
t
R
t
F
t
*Pulsewidth of Spike Suppressed50ns7
SUP
*Input filtering on both the SCLOCK and SDATA inputs suppresses noise spikes less than 50 ns.
SCLOCK Low Pulsewidth4.7µs7
SCLOCK High Pulsewidth4.0µs7
Start Condition Hold Time0.6µs7
Data Setup Time100µs7
Data Hold Time0.9µs7
Setup Time for Repeated Start0.6µs7
Stop Condition Setup Time0.6µs7
Bus Free Time between a STOP1.3µs7
Condition and a START Condition
Rise Time of Both SCLOCK and SDATA300ns7
Fall Time of Both SCLOCK and SDATA300ns7
t
SDATA (I/O)
BUF
MSB
LSB
t
SUP
t
ACKMSB
R
SCLK (I)
t
PSU
PS
STOP
CONDITION
START
CONDITION
t
DSU
t
SHD
t
DHD
12-7
t
H
8
t
t
L
SUP
Figure 7. I2C-Compatible Interface Timing
t
DSU
t
t
DHD
t
RSU
9
S(R)
REPEATED
START
F
t
R
1
t
F
REV. B
–13–
ADuC824
ParameterMinTypMaxUnitFigure
SPI MASTER MODE TIMING (CPHA = 1)
t
SL
t
SH
t
DAV
t
DSU
t
DHD
t
DF
t
DR
t
SR
t
SF
*Characterized under the following conditions:
a. Core clock divider bits CD2, CD1, and CD0 bits in PLLCON SFR set to 0, 1, and 1 respectively, i.e., core clock frequency = 1.57 MHz and
b. SPI bit-rate selection bits SPR1 and SPR0 bits in SPICON SFR set to 0 and 0 respectively.
SCLOCK Low Pulsewidth*630ns8
SCLOCK High Pulsewidth*630ns8
Data Output Valid after SCLOCK Edge50ns8
Data Input Setup Time before SCLOCK Edge100ns8
Data Input Hold Time after SCLOCK Edge100ns8
Data Output Fall Time1025ns8
Data Output Rise Time1025ns8
SCLOCK Rise Time1025ns8
SCLOCK Fall Time1025ns8
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
t
SH
t
SL
t
SR
t
SF
MOSI
MISO
t
DAV
t
MSB IN
DSU
t
DHD
t
DF
t
DR
BITS 6–1
BITS 6–1
Figure 8. SPI Master Mode Timing (CPHA = 1)
LSBMSB
LSB IN
–14–
REV. B
ADuC824
ParameterMinTypMaxUnitFigure
SPI MASTER MODE TIMING (CPHA = 0)
t
SL
t
SH
t
DAV
t
DOSU
t
DSU
t
DHD
t
DF
t
DR
t
SR
t
SF
*Characterized under the following conditions:
a. Core clock divider bits CD2, CD1, and CD0 bits in PLLCON SFR set to 0, 1, and 1 respectively, i.e., core clock frequency = 1.57 MHz and
b. SPI bit-rate selection bits SPR1 and SPR0 bits in SPICON SFR set to 0 and 0 respectively.
SCLOCK Low Pulsewidth*630ns9
SCLOCK High Pulsewidth*630ns9
Data Output Valid after SCLOCK Edge50ns9
Data Output Setup before SCLOCK Edge150ns9
Data Input Setup Time before SCLOCK Edge100ns9
Data Input Hold Time after SCLOCK Edge100ns9
Data Output Fall Time1025ns9
Data Output Rise Time1025ns9
SCLOCK Rise Time1025ns9
SCLOCK Fall Time1025ns9
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
t
SH
t
SL
t
SR
t
SF
MOSI
MISO
t
DAV
t
DOSU
t
DSU
MSB IN
MSB
t
DHD
t
DF
t
DR
BITS 6–1
BITS 6–1
Figure 9. SPI Master Mode Timing (CPHA = 0)
LSB
LSB IN
REV. B
–15–
ADuC824
ParameterMinTypMaxUnitFigure
SPI SLAVE MODE TIMING (CPHA = 1)
t
SS
t
SL
t
SH
t
DAV
t
DSU
t
DHD
t
DF
t
DR
t
SR
t
SF
t
SFS
SS to SCLOCK Edge0ns10
SCLOCK Low Pulsewidth330ns10
SCLOCK High Pulsewidth330ns10
Data Output Valid after SCLOCK Edge50ns10
Data Input Setup Time before SCLOCK Edge100ns10
Data Input Hold Time after SCLOCK Edge100ns10
Data Output Fall Time1025ns10
Data Output Rise Time1025ns10
SCLOCK Rise Time1025ns10
SCLOCK Fall Time1025ns10
SS High after SCLOCK Edge0ns10
SS
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
MISO
MOSI
t
SS
MSB IN
MSB
t
DHD
t
SL
t
DF
t
DR
BITS 6
BITS 6
t
SH
t
DAV
t
DSU
Figure 10. SPI Slave Mode Timing (CPHA = 1)
t
SR
–
1
–
1LSB IN
t
SF
LSB
t
SFS
–16–
REV. B
ADuC824
ParameterMinTypMaxUnitFigure
SPI SLAVE MODE TIMING (CPHA = 0)
t
SS
t
SL
t
SH
t
DAV
t
DSU
t
DHD
t
DF
t
DR
t
SR
t
SF
t
SSR
t
DOSS
t
SFS
SS to SCLOCK Edge0ns11
SCLOCK Low Pulsewidth330ns11
SCLOCK High Pulsewidth330ns11
Data Output Valid after SCLOCK Edge50ns11
Data Input Setup Time before SCLOCK Edge100ns11
Data Input Hold Time after SCLOCK Edge100ns11
Data Output Fall Time1025ns11
Data Output Rise Time1025ns11
SCLOCK Rise Time1025ns11
SCLOCK Fall Time1025ns11
SS to SCLOCK Edge50ns11
Data Output Valid after SS Edge20ns11
SS High after SCLOCK Edge0ns11
SS
t
SFS
t
SF
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
MISO
t
DOSS
t
SS
MSB
t
SH
t
t
SL
t
DAV
DF
t
DR
BITS 6–1
t
SR
LSB
MOSI
BITS 6–1
t
DSU
MSB IN
t
DHD
Figure 11. SPI Slave Mode Timing (CPHA = 0)
LSB IN
REV. B
–17–
ADuC824
WARNING!
ESD SENSITIVE DEVICE
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
DV
to AGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DD
DV
to DGND . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DD
AGND to DGND
AV
to DVDD . . . . . . . . . . . . . . . . . . . . . . . . . –2 V to +5 V
DD
Analog Input Voltage to AGND
Reference Input Voltage to AGND . . –0.3 V to AV
2
. . . . . . . . . . . . . . . . . . . –0.3 V to +0.3 V
Stresses above those listed under Absolute Maximum Ratings may cause perma-
nent 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 ADuC824.
3
Applies to P1.2 to P1.7 pins operating in analog or digital input modes.
ORDERING GUIDE
TemperaturePackagePackage
ModelRangeDescriptionOption
ADuC824BS–40°C to +85°C52-Lead PlasticS-52
Quad Flatpack
QuickStart
Development
System ModelDescription
EVAL-ADUC824QSDevelopment System for the ADuC824
MicroConverter, containing:
Evaluation Board
Serial Port Cable
Plug-In Power Supply
Windows
®
Serial Downloader (WSD)*
Windows Debugger (DeBug)
Windows ADuC824 Simulator
(ADSIM)
Windows ADC Analysis Software
Program (WASP)
8051 Assembler (Metalink)
C-Compiler (Keil) Evaluation Copy
Limited to 2 Kcode
Example Code
Documentation
PIN CONFIGURATION
52 51 50 49 4843 42 41 4047 46 45 44
1
PIN 1
2
IDENTIFIER
3
4
5
6
7
8
9
10
11
12
13
14 15 16 17 18 19 20 21 22 23 24 25 26
ADuC824
TOP VIEW
(Not to Scale)
39
38
37
36
35
34
33
32
31
30
29
28
27
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 ADuC824 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.
*Windows is a registered trademark of Microsoft Corporation.
–18–
REV. B
ADuC824
PIN FUNCTION DESCRIPTIONS
Pin
No.MnemonicType*Description
1P1.0/T2I/OPort 1.0 can function as a digital input or digital output and has a pull-up configuration as
described below for Port 3. P1.0 has an increased current drive sink capability of 10 mA and 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.
2P1.1/T2EXI/OPort 1.1 can function as a digital input or digital output and has a pull-up configuration as
described below for Port 3. P1.1 has an increased current drive sink capability of 10 mA and
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.
3P1.2/DAC/IEXC1 I/OPort 1.2. This pin has no digital output driver; it can function as a digital input for which ‘0’
must be written to the port bit. As a digital input, P1.2 must be driven high or low externally.
The voltage output from the DAC can also be configured to appear at this pin. If the DAC
output is not being used, one or both of the excitation current sources (200 µA or 2 × 200 µA)
can be programmed to be sourced at this pin.
4P1.3/AIN5/IEXC2 IPort 1.3. This pin has no digital output driver; it can function as a digital input for which ‘0’ must
be written to the port bit. As a digital input, P1.3 must be driven high or low externally. This
pin can provide an analog input (AIN5) to the auxiliary ADC and one or both of the excitation
current sources (200 µA or 2 × 200 µA) can be programmed to be sourced at this pin.
5AV
6AGNDSAnalog Ground. Ground reference pin for the analog circuitry
7REFIN(–)IReference Input, Negative Terminal
8REFIN(+)IReference Input, Positive Terminal
9–11P1.4–P1.6IPort 1.4 to P1.6. These pins have no digital output drivers; they can function as digital inputs,
12P1.7/AIN4/DAC I/OPort 1.7. This pin has no digital output driver; it can function as a digital input for which ‘0’ must be
13SSISlave Select Input for the SPI Interface. A weak pull-up is present on this pin.
14MISOI/OMaster Input/Slave Output for the SPI Interface. There is a weak pull-up on this input pin.
15RESETIReset Input. A high level on this pin for 24 core clock cycles while the oscillator is running resets
16–19P3.0–P3.3I/OP3.0–P3.3 are bidirectional port pins with internal pull-up resistors. Port 3 pins that have 1s written
20, 34, 48DV
21, 35, 47DGNDSDigital ground, ground reference point for the digital circuitry
DD
P1.4/AIN1IPrimary ADC Channel, Positive Analog Input
P1.5/AIN2IPrimary ADC Channel, Negative Analog Input
P1.6/AIN3IAuxiliary ADC Input or muxed Primary ADC Channel, Positive Analog Input
P3.0/RXDI/OReceiver Data Input (asynchronous) or Data Input/Output (synchronous) of serial (UART) port.
P3.1/TXDI/OTransmitter Data Output (asynchronous) or Clock Output (synchronous) of serial (UART) port.
P3.2/INT0I/OInterrupt 0, programmable edge or level triggered Interrupt input, which can be programmed
P3.3/INT1I/OInterrupt 1, programmable edge-or level-triggered Interrupt input, which can be programmed
DD
SAnalog Supply Voltage, 3 V or 5 V
for which ‘0’ must be written to the respective port bit. As a digital input, these pins must be
driven high or low externally. These port pins also have the following analog functionality:
written to the port bit. As a digital input, P1.7 must be driven high or low externally. This pin can
provide an analog input (AIN4) to the auxiliary ADC or muxed Primary ADC Channel, Negative
Analog Input. The voltage output from the DAC can also be configured to appear at this pin.
the device. There is a weak pull-down and a Schmitt trigger input stage on this pin. External
POR (power-on reset) circuitry must be added to drive the RESET pin as described later in
this data sheet.
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 described below.
to one of two priority levels. This pin can also be used as a gate control input to Timer0.
to one of two priority levels. This pin can also be used as a gate control input to Timer1.
SDigital supply, 3 V or 5 V
REV. B
–19–
ADuC824
PIN FUNCTION DESCRIPTIONS (continued)
Pin
No.MnemonicType*Description
22–25P3.4–P3.7I/OP3.4–P3.7 are bidirectional port pins with internal pull-up resistors. Port 3 pins that 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. The secondary functions of Port 3 pins are:
P3.4/T0I/OTimer/Counter 0 Input
P3.5/T1I/OTimer/Counter 1 Input
P3.6/WRI/OWrite Control Signal, Logic Output. Latches the data byte from Port 0 into an external data memory.
P3.7/RDI/ORead Control Signal, Logic Output. Enables the data from an external data memory to Port 0.
26SCLKI/OSerial interface clock for either the I
triggered input and a weak internal pull-up is present on this pin unless it is outputting logic low.
27SDATA/MOSII/OSerial data I/O for the I
2
C compatible 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.
28 – 31P2.0 – P2.3I/OPort 2 is a bidirectional port with internal pull-up resistors. Port 2 pins that have 1s (A8–A11)
written to them are pulled high by the internal pull-up resistors, and in that state can (A16–A19)
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.
32XTAL1IInput to the crystal oscillator inverter
33XTAL2OOutput from the crystal oscillator inverter
36 – 39P2.4 – P2.7I/OPort 2 is a bidirectional port with internal pull-up resistors. Port 2 pins that have 1s (A12–A15)
written to them are pulled high by the internal pull-up resistors, and in that state they (A20–A23)
can 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.
40EAI/OExternal Access Enable, Logic Input. When held high, this input enables the device to fetch
code from internal program memory locations 0000H to 1FFFH. 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 emula-
tion 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.
41PSENOProgram 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.
42ALEOAddress 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 – 46P0.0 – P0.3I/OP0.0 – P0.3 pins are part of Port 0, which is an 8-bit open-drain bidirectional.
(AD0 – AD3)I/O port. Port 0 pins that have 1s written to them float and in that state can be used as high impedance
inputs. An external pull-up resistor will be required on P0 outputsto 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.
49 – 52P0.4 – P0.7I/OP0.4 – P0.7 pins are part of Port 0, which is an 8-bit open drain bidirectional.
(AD4 – AD7)I/O port. Port 0 pins that have 1s written to them float and in that state can be used as high impedance
inputs. 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
NOTES
1. In the following descriptions, SET implies a Logic 1 state and CLEARED implies a Logic 0 state unless otherwise stated.
2. In the following descriptions, SET and CLEARED also imply that the bit is set or automatically cleared by the ADuC824 hardware unless otherwise stated.
3. User software should not write 1s to reserved or unimplemented bits as they may be used in future products.
–20–
2
C-compatible or SPI interface. As an input this pin is a Schmitt-