Software Examples
Each time the device wakes up, the green LED lights up to indicate its state to the user. The 12-bit ADC is
set up to sample and convert the signals from its internal temperature sensor and battery monitor (Super
Cap voltage).
A section of the device's FRAM is allocated to store the raw ADC output data (address 0x9000 to
0xEFFF). This allows the demo to store up to 6144 temperature and voltage data points (5
seconds/sample is approximately 8.5 hours of data).
The FRAM Log Mode also provides the option to log temperature data while powered either through the
USB cable or only by the on-board Super Cap. The PC GUI contains step-by-step instructions in its side
panel for configuring the jumpers on the LaunchPad to power the device with the Super Cap. See
for more detail on the Super Cap.
To exit the FRAM Log Mode, press the S2 (right) push button on the LaunchPad. The red LED turns on
briefly to indicate successful exit. The LaunchPad returns to the Power up and Idle state, and you can
reconnect the LaunchPad with the GUI to transfer the logged data from FRAM to the PC. Click the
"Transfer FRAM Data" button in the GUI to begin transfer. A progress bar shows progress until the
transfer completes, and the temperature and voltage data are plotted in the Incoming Data panel.
3.4
430BOOST-SHARP96 ULP FRAM Demo
This section describes the functionality and structure of the 430BOOST-SHARP96 ULP FRAM demo that
is included in the
MSP-EXP430FR5969 Software Examples
.
NOTE:
The 430BOOST-SHARP96 ULP FRAM demo relies on the
BoosterPack and has a very limited use without it.
The full demo source code cannot be built with the free version of CCS or IAR (IAR KickStart) because of
the code size limit. To bypass this limitation, a code-size-limited CCS version is provided that has most
functionality integrated into a library. The code that is built into the library can be viewed by the user, but it
cannot be edited. For full functionality, download the full version of either CCS or IAR.
There are five applications in the demo software. All of them are in one project and the different
applications can be cycled through in the user interface.
3.4.1
Source File Structure
The project is split into multiple files. This makes it easier to navigate and reuse parts of it for other
projects.
Table 8. Source Files and Folders
Name
Description
Main.c
The user experience demo main function, shared ISRs, and other functions
ActivePowerMeasure.c
Main function file for Active Mode Power app
ClockApp.c
Main function file for Clock app
FR59xx_EXP.c
File for handling system init, main menu, and button operations
FRAMSpeedApp.c
Main function file for FRAM Speed app
Game.c
Main function file for SliderBall video game app
SYS.c
Functions to enter and exit LPM3.5
myTimer.c
Contains all timer-based functions and interrupts
ULPMeter.c
Main function file for Battery Free Stopwatch app
Library: CTS
Capacitive Touch Software Library (
Library: Driverlib
Device driver library (
Library: grlib
Graphics library for the SHARP LCD (
)
Folder: Preloaded images
Images for the LCD screen
28
MSP430FR5969 LaunchPad™ Development Kit (MSP
‑
EXP430FR5969)
SLAU535B – February 2014 – Revised July 2015
Copyright © 2014–2015, Texas Instruments Incorporated