Maker Pro
Maker Pro

Microcip PIC program memory read

M

mook johnson

Jan 1, 1970
0
with a 80c51 I can just do a MOVC command and fetch the value of a byte at
the location in program memory.

Is the same possible in a PIC? Say a pic 14000?
 
S

Spehro Pefhany

Jan 1, 1970
0
with a 80c51 I can just do a MOVC command and fetch the value of a byte at
the location in program memory.

Is the same possible in a PIC? Say a pic 14000?

No, not in the 14000. IIRC, it's possible in many 16F devices, only
one 16C device, and all 17xxx/18xxx devices. I don't think any of the
12C/12F devices including the 14-bit flash ones can do it.

BTW, I don't think you should be using the 14000 in new designs.

If you want to create a LUT, you can create a table of retlw entries
and do a computed jump on any PIC. If you want to checksum the memory
to meet safety-critical software standards, it can only be done on
some PICs (as indicated above).

Best regards,
Spehro Pefhany
 
Top