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

new method enableMasterClock(fsMultiplier) #641

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KillzoneKid
Copy link

@KillzoneKid KillzoneKid commented Jul 28, 2021

Outputs MCK on I2S_MCK[0] pin to drive slave peripherals such as PCM1808 ADC for example. Default fs multiplier is 256 which produces 12MHz clock with 48KHz sampling rate, and divides clocks for other channels acordingly. There is also optional fs multiplier argument. The method should be called before 'begin', for example

I2S.enableMasterClock(); if (!AudioInI2S.begin(48000, 32)) { ...

Simplified MCK out with optional MCK frequency param, default 256fs
@CLAassistant
Copy link

CLAassistant commented Jul 28, 2021

CLA assistant check
All committers have signed the CLA.

@KillzoneKid
Copy link
Author

Seems like AceTime didnt compile,, which is not related to changes in any way. Found this post too https://www.gitmemory.com/issue/arduino/ArduinoCore-samd/606/808888337 seems like it doesnt work well for samd core.

Unintentional change of comment, fixed
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

Successfully merging this pull request may close these issues.

2 participants