Datasheet

© 2008 Microchip Technology Inc. DS39768D-page 37
PIC24FJXXXGA0XX
5.2.6 READC COMMAND
The READC command instructs the programming
executive to read N or Device ID registers, starting from
the 24-bit address specified by Addr_MSB and
Addr_LS. This command can only be used to read 8-bit
or 16-bit data.
When this command is used to read Device ID
registers, the upper byte in every data word returned by
the programming executive is 00h and the lower byte
contains the Device ID register value.
Expected Response (4 + 3 * (N – 1)/2 words for N odd):
1100h
2 + N
Device ID Register 1
...
Device ID Register N
5.2.7 READP COMMAND
The READP command instructs the programming
executive to read N 24-bit words of code memory,
including Configuration Words, starting from the 24-bit
address specified by Addr_MSB and Addr_LS. This
command can only be used to read 24-bit data. All data
returned in response to this command uses the packed
data format described in Section 5.2.2 “Packed Data
Format”.
Expected Response (2 + 3 * N/2 words for N even):
1200h
2 + 3 * N/2
Least significant program memory word 1
...
Least significant data word N
Expected Response (4 + 3 * (N – 1)/2 words for N odd):
1200h
4 + 3 * (N – 1)/2
Least significant program memory word 1
...
MSB of program memory word N (zero padded)
15 12 11 8 7 0
Opcode Length
NAddr_MSB
Addr_LS
Field Description
Opcode 1h
Length 3h
N Number of 8-bit Device ID registers to
read (max. of 256)
Addr_MSB MSB of 24-bit source address
Addr_LS Least Significant 16 bits of 24-bit
source address
Note: Reading unimplemented memory will
cause the programming executive to
reset. Please ensure that only memory
locations present on a particular device
are accessed.
15 12 11 8 7 0
Opcode Length
N
Reserved Addr_MSB
Addr_LS
Field Description
Opcode 2h
Length 4h
N Number of 24-bit instructions to read
(max. of 32768)
Reserved 0h
Addr_MSB MSB of 24-bit source address
Addr_LS Least Significant 16 bits of 24-bit
source address
Note: Reading unimplemented memory will
cause the programming executive to
reset. Please ensure that only memory
locations present on a particular device
are accessed.