1998 Aug 26
55
Philips Semiconductors
Product specification
Low voltage 8-bit microcontroller with
6-kbyte embedded RAM
SZF2002
22 DEBUGGING SUPPORT
For software development the SZF2002 is made
compatible with the Nohau 80C51 In-Circuit Emulator
(ICE).
22.1
Recommended equipment
1.
Nohau EMUL51-PC/EA768-BSW-42 42 MHz,
768-kbyte emulator memory board.
Nohau EMUL51-PC/ATR64-33, 33 MHz, 64-kbyte
advanced trace memory board.
Nohau EMUL51-PC/POD-C32HF-42, external
memory mode pod for a.o. 80C51/80C32.
2.
3.
22.2
Connecting the pod
The Nohau In-Circuit Emulator requires the following
80C51 pins: P0.0 to P0.7, P2.0 to P2.7, ALE, PSEN, RD,
WR, EA and RST.
When setting the SZF2002 in Debug mode (force DEBUG
HIGH), these signals become available on the pins as
described in Section 7.2
The connection between the SZF2002 and the emulator is
shown in Fig.27.
For emulation the Target board must be configured with
the SZF2002 mounted, but without external Flash and
RAM, or disabled by disconnecting the OE.
On the Target board a 40-pin connector is required that
has all the necessary 80C51 signals (Port 0, Port 2,
PSEN, ALE, EA, RST, V
DD
and V
SS
). The 16 port pins are
optional. The three banking bits are not standard 80C51
signals and are not available at the DIL40
80C51-connector of the pod. These three bits must be
connected via three separate wires to the signals BS0
(LSB), BS1 and BS2 (MSB) on the pod.
The emulator pod has a DIL40 socket for the 80C51
processor (on the upper side). By connecting the 40-pin
connector to this socket the emulator will approach the
SZF2002 as if it were a 80C51. The connector on the lower
side of the pod is not used. The emulator acts as a memory
emulator.
22.3
Powering the pod
Because the SZF2002 is a 3 V circuit, the ICE pod must be
powered by the target (supply from PC is not possible, see
documentation for EMUL51-PC/POD-C32HF-42).
Therefore, V
DD
and V
SS
for the SZF2002 are also required.
The clock signal is
not
required on the pod.
The digital power V
DD
has to be connected to the pod.
The ground of the pod must be connected to the ground of
the target board via the black gnd-wire soldered to the pod
Because the target supplies the pod the following
power-up/power-down sequence is required:
1.
Switch on target.
2.
Switch on PC.
3.
Switch off target.
When using 3 V power from the target, note that the pod
will drive the inputs up to 3.5 V. Some current will also flow
through the V
DD
connection to the target. If the emulator is
used together with an I
2
C-bus interface to a PC or together
with an RS232-connection, use 3.3 V power for the target.
This will reduce noise and disturbance on all input and
output signals. In practice, it is seen that this will result in a
more robust communication between the SZF2002 and
Nohau.
Both I
2
C-bus pins (SDA and SCL) need an external pull-up
resistor.
22.4
Bank switching support
If bank switching is required, the in-circuit emulator also
needs the TRUE_A15 and the three banking bits
A15 to A17.
16 port pins (selection of Ports 3 and 4) can also be
connected to the emulator pod, however this is not
necessary. When connected, the state of these ports can
be traced.
To set up the banking configuration the BM jumpers on the
emulator board have to be set. The following set-up is
recommended:
1.
Jumper BM3 is out.
2.
Jumper BM2 is out.
3.
Jumper BM1is don’t care.
4.
Jumper BM0 is in.
22.5
The Keil/Franklin assembler and banked linker is well
suited for use with the Nohau ICE (especially for banking
configurations).
Software recommendations
The Nohau ICE communicates with the SZF2002 using
MOVX instructions. Therefore, all MOVX instructions must
be forced to access off-chip memory instead of internal
AUX RAM by setting the ARD bit of the SFR PCON.