_write_flash_word16 Function

Write a word of Flash memory with 16-bit data. The upper byte of the destination word is filled with 0xFF. Note that the word must be erased before any write can be successful. This function is currently available only for PIC24F devices (excluding PIC24FXXKA MCUs).

Include

<libpic30.h>

Prototype

void _write_flash_word16(_prog_addressT dst, int dat);

Arguments

dst destination memory address
dat integer data to be written

Return Value

None.

Remarks

None.

Default Behavior

Write a word of Flash memory with 16-bit data for most PIC24 devices.

File

flash_helper.c