• bitwise operation
    hello, i m implementing a pc keyboard logic. pc keboard signals are transmitted serially to port pin. i want to know how to do bitwise shifting in 'c' for reception as well as for transmission to...
  • accessing bitwise data in a data buffer
    hi all, iam a new to embedded programming and keil software. i am struck with a problem how to access a bit in a data buffer. the algo i need to implement is data_buf of 32 bits is stored in the...
  • Why the following bitwise & doesn't work?
    unsigned char tp; unsigned char volatile pdata HOSTCFG2 _at_ 0x0020; // HOSTCFG2=0x40 at this point tp=HOSTCFG2 & 0x40; //!!! tp is 0x00 instead of 0x40 which is expected //Corresponding Disassembly...
  • 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...
  • transfer the value of one variable to another using bitwise (<<)
    Good morning everyone Forum I have done a lot of programming and proficient using C but this Kile compiler is new to me and very different. it is confusing me. I have a question and need your help...