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 Support #64

Open
ane opened this issue May 20, 2019 · 10 comments
Open

I2S Support #64

ane opened this issue May 20, 2019 · 10 comments
Labels
enhancement New feature or request

Comments

@ane
Copy link

ane commented May 20, 2019

ATSAMD21/51 both support I2S. Is there a plan to add this to the HAL?

edit: should this issue be named "Implement I2S abstraction"?

Unless I'm mistaken, there is no standard embedded-hal trait for I2S just yet.

@sajattack
Copy link
Member

Yeah, there's a lot of peripherals we don't support yet. Even basic stuff like ADCs and DACs, which should probably take priority over I2S. PRs are always welcome, It won't be on the top of my todo list for quite some time.

@ane
Copy link
Author

ane commented May 21, 2019

I figured as much. I have a MEMS I2S microphone breakout board and a bunch of ATSAMD boards from Adafruit lying around so I'll see if I can write something like this for the STM32F429. I also have an analog mic as well so maybe I'll take a look at ADC as well.

@sajattack
Copy link
Member

sajattack commented May 21, 2019

I've worked on ADC here #56

@ane
Copy link
Author

ane commented May 21, 2019

Cool! Are you making good progress with it?

I guess I'll see what I can come up with regarding I2S.

@sajattack
Copy link
Member

sajattack commented May 21, 2019

It's done for SAMD51, not started for SAMD21, I've been working on other things lately.

@sajattack sajattack added the enhancement New feature or request label Aug 14, 2020
@ianrrees
Copy link
Contributor

I've started on the I2S peripheral - the project that prompted the work is for TDM, but the differences from I2S (and maybe PDM) look fairly minor. https://github.com/ianrrees/samd-i2s

@ianrrees
Copy link
Contributor

I've moved the I2S work to a branch in my fork here, and have ordered an I2S DAC board and a couple PDM mics to make up a couple examples with.

@backtail
Copy link

backtail commented Jul 8, 2023

Hi, I would be highly interested in I²S support for the ATSAMD51J. If there is any interest in contributing to the HAL instead of me writing a custom solution for my custom problem, I would gladly help and take a look at @ianrrees code.

@ianrrees
Copy link
Contributor

ianrrees commented Jul 9, 2023

I'm happy to answer any questions, though my memory is a bit fuzzy and the project that prompted me to work on this seems perpetually stuck in the near future at work...

@backtail
Copy link

Thank you very much for your help!
There is a PCB with an ATMSAMD51J20 and an off-the-shelf codec as my next project in the making (for work). Once hardware development is finished and the PCB is on my desk, I'll let you know!

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

No branches or pull requests

4 participants