May 16, 2007 #1 D denesio Junior Member level 1 Joined Mar 20, 2007 Messages 17 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,391 i want to write to xdata register with keypad and see the address and data on lcd..... how i can to write "scanf" function for LCD ???? for example: Code: . . . void writereg() /* -------- write data to specified register --------- */ { uchar Add, Data; printf("\nEnter Address (hex): "); /* Get Address & Data */ scanf("%bx", &Add); printf("DATA (hex): "); scanf("%bx", &Data); XBYTE[Add] = Data; } . . .
i want to write to xdata register with keypad and see the address and data on lcd..... how i can to write "scanf" function for LCD ???? for example: Code: . . . void writereg() /* -------- write data to specified register --------- */ { uchar Add, Data; printf("\nEnter Address (hex): "); /* Get Address & Data */ scanf("%bx", &Add); printf("DATA (hex): "); scanf("%bx", &Data); XBYTE[Add] = Data; } . . .