Sir,
I am trying to interface an ADS1299 with a EK-TM4C123GXL Launchpad (Master).
I have proceeded in the same way as per the flowchart given in the datasheet of ADS1299 (under SETTING THE DEVICE FOR BASIC DATA CAPTURE to set the ADS registers for acquiring the test signals.
I have configured SSI0 (Master mode) in TIVA and connected the following pins:
SSIClk (Tiva) - SCLK (ADS)
SSIFss (Tiva) - CS (ADS)
SSITx (Tiva) - DIN (ADS)
SSIRx (Tiva) - DOUT (ADS)
The flow which I have adopted is given below within the main():
1) CLKSEL= 1 (Internal Clock) (Given from a GPIO pin from TIVA)
delay of 1 s (for system to wake-up)
2) /PDWN and /RESET =1 (Given from a GPIO pin from TIVA)
delay of 1 s (for Power-On Reset)
3) Issue Reset Command (0x06) (SSIDataPut(SSI0_BASE,0x06);)
delay of 18 tclk
4) Issue SDATC Command (0x11)
5) Set config3 reg to E0 (internal ref)
6) Set config1 to 96
7) Set Config2 to D0
( I have verified the reg values being set using the RREG command)
8) Set Channel registers to 05 (Test signal with gain=1)
The next step is to give START=1
Should I configure a seperate GPIO Tiva Pin to make Start high at this point or should I isuue the Start command (0x08) ??
I have tried both.
Next is to give the RDATAC (0x10). should I give this in main() or an infinite loop inside the main () ??
I ve been continuously receiving junk values (that too not continuously - just once and less than 27 bytes) and not the required data ( Status bytes (24) + the channel values). And also I am not able receive the SSIClk after this.
Kindly guide me in this interfacing and obtaining the test signal values.
Regards,
Srivibhavan.S