• Construct a byte from bits
    Hello everybody, I am very new to C language. In my project I get data serially from a port pin. I want to save the first 8 bits to one variable, another to second & so on. In all I want to save...
  • How to read a Bit from a Byte ?
    Respectable colleagues, how to read a value of a BIT from value of a BYTE variable in Keil C ? For example: X=(Byte1.Bit7*4)+(Byte1.Bit6*2) Thanks in advance. With best regards, Dragan...
  • code memory in bytes or bits
    I am using UVision2 V2.40a Version compiler. It has generated .m52 file & given below in information at the end of the file. Program Size: data=122.1 xdata=984 code=26914 LINK/LOCATE RUN COMPLETE...
  • code memory in bytes or bits
    I am using UVision2 V2.40a Version compiler. It has generated .m52 file & given below in information at the end of the file. Program Size: data=122.1 xdata=984 code=26914 LINK/LOCATE RUN COMPLETE...
  • rearranging the bits of a sfr byte
    I have a board that I think is incorectly wired to a keypad and I want to change the way I send data to that port. I am trying to do somthing like this: struct keypad_pins1 { sbit row1 = P2^7; ...