2001 Microchip Technology Inc.
DS51159B-page 155
Debugging Techniques
Select Halt on Trigger and then click Apply or OK.
Connect the logic probes to the appropriate port pins. For example, if you are
triggering on Port B outputs, connect probe EXT0 to RB0, EXT1 to RB1, etc.
Reset the system (Debug>System Reset) and then run your program
(Debug>Run>Run or green stoplight icon on toolbar). After it halts, bring up
the Trace Memory Window (Window>Trace Memory).
View the executed code to debug your program.
Solution B: Trigger In
To clear all break, trace and trigger points, select Debug>Clear All Points.
Select Debug>Trigger In/Out Settings to open the Trigger In/Out Settings
dialog.
Figure A.18: Trigger In for Logic Probes
Select Enable break on external trigger input and then select either Rising
edge or Falling edge. If you want the trace buffer to freeze on a rising edge of
the trigger input, select that option as well. Click OK.
Connect the trigger input (TRIGIN) probe to the appropriate output. For
example, if an incorrect output corresponded with Port B pin RB2 going high,
you would connect TRIGIN to RB2.
Reset the system (Debug>System Reset) and then run your program
(Debug>Run>Run or green stoplight icon on toolbar). After it halts, bring up
the Trace Memory Window (Window>Trace Memory).
View the executed code to debug your program.
A.4.6
Number of loop executions
An application loop must be executed a number of times. How do you
determine if the loop executed that many times?
You can use the pass counter to determine if a loop is executed a specific
number of times.
To clear all break, trace and trigger points, select Debug>Clear All Points.
Содержание MPLAB ICE
Страница 1: ...2001 Microchip Technology Inc DS51159C MPLAB ICE EMULATOR USER S GUIDE M...
Страница 8: ...MPLAB ICE User s Guide DS51159B page viii 2001 Microchip Technology Inc...
Страница 18: ...MPLAB ICE User s Guide DS51159B page 18 2001 Microchip Technology Inc NOTES...
Страница 36: ...MPLAB ICE User s Guide DS51159B page 36 2001 Microchip Technology Inc NOTES...
Страница 58: ...MPLAB ICE User s Guide DS51159B page 58 2001 Microchip Technology Inc NOTES...
Страница 80: ...MPLAB ICE User s Guide DS51159B page 80 2001 Microchip Technology Inc NOTES...
Страница 126: ...MPLAB ICE User s Guide DS51159B page 126 2001 Microchip Technology Inc NOTES...
Страница 129: ...2001 Microchip Technology Inc DS51159B page 129 Verification Figure 7 3 Verify MPLAB ICE Run Mode Tests...
Страница 140: ...MPLAB ICE User s Guide DS51159B page 140 2001 Microchip Technology Inc NOTES...
Страница 158: ...MPLAB ICE User s Guide DS51159B page 158 2001 Microchip Technology Inc NOTES...
Страница 189: ...2001 Microchip Technology Inc DS51159B page 189 Index NOTES...
Страница 190: ...MPLAB ICE User s Guide DS51159B page 190 2001 Microchip Technology Inc NOTES...
Страница 191: ...2001 Microchip Technology Inc DS51159B page 191 Index NOTES...