SW006014 Microchip Technology, SW006014 Datasheet - Page 204

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
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 SW006014