SW006013 Microchip Technology, SW006013 Datasheet - Page 205

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
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 SW006013