Skip to content

audiobusio.I2S main clock not implemented #9176

Open
@berkut0

Description

@berkut0

Hello everyone.

I'm trying to bring the WM8988 audio codec to life on my own development board.
It's a bit old, but there's still a lot of it around.
My main goal is to get some sound out of it. Now that I've tinkered with the I2C registers, I've got some clicking noises on reboot - I'm definitely on the right track.

But! I noticed that the WM8988 codec should be driven by the main clock, which should be around 12 MHz. Nice, I thought it would be easy to get this, as I saw this clock in the I2S circuitpython driver.

I tried setting the main_clock parameter and got:
NotImplementedError: main_clock

So I have a few questions:

  1. Is there a way to get 12MHz (and above) from the I2S object for the main clock?
  2. Do I understand correctly that this is the clock I'm talking about?
  3. Is there any chance of such an implementation appearing?

bit_clock at 48000 sample rate gives 1.53MHz on the oscilloscope.

I tried to make a PWM signal on an arbitrary pin, but I assume that this can't work because the signal has to be synchronous. Or am I wrong?

I am using an RP2040-Zero board with 9.1 beta circuitpython.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions