Texas Instruments MSP-EXP430FR5969 사용자 설명서

다운로드
페이지 45
Software Examples
The MSP430FR5969 first sends two calibration constants for the temperature sensor to the PC GUI. It
then sets up its 12-bit ADC for sampling and converting the signals from its internal temperature sensor. A
hardware timer is also configured to trigger the ADC conversion every 0.125 seconds before the device
enters low-power mode 3 to conserve power. As soon as the ADC sample and conversion is complete,
the raw ADC data is sent the through the UART backchannel to the PC GUI.
As the raw ADC data is received by the PC GUI, Celsius and Fahrenheit units are calculated first. The PC
GUI keeps a buffer of the most recent 100 temperature measurements, which are graphed against the
PC's current time on the Incoming Data panel.
A red horizontal line is drawn across the data plot to indicate the moving average of the incoming data.
To exit this mode, click the "Stop" button under "Live Temp Mode". You must exit this mode before
starting the FRAM Log Mode.
3.3.4
FRAM Log Mode
To enter the FRAM Log Mode, click the "Start" button under "FRAM Log Mode" in the GUI's Application
Controls panel. The PC GUI immediately sends the current system timestamp to be stored in the
LaunchPad. This timestamp is later used to extrapolate the X-axis time values when the FRAM logged
data are transferred to the GUI (see
).
Figure 20. FRAM Log Mode
When the MSP430FR5969 receives the UART command from the GUI, it starts the entry sequence by
initializing the Real-Time Clock to trigger an interrupt every 5 seconds. The red LED blinks three times to
indicate successful entry into FRAM Log Mode.
Unlike in the Live Temperature Mode, the MSP430FR5969 enters low-power mode 3.5 to further decrease
power consumption and wakes up every 5 seconds to perform data logging. Because the UART
communication module does not retain power in LPM3.5, the GUI automatically disconnects from the
LaunchPad after entry into FRAM Log Mode.
29
SLAU535A – February 2014 – Revised June 2014
MSP-EXP430FR5969 LaunchPad™ Development Kit User's Guide
Copyright © 2014, Texas Instruments Incorporated