我现在的资料是热敏电阻 的温度对应他的阻值。 用的是单片机内10位AD。。用查表法测温。想得到AD转换后电压对应的温度表,这个表怎么计算得到、、
刚看了一个表如下
uchar code tab2[]=
{79,78,77,76,75,74,73,72, //温度补偿表
71,70,69,68,67,67,66,65,
64,63,63,62,61,60,60,59,
58,58,57,56,56,55,54,54,
53,53,52,52,51,50,50,49,
49,48,48,47,47,46,46,45,
45,44,44,43,43,43,42,42,
41,41,40,40,39,39,39,38,
38,37,37,36,36,36,35,35,
34,34,34,33,33,33,32,32,
31,31,31,30,30,30,29,29,
28,28,28,27,27,27,26,26,
26,26,25,25,24,24,23,23,
23,22,22,22,21,21,21,20,
20,20,19,19,19,18,18,18,
17,17,17,16,16,16,15,15,
15,14,14,13,13,13,12,12,
12,11,11,11,10,10,10,9,
9,9,8,8,7,7,7,6,
6,6,5,5,4,4,4,3,
3,3,2,2,1,1,1,0,
0,1,1,2,2,2,3,3,
4,4,5,5,6,6,7,7,
8,8,9,9,10,10,11,11,
12,12,13,14,15,15,16,17,
17,18,19,19,20};
为啥出现重复数字。这个表有啥公式计算吗、? |