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.

ADS1246输出速率无法更改的问题咨询

Other Parts Discussed in Thread: ADS1246

请问,ADS1246的数据输出速率如何更改。我的程序是这样的,

/*命令写入子函数*/

void ADS1246_WriteReg(uint8_t RegAddr,uint8_t *Buffer,uint8_t Length)
{
uint8_t Cmd[2];

ADC_SPI_CS_CLR ; 
Cmd[0]=ADC_CMD_WREG|RegAddr; 
Cmd[1]=Length-1; 
ADC_WriteBytes(Cmd,2); 
ADC_WriteBytes(Buffer,Length);
//Cmd[0] = ADC_CMD_NOP; 
//ADC_WriteBytes(Cmd,1); 
ADC_SPI_CS_SET ; 
}

/*采样增益和速率设置函数*/

void ADS1246_Config(uint8_t CovGain,uint8_t CovRate)
{
uint8_t Cmd; 
Cmd=CovGain|CovRate;
ADS1246_WriteReg(ADC_REG_SYS0,&Cmd,1); //采样增益和速率输出
}

/*配置速率*/

ADS1246_Config(ADC_GAIN_1,ADC_SPS_2000);

问题:此处配置,不管我设置的ADC_SPS_5还是ADC_SPS_2000,其输出速率都没有变化,都是按照ADC_SPS_5的速率输出?这是为何?

请问我的程序是否有错?

我应该怎么配置ADS1246的输出速率,使其达到2KSPS?

求助各位好心人!万分感谢,感谢!!