SW006012 Microchip Technology, SW006012 Datasheet - Page 90

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
6.4
DS51284F-page 84
REGISTER DEFINITION FILES
®
C30 User’s Guide
The convention in the processor header files is that each SFR is named, using the
same name that appears in the data sheet for the part – for example, CORCON for the
Core Control register. If the register has individual bits that might be of interest, then
there will also be a structure defined for that SFR, and the name of the structure will be
the same as the SFR name, with “bits” appended. For example, CORCONbits for the
Core Control register. The individual bits (or bit fields) are named in the structure using
the names in the data sheet – for example PSV for the PSV bit of the CORCON
register. Here is the complete definition of CORCON (subject to change):
/* CORCON: CPU Mode control Register */
extern volatile unsigned int CORCON
typedef struct tagCORCONBITS {
} CORCONBITS;
extern volatile CORCONBITS CORCONbits __attribute__((__near__));
The processor header files described in Section 6.3 “Processor Header Files” name
all SFR’s for each part, but they do not define the addresses of the SFR’s. A separate
set of device-specific linker script files, one per part, is distributed in the support\gld
directory. These linker script files define the SFR addresses. To use one of these files,
specify the linker command-line option:
-T p30fxxxx.gld
where xxxx corresponds to the device part number.
For example, assuming that there exists a file named app2010.c, which contains an
application for the dsPIC30F2010 part, then it may be compiled and linked using the
following command line:
pic30-gcc -o app2010.o -T p30f2010.gld app2010.c
The -o command-line option names the output COFF executable file, and the -T
option gives the name for the dsPIC30F2010 part. If p30f2010.gld is not found in the
current directory, the linker searches in its known library paths. For the default
installation, the linker scripts are included in the PIC30_LIBRARAY_PATH. For
reference see Section 3.6 “Environment Variables”.
unsigned IF
unsigned RND
unsigned PSV
unsigned IPL3
unsigned ACCSAT
unsigned SATDW
unsigned SATB
unsigned SATA
unsigned DL
unsigned
Note:
The symbols CORCON and CORCONbits refer to the same register and
will resolve to the same address at link time.
:1;
:1;
:1;
:1;
:1;
:1;
:1;
:1;
:3;
:4;
/* Integer/Fractional mode
/* Rounding mode
/* Program Space Visibility enable
/* Acc saturation mode
/* Data space write saturation enable
/* Acc B saturation enable
/* Acc A saturation enable
/* DO loop nesting level status
__
attribute
__
© 2007 Microchip Technology Inc.
((
__
near
__
));
*/
*/
*/
*/
*/
*/
*/
*/

Related parts for SW006012