Two Independent ADCs (16- and 24-Bit Resolution)
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
AIN1
AIN2
62Kbytes On-Chip Flash/EE Program Memory
4 KBytes On-Chip Flash/EE Data Memory
Flash/EE, 100 Yr Retention, 100 Kcycles Endurance
In Circuit Serial Download
AIN3
AIN4
AIN5
High Speed User Bootload (5s Download)
2304 Bytes On-Chip Data RAM
8051 Based Core
8051-Compatible Instruction Set (12.58 MHz Max)
32 kHz External Crystal, On-Chip Programmable PLL
11 Interrupt Sources, Two Priority Levels
Dual Data Pointer
Extended 11-bit Stack Pointer
On-Chip Peripherals
12-Bit Voltage Output DAC
Dual 16-Bit
Σ∆Σ∆
Σ∆ DACs/PWMs
Σ∆Σ∆
On-Chip Temperature Sensor
Dual Excitation Current Sources
Time Interval Counter (Real Time Clock/WakeUp Cct)
UART and SPI
®
Serial I/O
Timer 3 for high speed UART baud rates (incl 115,200)
Watchdog Timer (WDT), Power Supply Monitor (PSM)
Power
Specified for 3 V and 5 V Operation
Normal: 3 mA @ 3 V (Core CLK = 1.5 MHz)
Power-Down: 20µA max with wake-up cct running
GENERAL DESCRIPTION
The ADuC834 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.
The two independent ADCs (Primary and Auxiliary) include a
temperature sensor and a PGA (allowing direct measurement of
low-level signals). The ADCs with on-chip digital filtering and
programmable output data rates are intended for the measurement of wide dynamic range, low frequency signals, such as those
in weigh scale, strain-gauge, 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.
FUNCTIONAL BLOCK DIAGRAM
AVDD
12-BIT
DAC
16-BIT
Σ∆
DAC
16-BIT
Σ∆
DAC
16-BIT
PWM
16-BIT
PWM
PERIPHERALS
2304 BYTES USER R A M
POWER SUPPLY MON
WATCHDOG TIMER
UART AND SP I
SERIAL I/O
CURRE NT
SOURCE
BUF
MUX
IEX C 1
IEX C 2
DAC
PWM0
PWM1
AVDD
MUX
MUX
TEMP
SENSOR
INTERNAL
BANDGAP
VREF
EXTERNAL
VREF
DETEC T
REFIN+REFIN›
ADuC834
BUF
AGND
PROG.
CLOCK
DIVIDER
OSC
PLL
PGA
AUXILIARY
16-BIT Σ∆ ADC
&
XTAL2XTAL1
PRIMARY
Σ∆
ADC
24-BIT
8051-BASED MCU WITH ADDITIONAL
62 KBYTES FLASH/EE PROGRAM MEMORY
4 KBYTES FLASH/EE DATA MEMORY
3 × 16 BIT TIMERS
×
REAL TIME CLOCK
1
4 × PARALLE L
PORTS
62 Kbytes of nonvolatile Flash/EE program memory are provided
on-chip. 4 Kbytes of nonvolatile Flash/EE data memory, 256 bytes
RAM and 2 KBytes of extended RAM are also integrated on-chip.
The program memory can be configured as data memory in
datalogging applications.
The ADuC834 also incorporates additional analog functionality
with a 12-bit DAC, dual current sources, power supply monitor,
and a bandgap reference. On-chip digital peripherals include two
16-bit Σ∆ DACs/PWM, watchdog timer, real time clock (time
interval counter), four timers/counters, and two serial I/O ports
(UART and SPI).
On-chip factory firmware supports in-circuit serial download (via
UART), as well as single-pin emulation mode via the EA pin. A
functional block diagram of the ADuC834 is shown above with a
more detailed block diagram shown in figure 11 (page 18).
The part operates from a 3V or a 5V supply. When operating from
3V the power dissipation for the part is below 10mW. The
ADuC834 is housed in a 52-lead MQFP package.
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
which may result from its use. No license is granted by implication or
otherwise under any patent or patent rights of Analog Devices.
MicroConverter is a registered trademark of Analog Devices, Inc.
SPI is a registered trademark of Motorola Inc.
(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,
1
SPECIFICATIONS
ParameterADuC834BSTest 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 Table X and XIOutput Noise Varies with Selected
Integral Nonlinearity±151 LSB
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/60 Hz 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 XII inOutput Noise Varies with Selected
Integral Nonlinearity±1 5ppm 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
8
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
105Programmable in 0.732 ms IncrementsHz max
2420 Hz Update RateBits min
18Range = ±2.56 V, 20 Hz Update RateBits p-p typ
in ADuC834 ADCUpdate Rate and Gain Range
Description (pg 30)
±3µV typ
16
±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
ADuC834 ADCUpdate Rate
Description (pg 30)
–2LSB typ
–2.5LSB typ
±0.5ppm/°C typ
2
±1AVDD Range% max
±1V
Range% typ
REF
ADuC834
ppm of FSR max
REV. PrC (12 March 2002)
–3–
PRELIMINAR Y TECHNICAL D A TA
ADuC834–SPECIFICATIONS
1
ParameterADuC834BSTest 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, V
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
Bipolar Mode (ADC0CON3 = 0)±200 0 0(Unipolar Mode 0 to 20 mV)m V
±400 0 1(Unipolar Mode 0 to 40 mV)m V
±800 1 0(Unipolar Mode 0 to 80 mV)m V
±1600 1 1(Unipolar Mode 0 to 160 mV)m V
±3201 0 0(Unipolar Mode 0 to 320 mV)m V
±6401 0 1(Unipolar Mode 0 to 640 mV)m V
±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 ADC pA/V/°C typ
AGND – 30 mVV min
AV
+ 30 mVV max
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 Span0.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 AGNDΩ 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/Ω typ
= 5 VV min/max
DD
= 5 VV min/max
DD
< 0.3 VV min
REF
> 0.65 VV max
REF
V max
–4–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
ParameterADuC834BSTest Conditions/CommentsUnit
TRANSDUCER BURNOUT CURRENT SOURCES
AIN+ Current–100AIN+ is the Selected Positive Input tonA typ
the Primary ADC
AIN– Current+100AIN– is the Selected Negative Input tonA typ
the Auxiliary ADC
Initial Tolerance @ 25°C±10% typ
Drift0.03%/°C typ
EXCITATION CURRENT SOURCES
Output Current–200Available from Each Current 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
)1 AV
DD
Load Regulation0.1µA/V typ
Output ComplianceAV
– 0.6V max
DD
AGNDMin
LOGIC INPUTS
All Inputs Except SCLOCK, RESET,
and XTAL1
, Input Low Voltage0.8DVDD = 5 VV max
V
INL
0.4DV
, Input High Voltage2.0V min
V
INH
SCLOCK and RESET Only
(Schmitt-Triggered Inputs)
V
T+
2
1.3/3DVDD = 5 VV min/V max
0.95/2.5DV
V
T–
0.8/1.4DVDD = 5 VV min/V max
0.4/1.1DV
V
T+
– V
T–
0.3/0.85DVDD = 5 VV min/V max
0.3/0.85DV
Input Currents
Port 0, P1.2–P1.7, EA±10V
SCLOCK, MOSI, MISO, SS
12
–10 min, –40 maxVIN = 0 V, DVDD = 5 V, Internal Pull-Up µA min/µA ma x
±10V
RESET±10V
35 min, 105 maxV
P1.0, P1.1, Ports 2 and 3±1 0V
–180V
–660µA max
–20V
–75µA max
Input Capacitance5All Digital InputspF typ
CRYSTAL OSCILLATOR (XTAL1 AND XTAL2)
Logic Inputs, XTAL1 Only
V
, Input Low Voltage0.8DVDD = 5 VV max
INL
0.4DV
V
, Input High Voltage3.5DVDD = 5 VV min
INH
2.5DV
XTAL1 Input Capacitance18pF typ
XTAL2 Output Capacitance18pF typ
= 5 V + 5%µA/V typ
DD
= 3 VV max
DD
= 3 VV min/V max
DD
= 3 VV min/V max
DD
= 3 VV min/V max
DD
= 0 V or V
IN
= VDD, DVDD = 5 VµA max
IN
= 0 V, DVDD = 5 VµA max
IN
= VDD, DVDD = 5 V,µA min/µA max
IN
DD
µA max
Internal Pull-Down
= VDD, DVDD = 5 VµA max
IN
= 2 V, DVDD = 5 VµA min
IN
= 450 mV, DVDD = 5 VµA min
IN
= 3 VV max
DD
= 3 VV min
DD
REV. PrC (12 March 2002)
–5–
PRELIMINAR Y TECHNICAL D A TA
ADuC834–SPECIFICATIONS
1
ParameterADuC834BSTest Conditions/CommentsUnit
LOGIC OUTPUTS (Not Including XTAL2)
VOH, Output High Voltage2.4VDD = 5 V, I
V
, Output Low Voltage
OL
13
Floating State Leakage Current± 10µA max
Floating State Output Capacitance5pF typ
POWER SUPPLY MONITOR (PSM)
AVDD Trip Point Selection Range2.63Four Trip Points Selectable in This Range V mi n
Power Supply Trip Point Accuracy±3.5% max
AV
DD
DV
Trip Point Selection Range2.63Four Trip Points Selectable in This Range V m in
DD
DVDD Power Supply Trip Point Accuracy±3.5% max
WATCHDOG TIMER (WDT)
Timeout Period0Nine Timeout Periods in This Rangems min
MCU CORE CLOCK RATEClock Rate Generated via On-Chip PLL
MCU Clock Rate
2
START-UP TIME
At Power-On300ms typ
From Idle Mode1ms typ
From Power-Down Mode
Oscillator RunningOSC_PD Bit = 0 in PLLCON SFR
Wakeup with INT0 Interrupt1ms typ
Wakeup with SPI Interrupt1ms typ
Wakeup with TIC Interrupt1ms typ
Wakeup with External RESET3.4ms typ
Oscillator Powered DownOSC_PD Bit = 1 in PLLCON SFR
Wakeup with External RESET0.9sec typ
After External RESET in Normal Mode3.3ms typ
After WDT Reset in Normal Mode3.3Controlled via WDCON SFRms typ
FLASH/EE MEMORY RELIABILITY CHARACTERISTICS
Endurance
Data Retention
15
16
POWER REQUIREMENTSDV
Power Supply Voltages
, 3 V Nominal Operation2.7V min
AV
DD
AV
, 5 V Nominal Operation4.75V min
DD
, 3 V Nominal Operation2.7V min
DV
DD
, 5 V Nominal Operation4.75V min
DV
DD
2
= 80 µAV min
2.4V
0.4I
= 3 V, I
DD
= 8 mA, SCLOCK/D0,V max
SINK
SOURCE
= 20 µAV min
SOURCE
MOSI/D1
0.4I
0.4I
= 10 mA, P1.0 and P1.1V max
SINK
= 1.6 mA, All Other OutputsV max
SINK
4.63Programmed via TPA1–0 in PSMCONV max
4.63Programmed via TPD1–0 in PSMCONV max
2000Programmed via PRE3–0 in WDCONms max
98.3Programmable via CD2–0 Bits inkHz min
PLLCON SFR
12.58MHz max
14
100,000Cycles min
100Years min
and AVDD Can Be Set
DD
Independently
3.6V max
5.25V max
3.6V max
5.25V max
–6–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
ParameterADuC834BSTest Conditions/CommentsUnit
POWER REQUIREMENTS (continued)
Power Supply Currents Normal Mode
DVDD Current4DVDD = 4.75 V to 5.25 V, Core CLK = 1.57 MHzmA max
Current170AVDD = 5.25 V, Core CLK = 1.57 MHzµA max
AV
DD
DV
Current15DVDD = 4.75 V to 5.25 V, Core CLK = 12.58 MH zmA max
DD
Current170AVDD = 5.25 V, Core CLK = 12.58 MHzµA max
AV
DD
Power Supply Currents Idle Mode
DVDD Current1.2DVDD = 4.75 V to 5.25 V, Core CLK = 1.57 MHzmA max
AV
Current2DVDD = 4.75 V to 5.25 V, Core CLK = 12.58 MH zmA typ
DD
AV
Current140Measured at AVDD = 5.25 V, Core CLK = 12.58 MHz µA typ
DD
Power Supply Currents Power-Down Mode
Current50DVDD = 4.75 V to 5.25 V, Osc. On, TIC OnµA max
DV
DD
AV
Current1Measured at AVDD = 5.25 V, Osc. On or Osc. OffµA max
DD
Current20DVDD = 4.75 V to 5.25 V, Osc. OffµA max
DV
DD
Typical Additional Power Supply CurrentsCore CLK = 1.57 MHz, AV
and DIDD)
(AI
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
RN = decimal equivalent of RN2, RN1, RN0,
e.g., V
In unipolar mode the effective range is 0 V to 1.28 V in our example.
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
bipolar range is still –V
12
Pins configured in SPI mode, pins configured as digital inputs during this test.
13
Pins configured in High Current Output 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
Kcycles.
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.6eV 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.
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
= 2.5 V and RN2, RN1, RN0 = 1, 1, 0 the Range
REF
to +V
REF
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.
; 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.
ADC
REF
= 2.7 V to 3.6 V, Core CLK = 1.57 MH zmA max
DD
= 2.7 V to 3.6 V, Core CLK = 12.58 MH zmA max
DD
= 2.7 V to 3.6 V, Core CLK = 1.57 MH zµA typ
DD
= 2.7 V to 3.6 V, Core CLK = 12.58 MH zmA 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.
REF
is selected via XREF0 and XREF1 bits in ADC0CON and ADC1CON respectively.
– 30 mV as indicated by the Auxiliary ADC absolute AIN voltage limits. The
GND
2RN)/125, where:
REF
= DVDD = 5 V
DD
REV. PrC (12 March 2002)
–7–
ADuC834
PRELIMINAR Y TECHNICAL D A T A
(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
ADuC834 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
ADuC834 Machine Cycle Time is nominally defined as 12/Core_CLK.
XTAL1 Period30.52µs1
XTAL1 Width Low15.16µs1
XTAL1 Width High15.16µs1
XTAL1 Rise Time20ns1
XTAL1 Fall Time20ns1
ADuC834 Core Clock Frequency
ADuC834 Core Clock Period
ADuC834 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.5 V
0.45V
t
CKL
t
CK
Figure 1. XTAL1 Input
+ 0.9V
0.2DV
DD
TEST POINTS
0.2DVDD › 0.1V
V
LOAD
V
LOAD
LOAD
+ 0.1V
› 0.1V
V
Figure 2. Timing Waveform Characteristics
t
TIMING
REFEREN CE
POINTS
CKF
V
V
LOAD
LOAD
› 0.1V
+ 0.1V
V
LOAD
–8–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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
– 40ns3
CORE
– 40ns3
CORE
– 30ns3
CORE
– 30ns3
CORE
– 45ns3
CORE
– 100ns3
CORE
– 105ns3
CORE
Input Instruction Hold after PSEN00ns3
Input Instruction Float after PSEN54t
Address to Valid Instruction In2925t
– 25ns3
CORE
– 105ns3
CORE
PSEN Low to Address Float2525ns3
Address Hold after PSEN High00ns3
CORE_C LK
ALE (O)
PSEN
(O)
PORT 0 (I/O)
PORT 2 (O)
t
LHLL
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. PrC (12 March 2002)
–9–
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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
– 100ns4
CORE
– 40ns4
CORE
– 35ns4
CORE
– 165ns4
CORE
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
– 503t
CORE
– 130ns4
CORE
– 70ns4
CORE
– 150ns4
CORE
– 165ns4
CORE
+ 50ns4
CORE
RD Low to Address Float00ns4
RD High to ALE High39119t
CORE_CLK
– 40t
CORE
+ 40ns4
CORE
ALE (O)
PSEN
(O)
RD
(O)
POR T 0 (I/O)
PORT 2 (O)
t
LLDV
t
AVLL
A0 › A7
(OUT )
t
A16
AVDV
› A23
t
LLAX
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–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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 WR29t
WR High to ALE High39119t
CORE_CLK
– 100ns5
CORE
– 40ns5
CORE
– 35ns5
CORE
– 503t
CORE
– 130ns5
CORE
– 50ns5
CORE
– 150ns5
CORE
– 50ns5
CORE
– 40t
CORE
+ 50ns5
CORE
+ 40ns5
CORE
ALE (O)
PSEN
(O)
WR
(O)
PORT 0 (O)
PORT 2 (O)
t
QVWX
t
QVWH
DATA
t
WLWH
t
LLWL
t
AVWL
t
t
AVLL
LLAX
A0 › A7
A16 › A23A8 › A15
Figure 5. External Data Memory Write Cycle
t
WHLH
t
WHQX
REV. PrC (12 March 2002)
–11–
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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
µs6
Input Data Hold after Clock00ns6
Output Data Hold after Clock422t
ALE (O)
– 117ns6
CORE
t
XLXL
(OUTPUT CLOCK)
(OUTP U T D A TA )
TXD
RXD
RXD
(INPUT DATA)
01
MSB
67
t
QVXH
BIT 6MSB
t
DVXH
BIT 6BIT 1LSB
t
XHQX
t
XHDX
BIT 1
Figure 6. UART Timing in Shift Register Mode
SET RI
OR
SET TI
–12–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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
NOTE
*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*630ns7
SCLOCK High Pulsewidth*630ns7
Data Output Valid after SCLOCK Edge50ns7
Data Input Setup Time before SCLOCK Edge100n s7
Data Input Hold Time after SCLOCK Edge100ns7
Data Output Fall Time1025ns7
Data Output Rise Time1025ns7
SCLOCK Rise Time1025ns7
SCLOCK Fall Time1025ns7
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
t
SH
t
SL
t
SR
t
SF
MOSI
MISO
t
DAV
t
DSU
MSB IN
t
DHD
t
DF
t
DR
BITS 6 › 1
BITS 6 › 1
Figure 7. SPI Master Mode Timing (CPHA = 1)
LSBMSB
LSB IN
REV. PrC (12 March 2002)
–13–
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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
NOTE
*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 Output Setup before SCLOCK Edge150ns8
Data Input Setup Time before SCLOCK Edge100n s8
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
DOSU
t
DSU
MSB IN
t
DF
MSBLSB
t
DHD
t
DR
BITS 6 › 1
Figure 8. SPI Master Mode Timing (CPHA = 0)
LSB INBITS 6 › 1
–14–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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 Edge0ns9
SCLOCK Low Pulsewidth330ns9
SCLOCK High Pulsewidth330ns9
Data Output Valid after SCLOCK Edge50ns9
Data Input Setup Time before SCLOCK Edge100n s9
Data Input Hold Time after SCLOCK Edge100ns9
Data Output Fall Time1025ns9
Data Output Rise Time1025ns9
SCLOCK Rise Time1025ns9
SCLOCK Fall Time1025ns9
SS High after SCLOCK Edge0ns9
SS
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
MISO
MOSI
t
SS
t
DF
MSB IN
MSB
t
DHD
t
SL
t
DF
t
DR
BITS 6
t
SH
t
DAV
t
DSU
Figure 9. SPI Slave Mode Timing (CPHA = 1)
t
SFS
t
SR
›
1
BITS 6
›
1LSB IN
LSB
t
SF
REV. PrC (12 March 2002)
–15–
PRELIMINAR Y TECHNICAL D A T A
ADuC834
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 Edge0ns10
SCLOCK Low Pulsewidth330ns10
SCLOCK High Pulsewidth330ns10
Data Output Valid after SCLOCK Edge50ns10
Data Input Setup Time before SCLOCK Edge100n s10
Data Input Hold Time after SCLOCK Edge100ns10
Data Output Fall Time1025ns10
Data Output Rise Time1025ns10
SCLOCK Rise Time1025ns10
SCLOCK Fall Time1025ns10
SS to SCLOCK Edge50ns10
Data Output Valid after SS Edge20ns10
SS High after SCLOCK Edge0ns10
SS
SCLOCK
(CPOL = 0)
SCLOCK
(CPOL = 1)
MISO
MOSI
t
DOSS
t
SS
t
DSU
MSB IN
MSB
t
DHD
t
SH
t
t
SL
t
DAV
DF
t
DR
BITS 6 › 1
BITS 6 › 1
Figure 10. SPI Slave Mode Timing (CPHA = 0)
t
SR
LSB IN
LSB
t
SFS
t
SF
–16–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
ABSOLUTE MAXIMUM RATINGS
(TA = 25°C unless otherwise noted)
1
AVDD to AGND . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
AV
to DGND . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DD
to AGND . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DV
DD
to DGND . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V
DV
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 ADuC834.
3
Applies to P1.2 to P1.7 pins operating in analog or digital input modes.
PIN CONFIGURATION
52-Lead MQFP
ORDERING GUIDE
ModelTemperaturePackagePackage
RangeDescriptionOption
ADuC834BS–40°C to +85°C52-Lead Plastic Quad FlatpackS-52
QuickStart Development SystemDescription
Model
EVAL-ADUC834QSDevelopment System for the ADuC834 MicroConverter, Containing:
Evaluation Board
Serial Port Cable
Windows
®
Serial Downloader (WSD)
Windows Debugger/Emulator (with C source DeBug)
Windows ADuC834 Simulator (ADSIM)
Windows ADC Analysis Software Program (WASP)
8051 Assembler (Metalink)
Example Code
Documentation
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
34
the ADuC8
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.
* SHADED AREAS REPRESENT THE NEW FEATURES OF THE ADUC834 OVER THE ADUC824
Figure 11. ADuC834 Detailed Block Diagram
ADuC834 PIN BY PIN FUNCTION DESCRIPTION
Pin No.MnemonicType*Description
1, 2P1.0/P1.1I/OP1.0 and P1.1 can function as a digital inputs or digital outputs and have a
pull-up configuration as described below for Port 3. P1.0 and P1.1 have an
increased current drive sink capability of 10 mA.
P1.0/T2/PWM0I/OP1.0 and P1.1 also have various secondary functions as described below.
P1.0 can also be used to provide a clock input to Timer 2. When Enabled, counter
2 is incremented in response to a negative transition on the T2 input pin.
If the PWM is enabled then the PWM0 output will appear at this pin.
P1.1/T2EX/PWM1I/OP1.1 can also be used to provide a control input to Timer 2. When Enabled, a
negative transition on the T2EX input pin will cause a Timer 2 capture or reload
event.
If the PWM is enabled then the PWM1 output will appear at this pin.
–18–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
Pin No.MnemonicType*Description
3-4, 9-12P1.2-P1.7IPort 1.2 to Port 1.7 have no digital output driver; they can function as a digital
input 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/IEXC1I/OThe voltage output from the DAC or one or both current sources (20 0 µ A o r 2 x
200 µA ) can be configured to appear at this pin.
P1.3/AIN5/IEXC2I/OAuxiliary ADC Input or one or both current sources can be configured at this pin.
P1.4/AIN1IPrimary ADC, Positive Analog Input
P1.5/AIN2IPrimary ADC, Negative Analog Input
P1.6/AIN3IAuxiliary ADC Input or muxed Primary ADC, Positive Analog Input
P1.7/AIN4/DACI/OAuxiliary ADC Input or muxed Primary ADC, Negative Analog Input. The voltage
output from the DAC can also be configured to appear at this pin.
5AV
6AGNDSAnalog Ground. Ground reference pin for the analog circuitry.
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
15RESETIReset Input. A high level on this pin for 16 core clock cycles while the oscillator is
16–19,P3.0–P3.7I/OP3.0–P3.7 are bidirectional port pins with internal pull-up resistors. Port 3 pins
22-25that have 1s written to them are pulled high by the internal pull-up resistors, and
DD
P3.0/RXDI/OReceiver Data for UART serial Port
P3.1/TXDI/OTransmitter Data for UART serial Port
P3.2/INT0I/OExternal Interrupt 0. This pin can also be used as a gate control input to Timer0.
P3.3/INT1I/OExternal Interrupt 1. This pin can also be used as a gate control input to Timer1.
P3.4/T0I/OTimer/Counter 0 External Input
P3.5/T1I/OTimer/Counter 1 External Input
P3.6/WRI/OExternal Data Memory Write Strobe. Latches the data byte from Port 0 into an
P3.7/RDI/OExternal Data Memory Read Strobe. Enables the data from an external data
SAnalog Supply Voltage, 3 V or 5 V
input pin.
running resets the device. There is an internal weak pull-down and a Schmitt
trigger input stage on this pin.
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.
external data memory.
memory to Port 0.
20, 34, 48DV
21, 35, 47DGNDSDigital ground, ground reference point for the digital circuitry.
26SCLOCK/D0I/OSerial interface clock for the SPI interface. As an input this pin i s a Schmitt
27MOSI/D1I/OSerial master output/slave input data for the SPI interface. A weak internal
REV. PrC (12 March 2002)
DD
SDigital supply, 3 V or 5 V.
triggered input and a weak internal pull-up is present on this pin unless it is
outputting logic low.
This pin can also be controlled directly in software as a digital output pin.
pull-up is present on this pin unless it is outputting logic low.
This pin can also be controlled directly in software as a digital output pin.
–19–
PRELIMINAR Y TECHNICAL D A T A
ADuC834
Pin No.MnemonicType*Description
28–31P2.0–P2.7I/OPort 2 is a bidirectional port with internal pull-up resistors. Port 2 pins that have 1s
36-39(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.
32XTAL1IInput to the crystal oscillator inverter.
33XTAL2OOutput from the crystal oscillator inverter. (see page 68 for description)
40EAI/OExternal Access Enable, Logic Input. When held high, this input enables the device
to fetch code from internal program memory locations 0000h to F800h. 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.
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.7I/OP0.0–P0.7, these pins are part of Port0 which is an 8-bit open-drain bidirectional
49–52(AD0–AD3)I/O port. Port 0 pins that have 1s written to them float and in that state can be used
(AD4–AD7)as high impedance inputs. An external pull-up resistor will be required on P0
outputs to force a valid logic high level externally. Port 0 is also the multiplexed
low-order address and 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 ADuC834 hardware unless otherwise stated.
3. User software should not write 1s to reserved or unimplemented bits as they may be used in future products.
–20–
(12 March 2002) REV. PrC
PRELIMINAR Y TECHNICAL D A T A
ADuC834
MEMORY ORGANIZATION
The ADuC834 contains 4 different memory blocks namely:
- 62kBytes of On-Chip Flash/EE Program Memory
- 4kBytes of On-Chip Flash/EE Data Memory
- 256 Bytes of General Purpose RAM
- 2kBytes of Internal XRAM
(1) Flash/EE Program Memory
The ADuC834 provides 62kBytes of Flash/EE program
memory to run user code. The user can choose to run code
from this internal memory or run code from an external program memory.
If the user applies power or resets the device while the EA pin
is pulled low, the part will execute code from the external program space, otherwise the part defaults to code execution
from i ts internal 62kBytes of Flash/EE program memory. Unlike the ADuC824, where code execution can overflow from the
internal code space to external code space once the PC becomes greater than 1FFFh, the ADuC834 does not support the
rollover from F7FFh in internal code space to F800h in external code space. Instead the 2048 bytes between F800h and
FFFFh will appear as NOP instructions to user code.
This internal code space can be downloaded via the UART
serial port while the device is in-circuit.
56kBytes of the program memory can be repogrammed during
runtime hence the code space can be upgraded in the field
using a user defined protocol or it can be used as a data
memory. This will be discussed in more detail in the Flash/EE
Memory section of the datasheet.
(2) Flash/EE Data Memory
4kBytes of Flash/EE Data Memory are available to the user
an d c a n b e accessed indirectly via a group of control registers
mapped into the Special Function Register (SFR) area. Access
to the Flash/EE Data memory is discussed in detail later as part
of the Flash/EE memory section in this data sheet.
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.
7FH
GENERAL-PURPOSE
AREA
30H
BANKS
SELECTED
VIA
BITS IN PSW
20H
11
18H
10
10H
01
08H
00
00H
2FH
BIT-ADDRESSABLE
(BIT ADDRESSES)
1FH
17H
FOUR BANKS OF EIGHT
REGISTERS
0FH
R0 R7
07H
RESET VALUE OF
STACK POINTER
Figure 12. Lower 128 Bytes of Internal Data Memory
The ADuC834 contains 2048 bytes of internal XRAM, 1792
bytes of which can be configured to be used as an extended 11bit stack pointer.
By default the stack will operate exactly like an 8052 in that it
will rollover from FFh to 00h in the general purpose RAM. On
the ADuC834 however it is possible (by setting CFG834.7) to
enable the 11-bit extended stack pointer. In this case the stack
will rollover from FFh in RAM to 0100h in XRAM.
The 11-bit stack pointer is visable 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 3 extra bits necessary to extend the 8-bit stack pointer into
an 11-bit stack pointer.
(3) General Purpose RAM
The general purpose RAM is divided into two seperate memories, namely the upper and the lower 128 bytes of RAM. The
lower 128 bytes of RAM can be accessed through direct or
indirect addressing while 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 12. The lowest 32 bytes are grouped into
four banks of eight registers addressed as R0 through R7. The
next 16 bytes (128 bits), locations 20Hex through 2FHex
above the register banks, form a block of directly addressable
bit locations at bit addresses 00H through 7FH. The stack can
be located anywhere in the internal memory address space, and
the stack depth can be expanded up to 2048 bytes.
Reset initializes the stack pointer to location 07 hex and increments it once before loading the stack to start from locations 08
hex which is also the first register (R0) of register bank 1. Thus,
REV. PrC (12 March 2002)
–21–
07FFH
UPPER 1792
BYTES OF
ON-CHIP XRAM
(DATA +STACK
FOR EXSP=1,
DATA ONLY
100H
00H
FOR EXSP=0)
LOWER 256
BYTES OF
ON-CHIP XRAM
(DATA ONLY)
CFG834.7 = 0
FFH
256 BYTES OF
ON-CHIP DATA
(DATA + STACK)
00H
CFG834.7 = 1
RAM
Figure 13. Extended Stack Pointer Operation
ADuC834
PRELIMINAR Y TECHNICAL D A T A
External Data Memory (External XRAM)
Just like a standard 8051 compatible core the ADuC834 can
access external data memory using a MOVX instruction. The
MOVX instruction automatically outputs the various control
strobes required to access the data memory.
The ADuC834 however, can access up to 16MBytes of extrenal
data memory. This is an enhancement of the 64kBytes external
data memory space available on a standard 8051 compatible
core.
The external data memory is discussed in more detail in the
ADuC834 Hardware Design Considerations section.
Internal XRAM
2kBytes of on-chip data memory exist on the ADuC834. This
memory although on-chip is also accessed via the MOVX instruction. The 2kBytes of internal XRAM are mapped into the
bottom 2kBytes of the external address space if the CFG834.0
bit is set, otherwise access to the external data memory will
occur just like a standard 8051.
Even with the CFG834.0 bit set access to the external XRAM
will occur once the 24 bit DPTR is greater than 0007FFH.
When accessing the internal XRAM the P0, 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.
FFFFFFH
FFFFFFH
SPECIAL FUNCTION REGISTERS (SFRs)
The SFR space is mapped into the upper 128 bytes of internal
data memory space and accessed by direct addressing only. It
provides an interface between the CPU and all on chip peripherals. A block diagram showing the programming model of the
ADuC834 via the SFR area is shown in Figure 15.
All registers except the Program Counter (PC) and the four
general-purpose register banks, reside in the SFR area. The
SFR registers include control, configuration, and data registers that provide an interface between the CPU and all on-chip
peripherals.
62 KBYTE ELECTRICALLY
REPROGRAMMABLE
NONVOLATILE FLASH/EE
PROGRAM MEMORY
8051-
COMPAT IBLE
CORE
256 BYTES RAM
2K XRAM
128-BYTE
SPECIAL
FUNCTION
REGISTER
AREA
4 KBYTE
ELECTRICALLY
REPROGRAMMABLE
NONVOLAT ILE
FLASH/EE DATA
MEMORY
DUAL
SIGMA-DELTA
ADCs
OTHER ON-CHIP
PERIPHERALS
TEMP SENSOR
CURRENT SOU RCES
12-BIT D A C
SERIAL I/O
WDT, PSM
TIC, PLL
EXTERNAL
MEMORY
ADDRESS
2 KBYTES
ON-CHIP
CFG834.0=1
000000H
EXTERNAL
DATA
MEMORY
SPACE
(24-BIT
ADDRESS
SPACE)
CFG834.0=0
000800H
0007FFH
000000H
Figure 14. Internal and External XRAM
DATA
SPACE
(24-BIT
SPACE)
XRAM
Figure 15. Programming Model
Accumulator SFR (ACC)
ACC is the Accumulator register and is used for math operations including addition, subtraction, integer multiplication and
division, and Boolean bit manipulations. The mnemonics for
accumulator-specific instructions refer to the Accumulator as
A.
B SFR (B)
The B register is used with the ACC for multiplication and
division operations. For other instructions it can be treated
as a general-purpose scratchpad register.
Stack Pointer (SP and SPH)
The SP SFR is the stack pointer and is used to hold an internal
RAM address that is called the ‘top of the stack.’ The SP register
is incremented before data is stored during PUSH and CALL
executions. While the Stack may reside anywhere in on-chip
RAM, the SP register is initialized to 07H after a reset. This
causes the stack to begin at location 08H.
As mentioned earlier the ADuC834 offers an extended 11-bit
stack pointer. The 3 extra bits to make up the 11-bit stack
pointer are the 3 LSBs of the SPH byte located at B7h.
–22–
(12 March 2002) REV. PrC
Loading...
+ 50 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.