English
Language : 

PIC16LF18854 Datasheet, PDF (190/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
In general, if INTM = 0, the scanner will take
precedence over the interrupt, resulting in decreased
interrupt processing speed and/or increased interrupt
response latency. If INTM = 1, the interrupt will take
precedence and have a better speed, delaying the
memory scan.
11.10.6 WDT INTERACTION
Operation of the WDT is not affected by scanner
activity. Hence, it is possible that long scans,
particularly in Burst mode, may exceed the WDT time-
out period and result in an undesired device Reset.
This should be considered when performing memory
scans with an application that also utilizes WDT.
11.10.7 IN-CIRCUIT DEBUG (ICD)
INTERACTION
The scanner freezes when an ICD halt occurs, and
remains frozen until user-mode operation resumes.
The debugger may inspect the SCANCON0 and
SCANLADR registers to determine the state of the
scan.
The ICD interaction with each operating mode is
summarized in Table 11-3.
TABLE 11-3: ICD AND SCANNER INTERACTIONS
Scanner Operating Mode
ICD Halt
Peek
Concurrent
Triggered
Burst
External Halt
PC
Breakpoint
Data
Breakpoint
Single Step
SWBP and
ICDINST
If Scanner would peek an instruction
that is not executed (because of ICD
entry), the peek will occur after ICD
exit, when the instruction executes.
If external halt is asserted during a
scan cycle, the instruction (delayed
by scan) may or may not execute
before ICD entry, depending on
external halt timing.
If external halt is asserted during the
BSF(SCANCON.GO), ICD entry
occurs, and the burst is delayed until
ICD exit.
Otherwise, the current NVM-access
cycle will complete, and then the
scanner will be interrupted for ICD
entry.
If external halt is asserted during the
cycle immediately prior to the scan
cycle, both scan and instruction
execution happen after the ICD exits.
If external halt is asserted during the
burst, the burst is suspended and will
resume with ICD exit.
Scan cycle occurs before ICD entry
and instruction execution happens
after the ICD exits.
If PCPB (or single step) is on
The instruction with the dataBP
BSF(SCANCON.GO), the ICD is
executes and ICD entry occurs
entered before execution; execution
immediately after. If scan is
of the burst will occur at ICD exit, and
requested during that cycle, the scan the burst will run to completion.
cycle is postponed until the ICD exits.
If a scan cycle is ready after the
debug instruction is executed, the
Note that the burst can be interrupted
by an external halt.
scan will read PFM and then the ICD
is re-entered.
If scan would stall a SWBP, the scan
cycle occurs and the ICD is entered.
If SWBP replaces
BSF(SCANCON.GO), the ICD will be
entered; instruction execution will
occur at ICD exit (from ICDINSTR
register), and the burst will run to
completion.
DS40001824A-page 190
Preliminary
 2016 Microchip Technology Inc.