• problem comparing signed char
    hi i am trying to compare the value of two signed chars. one is a plain variable currentval while the other is a signed char inside an array of type signed char called spectrumarray.for some reason it...
  • Using unsigned with signed int
    I have a signed integer which I have to assign to an unsigned one after addition with unsigned one. Like int16_t x = -9; uint16_t y = 11; if(x < y) { y = y+x; } How to ensure that...
  • 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.
  • cannot compare unsigned char with hexadecimal
    Cannot compare unsigned char with hexadecimal I have a code like that. The program won’t reach if condition when SBUF is 0xAA. if (SBUF==0xaa) { AA_flag=1; config[0]=170; }
  • C array index, signed or unsigned
    Firstly, according to the C standard, is the C array index variable interpreted as a signed or unsigned integer? Secondly, what does Keil do?