资源描述:
《STM32下的PT100驱动程序,适用于ucos系统》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、*****************************************************************************************************文件名称:HAL_ADC.h*版本:*说明:水*********************************************************************************************************///externunsignedshortintLEDl_AdcValue;//externunsignedshortintLED2_Ad
2、cValue;//externunsignedshortintPTC100_AdcVaIue;externunsignedshortintTESTl_AdcValue;externunsignedshortintTEST2_AdcValue;/*提供给其他c文件调用的函数*/voidADC_Readlnit(void);voidAdcPro(void);**********************************************************************************************************文件名称:HAI__PTIOO
3、.c★版本:*说明:PT100温度传感器驱动******/#include"bsp.h"constunsignedshortintPT100_Table[]={/*-50……41°C*//*-4031°C*//*-30……21°C*//*-2011°C*//*-10——1°C*/8031,8070,8110,8150,8189,8229,8269,8308,8348,8387,8427,8467,8506,8546,8585,8625,8664,8704,8743,8783,8822,8862,8901,8940,8980,9019,9059,9098,9137,9177,9216,9255
4、,9295,9334,9373,9412,9452,9491,9530,9569,9609,9648,9687,9726,9765,9804,9844,9883,9922,9961,10000,10039,10078,10117,10156,10195,10234,10273,10312,10351,/*0-—9°C*/10390,10429,10468,10507,10546,10585,10624,10663,10702,10740,/*10-—19°C*/10779,1081840857,10896,1093540973,11012,11051,11090,11129,/*20——29
5、°C*/11167,11206,11245,11283,11322,11361,11400,1143&11477,11515,/*30・——39°C*/11554,11593,11631,11670,11708,11747,11786,11824,11863,11901,/*40-—49°C*/11940,11978,12017,12055,12094,12132,12171,12209,12247,12286z/*50-—59°C*/12324,12363,12401,12439,12478,12516,12554,12593,12631/12669z/*60-—69°C*/12708,1
6、2746427844282242861,128994293742975,13013,130527*70-一一79°C*/13090,13128,13166,13204,13242,13280,1331843357,13395,134337*80——89°C*/13471,13509,13547,13585,13623,13661,13699,13737,13775,13813z/*90-—99°C*/13851,13888,13926,13964,14002,14040,14078,14116,14154,14191,/*100-—109°C*/14229,14267,14305,14343
7、,14308,1441&14456,14494,14531,14569,/*MO-…119°C*/14607,14644,14682,14720,14757,14795,14833,14870,14908,149467*120---129°C*/14983,15021,15058,15096,15133,15171,15208,15246,15286,15321,/*130-139°C*/15358,1539