float Get_Temp_Process(u16 ADCData,u16 ADC_ref,float ref)
{
float TEM;
float Rt =0;
float Rp=10000;
float vol =0;
float T2=273.15+25;
float Bx=3435;
float Ka=273.15;
vol=(ref*ADCData)/(ADC_ref);;
Rt=( ref*2 - vol)*1000/(vol);
TEM=1/(1/T2+log(Rt/Rp)/Bx)-Ka-2;
return TEM;
}
就是这个计算公式
|