Software Examples
3.5
BOOSTXL-EDUMKII_MicrophoneFFT_MSP432P401R
This section describes the functionality and structure of the BOOSTXL-
EDUMKII_MicrophoneFFT_MSP432P401R demo that is included in the
Examples
download, or more easily accessible through the
3.5.1
Source File Structure
The project is split into multiple files (see
for other projects.
Name
main.c
msp432_startup_ccs.c
Library: GrLib
Library: driverlib
Driver: LcdDriver
Driver: HAL_I2C.c
Driver: HAL_OPT3001.c
3.5.2
Operation
This demo visualizes 512-point real FFT results calculated from audio samples gathered in real-time from
the onboard microphone of the Educational BoosterPack plug-in module MKII (see
uses the real FFT function contained in the CMSIS DSP Software Library.
The program begins by using the MSP432 built-in ADC14 module to sample audio signal at 8 KHz from
the microphone on the Educational BoosterPack plug-in module MKII. To achieve seamless data
processing, the MSP432 built-in DMA module is set up in Ping-Pong mode to alternate between two data
buffers. This allows the ADC14 module to continue gathering audio data into one buffer, while the
MSP432 runs the FFT algorithm on the other buffer.
When the DMA module completes data transfers from ADC14 results to one of the 512 length data
buffers, an interrupt is triggered to wake the MSP432 from LPM0 sleep mode to initiate the 512-point real
FFT calculation. The resulting frequency bin data is displayed in a bar graph on the BoosterPack plug-in
module's colored 128x128 dot-matrix LCD using
Try generating a pure tone ranging from 1 Hz to 4000 Hz and see if the demo shows the correct
frequency.
14
BOOSTXL-EDUMKII Educational BoosterPack™ Plug-in Module Mark II
Table
18). This makes it easier to navigate and reuse parts of it
Table 18. Source File and Folders
The demo's main function, interrupt service routines, global variables, and so on
MSP432 Family Interrupt Vector Table for CGT
MSP Graphics Library
Device driver library (MSP432DRIVERLIB)
LCD specific driver files
Generic I2C driver file
OPT3001 sensor specific driver built on top of the HAL_I2C driver
Figure 8. Microphone
MSP Graphics
Copyright © 2015–2017, Texas Instruments Incorporated
MSP-EXP432P401R Software
SimpleLink MSP432 SDK
Description
Figure
Library.
SLAU599A – August 2015 – Revised March 2017
Submit Documentation Feedback
www.ti.com
(see
Section
4.3).
8). The demo
Need help?
Do you have a question about the BoosterPack Educational Plug-in Module Mark II BOOSTXL-EDUMKII and is the answer not in the manual?
Questions and answers