
PIC18F2XK20/4XK20
DS41297F-page 18
Advance Information
2009 Microchip Technology Inc.
FIGURE 3-4:
PROGRAM CODE MEMORY FLOW
FIGURE 3-5:
TABLE WRITE AND START PROGRAMMING INSTRUCTION
TIMING DIAGRAM (1111)
Start Write Sequence
All
locations
done?
No
Done
Start
Yes
Hold PGC Low
for Time P10
Load 2 Bytes
to Write
Buffer at <Addr>
All
bytes
written?
No
Yes
and Hold PGC
High until Done
N = 1
LoopCount = 0
Configure
Device for
Writes
N = 1
LoopCount =
LoopCount + 1
N = N + 1
and Wait P9
12
3
4
1
2
15
16
12
3
4
PGC
P5A
PGD
PGD = Input
n
11
1
34
6
5
P9(1)
P10
Programming Time
nn
n
nn
n
00
12
0
00
16-bit
Data Payload
0
3
0
P5
4-bit Command
16-bit Data Payload
4-bit Command
Note
1:
Use P9A for User ID and Configuration Word programming.