Other Parts Discussed in Thread: ADS1298, , ADS1198, ADS1292
Hi,
I have problems reading data from channels 1 through 8 and need some help to figure out why.
I run the first half of the test in chapter 10.1.1 of SBAS459K –JANUARY 2010–REVISED AUGUST 2015, where the inputs are shorted,
and I expect data to be around +/- 0, i.e. 0x00 0x00 0x0? and 0xFF 0xFF 0xF? width some variation in the least significant digit, like in the example below:
0xC0 0x00 0x00
0xFF 0xFF 0xFD
0x00 0x00 0x02
0xFF 0xFF 0xFD
0x00 0x00 0x03
0xFF 0xFF 0xFC
0x00 0x00 0x06
0xFF 0xFF 0xFF
0x00 0x00 0x01
Instead I get something like this:
0xC0, 0x0, 0x0 // Seems ok to me.
0xDD, 0x64, 0x8E // To big negative value when having a shorted input.
0x80, 0x0, 0x0 // I did not expect values like "-0" and they seem a little bit to steady.
0x80, 0x0, 0x0
0xBF, 0x9F, 0xFB
0x80, 0x0, 0x0
0x80, 0x0, 0x0
0x80, 0x0, 0x0
0x80, 0x0, 0x0
Please see attached log file for more data.
The initial bits of the status data 0xC0 and then 0x00 0x00 seems ok but the rest of the data seems wrong to me.
The channels that have values like 0x80, 0x0, 0x0 seems odd to me also the two channel values of 0xDD, 0x64, 0x8E and 0xBF, 0x9F, 0xFB seems faulty.
Can you please confirm if I am right about the data not being ok, or otherwise why it is right?
<debug> app: Start of Hello World
<debug> app: ads1298_drv.c(269) ADS_SDATAC.
<debug> app: ads1298_drv.c(284) WREG CONFIG1 0x86.
<debug> app: ads1298_drv.c(291) WREG CONFIG2 0x00.
<debug> app: ads1298_drv.c(255) WREG CHnSET 0x88 0x0 0x1 for all eight channels // Configure 0x81 - 0x88
<debug> app: ads1298_drv.c(300) ADS_START.
<debug> app: ads1298_drv.c(304) RDATAC.
<debug> app: ads1298_drv.c(308) ADS_SDATAC.
Please see the attached log file for more data.
#define SPI_MOSI_PIN 4 // Connected from P0.4 to J3:11
#define SPI_MISO_PIN 28 // Connected from P0.28 to J3:13
#define SPI_SS_PIN 29 // Connected from P0.29 to J3:7
#define SPI_DRDY_PIN 30 // Connected from P0.30 to J3:15
#define ADS_RESET_PIN 31 // Connected from P0.30 to J3:8