Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top