NOTE4-FLASH的写擦函数使用

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

int dat);

Argument: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.s

_write_flash_word24

Description:Write a word of Flash memory with 24-bit data. 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:

Prototype:void _write_flash_word24(_prog_addressT d st,

int dat);

Argument:dst destination memory address

dat integer data to be written

Return Value:None.

Remarks:None.

Default Behavior:Write a word of Flash memory with 24-bit data for most PIC24

devices.

File:flash_helper.s

_write_flash_word32

Description:Write two words of FLASH memory with 16 bits of data per word.

The 16 bits are written to the low 16 bits of the word. Word writes are

supported dsPIC33E and PIC24E devices. The row address is

specified with type _prog_addressT. Note that the location must be

erased before any write can be successful.

This function is currently disabled for devices subject to the Device

ID errata as described in DS-80444, DS-80446, or DS-80447 (#32). Include:

Prototype:void _write_flash_word32(_prog_addressT d st,

int dat1, int d at2);

Argument:dst destination memory address

dat1, dat2 integer data to be written

相关文档
最新文档