Other Parts Discussed in Thread: ADS1298, ADS1299, ADS1294,
Dear my colleagues
I am making 2-channel EEG device with ADS1292IPBS.
Actually, our team have been made EEG device with ADS1294, ADS1298, and ADS1299 already.
So I started to design the circuit and firmware code.
I would like to explain my test set-up first.
My EEG device adapted 8-bit MCU, ATMEGA168 and ADS1292IPBS.
MCU communicates with the labview software on the host PC via UART communication.
At the beginning of the firmware, I initialized SPI communication, set up ADS1292 registers, and then UART communication.
UART communication between MCU and host PC was OK.
Then, I tried to verify SPI communication.
So I modified CONFIG2 register on ADS1292 in order to generate the internal test signal on the both channels with the frequency of 1Hz.
Our data sampling rate is 250Hz. (Datasheet says that default value is 500Hz.)
However, test signal seems not to be generated correctly.
I turned on the device and operated the labview user software to collect the test signals
Unfortunately, it is hardly to get the intended signal (square-wave test signal)
In most cases, ADS1292 does not generate the test signals. It just gives out noise-like signals randomly.
What's more, sometimes, signals with default sampling rate was generated... (I did not change the sampling rate at all)
If I turned the device and tried the operation again, the correct signal sometimes appears....but not many times....
Firmware did not change...
I just turn off / on the device but ADS1292 on my EEG device works differently.
I doubted that registers of the IC were not initialized or defined correctly on in a large percentage of cases, but I am not sure.
I want to know the root cause of this malfunction.
I reviewed the datasheet many times and I did not find any mistakes on the code (I was confident with my ADS1292 settings at first.)
But the problem still remains and I am struggling to find the solution... very difficult!!!
Could you please give me some useful advice??
How can I fix this phenomenon??
For your understanding of my problem, please check the attached picture...
It shows the measured 2-channel square-wave test signals.
Unfortunately, the second channel does not work properly despite the same set-up with the first channel...
(At this time, channel 1 works well with the right sampling rate, 250Hz. Number 1000 on x-axis means the 1000th points.
Graph shows 4-second measurements with the exact frequency.)
I am waiting for your help.
Thanks :)