• Logic Operators
    Hi, I need help understanding these operations DEECON=(unsigned char)((adr>>8)&0x01); is adr being shifted to the right? and then? what is &0x01 ...a pointer? while((DEECON&0x80)==0); Explain...
  • Logical Operator AND in uVision
    I need to know what is wrong with uVision. I had not seen this before. I wrote this piece of code in uVisio, the program is not working well. When I simulated it, I realized the compiler is not...
  • Bit operations
    I need to shift data into serail input register bit-by-bit. It would be nice, if the compiler would support asm blocks in a C program. 1. Shifting a byte is done by rotatig accumulator left, whereby...
  • Bitwise logical AND stores in a bit ....
    Hi, I get a curious result when compiling such a following code : typedef union { unsigned char cCtrlFullByte; struct { unsigned char bEnable : 1; unsigned char cUnused : 7; } cCtrlStruct;...
  • Bit Operator
    Hi , A "bit" of a fundamental query. Suppose I declare two bit variables bit MyBit1,MyBit2; I need to do something if both bits are 1. Are these two methods equivalent: if(MyBit1...