Page 1 of 1

I2S Philips alignment

Posted: Mon Sep 04, 2017 12:09 am
by filipe22
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

Re: I2S Philips alignment

Posted: Thu Sep 07, 2017 5:35 pm
by iot-bits.com
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.

Re: I2S Philips alignment

Posted: Sat Sep 09, 2017 6:40 pm
by filipe22
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

Re: I2S Philips alignment

Posted: Sat Sep 09, 2017 8:09 pm
by filipe22
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