• a problem with macro definition
    #define FLASH_BASE 0x080000 #define RECORD_SIZE 32 #define RECORDS_PER_SECTOR (FLASH_SECTOR_SIZE / RECORD_SIZE) #define MAX_RECORD_NUM 30135 #define MAX_RECORD_ADDR (MAX_RECORD_NUM * RECORD_SIZE...
  • Use in Macro Definitions
    I need to define macros that contains inline assembly. I have used the solution explained in this link: http://www.keil.com/support/man/docs/c166/c166_le_extmacros.htm however, this doesn't...
  • important
    hi, i'm having problems using timers in AT89C51. I have a timer in an interrupt handler routine. As soon as the "output" variable gets a rising edge, the program enters in the interrupt handler routine...
  • important
    hi, i'm having problems using timers in AT89C51. I have a timer in an interrupt handler routine. As soon as the "output" variable gets a rising edge, the program enters in the interrupt handler routine...
  • compiler crash instead of error in macro definition usage
    I am using C51 compiler V7.50 I don't know if this 'works' on other versions however I was able to crash the compiler by this 'silly' macro usage // causes compiler to crash #define WORD_SIZE(N)...