2001 Microchip Technology Inc.
DS51159B-page 49
Tutorial - PIC16CXXX
Next, open a new watch window by selecting Window>Watch Windows>New
Watch Window. Scroll down in the scroll list of the Add Watch Window dialog
until you find PORTB. Click on it to select the PORTB Symbol. Click Add. The
PORTB symbol should now appear in the watch window Watch_1
(Figure 2.12). Click Close to close the Add Watch Window dialog.
Figure 2.12: Watch Window
Now you will set a software break point in the source code file window. Go to
the main loop of the program and click the right mouse button on the line
movwf PORTB
. A menu will appear. Select Software Break Point(s). The line
of code will change color. If you don’t like this color, you may change it by
selecting Options>Environment Setup, clicking the Color tab, and selecting a
different Color for Break Point Text.
Figure 2.13: Set Software Break Point
Run the program by selecting Debug>Run>Run or by clicking the toolbar
green stoplight icon. The status bar on the bottom of the MPLAB IDE window
will change color, indicating that the program is running. The program will halt
when it reaches the break point.
Summary of Contents for MPLAB ICE
Page 1: ...2001 Microchip Technology Inc DS51159C MPLAB ICE EMULATOR USER S GUIDE M...
Page 8: ...MPLAB ICE User s Guide DS51159B page viii 2001 Microchip Technology Inc...
Page 18: ...MPLAB ICE User s Guide DS51159B page 18 2001 Microchip Technology Inc NOTES...
Page 36: ...MPLAB ICE User s Guide DS51159B page 36 2001 Microchip Technology Inc NOTES...
Page 58: ...MPLAB ICE User s Guide DS51159B page 58 2001 Microchip Technology Inc NOTES...
Page 80: ...MPLAB ICE User s Guide DS51159B page 80 2001 Microchip Technology Inc NOTES...
Page 126: ...MPLAB ICE User s Guide DS51159B page 126 2001 Microchip Technology Inc NOTES...
Page 140: ...MPLAB ICE User s Guide DS51159B page 140 2001 Microchip Technology Inc NOTES...
Page 158: ...MPLAB ICE User s Guide DS51159B page 158 2001 Microchip Technology Inc NOTES...
Page 189: ...2001 Microchip Technology Inc DS51159B page 189 Index NOTES...
Page 190: ...MPLAB ICE User s Guide DS51159B page 190 2001 Microchip Technology Inc NOTES...
Page 191: ...2001 Microchip Technology Inc DS51159B page 191 Index NOTES...