2001 Microchip Technology Inc.
DS51159B-page 117
Advanced Features
6.3.5.5
Filter Trace Example - Data Memory
How do I filter on data memory?
Filtering on PICmicro file register reads and writes will result in the collection
of the cycles immediately following the R/W. While this is not exactly the
information you are looking for, it does provide two data points:
1.
The program memory after the R/W occurred, so you can track down
places in your code that affect a particular variable or SFR.
2.
The number of times the R/W occurred, providing you with a count of the
collected cycles.
There are two ways to capture the actual data values with a filter. The first is
to filter on the routine that does the R/W. This will generate some extra cycles,
but will collect the proper information. The second is to make code that will
generate two R/W cycles to the same location, one of which does not affect
the actual data. For instance, the register can be ANDed with a value of 0xFF
to generate the extra cycle like this:
test
movlw 0xFF
movwf LSDigit
test1
decfsz LSDigit
andwf LSDigit
; generate extra read/w to LSDigit
goto test1
Содержание 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...