PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 61

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
Declarations
A declaration specifies a type qualifier and a type specifier, and is followed by a list of one or more
variables of that type.
For e.g.:
Variables can also be declared along with the definitions of the special types.
For eg:
Non-RAM Data Definitions
CCS C compiler also provides a custom qualifier addressmod which can be used to define a
memory region that can be RAM, program eeprom, data eeprom or external memory. Addressmod
replaces the older typemod (with a different syntax).
The usage is :
Where the read_function and write_function should be blank for RAM, or for other memory should
be the following prototype:
// read procedure for reading n bytes from the memory starting at location
addr
void read_function(int32 addr,int8 *ram, int nbytes){
}
//write procedure for writing n bytes to the memory starting at location addr
void write_function(int32 addr,int8 *ram, int nbytes){
}
addressmod (name,read_function,write_function,start_address,end_address);
int a,b,c,d;
mybit e,f;
mybyte g[3][2];
char *h;
colors j;
struct data_record data[10];
static int i;
extern long j;
enum colors{red, green=2,blue}i,j,k;
i,j,k are variables of that type
// colors is the enum type and
47

Related parts for PCDIDE COMPILER