Microchip Technology AC164133 Data Sheet
Getting Started
© 2008 Microchip Technology Inc.
DS70336A-page 45
3.
Press <F5> to halt the processor and press <F6> to reset the processor. The
Program Memory now displays a green arrow pointing to the line of code at
address 0.
Program Memory now displays a green arrow pointing to the line of code at
address 0.
The instruction at this location is goto 0x000100. This code is added by the linker to
make the program branch to the start of the code in the main.c file. The executable
code starts from location 0x000100.
make the program branch to the start of the code in the main.c file. The executable
code starts from location 0x000100.
3.5.2
Stepping the Program
To step the program:
1.
Press <F7> to single step the code. The green arrow now points to the code
below ACLKCONbits.ENAPLL = 1; in the main.c source code, as shown in
Figure 3-21.
below ACLKCONbits.ENAPLL = 1; in the main.c source code, as shown in
Figure 3-21.
FIGURE 3-21:
SOURCE CODE WINDOW
2.
Right click the instruction up to which the code is to be executed and select Run
to Cursor.
to Cursor.
The program is executed up to the instruction selected.
3.
Select View>Watch. The Watch window appears, as shown in Figure 3-22.