for(ch = 0;ch <2;ch++)
{
Adc1 = ADS1256ReadData( ch<<4|ADS1256_MUXN_AINCOM);
Adc1 = ADS1256ReadData( ch<<4|ADS1256_MUXN_AINCOM);
Adc1 = ADS1256ReadData( ch<<4|ADS1256_MUXN_AINCOM);
Volts1 = Adc1*.00000059453; // 0.00000059453
delay_ms(1000);
if(ch==0)
{
OLED_ShowNum(6,6,Volts1,4);
}
if(ch==1)
{
OLED_ShowNum(56,6,Volts1,4);
}
}
|