Sampling at a fixed 75MHz?

Just about everything about Red Pitaya
Post Reply
ph2thet
Posts: 13
Joined: Wed Apr 06, 2022 12:53 am

Sampling at a fixed 75MHz?

Post by ph2thet » Tue Jun 14, 2022 1:17 pm

Is it possible to sample at 75MHz? Do the ADC and FPGA have to run at the same clock? I have a very good 25, 37.5 or 50MHz clock source. Can the FPGA do the doubling for the ADC?

User avatar
redpitaya
Site Admin
Posts: 883
Joined: Wed Mar 26, 2014 7:04 pm

Re: Sampling at a fixed 75MHz?

Post by redpitaya » Wed Jun 15, 2022 5:59 pm

You can use an external clock with 75 MHz if you have one.

ADC and DAC run on the same clock.

jbracegirdle
Posts: 3
Joined: Tue Oct 25, 2016 4:56 pm
Location: Cumbria, UK

Re: Sampling at a fixed 75MHz?

Post by jbracegirdle » Wed Jun 15, 2022 7:44 pm

The Red Pitaya Docs have details about how to modify a Red Pitaya STEMlab 125-14 to use an external ADC clock. If you're looking to buy a new Red Pitaya there is a version with the external ADC clock modifications already done to it.

I've not tried an external or FPGA based ADC & DAC clock. I've just stayed with the on board one for now, but it's interesting looking at the docs to think of future project ideas.

The Frequency Counter FPGA lessons 5 originally by Anton Potočnik shows a good basic example of using the ADC and DAC and communication to the Linux CPU of of the board. It shows different clocks for the ADC and FPGA, so you could run the ADC at 75MHz and the FPGA fabric at 150MHZ.

You can even change the FPGA fabric clock while the board is booted using the following Linux terminal commands. The commands need root access. The clock frequency can be set from 100000 to 250000000. 150MHz is used in the example below:

Code: Select all

devcfg=/sys/devices/soc0/amba/f8007000.devcfg
test -d $devcfg/fclk/fclk0 || echo fclk0 > $devcfg/fclk_export
echo 0 > $devcfg/fclk/fclk0/enable
echo 150000000 > $devcfg/fclk/fclk0/set_rate
echo 1 > $devcfg/fclk/fclk0/enable
Last edited by jbracegirdle on Wed Jun 22, 2022 4:59 pm, edited 1 time in total.

ph2thet
Posts: 13
Joined: Wed Apr 06, 2022 12:53 am

Re: Sampling at a fixed 75MHz?

Post by ph2thet » Wed Jun 22, 2022 2:56 pm

This is great news! The fact that the FPGA clock can go up compared to an external clock. Love that.

Great example!! Thanks

ph2thet
Posts: 13
Joined: Wed Apr 06, 2022 12:53 am

Re: Sampling at a fixed 75MHz?

Post by ph2thet » Fri Jun 16, 2023 10:52 am

Revisiting this subject again, with somewhat more knowledge on ADC’s and clocks.

I now know I need a low jitter clock more than an accurate clock. Random jitter introduces random noise. Apparent at 125MSPS.

Did anybody measure jitter on the internal clock going through PLL and or FPGA?

I guess the external clock options for low noise 125-14 and 122-16 are feeding the ADC/DAC directly with some analog filtering. Is that correct? Do we have a schematic?

I also guess there is a clock out of the ADC and DAC going to the flag the FPGA data is ready/required. But new to this territory.

User avatar
redpitaya
Site Admin
Posts: 883
Joined: Wed Mar 26, 2014 7:04 pm

Re: Sampling at a fixed 75MHz?

Post by redpitaya » Fri Jun 16, 2023 11:15 am

Hello ph2thet,

Here is a link to the schematics and the relevant documentation:
https://redpitaya.com/rtd-iframe/?ifram ... dware.html

You can find the schematics on a link under the board specifications.

There you can also find the oscillator datasheet for the boards.

ph2thet
Posts: 13
Joined: Wed Apr 06, 2022 12:53 am

Re: Sampling at a fixed 75MHz?

Post by ph2thet » Wed Jun 21, 2023 2:12 pm

Thank you! Found it.

I am focusing on the 125-14LN. Confused by the three clock sources internal/external/FPGA all tied together. How do you switch between them? You cannot switch the 125MHz off, can you? Also: the FPGA clock output is LVDS. The ADC expects a higher amplitude, right? I am afraid the FPGA clock timing itself can be jittery. Noise by clock jitter can easily at 125MSPS can easily surpass quantization noise hence I just want to be careful here.

Can you explain? Happy to do experiments by the way.

User avatar
redpitaya
Site Admin
Posts: 883
Joined: Wed Mar 26, 2014 7:04 pm

Re: Sampling at a fixed 75MHz?

Post by redpitaya » Thu Jun 22, 2023 9:46 am

Hello ph2thet,

The clock sources are not tied together. Only two 0R0 are populated depending on the clock source used, as explained here:
https://redpitaya.readthedocs.io/en/lat ... -adc-clock

The external clock needs to be LVDS (same for the SDRlab 122-16 external clock version), as explained here:
https://redpitaya.readthedocs.io/en/lat ... rnal-clock

Please note, we do not advise altering the board because users have reported problems after doing so. Every board made has undergone rigorous testing, which cannot be claimed for modified boards. Any non-Red Pitaya hardware modification will void the warranty, and we cannot guarantee support for modified boards.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 30 guests