Post Go back to editing

How to select dac data source by pyadi-iio or iio-oscilloscope

Category: Software
Product Number: ADRV9002
Software Version: 2022_R2

Hi

   I'm using zcu102+adrv9002 with 2022_R2 version. In source code of hdl file axi_adrv9001_tx_channel.v, line 164-176, it shows the dac data source was controlled by dac_data_sel_s, but I can't find the place to control this parameter in pyadi-iio or iio-oscilloscope. The iio-oscilloscope only have choice of one cw tone/two cw tones... and pyadi-iio seems no functions about this. May I know how to set this to use dac data from dac_data_in?

Thanks

Parents
  • Hi,

    That mux has a few abstraction layers over it.
    Not all mux options are not exposed to the user.
    The CW tones = DDS and the DAC buffer out = DMA = dac_data_in.

    Andrei

  • Hi

        According to hdl file axi_adrv9001_tx_channel.v, line 164-176, dac_enable will be high if dac_data_sel_s set to 4'h2(dac_data_in). But actually when set  DAC buffer out at iio-oscilloscope, the dac_enable still keep low.

        So I added more signals to ila further, when set CW tones or disabled, the axi_awaddr and axi_wdata changed according with the hdl code which dac_data_sel_s turned 0(cw tones) and 3(disabled). But when setting to DAC buffer out, the axi_awaddr and axi_wdata have not any change, so I guess the mode of dac buffer out did not work normal.

    when setting to disabled

    when setting to cw tones:

    when setting to dac buffer out:

    Is there any mistake of my operations?And as mentioned earlier,how to set the mode in pyad-iio?

    Thanks

Reply
  • Hi

        According to hdl file axi_adrv9001_tx_channel.v, line 164-176, dac_enable will be high if dac_data_sel_s set to 4'h2(dac_data_in). But actually when set  DAC buffer out at iio-oscilloscope, the dac_enable still keep low.

        So I added more signals to ila further, when set CW tones or disabled, the axi_awaddr and axi_wdata changed according with the hdl code which dac_data_sel_s turned 0(cw tones) and 3(disabled). But when setting to DAC buffer out, the axi_awaddr and axi_wdata have not any change, so I guess the mode of dac buffer out did not work normal.

    when setting to disabled

    when setting to cw tones:

    when setting to dac buffer out:

    Is there any mistake of my operations?And as mentioned earlier,how to set the mode in pyad-iio?

    Thanks

Children