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

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
#BANKY
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#BIT
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
102
#BANKY
None
Tells the compiler to assign the data for the next variable, array, or structure
into Bank Y.
#banky
struct {
int r_w;
int c_d;
long unused : 2;
long data : 4;
}
// The data for a_port will be forced into memory bank y.
None
None
#BIT id = x.y
id is a valid C identifier,
x is a constant or a C variable,
y is a constant 0-7 (for 8-bit PICs)
y is a constant 0-15 (for 16-bit PICs)
A new C variable (one bit) is created and is placed in memory at byte x and bit
y. This is useful to gain access in C directly to a bit in the processors special
function register map. It may also be used to easily access a bit of a standard C
variable.
#bit T 1 IF = 0x 84.3
...
TSBS:1IF = 0; // Clear Timer 0 interrupt flag
int result;
#bit result_odd = result.0
...
if (result_odd)
ex_glint.c
#BYTE, #RESERVE, #LOCATE,
a_port;
#WORD

Related parts for PCDIDE COMPILER