Audio library with CS4272

AdamB

New member
Hi,

I'm working on a project using the CS4272 with the Teensy 4, with the codec being the master.

Currently I have the codec wired up to the teensy 4 and with the default setup it will pass audio, but it's very aliased.

I used the sine output object to just push a sine wave onto the output and record that into my PC to inspect it - you can see the sine wave there partially, but it's full of distortions and discontinuities. So, my first though is that there's something going bad in the I2S comms to the chip.

Should the CS4272 control object and I2S slave in/out objects work out of the box? And if so, what's the correct data format I should have the codec setup to - it defaults to 24bit audio but from a quick scan of the I2S code it looks like the i2s slave output expects 16bit data. However configuring the codec to 16bit mode results in no audio transfer.

Thanks!
 
Solved; just needed to change the CS4272 control object to select I2S format. Like so:

1702308194966.png
 
The ADC format is also not correct. See here for fixing the register values. Even if the codec works with 24 bits, the 8 LSB will just be truncated be the Audio Library.
 
Back
Top