• 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...
  • struct: uvision describe char as short
    I've one strange error. I define a struct with unsigned short and one unsigned char variable. typedef struct struct1{ unsigned short a; unsigned short b; unsigned char c; unsigned short d; }MsStruct;...
  • making a short out of a msb+lsb char
    Hi all, I'm new to C and need a hint on an optimization problem. I have a 16 bit counter, divided into two 8bit SFRs, let's say TH0 and TL0, and I want to transfer them to a short. I could: ...
  • how would be a char / short variable stored?
    If I've got a struct like: struct mystruct { unsigned char first; unsigned short second; }; How would this be stored in the memory if I'm working with a 32Bit ARM7 microcontroller (SAM serie...
  • What is a short variable?
    Hi, I'm now porting a (by a former employee) RC-51 compiler developped application to the Keil ARM RealView compiler. First I need to know what variable types are used in both compilers and how...