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

ADS1292R: After the continuous reading was stopped, the MISO signal fluctuated randomly and failed to be written to the register.

Part Number:ADS1292ROther Parts Discussed in Thread:ADS1292

esp32 with the esp-idf architecture

void ads1292_init(void)
{
    ads1292_reset();
    vTaskDelay(pdMS_TO_TICKS(1000));
    ads1292_cmd(ADS1292_CMD_RESET);
    vTaskDelay(pdMS_TO_TICKS(30));
    gpio_set_level(GPIO_START, 0);
    vTaskDelay(pdMS_TO_TICKS(30));
   

    // ads1292_cmd(ADS1292_CMD_STOP);
    // vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_cmd(ADS1292_CMD_SDATAC);
    vTaskDelay(pdMS_TO_TICKS(30));

    ads1292_write(ADS1292_REG_CONFIG1,0x04);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_CONFIG2,0b10100000);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_LOFF,0b00010000);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_CH1SET,0b01000000);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_CH2SET,0b01100000);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_RLD_SENS,0b00101100);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_LOFF_SENS,0x00);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_RESP1,0b11110010);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_write(ADS1292_REG_RESP2,0b00000011);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_read(0x00);
    vTaskDelay(pdMS_TO_TICKS(30));
    ads1292_cmd(ADS1292_CMD_RDATAC);
    vTaskDelay(pdMS_TO_TICKS(30));
    gpio_set_level(GPIO_START, 1);
    vTaskDelay(pdMS_TO_TICKS(30));
}

And attempt to write CONFIG1 0x04 and set 2ksps. However, the change frequency of the DRDY pin remains the default 500Hz.

Write register error

Error in reading the register (IO register)

  

I will be very grateful for any reply you make.

Eirwen:

已经收到了您的案例,调查需要些时间,感谢您的耐心等待。

,

Daniel:

您好

在WREG命令期间不应切换DOUT。这表示未正确接收SDATAC命令。发送SDATAC后,用户应尝试读回寄存器,更改值,然后再次读回以确认其正常工作。

,

simian fu:

Thank you very much for your reply. I tried the method you mentioned and finally succeeded when I kept pulling the chip selection pin low instead of letting it be controlled by SPI. However, my previous timing strictly followed the timing in the data sheet. I'm very curious as to why only enabling the pins during communication would cause a failure.

,

Daniel:

您好

您可以检查 MCU 是否在每个字节后(而不是仅在 SPI 帧之间)将/CS 拉至低电平。 必须通过 MCU 中的 GPIO 手动控制/CS 的情况并不少见。

赞(0)
未经允许不得转载:TI中文支持网 » ADS1292R: After the continuous reading was stopped, the MISO signal fluctuated randomly and failed to be written to the register.
分享到: 更多 (0)

© 2026 TI中文支持网   网站地图 鲁ICP备2022002796号-1