CS42448 with Teensy 4.0 vs Teensy 3.2 Pin Compatibility

Status
Not open for further replies.

grinch

Well-known member
Hi, I am working on an audio project using teensy that needs several channels of high fidelity i/o. In the past I've used the Teensy 3.2/3.6 with the CS42448 codec, having reverse engineered the following example board to include the relevant sections on my own PCBs: https://oshpark.com/shared_projects/2Yj6rFaW

For this project I'd like to use the 4.0 because of its increased processing power. When looking up whether the 4.0 is compatible with the CS42448 codec, I saw that there is a new example board for the 4.0 series: https://hackaday.io/project/2984-teensy-audio-library/log/187557-updated-cs42448-pcb-for-teensy-4x.

Unfortunately these pages don't appear to include schematic information, so at first glance its hard to tell whether anything meaningful has changed for my application. I wanted to ask whether the pinout of codec connections has changed, or whether the 4.0 is pin for pin compatible with the older codec board. Figured it would be more expedient to ask those that had designed the board than to rehash the process of reverse engineering, only to find they were exactly the same.
 
Also, there is no need for reverse engineering, the printed cards, the teensy schematic, and the audio shield schematic on the website show the I2S pins.. not sure what you're doing... :)
 
Also, there is no need for reverse engineering, the printed cards, the teensy schematic, and the audio shield schematic on the website show the I2S pins.. not sure what you're doing... :)

This codec uses TDM, not I2S. Not as well documented.
 
The I2S pins in Teensy 4.x completely changed compared to the Teensy 3.2.

In addition on the Teensy 3.2 two of the SPI pins needed to be relocated. On the Teensy 4.x, you use the standard SPI pins.

I posted this reply about pin differences comparing the Teensy 3.x to Teensy 4.x in terms of the audio shield:

This post is not about the audio shield. It is about a specific TDM based codec board. Please see the links I included.
 
From the Audio GUI help (another source..)
TDM:
Hardware

TDM has been tested with this CS42448 Board for Teensy 3.x and this CS42448 Board for Teensy 4.x and this ADAU1966A Board for Teensy 4.x.

T3.x
Pin
T4.x
Pin
SignalDirection
921BCLKOutput, 11.3 MHz
1123MCLKOutput, 22.6 MHz
227TXOutput, 11.3 Mbit/sec
2320WSOutput
Audio from master mode TDM may be used in the same project as ADC, DAC and PWM signals, because all remain in sync to Teensy's timing

Examples

I2S:

The I2S signals are used in "master" mode, where Teensy creates all 3 clock signals and controls all data timing.
T3.x
Pin
T4.x
Pin
SignalDirection
921BCLKOutput
1123MCLKOutput
227TXOutput
2320LRCLKOutput

The differences must be pretty well hidden :)

Edit: The difference is in the timing and number of bits. They both use the inbuilt I2S hardware. So, the pins are identical (as shown above). The main difference is just software.
Edit: You can take a look at the sourcecode, too (again easier than reverse engeneering boards) - its inside the audo library folder.
 
Last edited:
@grinch - there is also a schematic of the Teensy 4 board here put there by another user along with kicad files, it may be useful.
cheers, Paul
 
Status
Not open for further replies.
Back
Top