English
Language : 

PIC32MX795F512L-80IPT Datasheet, PDF (26/68 Pages) Microchip Technology – PIC32 Flash Programming Specification
PIC32
TABLE 11-1: DOWNLOAD THE
PE (CONTINUED)
Operation
Operand
Step 6: Jump to the PE_Loader. The instruction
sequence executed by the PIC32 core is:
lui
t9,0xa000
ori
t9,t9,0x800
jr
t9
nop
XferInstruction 0x3c19a000
XferInstruction 0x37390800
XferInstruction 0x03200008
XferInstruction 0x00000000
Step 7: Load the PE using the PE_Loader. Repeat the
last instruction of this step (Step 7) until the entire
PE is loaded into the PIC32 memory. In this step,
you are given an Intel® Hex format file of the PE
that you will parse and transfer a number of 32-bit
words at a time to the PIC32 memory (refer to
Appendix B: “Hex File Format”). The instruction
sequence executed by the PIC32 is shown in the
“Instruction” column of Table 11-2: PE Loader Op
Codes.
SendCommand ETAP_FASTDATA
XferFastData
PE_ADDRESS (Address of PE
program block from PE Hex
file)
XferFastData
PE_SIZE (Number of 32-bit
words of the program block
from PE Hex file)
XferFastData
PE software op code from PE
Hex file (PE Instructions)
Step 8: Jump to the PE. Magic number (0xDEAD0000)
instructs the PE_Loader that the PE is completely
loaded into the memory. When the PE_Loader
sees the magic number, it jumps to the PE.
XferFastData
0x00000000
XferFastData
0xDEAD0000
TABLE 11-2:
Op code
0x3c07dead
0x3c06ff20
0x3c05ff20
0x8cc40000
0x8cc30000
0x1067000b
0x00000000
0x1060fffb
0x00000000
0x8ca20000
0x2463ffff
0xac820000
0x24840004
0x1460fffb
0x00000000
0x1000fff3
0x00000000
0x3c02a000
0x34420900
0x00400008
0x00000000
PE LOADER OP CODES
Instruction
lui
a3, 0xdead
lui
a2, 0xff20
lui
al, 0xff20
herel:
lw
a0, 0 (a2)
lw
v1, 0 (a2)
beq
v1, a3, <here3>
nop
beqz v1, <here1>
nop
here2:
lw
v0, 0 (a1)
addiu v1, v1, -1
sw
v0, 0 (a0)
addiu a0, a0, 4
bnez v1, <here2>
nop
b
<here1>
nop
here3:
lui
v0, 0xa000
ori
v0, v0, 0x900
jr
v0
nop
DS61145L-page 26
 2007-2013 Microchip Technology Inc.