MPLAB
®
ICE User’s Guide
DS51159B-page 114
2001 Microchip Technology Inc.
6.3.5.3
Time Between Events Example
An application contains a delay loop. How long is the delay?
For this problem, a Time Between Events trigger is very useful. Suppose the
delay routine is called
Delay
. For debugging purposes, a label
EndDelay
has been added at the address of the delay routine’s return statement. Set the
Start Timer tab to a program memory fetch of address
Delay
, and the Stop
Timer tab to a program memory fetch of address
EndDelay
. Check the
Ignore FNOP Cycles box, and leave both halt checkboxes unchecked. Apply
the trigger, open the trace memory window, then run. After
EndDelay
is
reached, the trace memory window will fill and the largest time stamp value
will be the time between the two events.
Figure 6.12: Specifying the Event that will Start the Timer
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...