ST ST624 B-EMU2 Series Manual

ST624xB-EMU2
REAL TIME EMULATION
DEVELOPMENT TOOLS FOR ST624x MCUs
HARDWARE FEATURES
Supports ST62 and ST63 family
Real time emulation
32 KBytes of emulation memory
Breakpoint ona single address or onan address
area
Break events canbe defined on Program Space,
Data space mixed with up to 4 external signals
2 full programmable output for synchronisation
Read/Write registers on the fly (without wait
state)
Selective trace in Range or Start/Stop
Break on Stack Overflow
1K of real trace memory
Tracing of up to 32 bits including 4 external signals
SOFTWARE FEATURES
Symbolic debugger at source level
On-line assembler/disassembler
Log files capable ofstoringany displayed screen
Commandfilesableto execute asetof debugger
commands
July 1998 1/21
This isadvanceinformation from STMicroelectronics.Details are subject tochangewithout notice.
5
Table of Contents
ST624xB-EMU2 . . . . . . . . . .............................1
1 DELIVERY CHECK . . . . . . . . . . . .................................................4
2 ST6 HDS2 NEW MAINFRAME EMULATOR . . ......................................5
2.1 MAIN BOARD . . . . .......................................................6
2.2 ST6 HDS2 MAIN BOARD . . . ...............................................6
2.2.1 External output: OUT1and OUT2. . . ....................................6
2.2.2 Data acquisition signals . . . ...........................................7
2.2.3 LEDsRUN,STOP,WAIT .............................................7
2.3 INSTALLING AN ST6 EMU2 DEVELOPMENT TOOL. . . . . . . . . . . . . . . . .............7
2.4 INSTALLING A DEDICATION BOARDIN AN ST6 HDS2. . . . . . . . . . . . . . ............7
2.5 COMPONENTS LAYOUT OF ST6 MAIN BOARD (MB097) . . . . . . . . ................8
2.6 COMPONENTS LAYOUT OF ST6 MAIN BOARD (MB174) . . . . . . . . ................9
3 ST6 MAINFRAME EMULATOR (FIRST GENERATION)..............................10
3.1 CLZ80BOARD..........................................................10
3.2 GPFM/3BOARD ........................................................10
3.3 INTERFACE BOARD . . .. . . . . . . ...........................................11
3.4 INSTALLING AN ST6 HDS1 DEVELOPMENT TOOL. . . . . . . . . . . . . . . . ............11
3.5 INSTALLING A DEDICATION BOARDIN AN HDS1 DEVELOPMENT TOOL. . . . . . . . . 11
4 DEDICATION BOARD (DBE) . . . . ...............................................12
4.1 VOLTAGE FUNCTIONING RANGE..........................................12
4.2 JUMPER DESCRIPTION ON DEDICATION BOARD . . . . ........................13
4.2.1 VAPLI-PULLUP: default value on output buffers W11 . . . . . .................13
4.2.2 Clock Source Selection: W2 ..........................................13
4.2.3 Reset delay duration: W3 . . . . . . . . . . . . . . . . . . . . ........................13
4.2.4 Mask option on Timer 1: W4 named PUPTIM1. . . . . . . . . . . . . . . . ............13
4.2.5 Bank RAM/EEPROM selection: W4 named RPG0, RPG1. .. . ...............14
4.2.6 ROM Program Size selection: option on W5 named ROM. . . . ...............14
4.2.7 Timer 2 Enable/Disable: option on W5 named TIM2. . . . . . . . . . . . . . ..........14
4.2.8 Watchdog: W5 named WD . . . . . . .....................................14
4.2.9 Mask option on NMI Input: W5 named PUPNMI. . . . .......................14
4.2.10 Real Time Clock Enable/Disable: option on W5 named RTC.................14
4.2.11 Combiports, Real Time clock selection: W8, W9 . . . . ......................15
4.2.12 W1 (EPLD): reserved ...............................................15
4.2.13 Internal Oscillator frequency selection: W6, W7 . . . ........................15
21
2/21
6
Table of Contents
4.3 PROBE: THE SCHRINK DIP 56 . . . . . . . . . . . . . . . . . . . . ........................16
4.4 PROBE: INSTALLING THE FERRITE COIL FOR EMC COMPATIBILITY . . . . . . . . . . . . 16
4.5 EMULATED PERIPHERALS . . . ............................................16
4.5.1 ProgramRom .....................................................16
4.5.2 Data Space Memory . . . . . . . . . . . . . . . . . . . . . . . . .. . .. . . . ................16
4.5.3 Timer 1, Timer 2, SPI, Watchdog ......................................16
4.5.4 Analog to Digital Converter . ..........................................17
4.5.5 PortA ...........................................................17
4.5.6 PortB ...........................................................17
4.5.7 Port C: combiports. .................................................17
4.5.8 32 Khz Oscillator . . . . ...............................................18
4.5.9 LCDDRIVER .....................................................18
5 TROUBLESHOOTING ........................................................19
5.1 ATPOWERUP .........................................................19
DURING EMULATION: PROBLEM WITH PROGRAM COUNTER. . . ..............19
5.2
5.3 RESET EMULTATION IN REAL TIME. . . . . ...................................19
5.4 DISCREPANCIES BETWEEN EMULATOR AND ROM OR EPROM DEVICE. . . . . . . . . 19
5.5 AVOID THE MOST FREQUENT PROBLEMS WHEN PROGRAMMING ST6 MICROS!. 20
5.5.1 Execution of Interrupt ...............................................20
5.5.2 Execution of WAIT and STOP instructions . . . .. . . . . . . . . . . ................20
3/21
7
ST624xB-EMU2 - DELIVERY CHECK
1 DELIVERY CHECK
This development tool is able to emulate all com­ponents belonging to the ST624BX family, it is able also to emulate the old ST624X family devic­es.
The choice of emulated ROM Device is made ei­ther by properly setting the configuration on the dedication board or by software when using the new Debugger WGDB6under WindowsTM, and by connecting the appropriate PROBE on the dedica­tion board through the flat cables.
When receiving a whole ST624XB development tool or a ST624XB-DBE please refer to the
“PRODUCT DELIVERY” to check the content of the package.
Instructions for use - Warning
This development tool conforms with theEN55022 emissions standard for ITE, and with generic 50082-1 immunity standards. Then, it complies with the 89/336/EEC directive.
The product is a A Class apparatus. In a residen­tial environment this device may cause radioelec­trical disturbance which may require that the user adopts appropriate precautions.
4/21
8
ST624xB-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2 ST6 HDS2 NEW MAINFRAME EMULATOR
The new ST6 HDS2 mainframe (with MB097 main Board) has been designed to replace the HDS1 version. The main modifications are:
– Communication transfer rate: it is now muchfast-
er thanks to the use of parallel port.
– Dimension and weight: the old 3 boards, basic
part of the system, have been redesigned in one board.
– The cost of the overall system has been well re-
duced.
In the second version of ST6 HDS2, (metal box with MB174 main Board) modified for CEM con­formity, these new features have been introduced:
– Read/ Write registers on the flyduring execution
of program without any wait state.
– Selective record of bus in logical analyser in
Range or Start/Stop mode.
– Output OUT1 and OUT2 for synchronisation of
an external equipment, programmable in the same way as Selective trace, in Range or Start/ Stop mode.
Figure 1.Hardware Development System Emulator
– Stack overflow: a break is automatically generat-
ed (by default) in case of stack overflow.
– Break execution: in this new version, the pro-
gram stops before the execution of the fetch.
These main frame consist of a basic part, common to all ST6 devices, and one ST62 or ST63 sub family dedicated board depending on the specific device to emulate. This new emulator is full com­patible with existing dedicated boards, excepting ST631XX-DBE which have been designed in 2 boards.
Only the dedicated board has to be changed to emulate a new device within the ST62/ST63 sub families.
The use of parallel port allows a very faster com­munication transfer rate. The symbolic debugger, software part of the real time emulation tool, can be run on a PC, and is common to all ST62 and ST63 devices.
The debugger uses a windowed menu driven in­terface, and enables the user to set the configura­tion of the emulator.
HARDWARE DEVELOPMENT SYSTEM
EMULATOR (HDS2)
Dedication Board
Power
ST6probe
Triggers
OUT-2OUT-1
Parallel Port connection
Stop Wait Run
ST6 HDS2 EMULATOR (.EMU2)
1234
5/21
9
ST624xB-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2.1 MAIN BOARD
The Main board controls the emulator thanks to a ST9 central processing unit which executes com­mands coming from host computer through the parallel line.
The board contains all emulation resources, the core of the ST6, the Program ROM emulation, the break point logic, the trace memory, the automa­ton and all necessary logic for a real time emula­tion.
Two connectors, J1 and J2, are used to exchange signals with the dedication board.
The amount of program memory in the main board is factory set at 32k,in fact the size of the memory depends on the dedication board, which contains the Program Rom Pagination Register (PRPR) if it exists (no PRPR for memory size lower than 4k).
No configuration jumpers are required.
2.2 ST6 HDS2 MAIN BOARD On the rear panel there is:
– a power plug to connect power: 5 Volts 3 Amp
min. (The delivered power is 100 volts to 240
volts input and 5 Amp output). – a power switch. – a parallel connector for an IBM PC(TM) compat-
ible.
On front panel:
– a led “POWER ON” signal. – OUT 1 and OUT2 signals which can be used for
synchronizing an external equipment. – 2 leds indicating whentheST6 core is in “STOP”
or “WAIT” mode. – a 16 pin connector for data acquisition signals.
The explanation of these signals is done in the
debugger manual.
2.2.1 External output: OUT1 and OUT2
For debugging hardware it is very useful to have synchronization signals. The goal of the outputs 1 and 2 is to offer this feature to the user. They can be programmed differently whether the debugger used is the DOS debugger ST6NDB or the Source Level Debugger WGDB6, as explained in the two following paragraph. They are full programmable with WGDB6.
Output OUT1 and OUT2 under ST6NDB
When using old DOS Version of debugger ST6NDB:
This feature is programmable thanks to Hardware Breakpoint Menu. The breakpoint MENU allows to define breaking events. These events will gener­ate an actual breakpoint only if break enable is ON. When break is off, these events are existing in the development tool. In the HDS2 emulator ver­sion up to 4.3, the signals OUT1 and OUT2 are connected to these internal breaking events. Therefore these signals can be used to synchro­nize an external device while running (breakpoint off).
Output OUT1 and OUT2 under WGDB6
When using WGDB6 new Version of debugger at source level under WindowsTM:
This feature is full programmable thanks to Hard­ware Events/Trigger Menu. Output OUT1 and OUT2 can be programmed in two ways:
– Events for synchronisation: it allows to the user
to preset pulses synchronisation for an external equipment. The events can be defined by ad­dresses or by range of addresses.
– Events for Timing Measure: it allows tothe user
to measure time elapsed during a subroutine for example. In this case, output OUT2 is SET on a user defined address, and RESET on an other one, OUT1 is the ST6 clock cycle gated by OUT2.
These 2 functioning modes are clearly displayed on screen.
6/21
10
ST624xB-EMU2 - ST6 HDS2 NEW MAINFRAME EMULATOR
2.2.2 Data acquisition signals
In a same way as are recorded Buses, Flags, Bank registers in thetrace memory, the ST6 HDS2 offers the possibility to record 4 external signals. These signals must be connected on the pin 1,3,5,7 of the Analyser probe connector on the front panel of the HDS2,as shown below. A flatca­ble with probe tip is delivered with the emulator.
These inputs are CMOS compatible at 5 Volts .
V
CC
Caution:
+5V EMU
GND
1
AL3 AL2 AL1 AL0
2.2.3 LEDs RUN, STOP, WAIT
Three leds have been added to indicate to the user the state of the core or of the development tool during emulation.
First at power up, the red led is ON and becomes OFF after a few time. It lights one short time during connection establishment between ST6 HDS2 emulator and host computer. After that, the Run led must be OFF.
If the LED RUN remains ON after power up, it will cause a default in initialisation of emulator, thisde­fault can be caused by:
– The emulation is in Reset: if the emulator is con-
nected on a target application, this application
must have been powered before.
– There is no clock: see chapter about clock
source selection. After a correct initialisation: When user’s program is running (in real time), led
RUN is on. When ST6 core is in WAITmode, led WAIT is ON. When ST6 core is in STOP mode, both leds STOP
and WAIT are ON.
2.3INSTALLINGAN ST6 EMU2 DEVELOPMENT TOOL
– When receiving a whole development tool, the
dedication board is delivered inside the main-
frame. – You have just to: – connect the power supply to the mains(100 to
240 volts). – connect the output (5Volts) of power supply on
the DIN connector of the rear panel – connect the parallel cable between the parallel
connector and the host computer. For installing the probe, please refer to the appro-
priate item in the Dedication Board chapter.
2.4 INSTALLING A DEDICATION BOARD IN AN ST6 HDS2
If there is already a dedication board in the devel­opment tool, you have simply to:
– unscrew the 2 screws on each side of the dedi-
cation board, and press outward on the release
buttons to extract the board. Then insert the new dedication board in the guide
rods and push it hardly in the backplane, and: – screw the 2 screws on each side of the dedica-
tion board. For installing the probe, please refer to the chapter
“Installing the probe”.
7/21
11
Loading...
+ 14 hidden pages