MCUXpresso SDK Documentation

dmic_hwvad

dmic_hwvad#

Overview

This demo explains how built in HWVAD( HW voice activity detector) in devices can be used to
wake up the device from sleep mode

## Supported Boards

````{container} board-selector

```{container} board-setup
:name: board-evkmimxrt595

##### EVK-MIMXRT595

##### Hardware requirements
- Micro USB cable
- EVK-MIMXRT595 board
- Personal Computer

##### Board settings

##### Prepare the Demo
1.  Connect a micro USB cable between the PC host and the CMSIS DAP USB port 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
1.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

The following lines are printed to the serial terminal when the demo program is executed.

Configure DMIC

2. This example wakes up microcontroller on any voice activity.
   Speak on DMIC,you can see blinking Red LED(D19). Also serial message "Going into sleep" and "Just woke up" will be transmitted.

```

```{container} board-setup
:name: board-evkmimxrt685

##### EVK-MIMXRT685

##### Hardware requirements
- Micro USB cable
- EVK-MIMXRT685 boards
- Personal Computer

##### Board settings
Connect 8-DMIC board to J31.

##### Prepare the Demo
1.  Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) 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
1.  Launch the debugger in your IDE to begin running the demo.

The following lines are printed to the serial terminal when the demo program is executed.

Configure DMIC

2. This example wakes up microcontroller on any voice activity.
   Speak on DMIC,you can see blinking GREEN LED(D10). Also serial message "Going into sleep" and "Just woke up" will be transmitted.

```

```{container} board-setup
:name: board-lpcxpresso55s36

##### LPCXpresso55S36

##### Hardware requirements
- Micro USB cable
- LPCXpresso55S36 boards
- Personal Computer

##### Board settings
Remove resistor between BH23 and BH24, Short BH22 and BH23. 

##### Prepare the Demo
1.  Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) 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
1.  Launch the debugger in your IDE to begin running the demo.

The following lines are printed to the serial terminal when the demo program is executed.

Configure DMIC

2. This example wakes up microcontroller on any voice activity.
   Speak on DMIC,you can see blinking GREEN LED. Also serial message "Going into sleep" and "Just woke up" will be transmitted.

```

```{container} board-setup
:name: board-mimxrt685audevk

##### MIMXRT685-AUD-EVK

##### Hardware requirements
- Micro USB cable
- MIMXRT685-AUD-EVK boards
- Personal Computer

##### Board settings
Connect JP44 1-2,JP45 1-2

##### Prepare the Demo
1.  Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) 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
1.  Launch the debugger in your IDE to begin running the demo.

The following lines are printed to the serial terminal when the demo program is executed.

Configure DMIC

2. This example wakes up microcontroller on any voice activity.
   Speak on DMIC,you can see blinking GREEN LED(D10). Also serial message "Going into sleep" and "Just woke up" will be transmitted.

```

```{container} board-setup
:name: board-rdrw612bga

##### RD-RW612-BGA

##### Hardware requirements
- Micro USB cable
- RD-RW612-BGA boards
- 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 (J7) 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
1.  Launch the debugger in your IDE to begin running the demo.

The following lines are printed to the serial terminal when the demo program is executed.

Configure DMIC

2. This example wakes up microcontroller on any voice activity.
   Speak on DMIC, you can see serial message "Going into sleep" and "Just woke up" will be transmitted.

```

````