View Full Version : I2S convert from 16-bit to 24-bit, with different sample rates

04-05-2016, 09:04 PM
I have two I2S devices that need to communicate.

Device 1 I2S Output: BCLK=512kHz, 16-bit data, 2 channels, 16kHz sample rate, 32-bit frame (2x16-bit)
---- (microcontroller in between trying to convert) ----
Device 2 I2S Input (speaker): BCLK=2.048MHz, 24-bit data, 2 channels, 32kHz sample rate, 64-bit frame (2x32-bit)

The microcontroller is receiving the data from device 1 and bit shifting left by 8 (<< 8) and sending the modified data to Device 2 (twice to account for slow Device 1 settings).
I can faintly here my voice on the speaker but it has a high level of 'noisy' static sound coming from it.

I've been hitting this one for a few weeks trying to tweak settings and measuring waveforms on the scope, but no success.
Any suggestions will be appreciated.

04-05-2016, 09:14 PM
This might not be best forum for PIC-based advice....

04-05-2016, 09:38 PM
Its more of a question concerning conversion of I2S communications. Not specific to PIC.