English
Language : 

PIC24FJ64GA004-IPT Datasheet, PDF (39/52 Pages) Microchip Technology – PIC24FJXXXGA0XX Flash Programming Specification
5.2.10 PROGW COMMAND
15
12 11
87
0
Opcode
Length
Data_MSB
Addr_MSB
Addr_LS
Data_LS
Field
Description
Opcode
Length
Reserved
Addr_MSB
Addr_LS
Data_MSB
Data_LS
Dh
4h
0h
MSB of 24-bit destination address
Least Significant 16 bits of 24-bit
destination address
MSB of 24-bit data
Least Significant 16 bits of 24-bit data
The PROGW command instructs the programming
executive to program one word of code memory
(3 bytes) to the specific memory address.
After the word has been programmed to code memory,
the programming executive verifies the programmed
data against the data in the command.
Expected Response (2 words):
1600h
0002h
PIC24FJXXXGA0XX
5.2.11 QBLANK COMMAND
15
12 11
0
Opcode
Length
PSize_MSW
PSize_LSW
Field
Description
Opcode
Length
PSize
Ah
3h
Length of program memory to check
in 24-bit words plus one (max. of
49152)
The QBLANK command queries the programming
executive to determine if the contents of code memory
and code-protect Configuration bits (GCP and GWRP)
are blank (contain all ‘1’s). The size of code memory to
check must be specified in the command.
The Blank Check for code memory begins at 0h and
advances toward larger addresses for the specified
number of instruction words.
QBLANK returns a QE_Code of F0h if the specified
code memory and code-protect bits are blank;
otherwise, QBLANK returns a QE_Code of 0Fh.
Expected Response (2 words for blank device):
1AF0h
0002h
Expected Response (2 words for non-blank device):
1A0Fh
0002h
Note:
QBLANK does not check the system
operation Configuration bits, since these
bits are not set to ‘1’ when a Chip Erase is
performed.
© 2008 Microchip Technology Inc.
DS39768D-page 39