• coufused by array and shift bit
    Hi, The code is given below. void CSToOut(void) { static unsigned char data bSimulate[8] ; int I; for( I = 0 ;I < 8;I ++) { bSimulate[I] = 0x01 << I ; ComOutChar( bSimulate[I] ); } } ...
  • shifting arrays
    hi, i'm using uVision3.33 , uC-80c31x2. my question is: I'v initilize buffer array which is been loaded with 24 Byte each interval time. now i want to shift the all array right/left by 1 bit....
  • shifting bits
    I'm trying to read the data from an ADC. I'm getting the error message error C193 '+=' bad operand type. If I use '=+' I don't get the error but my data is shifting. My result is a 0 or 1. It should be...
  • bit shifting
    hello there i have some problem regarding the bit shifting i want to convert the some no. from Hex. to Decimal for that i am going to used the shifting. when i recived the no. in hex format then i want...
  • ARM: is bit shift result correct?
    A variable shifted right seems to result in an incorrect value. uint64_t i = 13,825,587,238; i = i >> 7u; The situation is observed when 13,825,587,238 is right shifted 7. The correct value...