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.

ADS1298 Programming w/F2812

Other Parts Discussed in Thread: ADS1298, TMS320F2812

Hi I have some problem wiht my ads1298 configuration.

PIn Configuration:

Start pin= 0, for opcode configuration

Reset = 1 , for opcode configuratioon

PWDN= 1

Reset and Pwdn start at the same time that i turn on the device.

CS= 0, always at the moment.

 

I am programming ads1298 with tms320f2812.

Register configuration, using quick start guide steps.

 

  SpiaRegs.SPITXBUF=0x0600; //RESET

    reset wait

    SpiaRegs.SPITXBUF=0x1100;//sdatac


    wait 4tclk


    SpiaRegs.SPITXBUF=0x4300;//CONFIG3
    SpiaRegs.SPITXBUF=0xC000; //
    wait internal reference1 sec
  
   

    ///CONFIG1
    //HR DAISY_EN CLK_EN 0 0 DR2 DR1 DR0
    SpiaRegs.SPITXBUF=0x4100; // escribir
    SpiaRegs.SPITXBUF=0xA000; // config1

    //CONFIG2
    //0 0 0 INT_TEST 0 TEST_AMP TEST_FREQ1 TEST_FRED0 
    SpiaRegs.SPITXBUF=0x4200; //
    SpiaRegs.SPITXBUF=0x1000; //
   
 


     
    //CONFIG CHnSET
    //PD1 GAIN12 GAIN11 GAIN10 0 MUXn2 MUXn1 MUXn0
    SpiaRegs.SPITXBUF=0x4500; // CH1
    SpiaRegs.SPITXBUF=0x0500; //
    SpiaRegs.SPITXBUF=0x4600; // CH2
    SpiaRegs.SPITXBUF=0x0500; //
    SpiaRegs.SPITXBUF=0x4700; // CH3
    SpiaRegs.SPITXBUF=0x0500; //
    SpiaRegs.SPITXBUF=0x4800; // CH4
    SpiaRegs.SPITXBUF=0x0500; //
    SpiaRegs.SPITXBUF=0x4900; // CH5
    SpiaRegs.SPITXBUF=0x0500; //
    SpiaRegs.SPITXBUF=0x4A00; // CH6
    SpiaRegs.SPITXBUF=0x0500; //
    SpiaRegs.SPITXBUF=0x4B00; // CH7
    SpiaRegs.SPITXBUF=0x0500; // 
    SpiaRegs.SPITXBUF=0x4C00; // CH8
    SpiaRegs.SPITXBUF=0x0500; //

    SpiaRegs.SPITXBUF=0x0800; // START
    SpiaRegs.SPITXBUF=0x1000; // RDATAC

 

I want to know if that pin and register configuration is correct.

Thanks a lot.

  • Hi Oscar,

    Nothing jumps out at me as being 'wrong' with your ADS1298 configuration setup.  You could save yourself a few instruction cycles by simply programming the channel registers in one sequence, but other than that it seems fine.  What sort of trouble are you having with this setup?

  • Thanks again, Tom.

    I can configure my ads1298 by tms320f2812, this is my dout signal in test mode configuration. Is the same configuration that i show you before.

     

  • Hi Tom, I have another question right now i can see dout signal in configure test signal mode, i verified  dout signal wtith ads1298ecgfe both signals arevery similar.

    I have two problem:

    1- Sometimes when I configure i can see dout signal, but drdy doesnt change. Its always 3.3v voltage level.

    2- When I restart ads1298 too much times, the device don't work well. Then I try to turn off the device so pwdn goes to 0. Sometimes that solution works. 

    If you have an screen shot of test signal mode, like the example that appear in datasheet quick start guide I really apreciate.

     

  • Hi Tom I have a question I am acquiring signal using ads1298-tms320f2812, the condigration register is in test mode.

    But i have some problem because i have ads1298ecgfe kit and the output values are not the same.

    If you have some example of output of test mode I really apreciate.

     

    Thanks again.

  • Hi Oscar,

    I believe Tony replied to you via another thread.  I don't have the ADS1298 setup with the F2812 in my lab, so providing you with an example output won't be something I can readily do for you.  I may be able to give you the output codes from our TMS320VC5509 though, they should be roughly equivalent from the digital code perspective.

  • Hi Tom,  I really apreciate if you can send me the output of signat test. It´s ok for my if you use tms320c55vc5509.

    Tom I have another question when i program the device in test mode, how is the behavior of status bits?

    I am using internal test signal.

    Thanks.

     

  • Hi Tom,. Tom now i am testing my ads1298 with this configuration all channels are down.

    So, dout signal must be.

    hex values

    c 0 0 0 0 0  =>STATUS

    0 0 0 0 0 0 =>CH1

    0 0 0 0 0 0 =>CH2

    0 0 0 0 0 0=>CH8

     

    Because i have some problem, i am reading values in some channels. And I dont know why.