This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIO Test code using SPI

Other Parts Discussed in Thread: ADS1298

Hi,

I am using ADS1298 with Freescale MC 1322x. I am stuck with the initial configuration of the ADS1298.

Before going into acquiring the signal, I wanted to test by toggling the GPIO signals.

Before going into acquiring the signal, I wanted to test by toggling the GPIO signals.

So here is what I have written.

0x02; wake up

0x12; RDATAC to RREG

for(;;)
{
0x5400; Select 0x14h i.e GPIO register and write data to it
0x01; GPIO 1 set 0
delay(1000ms)

0x5400;
0x11; GPIO 1 set 1
delay (1000ms)
}

I am not able to get any signals on GPIO.
I have also taken care of clock polarity and phase. 
Please help me out with this.

Balu

  • Hi Balu,

    The ADS1298 is in RDATAC mode by default from power up.  Before you can configure any registers, you need to write the SDATC command.  Is that part of your startup code or do you just send 'WAKEUP' and 'RDATAC' as you mention above?