PMF18WE1 Microchip Technology, PMF18WE1 Datasheet - Page 53

PROCESSOR MODULE FOR ICE4000

PMF18WE1

Manufacturer Part Number
PMF18WE1
Description
PROCESSOR MODULE FOR ICE4000
Manufacturer
Microchip Technology
Datasheet

Specifications of PMF18WE1

Module/board Type
Processor Module
Product
Microcontroller Modules
Core Processor
PIC18F6585/6680/8585/8680
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
ICE4000
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
 2004 Microchip Technology Inc.
6.8.4
A program has a large delay loop. How can program execution be traced without
wading though thousands of delay loop cycles?
For this, use a Filter Trace. Specify the traced addresses to be everything except the
program memory range where the delay loop is located. Uncheck Ignore FNOP Cycles.
Check Infinite Events and use either a software breakpoint or a user halt to stop emu-
lation or uncheck Infinite Events and enter a value for Captured Events. When viewing
the trace memory window, all instances of the delay code should be gone.
FIGURE 6-14:
6.8.5
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
2. The number of times the R/W occurred, providing you with a count of the
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
test1
your code that affect a particular variable or SFR.
collected cycles.
movlw 0xFF
movwf LSDigit
decfsz LSDigit
andwf LSDigit; generate extra read/w to LSDigit
goto test1
Filter Trace Example – Program Memory
Filter Trace Example – Data Memory
FILTER TRACE
Complex and Internal Triggers
DS51490A-page 47

Related parts for PMF18WE1