51+HD7279+ADS1110+PT100的测温系统(程序)(9)
发布时间:2021-06-05
发布时间:2021-06-05
51+HD7279+ADS1110+PT100的测温系统,通过与标准温度计对比拟合,精度能达到0.5度
delay1ms(2);
write7279(SEGON,5);
delay1ms(2);
write7279(DECODE0+4,nHightTMP/100%100);
delay1ms(2);
write7279(DECODE0+5,nHightTMP/10%10);
delay1ms(2);
write7279(SEGON,47);
delay1ms(2);
write7279(DECODE0+6,nHightTMP%10);
}
if (nMode == 2) // set nTMPAdj
{
write7279(SEGON,0);
delay1ms(2);
write7279(SEGON,1);
delay1ms(2);
write7279(SEGON,2);
delay1ms(2);
write7279(SEGON,4);
delay1ms(2);
write7279(SEGON,5);
delay1ms(2);
write7279(SEGON,6);
delay1ms(2);
if (nTMPAdj < 0)
{
write7279(SEGON,32);
delay1ms(2);
write7279(DECODE0+5,(0-nTMPAdj)/10%10);
delay1ms(2);
write7279(DECODE0+6,(0-nTMPAdj)%10);
}
if (nTMPAdj > 0)
{
write7279(DECODE0+5,nTMPAdj/10%10);
delay1ms(2);
write7279(DECODE0+6,nTMPAdj%10);
}
}
}
/***********************************************************************************
上一篇:道路工程概论.第2-7章
下一篇:土家风情深度亲子自驾游1.0