English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (31/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
15.0 EXITING PROGRAMMING
MODE
Once a device has been properly programmed, the
device must be taken out of Programming mode to start
proper execution of its new program memory contents.
15.1 4-wire Interface
Exiting Programming mode is done by removing VIH
from MCLR, as illustrated in Figure 15-1. The only
requirement for exit is that an interval, P16, should
elapse between the last clock and program signals
before removing VIH.
FIGURE 15-1:
MCLR
VDD
4-WIRE EXIT
PROGRAMMING MODE
P16
TCK
TMS ‘1’ ‘1’ ‘0’
TDI
TDO
The following steps are required to exit Programming
mode:
1. SetMode (5’b11111).
2. Assert MCLR.
3. Remove power (if the device is powered).
PIC32
15.2 2-wire Interface
Exiting Programming mode is done by removing VIH
from MCLR, as illustrated in Figure 15-2. The only
requirement for exit is that an interval, P16, should
elapse between the last clock and program signals on
PGECx and PGEDx before removing VIH.
FIGURE 15-2:
MCLR
VDD
PGEDx
PGECx
2-WIRE EXIT
PROGRAMMING MODE
P16 P17
VIH
VIH
PGEDx = Input
The following list provides the actual steps required to
exit Programming mode:
1. SetMode (5’b11111).
2. Assert MCLR.
3. Issue a clock pulse on PGECx.
4. Remove power (if the device is powered).
 2007-2013 Microchip Technology Inc.
DS61145L-page 31