
UM0299
Running the demo project
Figure 4.
MCU registers
2.
Double-click the "Port 1" icon in the left debugger window to show the current value of
the pins in I/O port 1.
3.
Go back to the file,
led_blink.c
by clicking on the tab at the bottom of the main
display window (see
), and expand the window view back to full screen.
3.5
Setting breakpoints in the program
The µPSD3400 hardware provides physical registers into which up to four hardware
breakpoint addresses can be set by the debugger.
1.
Set two breakpoints by clicking on the green dot on the left of the two lines of code
timer0_delay
(blink_delay) in the
while(1)
loop.
The green dot turns into a red S icon and the line of code is highlighted in red as shown
in
2. Click
"Go".
The program will run until it hits the first breakpoint.
3.
Check the status of the red LED D6.
4.
Click "Go" again. See the red LED changing from ON to OFF, toggling back and forth,
by repeatedly clicking on the icon.
5.
Remove the two breakpoints, by clicking in the margin on the two red S icons.
6.
Click GO again.
The blinking routine now runs without interruption.