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.

How to convert binary value stored in accumulator and display it on LCD?

Status
Not open for further replies.

mohamed saleh

Member level 3
Joined
Aug 26, 2006
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,768
i want to know how to display the valve stored in the accumulator in the LCD
for example
if there is a value of "5C h" hexadecimal stored in the accumulator
i want it to be displayed as "92" "decimal" on the LCD

i want to convert the binary value stored in the accumulator int its equivalent decimal to be displayed on the LCD
 

lcd tutorial bogusz

Goto:
**broken link removed**
and find Hex/Dec Converter /LCD .. by Jacek Bogusz ..
or
24-bit binary to decimal(BCD) .. by Manoj R. Thakur ..

Regards,
IanP
 

Re: 8051 and LCD Problem

1. convert binary to bcd ex. 5C --> 92
2. convert bcd to ascii code ex. 92 --> 9 -> 39h and 2 -> 32h
3. send ascii code to LCD. ex. 39h & 32h
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top