cancel
Showing results for 
Search instead for 
Did you mean: 

how bit manipulation in cosmic compiler ?

icwang
Associate II
Posted on March 20, 2006 at 10:33

how bit manipulation in cosmic compiler ?

2 REPLIES 2
icwang
Associate II
Posted on March 20, 2006 at 02:25

In other c compiler , there is direct bit manipulation.

such as

PB.4 = 1;

or

INTCON.GIE = 1;

How to write in cosmic compiler ?

Thanks.

luca239955_st
Associate III
Posted on March 20, 2006 at 10:33

_Bool mybit; // general bit variable, requires the .bit segment to be declared in the linker file

_Bool

mailto:PA0@PADR:0

; // absolute bit variable, does not require the .bit segment

mybit=0;

while(1)

{

PA0=0;

PA0=1; // Generate a waveform

}

Regards,

Luca (Cosmic)