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.

ADS1255 Reading Dealy timing Setting

Other Parts Discussed in Thread: ADS1255, TMS320F28062

HI, 

I  am reading the register via SPI in TMS320F28062.  The ADS1255 shows that it requires t6>50*master clock period delay, the master clock period is 0.1us(10MHz), so I think t6=10us is reasonable, But it does not work till I set it to 60us. So I am not sure there is something wrong, my code is below, Could you help me check that, Thank you!

// Set Register
SpiaRegs.SPITXBUF = 0x1300;
while (SpiaRegs.SPISTS.bit.INT_FLAG != 1) { } 
SpiaRegs.SPIRXBUF = SpiaRegs.SPIRXBUF; 
DELAY_US(60);                                                   //60us Delay,    function run in RAM ( I have checked the time using oscilloscope)
SpiaRegs.SPITXBUF = 0x0000;
while (SpiaRegs.SPISTS.bit.INT_FLAG != 1) { } 
SpiaRegs.SPIRXBUF = SpiaRegs.SPIRXBUF; 
DELAY_US(60);
SpiaRegs.SPITXBUF = 0x0000;
while (SpiaRegs.SPISTS.bit.INT_FLAG != 1) { } 
SampleRate = SpiaRegs.SPIRXBUF;
DELAY_US(60);

  • Yongtao,



    Using a 10MHz master clock, t6 should only be 5us and 10us should be reasonable.

    Can you post the oscilloscope shot for /CS, SCLK, DIN, and DOUT for this transaction? I'd like to see the error and see if there are any other timing errors in the waveforms. See if you can get the entire transaction. Break it up into several scope shots if necessary.

    Incidentally, I wrote this last month and it might help in the debug:

    e2e.ti.com/.../help-i-can-t-talk-to-my-data-converter-what-s-wrong

    Regardless, post the scope photos and we'll see if there are any problems.


    Joseph Wu