Skip to content

Can the phase of the PIO clock of the RP2040 be adjusted? #2428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
a0k1i2n3g opened this issue Apr 17, 2025 · 2 comments
Open

Can the phase of the PIO clock of the RP2040 be adjusted? #2428

a0k1i2n3g opened this issue Apr 17, 2025 · 2 comments
Labels
hardware_pio question Further information is requested

Comments

@a0k1i2n3g
Copy link

Can the PIO of the RP2040 set a fixed additional phase offset for the clock of each state machine? In this way, multiple PIOs can be used to sample the same GPIO to achieve the so - called oversampling. With this, the RP2040 can replace many CPLDs used for sampling, and the data processing is done through C - language programs. Just thinking about it gets me excited!

@peterharperuk
Copy link
Contributor

@Wren6991 might know?

@lurch
Copy link
Contributor

lurch commented Apr 23, 2025

I dunno if what you're asking for is possible, but could you also achieve the same effect by having a different number of NOPs at the start of each pioasm program you load into each PIO state machine? (But I may be misunderstanding your question!)

@lurch lurch added question Further information is requested hardware_pio labels Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware_pio question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants