PaulStoffregen / Audio

Teensy Audio Library
http://www.pjrc.com/teensy/td_libs_Audio.html
1.08k stars 401 forks source link

Pdm teensy4 - add support for T4 / IMXRT1062 to PDM input #387

Closed MarkTillotson closed 3 years ago

MarkTillotson commented 3 years ago

Needed the relevant setup (similar to input_i2s other than 32 bit word size, and no MCLK/LRCLK pins) to allow this to function on the T4

PaulStoffregen commented 3 years ago

Agreed, it needs to be 2 different classes to work with the model the design tool uses.

I can merge this now and it'll get changed later. Or if you want to do it now, just let me know and I'll wait until you say it's ready to merge.

MarkTillotson commented 3 years ago

OK I'll think about using a separate class. I've figured out how to have the T4 version not clash with I2S output BTW

MarkTillotson commented 3 years ago

Ah, see you've merged this - I think its in good shape but haven't been able to test on anything but T4.0 and T3.2 All 6 combinations I've tested: T3.2 pdm with and without I2S0 output T4.0 pdm with and without I2S1 output, pdm2 with and without I2S1 output