??? 05/16/07 08:06 Read: times |
#139308 - writing to XDATA with KEYPAD and displaing on LCD |
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: . . . 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; } . . . |