
Running the demo project
UM0299
3.3 Debugging
1.
Click the "Go" icon in the menu bar to run the program.
The program runs full speed with the D6 red LED (middle LED in the bank of 3 red
ones) blinking at a couple HZ frequency.
2.
Click the "Reset" icon to restart execution at the first line of the main program.
The blue line should be on blink_delay = SHORT.
3.
Click the "Step-In" icon twice.
The debugger is now in the called function,
timer0_init()
.
4.
Double click " Disassembly Code" in the left debugger window.
This opens a display named "Disassembly code (led_blink)" showing both C and
Assembly code source instructions.
5.
Click the "Step-Over" icon a few times to see that code execution can be stepped one
assembly instruction at a time.
6.
Click "Reset" to return to the main program,
led_blink.c.
7.
Click on the LED_BLINK.C tab the Code/ Edit/Trace window to return to the C code
window.
3.4
Changing the display of information
1.
Double-click the "Main Registers" icon in the left debugger window.
The contents of the MCU core registers is displayed (see