4.2.4.2 READP Command

Table 4-3 provides the description for the READP command.

Table 4-3. Command Description
FieldDescription

Opcode

0x2

Length

0x4

N

Number of 24-bit instructions to read

(maximum of 32768)

Reserved

0x0

Addr_MSB

MSB of 24-bit source address

Addr_LS

Least Significant 16 bits of 24-bit source address

The READP command instructs the Programming Executive to read N 24-bit words of code memory, Flash Configuration Words 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 24-bit data. All data returned in response to this command use the packed data format described in Packed Data Format.

Expected Response (2 + 3 * N/2 words for N even):

0x1200

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):

0x1200

4 + 3 * (N – 1)/2

Least Significant Program Memory Word 1

...

MSB of Program Memory Word N (zero-padded)

Note:
  1. Reading unimplemented memory will cause the Programming Executive to reset. Please ensure that only memory locations present on a particular device are accessed.
  2. When the READP command is used to read Device ID registers, the upper byte (bits[23:16]) of each word returned by the Programming Executive should be ignored.