• Compile char as an unsigned char
    Hello, Can anyone tell me how to instruct Keil to compile char's as unsigned char's by default? I know that there are some help topics on this issue, but they seem to be giving a precompiler...
  • 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...
  • EC166 and unsigned char/signed char
    Hi to all, I have in use the EC++ Compiler from Tasking and want to change my whole EC++ project to KEIL. I tried to compile some files with the KEIL EC166 but I always get the following error: ---...
  • Converting unsigned char[] to long?
    How can you access the individual bytes making up a variable of type long? What I need to do is move a 24-bit (3 bytes) unsigned char array into a long variable. An example: unsigned char a[3]; unsigned...
  • Converting 'short' to 'unsigned char'
    Hi, I've to debug an application written by someone else (...) An 'unsigned char' is used to be filled with data from a 'short'. If I change the source 'short' variabele type (filled somewhere...