Datasheet

PIC18F2XXX/4XXX FAMILY
DS39622L-page 18 2010 Microchip Technology Inc.
FIGURE 3-4: PROGRAM CODE MEMORY FLOW
FIGURE 3-5: TABLE WRITE AND START PROGRAMMING INSTRUCTION TIMING (
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
1234
12 1516
123 4
PGC
P5A
PGD
PGD = Input
n
11
1
1
34 65
P9
P10
Programming Time
nnn
nn n n
00
12
000
16-Bit
Data Payload
0
3
0
P5
4-Bit Command 16-Bit Data Payload
4-Bit Command