PaulStoffregen
Well-known member
I got TDM output working! Here's a first commit.
https://github.com/PaulStoffregen/Audio/commit/1c9a3030223068c6dd8bfba44d6879dbbd918555
It implements 16 outputs, each 16 bits. For use with CS42448, the even numbered outputs end up as the 16 most significant bits and the odd outputs end up as the 16 least significant bits for each of its 8 channels.
Theoretically, we could have 16 separate outputs, if some combination of chips in TDM most each listed to the right 16 of the 256 bit output frame.
Here's a scope screenshot of the TDM waveforms:
In this test, I had the same signal (from the Guitar synth example) connected to outputs 2 and 6.
https://github.com/PaulStoffregen/Audio/commit/1c9a3030223068c6dd8bfba44d6879dbbd918555
It implements 16 outputs, each 16 bits. For use with CS42448, the even numbered outputs end up as the 16 most significant bits and the odd outputs end up as the 16 least significant bits for each of its 8 channels.
Theoretically, we could have 16 separate outputs, if some combination of chips in TDM most each listed to the right 16 of the 256 bit output frame.
Here's a scope screenshot of the TDM waveforms:
In this test, I had the same signal (from the Guitar synth example) connected to outputs 2 and 6.