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.

problem of display number on LCD

Status
Not open for further replies.

meera83

Junior Member level 1
Joined
Dec 20, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,421
i m using PIC16F877, i want to display ADC(0-5V) on LCD display that show a number 0.00-10.00..

i didn't use floating point instead i used decimal point to display the 2 digit of division..

the problem is the biggest number that is showed will become out of range..

for example, the formula is x multiply 393 div 100 = y

when x= 250, y=982 and i will manually put a decimal point after the number of 9 so y=9.82

but when x=254, y=998 ==9.98
and at maximum x=255, y=1002 ==10.02

but the maximum number that i want to show is 10.00..so how to make a change on the formula in order to let the display show only 0.00-10.00??
 

logically, it can be solved in comparing the number you get with 10.00.if it is larger than show 10.00 else show the calculated result.

This is the quickest method but there are other more pro methods

can u post your code to make changes on your code?

are you able to display the point?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top