DEVELOPMENT OF EMBEDDED SYSTEM FOR REAL-TIME AUDIO ACQUISITION AND PROCESSING BASED ON STM32 MICROCONTROLLER

Authors:

Abstract
In the paper, the embedded system for real-time acquisition and processing audio data has been developed using the STM32F407G-DISC1 Discovery kit with the STM32F407VGT6 ARM Cortex-M4 32-bit MCU. The basic modules of the STM32F4DISCOVERY kit are used for its operation. The STM32F407VGT6 MCU I2S2 peripheral module has been configured in half-duplex master mode to acquire PDM data from the MP45DT02 microphone. The STM32 USB peripheral module is configured in host mode and the MSC protocol is implemented for transmitting and receiving audio data to/from USB flash drive. The I2S3 peripheral module of the STM32F407VGT6 MCU is configured in master transmitter mode for transmitting audio data to the CS43L22 DAC. The I2S2 DMA of the STM32F407VGT6 MCU is used to transfer data from the microphone to the RAM buffer, which significantly relieves the CPU. The user buttons on the STM32F407G-DISC1 board are used for application control (playback or recording). The real-time audio acquisition and processing software for STM32 MCU has been developed in C using the BSP audio driver and PDM2PCM library.