
2009 Microchip Technology Inc.
DS39687E-page 13
PIC18F2XJXX/4XJXX FAMILY
FIGURE 3-5:
PROGRAM CODE MEMORY FLOW
FIGURE 3-6:
TABLE WRITE AND START PROGRAMMING INSTRUCTION TIMING (1111)
Start Write Sequence
All
Locations
Done?
No
Done
Start
Yes
Load 2 Bytes
to Write
Buffer at <Addr>
All
Bytes
Written?
No
Yes
and Hold PGC
High Until Done
LoopCount = 0
Configure
Device for
Writes
LoopCount =
LoopCount + 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
P5
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