Syntax:
ProgramWrite (location, value)
Command Availability:
Available on all Microchip PIC microcontrollers with self write capability. Not available on Atmel AVR at present.
Explanation:
ProgramWrite writes information to the program memory on chips that support this feature. location and value are both word variables.
The largest value possible for location depends on the amount of program memory on the microcontroller (see datasheet).
The value parameter is a word (16-bit), but the maximum usable value depends on the chip family:
- On PIC18F family devices: up to 65535 (0xFFFF, full 16 bits supported in one program memory word).
- On PIC10/PIC12 (baseline/enhanced)/PIC14/PIC16 families: up to 16383 (0x3FFF, limited by 12/14-bit program memory word width).
ProgramErase must be used to clear a block of memory BEFORE ProgramWrite is called.
Example:
For more help, see ProgramErase and ProgramRead

