# RFSoC 4X2 PYNQ board ADC readout

**URL:** <https://discuss.pynq.io/t/rfsoc-4x2-pynq-board-adc-readout/7420>\
**Category:** Support\
**Created:** [August 28, 2024, 7:12am UTC](https://discuss.pynq.io/t/rfsoc-4x2-pynq-board-adc-readout/7420 "2024-08-28T07:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeongGeun](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/jeonggeun/32/6232_2.png) [@JeongGeun](https://discuss.pynq.io/u/JeongGeun)\
**Post date:** [August 28, 2024, 7:12am UTC](https://discuss.pynq.io/t/rfsoc-4x2-pynq-board-adc-readout/7420/1 "2024-08-28T07:12:46Z")

</div>

Hello, I am using the RFSoC 4X2 PYNQ board, and I have connected the DAC to the ADC. I am trying to send a signal at 4430 MHz from the DAC and read it through the ADC to plot the information in frequency-amplitude format. However, for some reason, I am having trouble plotting it correctly. Is there anything that the hardware automatically processes, such as up/down conversion or mixing, when reading the information? What methods should I use to read signals in the high-frequency range?

Thank you for your attention. Have a great day!

* * *

Let me know if you need anything else!

---

<div class="post-metadata">

**Author:** ![matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@matthew](https://discuss.pynq.io/u/matthew)\
**Post date:** [September 2, 2024, 3:12pm UTC](https://discuss.pynq.io/t/rfsoc-4x2-pynq-board-adc-readout/7420/2 "2024-09-02T15:12:47Z")

</div>

Hi,  
How did you send your signal? Did you use a method similar of that notebook?  
([RFSoC-PYNQ/boards/RFSoC4x2/base/notebooks/rfdc/02\_rf\_spectrum\_analysis.ipynb at master · Xilinx/RFSoC-PYNQ · GitHub](https://github.com/Xilinx/RFSoC-PYNQ/blob/master/boards/RFSoC4x2/base/notebooks/rfdc/02_rf_spectrum_analysis.ipynb))

Which plotting error do you have?

---

<div class="post-metadata">

**Author:** ![drewphysics](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@drewphysics](https://discuss.pynq.io/u/drewphysics)\
**Post date:** [September 3, 2024, 5:21pm UTC](https://discuss.pynq.io/t/rfsoc-4x2-pynq-board-adc-readout/7420/3 "2024-09-03T17:21:50Z")

</div>

You might want to take a look at this introduction notebook:

> <https://github.com/Xilinx/RFSoC-PYNQ/blob/master/boards/RFSoC4x2/base/notebooks/rfdc/01_rf_dataconverter_introduction.ipynb>

It has a good writeup on what it seems you want to do. Note however that it uses a 1228.8MHz mixing frequency for the ADC, which might be ok for the 4430MHz tone the DAC is putting out. In that case when you digitize and plot you will see a 4430-1228.8=3201.2MHz signal.

If you want to change the mixing frequency, you can do so by doing something like this, setting ADC\_A to 1000MHz and ADC\_B to 1200MHz as examples.

base.radio.receiver.channel[2].adc\_block.MixerSettings[‘Freq’] = -1000.0  
base.radio.receiver.channel[2].adc\_block.UpdateEvent(1)  
base.radio.receiver.channel[3].adc\_block.MixerSettings[‘Freq’] = -1200.0  
base.radio.receiver.channel[3].adc\_block.UpdateEvent(1)

Drew
