Software Examples
10
SLAU599A – August 2015 – Revised March 2017
Copyright © 2015–2017, Texas Instruments Incorporated
BOOSTXL-EDUMKII Educational BoosterPack™ Plug-in Module Mark II
3.1
BOOSTXL-EDUMKII_Accelerometer_MSP432P401R
This section describes the functionality and structure of the BOOSTXL-
EDUMKII_Accelerometer_MSP432P401R demo that is included in the
download, or more easily accessible through the
(see
3.1.1
Source File Structure
The project is split into multiple files (see
). This makes it easier to navigate and reuse parts of it
for other projects.
Table 14. Source File and Folders
Name
Description
main.c
The demo's main function, interrupt service routines, global variables, and so on
msp432_startup_ccs.c
MSP432 family interrupt vector table for CGT
Library: GrLib
MSP Graphics Library
Library: driverlib
Device driver library (MSP432DRIVERLIB)
Driver: LcdDriver
LCD specific driver files
3.1.2
Operation
This demo uses the MSP432 built-in ADC14 to sample from the 3-axis acceleration data output of the
analog accelerometer on the Educational BoosterPack plug-in module MKII (see
). The measured
14-bit acceleration data are displayed on the BoosterPack plug-in module's colored 128x128 dot-matrix
LCD. Using
, the MSP432 MCU sends data to the LCD controller through SPI
communication to draw texts.
Figure 4. 3-Axis Analog Accelerometer
The demo makes use of the acceleration data by changing the LCD orientation when the BoosterPack
plug-in module is tilted in the corresponding direction.