Post Go back to editing

Interfacing to AD7927

I interfaced a Blackfin to the AD7927, the AD7927 says it is SPI compatible which is good as I only had a SPI port left to use but the timing in the AD7927 datasheet (fig 26 on page 22, it appears to sample DIN and change DOUT on falling edge) appears to be a little off from normal SPI when compared to the SPI timing diagram for the Blackfin (Figs 13-6 and 7 on page 13-13 in the ADSP-BF59X Hardware Reference where MOSI and MISO both sample or change on the same edge). I've got them tied together on my board and have the AD7927 set to sequence all 8 channels and the AD7927 seems to be doing that but the data read by the Blackfin appears inconsistent (have CPOL=1 and CPHA=0 in SPI1 config register). Is there an example of the best settings to use or should I change settings after setting up the AD7927 to better align the DOUT data for the Blackfin?

Parents
  • Hi Prashant,

    To answer your questions:
    1. Blackfin SCLK is 100MHz, CCLK is 400MHz
    2. tQUIET is satisfied, overall sample rate is about 1KHz
    3. Currently reading ADC at 1MHz

    Problem is that the SPI format of the Blackfin is not the same as that for the AD7927, Below are the timing diagrams from both data sheets. On the Blackfin it expects that MOSI and MISO change on the same clock edge and are both sampled on the opposing clock edge. As can bee seen in the below diagram, MOSI and MISO always change together and are sampled together no matter the format.

    The AD7927 however changes DOUT on falling edge and samples DIN also on the falling edge (it basically expects DIN to change on rising edge), this does not match the timing for the Blackfin where it would expect both DIN and DOUT to change on the same edge.Reading the descriptions of timing parameters t4, t9 and t10 for the AD7927 state:

    t4: Data access time after SCLK falling edge
    t9: DIN setup time prior to SCLK falling edge
    t10: DIN hold time after SCLK falling edge

    which tells me that it expects to sample DIN on the falling edge and change DOUT on the same falling edge, no SPI format in the Blackfin meets that timing that I can see.

Reply
  • Hi Prashant,

    To answer your questions:
    1. Blackfin SCLK is 100MHz, CCLK is 400MHz
    2. tQUIET is satisfied, overall sample rate is about 1KHz
    3. Currently reading ADC at 1MHz

    Problem is that the SPI format of the Blackfin is not the same as that for the AD7927, Below are the timing diagrams from both data sheets. On the Blackfin it expects that MOSI and MISO change on the same clock edge and are both sampled on the opposing clock edge. As can bee seen in the below diagram, MOSI and MISO always change together and are sampled together no matter the format.

    The AD7927 however changes DOUT on falling edge and samples DIN also on the falling edge (it basically expects DIN to change on rising edge), this does not match the timing for the Blackfin where it would expect both DIN and DOUT to change on the same edge.Reading the descriptions of timing parameters t4, t9 and t10 for the AD7927 state:

    t4: Data access time after SCLK falling edge
    t9: DIN setup time prior to SCLK falling edge
    t10: DIN hold time after SCLK falling edge

    which tells me that it expects to sample DIN on the falling edge and change DOUT on the same falling edge, no SPI format in the Blackfin meets that timing that I can see.

Children
No Data