i2s Help

Status
Not open for further replies.

SamMansfield

New member
Hi,

I am having trouble finding any documentation or examples on how to use the i2s functionality of the teensy 3.0. Any examples or redirects would be greatly appreciated.

I am trying to read an i2s interface from an adc, which is converting two analog microphone signals. The adc outputs the digital signals via i2s and we bought the teensy 3.0 because of its i2s advertisement capabilities and also because I have had great success using the teensy 2.0.

Let me know if you would like me to provide datasheets on the products I am using or if I need to be more specific in any way.

Sam
 
I haven't worked on I2S yet, but I certainly will. Here's a recent thread where I answered this question.

http://forum.pjrc.com/threads/104-Teensy3-DAC-Anyone-got-I2C-setup-yet

Yes, on the Kickstarter I did indeed say the chip has I2S and I do plan to support it. I've also said many times the major Arduino functionality and USB types supported by 2.0 come first. There's been a lot of progress, but more remains to be done. I'm certainly going to do USB mouse (actually, did most of it today.... still needs testing), joystick, and midi, and major libraries like Encoder (did the first bit yesterday), OneWire, and several others before diving into audio stuff.
 
This this very old thread, the audio library has been developed and is currently in beta testing. The I2S part works very well, both input and output. Documentation is still somewhat sparse, but improving.

http://www.pjrc.com/teensy/td_libs_Audio.html

However, the optical interface is S/PDIF. There are chips that receive S/PDIF and make it available as I2S, so a board would likely need to be made with such a chip.

At time point, a USB audio interface will probably be added to Teensyduino, with connectivity into the audio library. When this might happen, I can't say.

Anyway, the main point is the audio library now exists. Much has happened since this old conversation in 2012.
 
Oh, very cool. I was hoping there was more to the audio side.

Yeah, it did not sound right that I2S was related to SPDIF. After reading up on I2S it is supposed to be better (separation of clock), and more devices are going to start including I2S interfaces. Especially the high end dacs. Not sure what form that will take as external circuits would require a line driver. There are also I2S to SPDIF boards out there. So an optical interface may already be available.

Thanks. I will look at your library!
 
Status
Not open for further replies.
Back
Top