2001 Microchip Technology Inc.
DS51159B-page 111
Advanced Features
6.3.5
Complex Triggering Examples
The following examples show some of the ways that complex triggers can be
used to help debug or characterize a problem.
6.3.5.1
Sequential Example - Program Memory
An application has several subroutines. A particular subroutine
(RoutineA) functions correctly to begin with, but after a time, it begins to
function incorrectly. This subroutine is called many times, so it would
be nice to skip the executions where the subroutine functions properly
and breaks just before the subroutine starts to fail. It is observed that
the routine functions correctly until another after subroutine (RoutineB)
is called.
This problem can be solved by a Sequential trigger with two events. The first
event that must occur is the execution of
RoutineB
, so the Event 3 tab is
specified with the fetch of program memory address
RoutineB
. The trigger
should fire when
RoutineA
is called, so the Trigger tab is specified with the
fetch of program memory address
RoutineA
. The Ignore FNOP Cycles is left
checked so prefetches are ignored, and Halt On Trigger is checked so the
improperly executing subroutine can be stepped.
Figure 6.9: Setting the First of Two Sequential Events
Содержание 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...