When debugging a device, you have the option to freeze peripherals or allow to keep them running when you halt (pause) the program or you hit a breakpoint.
1
Open Project Properties window.
2
Select REAL ICE under Categories.
3
Select Freeze Peripherals from the Options Categories combo box
4
Select peripherals to freeze on halt.
Check the box beside the peripheral to freeze that peripheral 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.
PIC12, PIC16 and PIC18 devices do not have the ability to freeze individual peripherals. All peripherals will be frozen/unfrozen together.