This NXP application note explains how to use the FlexIO module on the K32L2B MCU to simulate an I2S bus master for audio applications.
This application note describes using the FlexIO peripheral on the NXP K32L2B microcontroller as an I2S audio bus master, including hardware connections, configuration methods, and software implementation. The FlexIO module can generate all required I2S bus signals and replace traditional I2S/SAI peripherals for audio data streaming.
The demonstration uses the FRDM-K32L2B board with the NXP Mic/Audio/Oled Shield (MAO) and a WM8904 audio codec IC. Audio is recorded to internal flash memory at a 48.000 kHz sampling rate, mono channel, 16-bit resolution, with a 32-bit I2S word length. This manual is written in Chinese.
| Audio sampling rate | 48.000 kHz |
|---|---|
| Resolution | 16位 |
| I2S word length | 32位 |
| Channel count | 单通道(单声道) |
| Bit clock frequency | 1.536 MHz |
| Master clock frequency | 12 MHz |
The NXP K32L2B MCU is used.
The FRDM-K32L2B board is used.
The WM8904 audio codec IC is used.
The sampling rate is 48.000 kHz.