Post Go back to editing

Weird data on MISO line, after reading out all 8 channels of the on ad7771 ADC

Category: Hardware
Product Number: AD7771

Hello everyone, i'm currently working with the ad777x-FMCZ devkit, and reading out the channels works fine.
what i'm having trouble with is noticing some weird behaviour on the MISO line, after finishing readiout out all 8 channels.

this is with reading the channels only through SPI. happens when i read the channels in 8 byte frames, or when i try to read all 32 bytes at once. 

I might be doing something wrong because for the life of me I cannot understand what is meant in this section of the data sheet.

tbh i think it's quite weirdly written

but in any case, here's what happens on the signal analyzer, first in 8 byte chunk readout.

lines are top to bottom: clock, mosi, miso, /cs,drdy,alert

  

as you can see, after the last 8 byte chunk is read out, after a while, and after the chip select line is pulled high, we have some weird bit of noise on the line

here is the same thing happening when i try to read out all 32 bytes at once.

i'm sending 0x80 command every 4 bytes, so looks like 0x80, 0x00, 0x00, 0x00, 0x80..... so as to not trigger a reset.

any idea why this might be happening?, the data that i'm getting seems to be good otherwise.

Parents
  • Reading out one more byte immediatly after finishing seems to fix the issue, but i'm not sure why, since i'm readying out 32 bytes.

  • Hi  ,

    To clarify the datasheet section below, 64 is chosen to cite examples that reading the data must be in multiples of 8 bits. Please refer to the snapshot below.

    I might be doing something wrong because for the life of me I cannot understand what is meant in this section of the data sheet.

    tbh i think it's quite weirdly written

    When you mentioned reading out one more byte fixed the issue, is there any intelligible data found in the last byte or is it random?

    When the CS is pulled up, the SDO pin enters tri-state. What digital controller and software are you using?

     Thanks,
    Janine

  • Ah, alright, so reading out 64 bytes at a time is completely alright. 

    Anyway, i'm using an nrf5340, and the zephyr driver implementation of the SPI.
    The data in the last byte is always the same 


    reading out one byte it's 0xFF, which coincides with the datasheet, that if you read out all 8 channels, the next read then starts from the last channel right, so that looks correct ?

    but anyway, here's the full readout, and you can see that the data line stays low after the second 1 byte readout.
    Side note, after further testing, this seems to just push the issue down the line, and it seems to be happening in low power mode only ?


    here's the readout at 2khz odr, in high resolution mode,  
    while at the same data rate but in low power pode, we have the glitch.

    But in high power mode the alert pin is set....
    reading out the error registers, i get the internal_register_crc error bit set, and that only happens after the power mode.
    but the power mode is set correctly, according to the odr...

Reply
  • Ah, alright, so reading out 64 bytes at a time is completely alright. 

    Anyway, i'm using an nrf5340, and the zephyr driver implementation of the SPI.
    The data in the last byte is always the same 


    reading out one byte it's 0xFF, which coincides with the datasheet, that if you read out all 8 channels, the next read then starts from the last channel right, so that looks correct ?

    but anyway, here's the full readout, and you can see that the data line stays low after the second 1 byte readout.
    Side note, after further testing, this seems to just push the issue down the line, and it seems to be happening in low power mode only ?


    here's the readout at 2khz odr, in high resolution mode,  
    while at the same data rate but in low power pode, we have the glitch.

    But in high power mode the alert pin is set....
    reading out the error registers, i get the internal_register_crc error bit set, and that only happens after the power mode.
    but the power mode is set correctly, according to the odr...

Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.