2
\$\begingroup\$

enter image description here

What ESP32 pins to connect to an NAU8810 audio codec? Or rather the other way around. I need an RX pin. Would this be tied to DACIN?

Pins I'm unsure about:

  • MOUT (Mono Output)
  • ADCOUT (Digital Audio Data Output)
  • DACIN (Digital Audio Data Input)
  • FS (Frame Sync)
  • BCLK (Bit Clock)

What I have so far:

enter image description here

Typical application from the datasheet:

enter image description here

Or does the ESP32 clock not work with this IC?

\$\endgroup\$
2
  • \$\begingroup\$ Pins you need to connect would depend on your intended application. Also you need 2,2k pull-ups on SDIO and SCLK. \$\endgroup\$
    – floppydisk
    Commented Jan 11, 2023 at 23:04
  • \$\begingroup\$ Application is just getting instrument sounds: sparkfun.com/tutorials/302 \$\endgroup\$
    – adamaero
    Commented Jan 11, 2023 at 23:07

1 Answer 1

1
\$\begingroup\$

Both your codec and ESP32 support either PCM or I2S interfaces. You should read about them and decide which one you want to use.

As for which pins to use on ESP32, ESP32 has a fully connected matrix, so you can choose any pin and simply assign a desired function to it in code.

Also check ESP IDF documentation for I2S for more information.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.