Skip to content

programread

Anobium edited this page Jan 3, 2021 · 2 revisions
ProgramRead

Syntax:

    ProgramRead (location, store)

    or for the 18FxxQ41 family of chips use:
    PFMRead (location, store)

Command Availability:

Available on all Microchip PIC microcontrollers with self write capability. Not available on Atmel AVR at present.

Explanation:

ProgramRead reads information from the program memory on chips that support this feature. location and store are both word variables, meaning that they can store values over 255.

The largest value possible for location depends on the amount of program memory on the Microchip PIC microcontroller, which is given on the datasheet. store is 14 bits wide, and thus can store values up to 16383.

This is an advanced command which should only be used by advanced developers.

Example:

For more help, see ProgramErase and ProgramWrite

Clone this wiki locally