TDM and TDM2

boxxofrobots

Well-known member
The audio design tool says "only one tdm device may be used" but there are two objects. Does this mean I can only use one or the other, or can I use two cs42448s?
 
You can use TDM and TDM2 at the same time; the former uses the I²S pins, and the latter the I²S2 pins. As you can see here, the Design Tool is not showing a warning triangle on any of the objects:
2023-07-21 18_15_53-Audio System Design Tool for Teensy Audio Library.png
If you then add, for example, an I2S2 input object, the clash shows up:
2023-07-21 18_20_04-Audio System Design Tool for Teensy Audio Library.png
Note you will have to change the I²C control address for one of your CS42448 devices, and use the (undocumented) setAddress() function to allow you to control the two chips independently. For the above example, you might pull up the AD0 pin and use cs42448_2.setAddress(0x49); to control the CS42448 connected to I²S2.
 
Back
Top