pdm_sai_edma#
Overview#
The pdm sai edma example shows how to use pdm driver with edma:
In this example, pdm gathers one channel’s audio data though edma, then sai sends it to codec.
Supported Boards#
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK board
J-Link Debug Probe
5V power supply
Personal Computer
Microphone
Board settings
populate J20, J21 Connect microphone module to EVK board: 3V->J20-8 GND->J20-7 CLK->J21-4 DATA->J21-3
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board
Connect a micro USB cable between the host PC and the J17 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound gathered from microphone and the log would be seen on the OpenSDA terminal like:
PDM SAI Edma example started!
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 the log would be seen on the OpenSDA terminal like:
PDM SAI interrupt transfer example started!
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK board
J-Link Debug Probe
5V power supply
Personal Computer
Microphone
Board settings
populate J20, J21 Connect microphone module to EVK board: 3V->J20-8 GND->J20-7 CLK->J21-4 DATA->J21-3
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board
Connect a micro USB cable between the host PC and the J17 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound gathered from microphone and the log would be seen on the OpenSDA terminal like:
PDM SAI Edma example started!
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 the log would be seen on the OpenSDA terminal like:
PDM SAI interrupt transfer 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.
Note
The CM7 demo is supposed to work with multicore_trigger CM33 demo in this SDK.
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 Edma example started!
FRDM-MCXN236
Hardware requirements
Type-C USB cable
FRDM-MCXN236 board
Personal Computer
Headphone
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the MCU-Link 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(U7) and the log would be seen on the MCU-Link terminal like:
PDM SAI interrupt transfer example started!
MCX-N5XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK board
Personal Computer
Headphone
Board settings
Short JP7 2-3, JP8 2-3, JP10 2-3, JP11 2-3
Prepare the Demo
Connect a USB cable between the host PC and the MCU-Link 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(U30) and the log would be seen on the MCU-Link terminal like:
PDM SAI interrupt transfer 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 Edma example started!
IMX943-EVK
Hardware requirements
Micro USB cable
IMX943-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Microphone
Board settings
populate J20, J21 Connect microphone module to EVK board: 3V->J20-8 GND->J20-7 CLK->J21-4 DATA->J21-3
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW1(SYS_PWR) to power on the board
Connect a micro USB cable between the host PC and the J15(FTDI_DEBUG) 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, you can hear the sound gathered from microphone and the log would be seen on the OpenSDA terminal like:
PDM SAI Edma example started!