This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ads1220 初始化配置和电压值换算问题

Other Parts Discussed in Thread: ADS1220

附件图片是我目前ads1220的原理图  下面是初始化设置配置程序,  读出来的数据都是0XFF80FF80  不管我外接电阻换多大都是  请教一下配置

电压转换计算 公式?

hal_ads1220.setMux(ADS1220_MUX_PAIN0_NAIN1);
hal_ads1220.setGain(ADS1220_GAIN_32);
hal_ads1220.setPga(ADS1220_PGA_ON);
/* 1 */
hal_ads1220.setModeDr(ADS1220_NORMAL_20SPS);
hal_ads1220.setCm(ADS1220_CM_CW);
hal_ads1220.setTs(ADS1220_TS_DISABLE);
hal_ads1220.setBcs(ADS1220_BSC_OFF);
/* 2 */
hal_ads1220.setVref(ADS1220_VREF_INTERNAL);
hal_ads1220._Vref = 1250.00;
hal_ads1220.setFir(ADS1220_FIR_50_60HZ);
hal_ads1220.setPsw(ADS1220_PSW_OPEN);
hal_ads1220.setIdac(ADS1220_IDAC_OFF);
/* 3 */
hal_ads1220.setI1mux(ADS1220_I1MUX_OFF);
hal_ads1220.setI2mux(ADS1220_I2MUX_OFF);
hal_ads1220.setDrdym(ADS1220_DRDYM_DRDY);

  • 先检查检查 基准的设置, 可能问题在基准设置上
  • 基准设置为: 10 使用AIN0/REFP1 和 AIN3/REFN1 输入选择的外部基准电压 实际读出来也是0XFF80FF80
    上面代码也没更新

    hal_ads1220.setMux(ADS1220_MUX_PAIN0_NAIN1);
    hal_ads1220.setGain(ADS1220_GAIN_32);
    hal_ads1220.setPga(ADS1220_PGA_ON);
    /* 1 */
    hal_ads1220.setModeDr(ADS1220_NORMAL_20SPS);
    hal_ads1220.setCm(ADS1220_CM_CW);
    hal_ads1220.setTs(ADS1220_TS_DISABLE);
    hal_ads1220.setBcs(ADS1220_BSC_OFF);
    /* 2 */
    hal_ads1220.setVref(ADS1220_VREF_EXTREF1);
    hal_ads1220._Vref = 1250.00;
    hal_ads1220.setFir(ADS1220_FIR_50_60HZ);
    hal_ads1220.setPsw(ADS1220_PSW_OPEN);
    hal_ads1220.setIdac(ADS1220_IDAC_OFF);
    /* 3 */
    hal_ads1220.setI1mux(ADS1220_I1MUX_OFF);
    hal_ads1220.setI2mux(ADS1220_I2MUX_OFF);
    hal_ads1220.setDrdym(ADS1220_DRDYM_DRDY);