
2010 Microchip Technology Inc.
DS70102K-page 25
dsPIC30F Flash Programming Specification
8.5
Command Descriptions
All commands that are supported by the programming
through
8.5.1
SCHECK COMMAND
15
12 11
0
Opcode
Length
Field
Description
Opcode
0x0
Length
0x1
The SCHECK command instructs the programming
executive to do nothing, but generate a response. This
command is used as a “sanity check” to verify that the
programming executive is operational.
Expected Response (2 words):
0x1000
0x0002
Note:
This instruction is not required for
programming,
but
is
provided
for
development purposes only.
8.5.2
READD COMMAND
15
12 11
8 7
0
Opcode
Length
Reserved0
N
Reserved1
Addr_MSB
Addr_LS
Field
Description
Opcode
0x1
Length
0x4
Reserved0
0x0
N
Number of 16-bit words to read
(max of 2048)
Reserved1
0x0
Addr_MSB
MSB of 24-bit source address
Addr_LS
LS 16 bits of 24-bit source address
The READD command instructs the programming
executive to read N 16-bit words of memory starting
from the 24-bit address specified by Addr_MSB and
Addr_LS. This command can only be used to read
16-bit data. It can be used to read data EEPROM,
Configuration registers and the device ID.
Expected Response (2+N words):
0x1100
N + 2
Data word 1
...
Data word N
Note:
Reading unimplemented memory will
cause the programming executive to
reset.