TI中文支持网
TI专业的中文技术问题搜集分享网站

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);

user151383853:

先检查检查 基准的设置, 可能问题在基准设置上

user6128935:

回复 user151383853:

基准设置为: 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);

赞(0)
未经允许不得转载:TI中文支持网 » ads1220 初始化配置和电压值换算问题
分享到: 更多 (0)