Part Number: ADS1298
Hello,
I am trying to read the values when i set the internal Test Signal; however I am getting a lot of 0x800000 values. I don't know how to interpret this or correct it.
I think the power up timing is correct since I am able to read the ID of the device correctly.
Some important information:
1- I am using the internal clock;
2- I am reading the values at the falling edge of the DRDY and I most frequently get 0.00 V, and verry few readings I get 67mV, nothing close to a squared wave like expected (I have tried at the rising edge despite the non agreement with the datasheet and the values I get are always 67mV)
3- The SPI communication is in Mode_1; and speed 3.9MHz
4- My start pin is connected to AGND; Reset to DVDD through a 10K;
5- DVDD = 1.8; AVDD = 3.3V
After reading the ID I do this code and then read values from the interface whenever there is a falling edge of the DRDY pin.
spi.write([SDATAC])
# Channels input Short
received = spi.transfer([WREG, CONFIG2, 0x00, 0x10])
# # received = spi.transferREG("WREG CONFIG2 0x10")
time.sleep(0.5)
received = spi.transfer([WREG, CHnSET, 0x00, 0x05])
time.sleep(0.5)
spi.write([RDATAC])
time.sleep(0.5)