I2S Philips alignment

filipe22
Posts: 6
Joined: Sun Jul 09, 2017 3:30 pm

I2S Philips alignment

Postby filipe22 » Mon Sep 04, 2017 12:09 am

Hi everyone,

I am trying to connect an audio ADC to ESP32 viw I2S. The IC uses the philips encoding, with the first byte shifted.
Looking at the technical reference manual, it is built in the hw, but it is not included in the API. At least, as far as I could dig in the documentation and code.
Could you tell me how to manipulate the raw registers to enable it?
Kind regards,

Filipe

User avatar
iot-bits.com
Posts: 25
Joined: Wed Dec 21, 2016 6:14 am
Location: India
Contact:

Re: I2S Philips alignment

Postby iot-bits.com » Thu Sep 07, 2017 5:35 pm

You can use WRITE_PERI_REG and READ_PERI_REG functions to read and write the register locations.
I have an I2S audio codec library here for playback:
https://github.com/IoTBits/ESP32_SGTL5000_driver/

Maybe it will help, uses I2S driver from SDK + SGTL5000 audio codec. Works a treat at 48 kHz.
- Pratik
:geek: Just another hobbyist and consultant

filipe22
Posts: 6
Joined: Sun Jul 09, 2017 3:30 pm

Re: I2S Philips alignment

Postby filipe22 » Sat Sep 09, 2017 6:40 pm

Thank you for the reply, iot_bits!
I have bought your dsp module for another project! It is working nicely.
I will look at your link now.

Filipe

filipe22
Posts: 6
Joined: Sun Jul 09, 2017 3:30 pm

Re: I2S Philips alignment

Postby filipe22 » Sat Sep 09, 2017 8:09 pm

Hi IoTBits,

Just checked your code.
Thank you for the help, but the configuration is as an output and not input, and the ESP32 I2S to be the slave.
Filipe

Who is online

Users browsing this forum: No registered users and 159 guests