# Low-Voltage Programming (LVP) Mode

The Low-Voltage Programming mode allows the devices to be programmed using VDD only, without high voltage. When the LVP bit in the Configuration Byte register is set to ‘1’, the Low-Voltage ICSP Programming entry is enabled. To disable the Low-Voltage ICSP mode, the LVP bit must be programmed to ‘0’. This can only be done while in the High-Voltage Entry mode.

Entry into the Low-Voltage ICSP Program/Verify mode requires the following steps:
1. 1.MCLR is brought to VIL.
2. 2.A 32-bit key sequence is presented on ICSPDAT, clocked by ICSPCLK. The Least Significant bit (LSb) of the pattern is a ‘don’t care X’. The Program/Verify mode entry pattern detect hardware verifies only the first 31 bits of the sequence and the last clock is required before the pattern detect goes Active.

The key sequence is a specific 32-bit pattern, ‘32’h4d434850’ (more easily remembered as MCHP in ASCII). The device will enter Program/Verify mode only if the sequence is valid. The Most Significant bit (MSb) of the Most Significant Byte must be shifted in first. Once the key sequence is complete, MCLR must be held at VIL for as long as Program/Verify mode needs to be maintained. For Low-Voltage Programming timing, see Figure 1 and Figure 2.

Figure 1. LVP Entry (Powered)
Figure 2. LVP Entry (Powering Up)
Important:

To enter LVP mode, the MSb of the Most Significant nibble must be shifted in first. This differs from entering the key sequence on some other device families.