writing to XDATA with KEYPAD and displaing on LCD

Status
Not open for further replies.

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; 
} 
. 
. 
.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…