SLAU599B August   2015  – July 2021

 

  1.   Trademarks
  2. 1Getting Started
    1. 1.1 Introduction
    2. 1.2 Key Features
    3. 1.3 What's Included
      1. 1.3.1 Kit Contents
      2. 1.3.2 Software Examples
    4. 1.4 Next Steps: Looking Into the Provided Code
  3. 2Hardware
    1. 2.1 Hardware Features
      1. 2.1.1  BoosterPack Plug-in Module Pinout
      2. 2.1.2  TI OPT3001 Light Sensor
      3. 2.1.3  TI TMP006 Temperature Sensor
      4. 2.1.4  Servo Motor Connector
      5. 2.1.5  3-Axis Accelerometer
      6. 2.1.6  RGB Multicolor LED
      7. 2.1.7  Piezo Buzzer
      8. 2.1.8  Color 128x128-Pixel TFT LCD Display
      9. 2.1.9  Microphone
      10. 2.1.10 2-Axis Joystick With Pushbutton
      11. 2.1.11 User Pushbuttons
    2. 2.2 Power
    3. 2.3 Design Files
      1. 2.3.1 Hardware
      2. 2.3.2 Software
      3. 2.3.3 Quick Start Guide
    4. 2.4 Hardware Change log
  4. 3Software Examples
    1. 3.1 BOOSTXL-EDUMKII_Accelerometer_MSP432P401R
      1. 3.1.1 Source File Structure
      2. 3.1.2 Operation
    2. 3.2 BOOSTXL-EDUMKII_JoyStick_MSP432P401R
      1. 3.2.1 Source File Structure
      2. 3.2.2 Operation
    3. 3.3 BOOSTXL-EDUMKII_LightSensor_MSP432P401R
      1. 3.3.1 Source File Structure
      2. 3.3.2 Operation
    4. 3.4 BOOSTXL-EDUMKII_Temperature_MSP432P401R
      1. 3.4.1 Source File Structure
      2. 3.4.2 Operation
    5. 3.5 BOOSTXL-EDUMKII_MicrophoneFFT_MSP432P401R
      1. 3.5.1 Source File Structure
      2. 3.5.2 Operation
      3. 3.5.3 CMSIS DSP Software Library in MSP432
  5. 4Additional Resources
    1. 4.1 TI LaunchPad Development Kit Portal
    2. 4.2 Download Code Composer Studio IDE, IAR, or Energia
    3. 4.3 SimpleLink MSP432 SDK and TI Resource Explorer
    4. 4.4 The Community
      1. 4.4.1 TI E2E™ Community
      2. 4.4.2 Community at Large
  6. 5Schematics
  7. 6Revision History

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 Figure 3-5). The demo uses the real FFT function contained in the CMSIS DSP Software Library.

GUID-8DB4E6A1-D9DF-4B81-9682-D7135A2078A9-low.jpgFigure 3-5 Microphone

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 MSP Graphics Library.

Try generating a pure tone ranging from 1 Hz to 4000 Hz and see if the demo shows the correct frequency.