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
Содержание 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...