SW006013 Microchip Technology, SW006013 Datasheet - Page 203

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.6
© 2008 Microchip Technology Inc.
FUNCTIONS FOR ERASING AND WRITING EEDATA MEMORY
These functions support the erasing and writing of EEDATA memory for devices that
have this type of memory.
_erase_eedata
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
_erase_eedata_all
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Default Behavior:
File:
}
#ifndef __dsPIC33F__
#error this is a 33F demo for the explorer 16(tm) board
#endif
#inlcude <p33Fxxxx.h>
_FOSCSEL(FNOSC_PRI );
_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_XT);
_FWDT(FWDTEN_OFF);
main() {
ODCA = 0;
TRISAbits.TRISA6 = 0;
__C30_UART=2;
U2BRG = 38;
U2MODEbits.UARTEN = 1;
while (1) {
}
__builtin_btg(&LATA,6);
printf("Hello world %d\n",U2BRG);
Erase EEDATA memory on dsPIC30F devices.
<libpic30.h>
void _erase_eedata(_prog_addressT dst, int len);
dst
len
None.
None.
Erase EEDATA memory as specified by parameters.
_erase_eedata.c
Erase the entire range of EEDATA memory on dsPIC30F devices.
<libpic30.h>
void _erase_eedata_all(void);
None.
None.
None.
Erase all EEDATA memory for the selected device.
_erase_eedata_all.c
destination memory address
length may be _EE_WORD or _EE_ROW (bytes)
DS51456E-page 199

Related parts for SW006013