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

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
#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 PCWHD IDE COMPILER