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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER