Distributor of STMicroelectronics: Excellent Integrated System Limited
Datasheet of ST62GP-EMU2 - KIT EMULATOR FOR ST6 MCU SER
Contact us: [email protected] Website: www.integrated-circuit.com
ST62GP-EMU2 Emulator User Manual
4 - Tutorial
29/57
3
Scroll through the symbols to find DDRB, click it once to highlight it and then
click Add To Watch. This causes the Watch window (see
Figure 13
) which
displays the contents of DDRB to pop up.
4
In the Watch window, click on DDRB and then Display, Base, Hexadecimal.
This changes the DDRB register (because it is highlighted) from decimal to
hexadecimal notation. Then click Display, Prefs and Hexa - this will make any
new register that is added to the Watch window be displayed in hexadecimal
format.
5
Make the Watch window smaller and move the Watch, Browser, tutorial.asm
and Control Bar windows to a location on the screen where they can all be
easily read.
6
In the Browser window, add the following registers to the Watch window in the
same way that you added DDRB: ORB, DRB, drbcopy, IOR, TSCR and TCR.
Close the Browser window.
Note:
You can also type the names of the registers directly in the Watch window.
7
In the Control Bar, click Commands, then Reset. This resets the
microcontroller and places the Program Counter at the Reset vector.
8
In the Control Bar, click Step. This executes only one instruction and since the
instruction at the Reset vector is
jp reset,
it will jump to where the label
reset
is located. After the
jp reset
instruction is executed, the
ldi
DDRB,01h
instruction will be highlighted.
Note:
The highlighted instruction is the next one to be executed.
Results: The Watch window shows the DRB value to be FFh in hexadecimal
as shown in
Figure 14
. This is due to the Port B configuration: all the Port B I/
Figure 13: Watch window
30 / 58
30 / 58