pdm_sai_multi_channel_edma#
Overview#
The pdm sai multi channel edma example shows how to use pdm driver with edma:
In this example, pdm gathers two channels’ audio data though edma, then sai sends it to codec, the received DMIC data format,#
|CHANNEL0 | CHANNEL1 | CHANNEL2 | …. | CHANNEL0 | CHANNEL 1 | CHANNEL2 |….| CHANNEL0 | CHANNEL 1 | CHANNEL2 |….|#
Supported Boards#
MIMXRT1170-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Headphone
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound from microphone(U40 and U41) and the log would be seen on the OpenSDA terminal like:
PDM SAI multi channel edma example started!
User can press the key SW7 to adjust the MIC output gain, the gain value will be looped in the rang 0-15.
MIMXRT1160-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1160-EVK board
Personal Computer
Headphone
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound from microphone(U40 and U41) and the log would be seen on the OpenSDA terminal like:
PDM SAI multi channel edma example started!
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Headphone
Board settings
Insert headphone to J101.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Press the reset button on your board to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound and the log would be seen on the OpenSDA terminal like:
PDM SAI multi channel edma example started!
MIMXRT700-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT700-EVK board
Personal Computer
Headphone
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-LINK USB port (J54) on the board
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound from microphone(U66, U67) and the log would be seen on the terminal like:
PDM SAI multi channel edma example started!