• shift operator
    When compiling with Realview : unsigned long x; x = 1<<31; I get the message: Main.c(121): warning: #61-D: integer operation result is out of range Main.c(121): warning: #68-D: integer...
  • 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...
  • 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...
  • Problem with Shift-Operator
    Hi, I have a Problem with the Shift-Operator >> within my C-Code. I'm using PK166 V4.2 The following code should set the Variable n to 0. void main() { unsigned char n; unsigned char p; /...
  • C51 compiler buggy behaviour?
    Hi, I am trying to read two pins from a c8051f040 controller. Reading the port directly works , but saving the same port value on a variable does not work even though the debugger shows the correct...