Datasheet
Emulator User’s Guide for MPLAB X IDE
DS52085A-page 104 2013 Microchip Technology Inc.
11.3.3 Clock
Enter the runtime clock (instruction) speed on this tab. This does not set the speed, but
informs the emulator of its value for runtime watch, data capture and trace.
11.3.4 Freeze Peripherals
Select peripherals to freeze or not freeze on program halt.
PIC12/16/18 MCU Devices
To freeze/unfreeze all device peripherals on halt, check/uncheck the “Freeze on Halt”
checkbox. If this does not halt your desired peripheral, be aware that some peripherals
have no freeze on halt capability and cannot be controlled by the emulator.
dsPIC30F/33F, PIC24F/H and PIC32 Devices
For peripherals in the list “Peripherals to Freeze on Halt”, check to freeze that periph-
eral on a halt. Uncheck the peripheral to let it run while the program is halted. If you do
not see a peripheral on the list, check “All Other Peripherals”. If this does not halt your
desired peripheral, be aware that some peripherals have no freeze on halt capability
and cannot be controlled by the emulator.
To select all peripherals, including “All Other Peripherals”, click Check All. To deselect
all peripherals, including “All Other Peripherals”, click Uncheck All.
Note: Clock switching is available for data capture and trace, but you must set the
clock correctly or you may see issues. Enter the fastest instruction speed
you will be using on this tab.
TABLE 11-3: CLOCK OPTION CATEGORY
Use FRC in debug mode
(dsPIC33F and PIC24F/H devices
only)
When debugging, use the device fast internal RC
(FRC) for clocking instead of the oscillator specified
for the application. This is useful when the applica-
tion clock is slow.
Checking this checkbox will let the application run at
the slow speed but debug at the faster FRC speed.
Reprogram after changing this setting.
Note: Peripherals that are not frozen will operate at
the FRC speed while debugging.
Target run-time instruction speed Enter a value for the “Speed unit” selected.
Example 1: For a PIC24 MCU and a target clock
oscillator at 32 MHz (HS), instruction speed = 32
MHz/2 = 16 MIPS.
Example 2: For a PIC18F8722 MCU and a target
clock oscillator at 10 MHz (HS) making use of the
PLL (x4 = 40 MHz), instruction speed = 40 MHz/4 =
10 MIPS.
Instruction speed units Select either:
KIPS – Thousands (10
3
) of instructions per second
MIPS – Millions (10
6
) of instructions per second
TABLE 11-4: FREEZE PERIPHERALS OPTION CATEGORY
Freeze Peripherals Freeze all peripherals on halt.
This options applies to PIC12/16/18 MCUs.
Peripheral Freeze this peripheral on halt.
This options applies to 16- and 32-bit MCUs.