Hi,
I am writing a set of codes that output I2S audio to Pico-Audio module (PCM5101A), now sound is output, but some glitches.
I think pulse width at each I2C pins should be adjust as the recommendation below:
"The most important thing to note about the I2S protocol is that it takes the second clock after the change of the sampling pulse as the first bit of data, and the first clock after the change of the following sampling pulse as the last bit of data.
LRCK: Audio data word clock input, when it is low level for the left channel data acquisition when it is a high level for the right channel data acquisition.
BCK: Audio data word clock input, when it produces a rising edge jump to collect data, the frequency must be 32 or 48 or 64 times the frequency of LRCK.
DATA: Audio data input, note that the data is signed data, data transmission can choose 16-bit, 24-bit, 32-bit data, high in the front, low in the back." (quote from the https://www.waveshare.com/wiki/Pico-Audio)
How can I adjust pulse width with Raspberry Pi Pico C SDK?
I am writing a set of codes that output I2S audio to Pico-Audio module (PCM5101A), now sound is output, but some glitches.
I think pulse width at each I2C pins should be adjust as the recommendation below:
"The most important thing to note about the I2S protocol is that it takes the second clock after the change of the sampling pulse as the first bit of data, and the first clock after the change of the following sampling pulse as the last bit of data.
LRCK: Audio data word clock input, when it is low level for the left channel data acquisition when it is a high level for the right channel data acquisition.
BCK: Audio data word clock input, when it produces a rising edge jump to collect data, the frequency must be 32 or 48 or 64 times the frequency of LRCK.
DATA: Audio data input, note that the data is signed data, data transmission can choose 16-bit, 24-bit, 32-bit data, high in the front, low in the back." (quote from the https://www.waveshare.com/wiki/Pico-Audio)
How can I adjust pulse width with Raspberry Pi Pico C SDK?
Statistics: Posted by yuuki — Mon Dec 30, 2024 10:41 am — Replies 4 — Views 67