Interface the NAU8325 digital input Class-D audio amplifier and codec module with a Glyph ESP32 board over I²S to generate sine waves and stream SD card audio.
The NAU8325 is a highly efficient digital input Class-D audio amplifier designed by Nuvoton Technology Corporation. It is well-suited for compact and battery-powered devices, including portable speakers, IoT devices, tablets, and smart audio systems. It features integrated digital-to-analog conversion, eliminating the need for an external DAC and reducing system complexity.
The NAU8325 receives digital audio via the I²S (Inter-IC Sound) protocol, which transfers pulse-code modulated (PCM) data between the MCU and the amplifier.I²S Signals:
BCLK (Bit Clock): Synchronizes each individual bit of audio data.
LRCK / WS (Word Select): Indicates whether the data is for the left or right channel.
SD (Serial Data): The real-time, synchronized audio stream.