Hi all,
We're designing an EEG device. and we have two ADS1298 one used for reading impedance and the other one for eeg signal reading.
When configuring the gain for the impedance ADC I have issues seeing results.
In my reading data method I have a buffer that parses the result once processed from the SPI (for each channel there's 3 Bytes and later I build a 16 bits variable for the total result). It seems that no matter what gain I fix in the init method the buffer always shows the same value.
Here's how I change the gain using the register write command WREG as seen in datasheet and in previous Questions here in the E2E forum:
imp_spi_buff[0] = 0x45;
imp_spi_buff[1] = 0x07;
imp_spi_buff[2] = 0x10;
imp_spi_buff[3] = 0x10;
imp_spi_buff[4] = 0x10;
imp_spi_buff[5] = 0x10;
imp_spi_buff[6] = 0x10;
imp_spi_buff[7] = 0x10;
imp_spi_buff[8] = 0x10;
imp_spi_buff[9] = 0x10;
imp_spi_buff[10] = 0x10;
imp_write_config_adc(imp_spi_buff, 11);
I use the same system to set HR mode and normal electrode for all channels and it works (I've checked the sampling rate with an oscilloscope and it samples at 500SPS, which means 0x86 on the CONFIG1.
I don't know what i might be doing wrong.
sincerely,
Conrad Holt Mestres