Post Go back to editing

No meaningful data being read from the ADC register output of the CN0540 using a Teensy 4.1

I am using a Teensy with a default clock of 600MHz and am able to read and write to the registers of the AD7768 successfully. I am also able to read data from the ADC registers. However the readings are just noise. I have attached the probe output when reading data from the ADC output. The signals probed in order from top to bottom are Chip Select/Enable, Clock, MOSI, MISO, DRDY and SYNC_IN. I have scoured AD7768 discussion boards and similar issues with random data being read have been reported; but no solutions provided other than potential grounding problems. I did try working on grounding; but that didn't help.

FYI: When I use the DE-10 to stream data instead of the Teensy, I am getting meaningful data under the same conditions and default filter/register settings.

Parents
  • FormerMember
    0 FormerMember

Hi Girija,

Can you send a picture of your setup when you are using the Teensy?  What are you measuring?  What software are you using when you are probing?  Or are you bit banging with the Teensy trying to setup the registers directly with that?  And if so, what is your order of operations for those commands? 

Looking at your data collection each ADC register read appears to be coming back as 8-bits.  So this being a 24-bit converter requires 3 sequential reads to obtain the complete ADC reading.  If you look at 3 readings in a row you see 0x FE-31-48, 0xFE-31-79, 0xFE-31-1D, 0xFE-31-53  so there is a repeating pattern and the data doesn't appear to be complete noise (the last 8 LSB's are bouncing around a little which could be cause of what you are measuring 0x48-0x1D)

What I would do is come that data with the data from the DE10-Nano and IIO-Oscilloscope and see if things are more closely matched.

Hope this helps solve some things, if not let me know and we can dig in more.

Cheers,

Brandon

Reply
  • FormerMember
    0 FormerMember

Hi Girija,

Can you send a picture of your setup when you are using the Teensy?  What are you measuring?  What software are you using when you are probing?  Or are you bit banging with the Teensy trying to setup the registers directly with that?  And if so, what is your order of operations for those commands? 

Looking at your data collection each ADC register read appears to be coming back as 8-bits.  So this being a 24-bit converter requires 3 sequential reads to obtain the complete ADC reading.  If you look at 3 readings in a row you see 0x FE-31-48, 0xFE-31-79, 0xFE-31-1D, 0xFE-31-53  so there is a repeating pattern and the data doesn't appear to be complete noise (the last 8 LSB's are bouncing around a little which could be cause of what you are measuring 0x48-0x1D)

What I would do is come that data with the data from the DE10-Nano and IIO-Oscilloscope and see if things are more closely matched.

Hope this helps solve some things, if not let me know and we can dig in more.

Cheers,

Brandon

Children