dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
4.2.10
15
Opcode
Reserved
Addr_LS
Data_LS
Reserved
Field
Opcode
Length
Reserved
Addr_MSB
Addr_LS
Data_MSB
Data_LS
0x6
0x5
0x0
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
Data_MSB
Description
Field
Opcode
Length
PSize
0xA
0x2
Length of program memory to check
(in 24-bit words) +1, up to a max of
49152
Description
PROGW
COMMAND
12 11
8 7
Length
Addr_MSB
0
4.2.11
15
Opcode
QBLANK
COMMAND
12 11
Length
PSize
0
The
QBLANK
command queries the programming exec-
utive to determine if the contents of code memory are
blank (contains all 鈥?鈥檚). The size of code memory to
check must be specified in the command.
The Blank Check for code memory begins at 0x0 and
advances toward larger addresses for the specified
number of instruction words.
QBLANK returns a QE_Code of 0xF0 if the specified
code memory and code-protect bits are blank;
otherwise, QBLANK returns a QE_Code of 0x0F.
Expected Response (2 words for blank device):
0x1AF0
0x0002
Expected Response (2 words for non-blank device):
0x1A0F
0x0002
Note:
The
QBLANK
command does not check
the system operation Configuration bits
since these bits are not set to 鈥?鈥?when a
Chip Erase is performed.
The
PROGW
command instructs the programming exec-
utive to program one word of code memory (3 bytes) to
the specified 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):
0x1600
0x0002
DS70152D-page 52
Preliminary
漏
2007 Microchip Technology Inc.