
REV.
P
rC (12 March 2002)
ADuC834
–
69
–
PRELIMINARY TECHNICAL DATA
OT HE R HARDWARE CONSIDE RAT IONS
T o facilitate in-circuit programming, plus in-circuit debug
and emulation options, users will want to implement some
simple connection points in their hardware that will allow easy
access to download, debug, and emulation modes.
In-C ircuit Serial Download Access
Nearly all ADuC834 designs will want to take advantage of
the in-circuit reprogrammability of the chip. T his is accomplished
by a connection to the ADuC834
’
s UART , which requires an
external RS-232 chip for level translation if downloading code
from a PC. Basic configuration of an RS-232 connection is
illustrated in Figure 61 with a simple ADM202-based circuit.
If users would rather not design an RS-232 chip onto a board,
refer to the application note
“
uC006
–
A 4-Wire UART -to-PC
Interface
”
1
for a simple (and zero-cost-per-board) method of
gaining in-circuit serial download access to the ADuC834.
Note
1
Application note uC006 is available at www.analog.com/microconverter
In addition to the basic UART connections, users will also
need a way to trigger the chip into download mode. T his is
accomplished via a 1 k
pull-down resistor that can be
jumpered onto the
PSEN
pin, as shown in Figure 61. T o get the
ADuC834 into download mode, simply connect this jumper
and power-cycle the device (or manually reset the device, if a
manual reset button is available) and it will be ready to receive
a new program serially. With the jumper removed, the device
will come up in normal mode (and run the program) whenever
power is cycled or RESET is toggled.
Note that
PSEN
is normally an output (as described in the
External Memory Interface section) and it is sampled as an
input only on the falling edge of RESET (i.e., at power-up or
upon an external manual reset). Note also that if any exter-
nal circuitry unintentionally pulls
PSEN
low during power-up
or reset events, it could cause the chip to enter download mode
and therefore fail to begin user code execution as it should. T o
prevent this, ensure that no external signals are capable of
pulling the
PSEN
pin low, except for the external
PSEN
jumper itself.
E mbedded Serial Port Debugger
From a hardware perspective, entry to serial port debug mode
is identical to the serial download entry sequence described
above. In fact, both serial download and serial port debug
modes can be thought of as essentially one mode of operation
used in two different ways.
Note that the serial port debugger is fully contained on the
ADuC834 device, (unlike "ROM monitor" type debuggers)
and therefore no external memory is needed to enable in-
system debug sessions.
Single-Pin E mulation Mode
Also built into the ADuC 834 is a dedicated controller for
single-pin in-circuit emulation (ICE) using standard produc-
tion ADuC834 devices. In this mode, emulation access is
gained by connection to a single pin, the
EA
pin. Normally, this
pin is hard-wired either high or low to select execution from
internal or external program memory space, as described
earlier. T o enable single-pin emulation mode, however, users
will need to pull the
EA
pin high through a 1 k
resistor as
shown in Figure 61. T he emulator will then connect to the 2-
pin header also shown in Figure 61. T o be compatible with
the standard connector that comes with the single-pin emulator
available from Accutron Limited (www.accutron.com), use a 2-
pin 0.1-inch pitch "Friction Lock" header from Molex
(www.molex.com) such as their part number 22-27-2021. Be
sure to observe the polarity of this header. As
represented in Figure 61, when the Friction L ock tab is at
the right, the ground pin should be the lower of the two pins
(when viewed from the top).
E nhanced-Hooks E mulation Mode
ADuC834 also supports enhanced-hooks emulation mode. An
enhanced-hooks-based emulator is available from Metalink Cor-
poration (www.metaice.com). No special hardware support for
these emulators needs to be designed onto the board since
these are "pod-style" emulators where users must replace the
chip on their board with a header device that the emulator pod
plugs into. T he only hardware concern is then one of determining
if adequate space is available for the emulator pod to fit into the
system enclosure.
T ypical System C onfiguration
A typical ADuC834 configuration is shown in Figure 61. It
summarizes some of the hardware considerations discussed
in the previous paragraphs.
Figure 61 also includes connections for a typical analog mea-
surement application of the ADuC834, namely an interface
to an RT D (Resistive T emperature Device). T he arrangement
shown is commonly referred to as a 4-wire RT D configuration.
Here, the on-chip excitation current sources are enabled to
excite the sensor. An external differential reference voltage is
generated by the current sourced through resistor R1. T his cur-
rent also flows directly through the RT D, which generates a
differential voltage directly proportional to temperature. T his
differential voltage is routed directly to the positive and nega-
tive inputs of the primary ADC (AIN1, AIN2 respectively). A
second external resistor, R2, is used to ensure that absolute
analog input voltage on the negative input to the primary
ADC stays within that specified for the ADuC834, i.e.,
AGND + 100 mV.
It should also be noted that variations in the excitation current
do not affect the measurement system as the input voltage from
the RT D and reference voltage across R1 vary ratiometrically
with the excitation current. Resistor R1 must, however, have
a low temperature coefficient to avoid errors in the reference
voltage over temperature.