MPLAB
®
ICE User’s Guide
DS51159B-page 154
2001 Microchip Technology Inc.
A.4.4
All code executed
Test an application to ensure that all the code is being executed.
See Code Coverage, Section 6.4.
A.4.5
Output not correct
An application has outputs that are not correct. How do you find out what is
going on?
Use the logic probes to trigger on output values and then examine the
executed code in the trace buffer to find the problem. There are two possible
ways to do this: use the eight external inputs (EXT7:EXT0) or use the trigger
in (TRGIN). For more information on logic probes, see Section B.6.
Solution A: External Inputs
To clear all break, trace and trigger points, select Debug>Clear All Points.
Select Debug>Complex Trigger Settings to open the Complex Trigger
Settings dialog.
Figure A.17: Sequential Trigger for Logic Probes
Set up the Complex Trigger Settings dialog for Sequential Trace on Program
Memory. Ignore FNOP Cycles should be checked.
Select Logic Probes and enter an 8-bit value for the trigger. When this value
appears on probes EXT7:EXT0, the trigger will fire. You may enter the value
as binary (ex:
00001111
) or hexidecimal (ex:
0x0F
). The ’
x
’ character means
’don’t care’.
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...