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.

AFE5801: SPI configuration sequence

Part Number: AFE5801

Hello, I'm using AFE5801 to capture 8 channels data and I configure the AFE5801 as follwing sequence:

1: 0x000001 (reset)

2: 0x026000 (test pattern, custom reg.)

3: 0x034000 (16 bits output)

4: 0x053fc0 (test pattern output, 0xff00)

5: 0x070400 (low noise mode)

6: 0x000004 (switch to VGA registers)

7: 0x990008 (close the TGA engine and set FINE_GAIN = 0dB)

8: 0x9a0005 (set COARSE_GAIN = 0dB)

After I configure in this sequence, I can get right test pattern output 0xff00 in FPGA. Then I CHANGE the register 2 to 0x020000 to No pattern, and then I configure the AFE5801 as the same sequence above, but the output of AFE5801 I got in FPGA are not like noise. The digital data in 8 channels have 3 different type, one swing at -250, one swing at 10, and another one swing from -255 to 0. I think i should get noise swing near 0, and every channel are the same type. 

So I wonder if I have problem in SPI configuration sequence ? Or can you give me an example of configuration? I want to use ADC without VGA, and each channel output in 16 bits mode.

Thank you.

Best Wishes.

  • Hi user5010185,
    How are you?
    Thank you for using AFE5801 device.
    I will look into your question and will reply to you very soon.

    Thank you
    and best regards,
    Chen
  • Hi user5010185,
    How are you?
    Could you please try the following sequence?
    0x00 0x0001
    0x03 0x4000
    0x04 0x0008
    0x02 0xE000 (Ramp Test)
    0x02 0x0000 (None Test)
    ---------------------
    if you cannot see the noise floor:
    Please try:
    0x00 0x0001
    0x03 0x4000
    0x04 0x0018
    0x02 0xE000 (Ramp Test)
    0x02 0x0000 (None Test)
    if this one works for you, then please let us know.

    Thank you!

    Best regards,
    Chen
  • Hello Chen! Thanks for your reply!

    I have tried the configuration you provided, but I still can not see the noise and the signal I capture in FPGA still like before. I don’t know how to upload picture to show you the signals, so that you can help me with the problem.

    Why do you firstly configure the ramp test and then close the test?

    Furthermore, I want to ask you that if i don want to use VGA, I don’t need to configure the TGC registers?

    Thank you!

    Best Regards!

  • I use PC to upload some pictures and hope will help you analyse the problem :)

    My configuration,test pattern, ff00:

    My configuration, normal mode, digital signal:

    My configuration, normal mode, analog signal:

    Your first configuration:

    And the second configuration you provided is switch to MSB, and the signal is the same, so I don't show the pic.

    Thank you!

    Best Regards!

  • Hi user5010185,
    How are you?
    Since you already said the test pattern is working right for you,
    then please verify the following with the different four settings
    (these are for testing only, they are not related to each other
    so please set these registers only, please don't include other register settings):
    Thank you!
    (Please don't include other register settings)
    1) please try #1:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0008
    ============

    2) please try #2:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0008
    ============

    3) please try #3:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0008
    ============

    4) please try #4:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0008
    ============

    After each try, please observe your output plots.
    Then please let me know which try is working normally for all the channels on your plots.

    Thank you and best regards,
    Chen
  • Hi,

    sorry for typo as above:
    Please use the followings as below:
    (Please don't include other register settings)
    1) please try #1:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0008
    ============

    2) please try #2:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0018
    ============

    3) please try #3:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0010
    ============

    4) please try #4:
    0x00 0x0001
    0x03 0x4000
    0x02 0x0000
    0x04 0x0000
    ============

    Thank you again!