• Integer promotion bug
    I think there is a bug in the C51 and CX51 compilers regarding integer promotion. I have not deselected integer promotion and thus expect proper C semantics without adding casts. The bug seems to...
  • Integral Promotion
    We are currently in the process of evaluating Keil tools for possible purchase. Using the evaluation package, I have been checking some common functions. One of them is a simple bit test macro suitable...
  • data type bug or not....
    I've noticed that the following definitions generate different data results. Perhaps, I'm overlooking something. #define TEMP (*(unsigned char xdata *) 0x10F0)) unsigned char xdata sutton2, *sutton;...
  • Timer, t1-t0, integral promotion
    For ARM7, A hardware timer is 32-bits, and unsigned int is 32-bits too; For a 16-bits MCU, A hardware timer is 16-bits, and unsigned int is 16-bits too; So, t0 = timer_val; while ( ( timer_val...
  • Types
    How can I transform a number from the type unsigned int to a float? For then to use mathematical functions in this (number_float). Only positive values. Thank you, CHACK