SW006012 Microchip Technology, SW006012 Datasheet - Page 74

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
4.6
DS51284F-page 68
MEMORY SPACES
®
C30 User’s Guide
Static and external variables are normally allocated in general purpose data memory.
Const-qualified variables will be allocated in general purpose data memory if the
constants-in-data memory model is selected, or in program memory if the
constants-in-code memory model is selected.
MPLAB C30 defines several special purpose memory spaces to match architectural
features of the dsPIC DSC. Static and external variables may be allocated in the special
purpose memory spaces through use of the space attribute, described in
Section 2.3.1 “Specifying Attributes of Variables”:
data
General data space. Variables in general data space can be accessed using ordinary
C statements. This is the default allocation.
xmemory
X data address space. Variables in X data space can be accessed using ordinary C
statements. X data address space has special relevance for DSP-oriented libraries
and/or assembly language instructions.
ymemory
Y data address space. Variables in Y data space can be accessed using ordinary C
statements. Y data address space has special relevance for DSP-oriented libraries
and/or assembly language instructions.
prog
General program space, which is normally reserved for executable code. Variables in
program space can not be accessed using ordinary C statements. They must be
explicitly accessed by the programmer, usually using table-access inline assembly
instructions, or using the program space visibility window.
const
A compiler-managed area in program space, designated for program space visibility
window access. Variables in const space can be read (but not written) using ordinary
C statements, and are subject to a maximum of 32K total space allocated.
psv
Program space, designated for program space visibility window access. Variables in
PSV space are not managed by the compiler and can not be accessed using ordinary
C statements. They must be explicitly accessed by the programmer, usually using
table-access inline assembly instructions, or using the program space visibility window.
Variables in PSV space can be accessed using a single setting of the PSVPAG register.
eedata
Data EEPROM space, a region of 16-bit wide non-volatile memory located at high
addresses in program memory. Variables in eedata space can not be accessed using
ordinary C statements. They must be explicitly accessed by the programmer, usually
using table-access inline assembly instructions, or using the program space visibility
window.
dma - PIC24H MCUs, dsPIC33F DSCs only
DMA memory. Variables in DMA memory can be accessed using ordinary C statements
and by the DMA peripheral.
- dsPIC30F/dsPIC33F devices only
- dsPIC30F/dsPIC33F devices only
- dsPIC30F/dsPIC33F devices only
© 2007 Microchip Technology Inc.

Related parts for SW006012