asrc_m2m_polling#
Overview#
The asrc m2m interrupt example shows how to use asrc driver with interrupt:
In this example, asrc will convert the audio data and playback the through SAI.
Supported Boards#
MIMXRT1170-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Headphone(OMTP standard)
Board settings
No special settings are required.
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 MIMXRT1170-EVKB 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 tone and the log would be seen on the OpenSDA terminal like:
ASRC m2m polling example
Playback raw audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
Playback converted audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
ASRC m2m polling example finished
IMX952LPD5EVK-19
Hardware requirements
Micro USB cable
IMX952-EVK board
J-Link Debug Probe
12V~20V power supply
Personal Computer
Headphone
Board settings
Plugin headphone to J9
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 12V~20V power supply and J-Link Debug Probe 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.
Either re-power up your board or launch the debugger in your IDE to begin running the example
Running the demo
When the demo runs successfully, you can hear the tone and the log would be seen on the OpenSDA terminal like:
ASRC m2m polling example
Playback raw audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
Playback converted audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
ASRC m2m polling example finished
MIMXRT1160-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1160-EVK board
Personal Computer
Headphone(OMTP standard)
Board settings
No special settings are required.
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 MIMXRT1160-EVK board (J33).
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 tone and the log would be seen on the OpenSDA terminal like:
ASRC m2m polling example
Playback raw audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
Playback converted audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
ASRC m2m polling example finished
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Headphone(OMTP standard)
Board settings
No special settings are required.
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 tone and the log would be seen on the OpenSDA terminal like:
ASRC m2m polling example
Playback raw audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
Playback converted audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
ASRC m2m polling example finished
FRDM-IMXRT1152
Hardware requirements
Type-C USB cable
FRDM-IMXRT1152 board
Personal Computer
Headphone(OMTP standard)
Board settings
No special settings are required.
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 FRDM-IMXRT1152 board (J30).
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 tone and the log would be seen on the OpenSDA terminal like:
ASRC m2m polling example
Playback raw audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
Playback converted audio data
sample rate : xxxx
channel number: xxxx
frequency: xxxx.
ASRC m2m polling example finished