• 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...
  • No error when converting unsigned char to pointer?
    I just noticed that my Keil C compiler doesn't flag assignment of an unsigned char to a pointer as an error: unsigned char xdata *src; unsigned char xdata array[10]; src = array[0]; This doesn...
  • hello.c does not work
    I'm very new... I have a XC167 and I tried to use the hello.c code here: http://www.keil.com/support/docs/2601.htm but on the Hyperterminal i see only the "H" (anyway, this should mean that...
  • 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...