• 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...
  • 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...
  • char to unsigned int
    Hi all Here is some code char prev_ch; unsigned int chksum_read; chksum_read += (WORD)prev_ch*256; chksum_read += (unsigned int)prev_ch<<8; if prev_ch has a value of 0xDB after one of of...
  • char to unsigned int
    Hi all Here is some code char prev_ch; unsigned int chksum_read; chksum_read += (WORD)prev_ch*256; chksum_read += (unsigned int)prev_ch<<8; if prev_ch has a value of 0xDB after one of of...
  • 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...