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

ADS7953: Set to 12 channels. After several hours of operation, the values read back through SPI are all the values of channel 1

Part Number:ADS7953

Set to 12 channels. After several hours of operation, the values read back through SPI are all the values of channel 1

The  external ad configuration is as follows

case 1:
st_ExtAdcCtlReg.all = 0x4200;
McbspbRegs.DXR1.all = st_ExtAdcCtlReg.all;
u16_ExADCFirstConfig=2;
break;
case 2:
st_ExtAdcCtlReg.all = 0x8000;
McbspbRegs.DXR1.all = st_ExtAdcCtlReg.all;
u16_ExADCFirstConfig=3;
break;
case 3:
st_ExtAdcCtlReg.all = 0x0FFF;
McbspbRegs.DXR1.all = st_ExtAdcCtlReg.all;
u16_ExADCFirstConfig=4;
break;
case 4:
st_ExtAdcCtlReg.all = 0x2C00;
McbspbRegs.DXR1.all = st_ExtAdcCtlReg.all;
u16_ExADCFirstConfig=5;
break;
case 5:
st_ExtAdcCtlReg.all = 0x2800;
McbspbRegs.DXR1.all = st_ExtAdcCtlReg.all;
u16_ExADCFirstConfig=6;
break;

Amy Luo:

您好,

您是使用的哪种模式?Manual mode, Auto-1 mode, Auto-2 mode?

工作期间供电电压是否稳定?是否发生了掉电复位?

代码中的 case1 至 case5是什么?

,

Jingnian Peng:

您好,使用的是Auto-1 mode  case1 至 case5是配置外部AD的过程,就是给外部AD依次写入0x4200 0x8000 0x0FFF 0x2C00 0x2800

,

Amy Luo:

感谢反馈!

0x4200是复位

0x8000是配置 Auto-1 Mode Program Register

0x2C00 0x2800都是配置Mode Control Register

0x0FFF是什么?

看配置没什么问题,

设备掉电后会工作在 manual mode channel 0,因此在此期间请检查设备是否发生过掉电或电压不稳的情况?

赞(0)
未经允许不得转载:TI中文支持网 » ADS7953: Set to 12 channels. After several hours of operation, the values read back through SPI are all the values of channel 1
分享到: 更多 (0)