• #Define in Keil
    Hi Collegues, I am new in uVision and I am trying to configure an LCD in 4-bit mode by this tool. I got an error when I wrote this: #define LCD_Data P0 . . . Then I wrote LCD_Data=0x28; the...
  • User defined functions in uVision3
    Has anyone ever seen an authoritative document on using debug functions in uVision3? It could be a powerful tool if I knew how to use it, but what little information I have come across is scattered across...
  • User-defined function in uVision5
    Hi everyone, I have an assembly code that I want to run in uVision4. The .a51 code is as follows: MOV A, #002H MOV R0, #040H MOV 040H, #001H XCH A, @R0 MOV R0, #050H MOV 050H, #0F0H...
  • Define act as function?
    I've been using defines as fucntions like this: sbit DRIVE_PIN05 = P1^3; #define DRIVE_PIN05_HIGH (P1MDOUT |= 0x08);(DRIVE_PIN05 = 0) #define DRIVE_PIN05_LOW (P1MDOUT |= 0x08);(DRIVE_PIN05 ...
  • how to define this function WBYTE
    why I have this error??? MENUS.C(245): warning C206: 'wbyte': missing function-prototype MENUS.C(245): error C267: 'wbyte': requires ANSI-style prototype