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);
}
}
}
/***********************************************************************************