• 0
Wayne Chen

Analog Discovery I2S Analyzer Trouble Shooting

Question

Hi Sirs,

Good Day! I am a new user of Analog Discovery 2. I hit a roadblock when learning the process to acquire I2S with the following steps. 

1. Sent 0dBFS, 1kHz sinewave with 48kHz sample rate, 24bit, 64*fs (3.072MHz BCLK) from Audio Precision APX500 to Analog Discovery 2.

     Capture.thumb.JPG.956e5bfef37bab0e7bc766ae8ca5d79c.JPG
 

2. Programmed AD2's DIOs to correspond I2S format. However, the reconstructed signals were discontinuous and distorted.  

      Capture7.thumb.JPG.5f8dd429b5666fd73c9b05a7c1cf71fc.JPG

    Capture5.thumb.JPG.b301f4a1c33046b65983ffc16022d890.JPG

    Capture9.thumb.JPG.0032acf3736654e7aa2546e1622f08f1.JPG

     
3. According to the recorded stream, the sample rate of LRCK looked unstable. It was not helpful by increasing sample rate from 10MHz to 20MHz. 

    Capture20.thumb.JPG.100dc45933499090e57f7100b0370445.JPG

    Capture27.thumb.JPG.05294c76026ad51d557f83978e4f1ee2.JPG

    Capture26.thumb.JPG.76826c19d64b7d21bf6525a614174700.JPG

Would you please provide tips to acquire I2S data stream properly and advise the maximum I2S speed does AD2 support? I assumed that the AD2 can reconstruct 1kHz sine waves.
Was it a hardware limitation or my software configuration problem? Please do not hesitate to inform me if there is any missing or mistake.

Thank you and Best regards,

Wayne Chen
06/04/2020  

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hi @Wayne Chen

In order to capture the highest frequency signal you need at least double of capture sample rate.
If your bit clock is 3.072MHz (32bit word * 2 * 48kHz) you will need at least 6.25MHz sample rate.

At such high continuous signal rate the AD2 can only be used in Repeated mode.
The Record mode needs to stream data over USB and it can do at most at 1-2MHz continuous signal rate.
For burst signals (UART,SPI...) the data compression helps to be able to record at higher rates, but not in case of continuous I2S stream.

In device manager you can select the 4th device configuration to have more device buffer for Logic Analyzer.

image.png.dcd6b629d937ebf7b0ae525c1a64f3a2.png

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Hello Attila,

Thank you for supporting. I can get better waveforms with the 4th configuration:

    CaptureX.JPG.8ccf4c7eff57532ca12e6b89a986e477.JPG

However, I saw a GUI problem with reconstructed wave forms which needs a workaround:

I specified data format of "Decimal" to Channel Left and "Signed" to Channel Right.
Data format of "Signed" is important for us to reconstruct I2S signals, however, we cannot see valid wave forms as the pictures below: 

    CaptureC.thumb.JPG.917e3448db752ae2c64186884939bb1f.JPG

CaptureZ.thumb.JPG.ed611c56069bffaee06c8c1b913f1f59.JPG
    CaptureB.thumb.JPG.07952c427b0dac80f937b67b448c2b21.JPG
 
The GUI plots redundant tri-angles on non-used slots which makes the wave forms hard to read.The GUI should keeps reconstructed signal flat in those non-used slots.  
 
    CaptureK.thumb.JPG.d7f264107b3a2bc0bce4456ac3e99454.JPG 

    CaptureY.thumb.JPG.9a90aaf34b2a58de1522dbe6e238c570.JPG  

If you have any comment, please do not hesitate to inform me.

Thank you and Best regards,

Wayne Chen
06/05/2020

CaptureF.JPG

Edited by Wayne Chen

Share this post


Link to post
Share on other sites
  • 0

Hi @Wayne Chen

Probably the data format is the commonly used Two's complement signed. The simple Signed format refers to MSB sign | value.
Could you attach or send to me a workspace with captured data?

The latest beta version fixes the zigzag in analog curve for signed formats:
https://forum.digilentinc.com/topic/8908-waveforms-beta-download/

 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Hello Attila,

Thank you for your advise. I saw zigzag problem with 2's complement signed as well. Test result of beta version 3.13.18 will follow.

My test was done by WaveForms Ver 3.12.2
1698153921_ScreenShot2020-06-05at10_20_17PM.thumb.jpg.2eb5fda8ba4d9b4a7ea9c4b08fa62924.jpg

Attached files are my work space and acquisition stream of 1kHz, 0dBFS sine wave. Left = Decimal format, Right = 2's complement format

Thank you and Best regards,

Wayne Chen
06/05/2020

 

I2S Acquisition Project.dwf3logic.zip I2S_Test_Acquisition.dwf3logicacq.zip

Edited by Wayne Chen

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now