i2s library

Please do not post requests
Post Reply
victor_pv
Posts: 1741
Joined: Mon Apr 27, 2015 12:12 pm

i2s library

Post by victor_pv » Sun Feb 12, 2017 11:55 pm

I am writing an i2s library for the high and XL density MCUs (xCT6 to xGT6).

Those MCUs have 3 SPI ports. Ports 2 and 3 can work on i2s mode.

I am posting here the first working version so anyone willing to, can test and help debug it.
At the moment I have tested with with a logic analyzer and seems to work fine.

I have some pt8211 DACs but still need to wire them to an amplifier and speaker, and I am going to call it a day for now.

There is 1 sketch included, that's the one I have used for testing.
If anyone can test and provide feedback, would be helpful.

Ideally should be tested together with other i2s modes, and with other peripherals at the same time, such as a display, sdcard, serial.

Thanks to Madias and Grumpyoldpizza for pointing me in the right direction, and I have borrowed heavily from Grumpyoldpizza (Thomas Roel) from his L4 implementation.

EDIT: I changed the attached file since I noticed I had edited some function name wrong on that. Should work now.
Attachments
i2s_test.zip
(7.85 KiB) Downloaded 84 times

svb
Posts: 2
Joined: Wed Feb 01, 2017 11:43 am

Re: i2s library

Post by svb » Mon Aug 21, 2017 8:37 pm

Hello!
I'm have STM32F103RET6 board and can test as receive PT8211 DAC, but very interested test I2S record function. I have MP45DT02 MEMS microphone but can't test it. My knowledge for writing sketch for this purpose is not good, and i search who can make simple sketch for reading from I2S MEMS microphone or please give me link where i can read for it.

victor_pv
Posts: 1741
Joined: Mon Apr 27, 2015 12:12 pm

Re: i2s library

Post by victor_pv » Mon Aug 21, 2017 9:29 pm

svb wrote:
Mon Aug 21, 2017 8:37 pm
Hello!
I'm have STM32F103RET6 board and can test as receive PT8211 DAC, but very interested test I2S record function. I have MP45DT02 MEMS microphone but can't test it. My knowledge for writing sketch for this purpose is not good, and i search who can make simple sketch for reading from I2S MEMS microphone or please give me link where i can read for it.
I don't remember ever implementing a record function. It probably can be done without much trouble, but I have never done that either.
The "official" documentation doesn't even show a read function and how it is supposed to work:
https://www.arduino.cc/en/Reference/I2S

I'll have to have a look at the code and see how it's supposed to work.
I did a quick search and can't find that information for the teensy either, although I believe it supports input.

Can you provide some reference on how would you expect the i2s input to function?

Post Reply