SW500009 Microchip Technology, SW500009 Datasheet - Page 203

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
Library Functions
FLASH_COPY
Synopsis
Description
This utility function is useful for copying a large section of memory to a new location in flash
memory.
of the data to copy. The pointer may point to a valid address in either RAM or flash memory.
Example
See Also
EEPROM_READ, EEPROM_WRITE, FLASH_READ, FLASH_WRITE
Note
This function is only applicable to those devices which use internal buffer registers when writing to
flash.
Note it is only applicable to those devices which have an internal set of flash buffer registers.
When the function is called, it needs to be supplied with a const pointer to the source address
A length parameter must be specified to indicate the number of words of the data to be copied.
Finally the flash address where this data is destined must be specified.
#include <htc.h>
void flash_copy(const unsigned char * source_addr, unsigned char length,
#include <htc.h>
const unsigned char ROMSTRING[] = "0123456789ABCDEF";
void
main (void){
}
const unsigned char * ptr = &ROMSTRING[0];
flash_copy( ptr, 5, 0x70 );
unsigned short dest_addr);
189

Related parts for SW500009