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.

AFE5809: I want to see demodulated data by proper SPI setting

Part Number: AFE5809

I want to obtain a demodulated signal of a continuous wave with a center frequency of 22 MHz. I want to obtain the Doppler frequency component on the baseband side through the LNA -> 3rd LP filter (30 MHz) ->ADC -> Digital Demod process. However, even if it is set as below, the LVDS output does not come out at all except 0.
Please check if there is a block that I forgot to disable to use the sequence like above.



cf) For the current progress, it was confirmed that the RAMP test pattern appeared through the LVDS output through the following setting.
SPI_DIG_EN = 1
1. Normal operation - At 0x00 address, transfer 16 bit data: 0x00 0x00
2. Disable demodulator: At 0x16 address, transfer 16 bit data: 0x00 0x01
3. Ramp signal: At 0x02 address, transfer 16 bit data: 0xE0 0x00

  • Hi Junseong,

    Thanks for reaching out and apologies for delayed response!

    I went over your code and I found that while writing the data to the respective interface, you are not selecting the sub-chip.

    Please refer to Table 2 (register address bit description) and Figure 85 in the datasheet which shows demodulator subchip 0 and subchip 1. It shows that the SPI register address is 8 bits and is made of 2 subchip select bits and 6 register address bits. SPI register data is 16 bits.

    The SCID0_SEL enables configuration of channels 1 through 4. SCID1_SEL enables configuration of channels 5 through 8. When performing demodulator SPI write transactions, these SCID bits can be individually or mutually used with a specific register address.

    Hence, for example, in your code you are writing 0x0041 in register 1F to set the decimation factor to 1, you should change the address to 0xDF (11011111) to select the sub-chips.

    Similarly, 0x0A should be replace with 0xCA and so on.

    Please make the necessary modifications and I hope it should work for you. Let me know if you any further questions.

    Thanks & regards,

    Abhishek

  • Hi Junseong,

    Also, I am assuming while writing the SPI either in the demod or in the ADC/VCA, you are taking care of the DIG_SPI_EN pin. Furthermore, please take care of the EN_DEMOD registor in the VCA (0x16). 

    Before making any changes to the demod registors you should make EN_DEMOD = 0 (taking care of DIG_SPI_EN) since the demodulator registers can be reset when 0x16[0] is set as 0. Thus, it is required to reconfigure the demodulator registers after toggling the 0x16[0] from 1 to 0.

    Regards,
    Abhishek

  • Thanks. I resolve SCID_SEL problem!

  • Great Junseong,

    Good to hear it worked for you. 

    Since your issue is resolved, I am going to close this thread.

    Please reach out if you find further issues. 

    Thanks & regards,

    Abhishek