2006-03-20 01:33 AM
how bit manipulation in cosmic compiler ?
2006-03-19 05:25 PM
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.2006-03-20 01:33 AM
_Bool mybit; // general bit variable, requires the .bit segment to be declared in the linker file
_Boolmailto: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)