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.

Floating point - showing the temp in lcd

Status
Not open for further replies.

gafar

Junior Member level 1
Joined
Jul 14, 2003
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Brazil
Activity points
135
Floating point

I need show the temp in the Display lcd.
Range temperature = 0 ~ 128 °C
Range AD = 00h ~ FFh
1 step 0,5°C = 128/256
35°C = 46h * 0.5
How i do it use assembly to 8051???
Can you help me
Thanks
 

i havent worked wth 8051
but an idea is to make H46 * 5 get the answer and display the decimal point urself on the second digit . Of course u have to do a hex to decimal routine before displaying .
regards
 

:idea: Thanks for open my mind.
 

Re: Floating point

its quite simple actually using the mul and div instructions
 

Re: Floating point

u can use normalization to implement FPU .. no need to actually implement FPU
represent the non-decimal part by say 7 bits ... and then assign another say 3-4 bits for the decimal portion....
 

Re: Floating point

hi
u can use Look Up Table or Hex to Decimal algorithm to convert data
:idea:
 

Re: Floating point

At http: //xavier.fenard.free.fr/LCMeter.htm
you have an exemple of float routine for a small
avr. Change only the appl. prog....
lucas
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top