• comparing signed and unsigned variables
    In the following code:- char a = 0x80; unsigned char b = 0x80; if(a==0x80) printf("a==0x80\n"); if(b==0x80) printf("b==0x80\n"); The first printf isn't executed but the second is. Why is this...
  • are SFRs treated as unsigned or signed
    in the SiLabs forum someone showed SFR = -n I have never used such and became curuous. I searched the Keil documentation but could nof find it.
  • const unsigned int
    This are some of my const agreements. It works. #define Clock (32768*1275) const unsigned int Mem_size[8] = { 32, 320, 3200, 3200, 3200, 3200, 3200, 3200 }; // Delay-time * Clock * 1024 / 10 / Mem_size...
  • initialization of packed unsigned int
    I am trying to implement Mass storage device class using nxpusblib and got stuck in initialization of a packed structure. The structure is typedef ATTR_IAR_PACKED struct { unsigned DeviceType : 5;...
  • array index type of signed int
    Hi list, i'm working with c51v750a. My problem: int array[ 0] _at_ 0x7600; //xdata unsigned char index = 0; //xdata printf("%d", &array[ index]); printf("%d", &array[(unsigned char)(index - 1)...