SW006014 Microchip Technology, SW006014 Datasheet - Page 205

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
4.7
© 2008 Microchip Technology Inc.
FUNCTIONS FOR ERASING AND WRITING FLASH MEMORY
}
These functions support the erasing and writing of Flash memory for devices that have
this type of memory.
_erase_flash
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
_write_flash16
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
_write_flash24
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
_erase_eedata(p, _EE_ROW);
_wait_eedata();
_write_eedata_row(p, source);
Erase a page of FLASH memory. The length of a page is
_FLASH_PAGE words (1 word = 3 bytes = 2 PC address units.)
<libpic30.h>
void _erase_flash(_prog_addressT dst);
dst
None.
None.
Erase a page of FLASH memory.
_erase_flash.c
Write a row of FLASH memory with 16-bit data. The length of a row is
_FLASH_ROW words. The upper byte of each destination word is filled
with 0xFF. Note that the row must be erased before any write can be
successful.
<libpic30.h>
void _write_flash16(_prog_addressT dst,
dst
*src
None.
None.
Write a row of FLASH memory with 16-bit data.
_write_flash16.c
Write a row of FLASH memory with 24-bit data. The length of a row is
_FLASH_ROW words. Note that the row must be erased before any write
can be successful.
<libpic30.h>
void _write_flash24(_prog_addressT dst,
dst
*src
None.
None.
int *src);
int *src);
destination memory address
destination memory address
points to the storage location of data to be written
destination memory address
points to the storage location of data to be written
/* erase a row */
/* wait for operation to complete */
/* write a row */
DS51456E-page 201

Related parts for SW006014