Complex and Internal Triggers
6.8.4
Filter Trace Example – Program Memory
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:
FILTER TRACE
6.8.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
? 2004 Microchip Technology Inc.
DS51490A-page 47
相关PDF资料
PMF18WE0 PROCESSOR MODULE FOR ICE4000
PMT823004F GP THREE ELEMENTS S.A. 230V T/H
PPM3-MK2 PROGRAMMER PRODUCTION ISP
PPM3A1-UPG5M UPGRADE PPM3 RAC DEVELOPMENT
PQ-MDS-PCIEXP PCI EXPANDER ADAPTOR
PQF-44 PLUG QFP 44PIN (SOLDER DOWN)
PRG18BB471MS1RB THERMISTOR
PS1600 POWER SUPPLY HOTSWAP 90-245V
相关代理商/技术参数
PMF18WE0 功能描述:插座和适配器 Processor MOD RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WE0 制造商:Microchip Technology Inc 功能描述:Tools Emulator For Use With:P
PMF18WE1 功能描述:插座和适配器 PIC18F8680 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WF0 功能描述:插座和适配器 Processor Module RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WH0 功能描述:插座和适配器 PIC18F ICE4000 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WJ0 功能描述:插座和适配器 Processor MOD RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WJ1 功能描述:插座和适配器 Processor Module RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
PMF18WK0 功能描述:插座和适配器 PIC18F RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x