这是DS上的描述
void Calibration_1259(void)
{
Shield_SamplingInterrupt(); // ÆÁ±ÎÖжÏ
/*Set the gate control mode (PULSE bit = 0)*/
ADC_StartConv(); /*Start the ADS1259 conversions*/
DAC_Write(0x8000); /*Apply the appropriate input to the ADS1259 (zero)输出0V*/
delay_ms(20); /*Allow time for the input to completely settle*/
ADC_WR_CMD(OFSCAL_1259); /*Send the OFSCAL command, as appropriate*/
while(ADC_DRDY == 1);
ADC_StopConv();
delay_ms(10);
ADC_StartConv(); /*Start the ADS1259 conversions*/
DAC_Write(0xFFFF); /*Apply the appropriate input to the ADS1259 (full-scale)输出2.5V*/
delay_ms(10); /*Allow time for the input to completely settle*/
ADC_WR_CMD(GANCAL_1259); /*Send the OFSCAL command, as appropriate*/
while(ADC_DRDY == 1);
ADC_StopConv();
Open_SamplingInterrupt();
}
这是我根据数据手册描述写的校准程序。
校准后的读到的值完全不对。
望TI工程师指导