• 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...
  • keil STM32 and bit operation
    Im from slovakia so please excuse my english im newbie in programic mcu i need to write if clause where i wat to do something if pin is in high level. for example if ((P1^1)==1{ something...
  • Logical bit operation
    Hello, I have following code: Unsigned int freq; int N_counter[24] freq=248; N_Counter[15]=(freq& 0x0001); N_Counter[14]=(freq & 0x0002); N_Counter[13]=(freq & 0x0004); N_Counter[12]=(freq...
  • bit (and sbit) operation with == and != (bug?)
    I have a problem that i cannot solve. I need to compare two bit values. Lets say: bit Low = 0; bit High = 1; But I get some really strange results if I try to compare both of them: Low ...
  • BIT OPERATION IN "C" IN KEIL
    how to toggle a specific pin of any port (BIT OPERATION)in keil using C for 89c51/89c52. please specify the header files to be included and the instruction and if possible the program.