-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add I2S mclk support to audiobusio.I2SOut for the Espressif port #8570
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
Comments
Note that for the SGTL5000 the MCLK input has a PLL that allows you to use any convenient clock signal that is 8-27 MHz. So for now maybe you could hook up the MCLK input to a PWM output, assuming it will run that high for Espressif.
|
Great idea! I used a signal generator to give it 12MHz and SGTL5000 "woke up" and started to respond in I2C, but I2S wasn't working. Turning the PLL on and doing lots of configuration is a nice interim solution. |
Looks like PWM will do 12MHz: import pwmio
p = pwmio.PWMOut(board.IO6, duty_cycle=32768, frequency=12000000) |
That's great! If only it was in sync with |
I used the Teensy Audio Adaptor Board with SGTL5000 and it beeps nicely! It even plays MIDI 🎉
|
Adds I2S mclk support to audiobusio.I2SOut for the Espressif port #8570
Consistency improvement on I2S mclk support for Espressif port #8570
CircuitPython version
Code/REPL
Behavior
I'm get
NotImplementedError: main_clock
Description
I attempt to use ESP32-S3 with SGTL5000. I get
NotImplementedError: main_clock
when I try to use theI2SOut
. An implementation similar to mimxrt10xx's must get ported for espressif here and thecommon_hal_audiobusio_i2sout_deinit
function in the same file. The relevant ESP32-S3 library is here.Additional information
No response
The text was updated successfully, but these errors were encountered: