MCUXpresso SDK Documentation

pdm_hwvad

pdm_hwvad#

Overview#

The pdm hwvad example shows how to use pdm driver with hwvad:

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
  1. Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board

  2. Connect a micro USB cable between the host PC and the J31 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

MIMXRT1170-EVKB
Hardware requirements
  • Micro USB cable

  • MIMXRT1170-EVKB board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

EVK-MIMX8MM
Hardware requirements
  • Micro USB cable

  • MIMX8MM6-EVK board

  • J-Link Debug Probe

  • 12V power supply

  • Personal Computer

  • microphone

Board settings

Connect microphone to EVK board: 3V->J1003-1 GND->J1003-6 CLK->J1003-40 DATA->J1003-38

Please note this application can’t support running with Linux BSP!

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW101 to power on the board

  2. Connect a USB cable between the host PC and the J901 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

EVK-MIMX8MN
Hardware requirements
  • Micro USB cable

  • MIMX8MN6-EVK board

  • J-Link Debug Probe

  • 12V power supply

  • Personal Computer

  • microphone

Board settings

Connect microphone module to EVK board: 3V->J1003-1 GND->J1003-6 CLK->J1003-40 DATA->J1003-38

Please note this application can’t support running with Linux BSP!

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW101 to power on the board

  2. Connect a USB cable between the host PC and the J901 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

EVK-MIMX8MNDDR3L
Hardware requirements
  • Micro USB cable

  • MIMX8MN6-EVK board

  • J-Link Debug Probe

  • 12V power supply

  • Personal Computer

  • microphone

Board settings

Connect microphone module to EVK board: 3V->J1003-1 GND->J1003-6 CLK->J1003-40 DATA->J1003-38

Please note this application can’t support running with Linux BSP!

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW101 to power on the board

  2. Connect a USB cable between the host PC and the J901 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

EVK-MIMX8MP
Hardware requirements
  • Micro USB cable

  • EVK-MIMX8M Plus board

  • J-Link Debug Probe

  • 12V power supply

  • Personal Computer

  • microphone

Board settings

Connect microphone module to EVK board: 3V->J21-1 GND->J21-6 CLK->J21-40 DATA->J21-38

Please note this application can’t support running with Linux BSP!

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW3 to power on the board

  2. Connect a USB cable between the host PC and the J23 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

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
  1. Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board

  2. Connect a micro USB cable between the host PC and the J31 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

FRDM-IMX95
Hardware requirements
  • Micro USB cable

  • FRDM-IMX95 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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board

  2. Connect a micro USB cable between the host PC and the J31 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

FRDM-IMX952
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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board

  2. Connect a micro USB cable between the host PC and the J31 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

FRDM-IMX937
Hardware requirements
  • Micro USB cable

  • FRDM-IMX937 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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board

  2. Connect a micro USB cable between the host PC and the J31 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

MCIMX93-EVK
Hardware requirements
  • USB Type-C cable

  • MCIMX93-EVK board

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

Board settings

No special settings are required.

Note

Please run the application in Low Power boot mode (without Linux BSP). The IP module resource of the application is also used by Linux BSP. Or, run with Single Boot mode by changing Linux BSP to avoid resource conflict.

Prepare the Demo
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW301 to power on the board

  2. Connect a USB Type-C cable between the host PC and the J1401 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

MCIMX93-QSB
Hardware requirements
  • USB Type-C cable

  • MCIMX93-QSB 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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW301 to power on the board

  2. Connect a USB Type-C cable between the host PC and the J1708 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

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
  1. Connect 12V~20V power supply and JLink Plus to the board, switch SW1(SYS_PWR) to power on the board

  2. Connect a micro USB cable between the host PC and the J15(FTDI_DEBUG) USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish.

MIMXRT700-EVK
Hardware requirements
  • Micro USB cable

  • MIMXRT700-EVK board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a micro USB cable between the PC host and the MCU-LINK USB port (J54) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, please speak or play a song nearby microphone, then you will see log on the terminal like:

PDM hwvad example started!

Voice detected

Voice detected

...

PDM hwvad example finished!

Note: There is a variable in this example which initial as 50, once voice detected, it will decrease by one until 0, then example finish. The sensitivity can be adjusted by Signal Gain, Input Gain, Noise Gain.