Datasheet
PIC16F57
DS41208C-page 6 Preliminary © 2007 Microchip Technology Inc.
2.4.3.5 End Programming
The End Programming command terminates the
program process by removing the high programming
voltage from the memory cells and resetting the data
input latches to all ‘1’s (erased state). A delay of T
DIS
(see Table 5-1) is required before the next command to
allow the high programming voltage to discharge (see
Figure 2-7.
FIGURE 2-7: END PROGRAMMING (EXTERNALLY TIMED)
2.4.3.6 Bulk Erase Program Memory
After this command is performed, the entire program
memory and Configuration Word is erased.
To perform a Bulk Erase of the program memory and
configuration fuses, the following sequence must be
performed (see Figure 2-8).
1. Perform a Bulk Erase Program Memory
command
2. Wait T
ERA to complete Bulk Erase
To perform a Bulk Erase of the program memory,
configuration fuses and user IDs, the following
sequence must be performed (see Figure 2-8).
1. Increment PC to 0x800
2. Perform a Bulk Erase command
3. Wait T
ERA to complete Bulk Erase
FIGURE 2-8: BULK ERASE PROGRAM MEMORY COMMAND
ICSPCLK
ICSPDAT
T
SET1
T
HLD1
1234 56
011
x
12
1
Next Command
x
TDIS
TERA
12 3 4 56
12
Next Command
1
1x
00
x
ICSPCLK
ICSPDAT
TSET1
T
HLD1