NXP K32L2B FlexIO I2S Application Note

This NXP application note explains how the K32L2B MCU FlexIO module emulates an I2S bus master for audio data transfer.


NXP K32L2B FlexIO I2S Application Note - cover page
Brand
NXP
Category
microcontrollers
Document type
Application Note
Language
English
Pages
10
File format
PDF
File size
282 KB
Published
18 November, 2026
Updated
18 November, 2026
MD5 checksum
90D9E2927886A8C6EDB34A2EFF86C292

About this manual

This application note from NXP describes using the FlexIO peripheral on the K32L2B microcontroller as an I2S audio bus master. The FlexIO module can generate all required I2S bus signals and transfer audio data without significant restrictions in functionality or CPU resources.

The demonstration uses the FRDM-K32L2B Board and the NXP Mic/Audio/Oled Shield (MAO) with the WM8904 audio codec. Audio is recorded at 48.000 kHz, mono, 16-bit resolution, with a 32-bit I2S word size, and stored in the MCU internal flash memory.

What's inside

  • Overview
  • Required hardware
  • I2S master emulation by FlexIO
  • Configurations of Shifter 0 (TX)
  • Configurations of Shifter 1 (RX)
  • Configurations of Timer 1 (FS 48 KHz)
  • Configurations of Timer 0 (BCLK 1.536 MHz)
  • Configurations of Timer 2 (MCLK 12 MHz)
  • Software description
  • Conclusions

Specifications

Audio sample rate48.000 kHz
Audio resolution16-bit
I2S word size32 bit
Bit clock frequency1.536 MHz
Master clock frequency12 MHz
FlexIO resources4 shifters, 4 timers, 8 pins

Frequently asked questions

What board is used for the demonstration?

The FRDM-K32L2B Board is used for the demonstration.

Which audio codec is used for audio reproduction?

The WM8904 audio codec IC on the NXP Mic/Audio/Oled Shield (MAO) is used.

What communication protocols can FlexIO emulate?

FlexIO can emulate UART, I2C, SPI, I2S, and other serial/parallel protocols.

What is the FlexIO input frequency?

The FlexIO input frequency is the bus clock at 48.000 MHz.

Download PDF (282 KB)

More NXP Manuals


View all NXP manuals →