Skip to content
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

I2S / SPI Multiplexing #395

Open
ostenning opened this issue Oct 9, 2022 · 2 comments
Open

I2S / SPI Multiplexing #395

ostenning opened this issue Oct 9, 2022 · 2 comments

Comments

@ostenning
Copy link
Contributor

ostenning commented Oct 9, 2022

Hello, I'm wondering if its possible to run I2S over SPI?

For example, I have the SPI2 peripheral with pins PA9 for SCK and PC1 for MOSI. Within the Cube HAL I know its possible to run the SPI peripheral as if it were I2S, which would simplify circular DMA implementations and enable fixed sampling rates.

Is this currently possible? If not, would it be hard to implement? Any guidance is appreciated.

Thanks

@ostenning ostenning changed the title SPI over I2S I2S over SPI Oct 12, 2022
@ostenning ostenning changed the title I2S over SPI I2S / SPI Multiplexing Oct 12, 2022
@maxekman
Copy link

I would also be interested to know about this. As I understand it the I2S peripherals available in the SPIs are separate from the I2S functionality from the SAI peripheral (which can also do more advanced formats). It would be really useful to use the simpler SPI based I2S when not in need of the extended SAI functionality.

@liarokapisv
Copy link

This is definitely possible, the SPI peripheral has a dedicated I2S configuration register that takes over the peripheral. It does not seem to be currently supported by the crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants