• ADC Wrong Result
    Hi All. I used LPC2103 ADC Channel 0 in my program, Every Setting is Correct But I read the result Always 1023 or Some less. I think its pulled up internally, because when i connect the ADC.0 to...
  • When copying an unsigned int the result is byte swapped
    Hi, I am using Cx51v7.20 I have declared a table in battery backed far data memory as an unsigned int table. unsigned int far fireCalibrationANALOG_FIRE_LINES] _at_ 0x5F0050; I store data in...
  • Arithmetic Calculate (64 bits)
    How can I multiply 2 data that result in a 64 bit value? For example: unsigned long a = 4000000000, c; unsigned int b = 60000; c = a * b; //this have a problem!!! Has any library that can...
  • printf outputs wrong result when do multiplication
    volatile unsigned char a; a = 3; printf("%u\n", a * 100); The output is 11264. Why? Any reply would be greatly appreciated.
  • make typedef a 64-bit unsigned
    I am trying to make typedef a 64-bit unsigned and getting error. How do I typedef 64-bit typedef unsigned long long QWORD; // 64-bit unsigned error C141: syntax error near 'long'