
temp 0: 24.000000
temp 1: 23.984375
temp 2: 24.234375
Software Examples
10
SBOU174 – June 2017
Copyright © 2017, Texas Instruments Incorporated
BOOSTXL-TMP107 User's Guide
3.3
OutOfBox_MSP-EXP430F5529LP
This section describes the functionality and structure of OutOfBox_MSP-EXP430F5529LP demonstration
that is included in TMP107-Firmware-Library.
3.3.1
Source File Structure
lists the source files and folders.
Table 6. Source File and Folders
Name
Description
driverlib
Device drive library
.project
CCS project files
hal.c
Hardware abstraction layer for the TMP107 library
hal.h
Hardware abstraction layer header for the TMP107 library
main.c
Main source file of the demonstration
tmp107.c
TMP107 library
tmp107.h
TMP107 library header
3.3.2
Operation
This demonstration uses the MSP application UART to report temperature data to the PC. The MSP
application UART is a virtual COM port that is made available by the LaunchPad. Monitor this COM port
using a terminal application, such as PuTTy. See
for an example of MSP application UART
output. The demonstration begins by querying the TMP107 bus for the last device in the bus. If the
number of devices on the bus has recently changed, or if new TMP107 devices are being used, hold the
pushbutton S1 to initialize the bus addresses instead. After either LastDevice query or AddressInit occurs,
a global read operation is then performed on the bus to retrieve temperature data from all TMP107
devices. This temperature data is then printed to the MSP application UART, and LED1 flashes to indicate
how many TMP107 devices were found.
Figure 8. Example Output from MSP Application UART