accessing ADS1299 SPI from Edison, MISO noise
Hey,
I have been working on configuring Edison's SPI bus to control the ADS1299 analog to digital converter chip through the mraa library.
While my program is running, I am monitoring the SPI pins (SCLK, MOSI, MISO, and CS1) and it seems that SCLK, MOSI, and CS1 are working correctly. However, the MISO pin only shows noise.
Is there usually a quick fix for this kind of problems?
PS: I added a pull up resistor to the MISO terminal but that did not fix the issue.
In my program, I am only trying to read ADS1299's register #15, which translates into sending 0x35 - 0x00 - 0x00.
Here is the program that I am running: (Eclipse IDE platform)
int main(){
mraa::Spi* spi;
spi = new mraa::Spi(0);
spi->frequency(4000000);
uint8_t data[] = {0x35,0x00,0x00};
uint8_t rxBuf[3];
if(spi->transfer(data, rxBuf, 3) == MRAA_SUCCESS){
printf("Received: %i - %i - %i\n",rxBuf[0],rxBuf[1],rxBuf[2]);
}
usleep(10000);
delete spi;
return MRAA_SUCCESS;
}
Any help would be appreciated. Thanks,
Youssef
Comments