Hi all,
I am trying to read the ADS1298 RREG register using OPCODE and I don't get any feedback from the MISO port.
for example lets say I write :
// 7) Configures all channels as input-shorted
eeg_spi_buff[0] = 0x45;
eeg_spi_buff[1] = 0x07;
eeg_spi_buff[2] = 0x01;
SpiMasterTransfer(eeg_spi_buff, 3, 0, 0);
And immediately after I want to read if the configuration has been upload, so I do this:
//Read 8 registers at address 0x05
eeg_spi_buff[0] = 0x25;
eeg_spi_buff[1] = 0x07;
SpiMasterTransfer(eeg_spi_buff, 2, 0, 0);
This is how I initialize the ADC:
// SEQUENCE OF COMMANDS:
// 1) Send RESET Pulse
// 2) Send SDATAC command
// 3) Configure Reference Buffer
// 4) Configure Clock Setting
// 5) Set input-shorted
// 6) Read RREG
// 8) Send START command
// 9) Send RDATAC command to enable continuous data capture
// 10) Wait until Data is received and Read Captured data
// 11) Send SDATAC command
Well, if I enter RDATAC to get the conversions i can see (using an oscilloscope) data in the MISO port.
But if I do only until step 6, there's no way I see the configuration through the MISO.
Any clue, with what is happening? Do I have to do any thing special, besides stopping the RDATAC to read RREG?
Thanks