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 calculations on AT89s8252

Status
Not open for further replies.

dnarenderreddy

Junior Member level 2
Joined
Jan 2, 2006
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,742
hi all, i want to calculate the result of the expression

ah = (range * count*10*resolution)/(3600*1000);

and later add it to the previous value of it
ahfinal = ahfinal + ah;


in brief to explain what i want actually is: count is the count of pulses on timer/counter , now these pulses are caliberated as

range ------> 1000 pulses
xxxx -------> count pulses

now these are to be cailberated into one hour

so ah = xxxx/3600;
now i need a resolution of (1 or 2 or 3 decimals depending on the variable resolution. next the final result should be integrated( i mean added to its previous value ahfinal = ahfinal+ah)


here
range (25, 75,100)
resolution(1, 2, 3)
count(some bog number assume around 1000).

i dont know how to deal with floating point values in microcontroller programming. can anyone help me

thanks in advance
narender
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top