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
I2S Philips alignment
- iot-bits.com
- Posts: 25
- Joined: Wed Dec 21, 2016 6:14 am
- Location: India
- Contact:
Re: I2S Philips alignment
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.
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
Just another hobbyist and consultant
Just another hobbyist and consultant
Re: I2S Philips alignment
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
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
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
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