Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

General • Re: High speed ADC interfacing

$
0
0
I don't know how to do it but here is similar comment
https://github.com/steve-m/hsdaoh-rp235 ... l_adc.c#L6
That's talking about overclocking the internal ADC, while we were talking about generating a clock for an external ADC, so the considerations are somewhat different.

I also think that the comment you have linked to is not quite right - although the comment says that they are using the USB PLL for the (internal) ADC, actually that's the default and if you look at what their code does it is switching the ADC away from the USB clock and onto the main system (CPU/PIO) clock in order to overclock it!

Code:

/* switch ADC clock source to sys_clk */hw_write_masked(&clocks_hw->clk[clk_adc].ctrl,CLOCKS_CLK_ADC_CTRL_AUXSRC_VALUE_CLKSRC_PLL_SYS << CLOCKS_CLK_ADC_CTRL_AUXSRC_LSB,CLOCKS_CLK_ADC_CTRL_AUXSRC_BITS);

Statistics: Posted by arg001 — Sat Nov 30, 2024 2:29 pm



Viewing all articles
Browse latest Browse all 4151

Trending Articles