SW006013 Microchip Technology, SW006013 Datasheet - Page 206

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
DS51456E-page 202
Example of Use
#include "libpic30.h"
#include "p24Fxxxx.h"
int __attribute__((space(prog),aligned(_FLASH_PAGE*2)))
dat[_FLASH_PAGE];
int main()
{
_write_flash24 (Continued)
Default Behavior:
File:
_write_flash_word16
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
_write_flash_word24
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
int i;
int
long
_prog_addressT p;
for (i = 0; i < _FLASH_ROW; ) {
source1[i] = i;
source2[i] = i++;
source1[_FLASH_ROW];
source2[_FLASH_ROW];
Write a row of FLASH memory with 24-bit data.
_write_flash24.c
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.
<libpic30.h>
void _write_flash_word16(_prog_addressT dst,
dst
dat
None.
None.
Write a word of FLASH memory with 16-bit data for PIC24 devices.
_write_flash_word16.c
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.
<libpic30.h>
void _write_flash_word24(_prog_addressT dst,
dst
dat
None.
None.
Write a word of FLASH memory with 24-bit data for PIC24 devices.
_write_flash_word24.c
int dat);
int dat);
destination memory address
integer data to be written
destination memory address
integer data to be written
© 2008 Microchip Technology Inc.

Related parts for SW006013