• 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...
  • 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;...
  • 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...
  • Problem with Transfering SBUF value
    Hi i m finding a problem in moving SBUF value to someother variable . My Code is serial () interrupt 4 { unsigned int ch[2]; static int i=0; if (RI) { if (i<2) { ch[i]=SBUF; i=i+1; } if...