pdm_sai_interrupt_transfer#
Overview#
The pdm sai interrupt example shows how to use pdm driver with interrupt transaction api:
In this example, pdm gather audio data, and sai send it to codec.
Supported Boards#
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 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 interrupt transfer example started!
IMX952LPD5EVK-19
Hardware requirements
Micro USB cable
IMX952-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
Set SW9[3]=0.
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 SW4 to power on the board
Connect a micro USB cable between the host PC and the J31 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 interrupt transfer 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 u41) and the log would be seen on the OpenSDA terminal like:
PDM SAI interrupt transfer example started!
EVK-MIMX8MM
Hardware requirements
Micro USB cable
MIMX8MM6-EVK board
J-Link Debug Probe
12V power supply
Personal Computer
Microphone
Headphone
Board settings
Connect microphone to EVK board: 3V->J1003-1 GND->J1003-6 CLK->J1003-40 DATA->J1003-38 Connect headphone to J401
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 12V power supply and J-Link Debug Probe to the board, switch SW101 to power on the board
Connect a USB cable between the host PC and the J901 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 from microphone and the log would be seen on the OpenSDA terminal like:
PDM sai interrupt example started!
EVK-MIMX8MN
Hardware requirements
Micro USB cable
MIMX8MN6-EVK board
J-Link Debug Probe
12V power supply
Personal Computer
Microphone
Headphone
Board settings
Connect microphone module to EVK board: 3V->J1003-1 GND->J1003-6 CLK->J1003-40 DATA->J1003-38 Connect headphone to J401
Note! There are two microphones on module, please put the sound source in the middle of microphones for balance.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 12V power supply and J-Link Debug Probe to the board, switch SW101 to power on the board
Connect a USB cable between the host PC and the J901 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 from microphone and the log would be seen on the OpenSDA terminal like:
PDM sai interrupt example started!
EVK-MIMX8MNDDR3L
Hardware requirements
Micro USB cable
MIMX8MN6-EVK board
J-Link Debug Probe
12V power supply
Personal Computer
Microphone
Headphone
Board settings
Connect microphone module to EVK board: 3V->J1003-1 GND->J1003-6 CLK->J1003-40 DATA->J1003-38 Connect headphone to J401
Note! There are two microphones on module, please put the sound source in the middle of microphones for balance.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 12V power supply and J-Link Debug Probe to the board, switch SW101 to power on the board
Connect a USB cable between the host PC and the J901 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 from microphone and the log would be seen on the OpenSDA terminal like:
PDM sai interrupt example started!
EVK-MIMX8MP
Hardware requirements
Micro USB cable
EVK-MIMX8M Plus board
J-Link Debug Probe
12V power supply
Personal Computer
Microphone
Headphone
Board settings
Connect microphone module to EVK board: 3V->J21-1 GND->J21-6 CLK->J21-40 DATA->J21-38 Connect headphone to J18
NOTE
There are two microphones on module, please put the sound source in the middle of microphones for balance.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 12V power supply and J-Link Debug Probe to the board, switch SW3 to power on the board
Connect a USB cable between the host PC and the J23 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 debugger terminal like:
PDM sai interrupt example started!
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 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 interrupt transfer 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 u41) 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
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.
Insert the headphones into the headphone jack on MIMXRT1180-EVK board (J101).
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 and the log would be seen on the OpenSDA terminal like:
PDM SAI interrupt transfer 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!
IMX95LPD5EVK-19
Hardware requirements
Micro USB cable
IMX95LPD5-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
No special settings are required.
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 SW4 to power on the board
Connect a micro USB cable between the host PC and the J31 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 interrupt transfer example started!
IMX943-EVK
Hardware requirements
Micro USB cable
IMX943-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
No special settings are required.
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 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 u32) 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 and u67) and the log would be seen on the terminal like:
PDM SAI interrupt transfer example started!