| 1234567891011121314151617181920212223242526 |
- #ifndef __PT1000_H__
- #define __PT1000_H__
- /*
- 采样值转电压:0.000050354004 16bit 满篇3.3V
- 分压偏置 0.436170213 分压电阻为20k,8.2k 偏置电压为
- 电流值:0.0005 限流电阻1500
- (V*0.000050354004/10 + 0.436170213)/0.0005
- 简化为:
- =V*3.3/65536/10/0.0005 + 0.436170213/0.0005
- =V*0.01007080078125+872.34
- */
- #define ADCTORESISTANCE 0.01007080078125
- #define BASERESISTANCE 872.34
- float getTemp(float R);
- float getPB7_Temp(float R);
- float Get_Temp_NCP18XH103(float Rt);
- float Get_Temp_K_Thermocouple(float Vt);
- unsigned char crc8_check(unsigned char* data, unsigned char len);
- #endif
|