You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developing an I2S project on a Pi Pico that requires MCLK at 256Fs, I discovered that the sysclk neds to be set at a different value than that recommended in Arduino Pico for Fs = 44.1kHz.
When I had sysclk set at the recommended value there were regular gaps in the 44.1kHz waveforms.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Developing an I2S project on a Pi Pico that requires MCLK at 256Fs, I discovered that the sysclk neds to be set at a different value than that recommended in Arduino Pico for Fs = 44.1kHz.
When I had sysclk set at the recommended value there were regular gaps in the 44.1kHz waveforms.
Values that work for me are:
They are set using the standard ArduinoPico way using the following code, at the beginning of setup( ):
set_sys_clock_khz(DESIRED_SYSCLK, false);While the revised 44.1kHz sysclk produces a continuous signal, it does raise Fs to 44.2kHz
I will continue to seek a better compromise and will report better sysclk frequencies here.
I hope this is helpful to others in the same situation.
Beta Was this translation helpful? Give feedback.
All reactions