Skip to content

Can I2S be used so the RP2040 is slave? #1897

Answered by earlephilhower
frohro asked this question in Q&A
Discussion options

You must be logged in to vote

Nope, no slave support. There is, sadly, no HW support for clocking the PIOs directly from external pins. You could theoretically rewrite the I2S.pio code to do so by polling and looping on the clock pin for every bit in or out, but you would need to be very careful about setup and hold timing (and making sure it still fits in the PIO memory, of course!) vs. the internal PIO clock frequency.

You might be able to clock the whole Pico off of your 12.88MHz source, though, (through its pll), and making sure you have integer dividers to keep things nice and neat. That's a HW mod and not something I could really be of much help with.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frohro
Comment options

Answer selected by frohro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants