waveshareteam / High-Precision-AD-DA-Board

42 stars 33 forks source link

Unable to read Chip ID #13

Closed astrocyte-medical closed 3 years ago

astrocyte-medical commented 3 years ago

Hi, I bought two of these boards and I'm not able to read the ADS1256 chip ID. I'm using a different dev board with my own code. Could you please confirm the following are correct?

  1. Resetting the board (P1 high -> wait 200us -> P1 low -> wait 200us -> P1 high -> wait ADS1256 oscillator) is sufficient and configuring the ADS1256 is not required for this.
  2. The SPI settings are CPOL 0, CPHA 1, SCLK@20000Hz
  3. It is sufficient to reset the board as per [1] for DRDY (P0) to go low (I tried internal pull up and external as well and DRDY stays high. I'm confident everything is correct in my code for polling the DRDY state because I'm able to pull the pin low using a different microcontroller).
  4. The MISO line stays high all the time as well. I'm sending (CMD_RREG | REG_STATUS) then 0x00.

Any help is greatly appreciated, thanks.

astrocyte-medical commented 3 years ago

I got it working, I didn't connect both power supplies. Nice piece of tech and great code, thanks!