SW006013 Microchip Technology, SW006013 Datasheet - Page 204

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 200
Example of Use
#include "libpic30.h"
#include "p30fxxxx.h"
char __attribute__((space(eedata), aligned(_EE_ROW))) dat[_EE_ROW];
int main()
{
_wait_eedata
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
_write_eedata_word
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
_write_eedata_row
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
char i,source[_EE_ROW];
_prog_addressT p;
for (i = 0; i < _EE_ROW; )
_init_prog_address(p, dat);
source[i] = i++;
Wait for an erase or write operation to complete.
<libpic30.h>
void _wait_eedata(void);
None.
None.
None.
Wait for an erase or write operation to complete.
_wait_eedata.c
Write 16 bits of EEDATA memory on dsPIC30F devices.
<libpic30.h>
void _write_eedata_word(_prog_addressT dst,
dst
dat
None.
None.
Write one word of EEDATA memory for dsPIC30F devices.
_write_eedata_word.c
Write _EE_ROW bytes of EEDATA memory on dsPIC30F devices.
<libpic30.h>
void _write_eedata_row(_prog_addressT dst,
dst
*src
None.
None.
Write specified bytes of EEDATA memory.
_write_eedata_row.c
int dat);
int *src);
destination memory address
integer data to be written
destination memory address
points to the storage location of data to be written
/* initialize some data */
/* get address in program space */
© 2008 Microchip Technology Inc.

Related parts for SW006013