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 make floating point calculation in codewarrior using math.c header file

Status
Not open for further replies.

rangerskm

Full Member level 4
Joined
Jan 23, 2013
Messages
199
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,296
Activity points
2,663
i want to do the calculation for below mentioned equation

#define A1 -13.4088568
#define B1 4547.9615
#define C1 -176965.92
#define D1 3861154
#define R25 10000 //10KOHM
#define R1 1000 // 1KOHM

//To Find Rt
Rt = {(4096/ADC)-1}*R1 //ADC is input value of adc pin

//and To Find Temprature T
TEMP_KELVIN =1/(A1+B1+ln[Rt/R25]+C1ln2[Rt/R25]+D1ln3[Rt/R25]) (natural log is in expression)
TEMP_DEGREE=TEMP_KELVIN+273

please show me how to change this expression in code
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top