
GlobalAddressInit:
0x55 Calibration Byte
0x95 Command Byte
0x0D Byte 1
DecodeTemperatureResult(0x1AB0): 26.687500
TMP107_Encode5bitAddress(0x01): 0x08
TMP107_Encode5bitAddress(0x03): 0x18
TMP107_Encode5bitAddress(0x1F): 0xF8
TMP107_Encode5bitAddress(0x08): 0x01
TMP107_Encode5bitAddress(0x0D): 0x01
TMP107_Encode5bitAddress(0x0B): 0x01
TMP107_Encode5bitAddress(0xF8): 0x1F
Software Examples
8
SBOU174 – June 2017
Copyright © 2017, Texas Instruments Incorporated
BOOSTXL-TMP107 User's Guide
Command data generated by the library is able to be hard-coded into your application. This demonstration
can also be used to check your understanding of the TMP107. The output of the demonstration is shown
in
Figure 6. Console Output From Compiled LibraryTestBench Demonstration
3.2
OutOfBox_MSP-EXP430FR6989
This section describes the functionality and structure of OutOfBox_MSP-EXP430FR6989 demonstration
that is included in TMP107-Firmware-Library.
3.2.1
Source File Structure
lists the source files and folders.
Table 5. Source File and Folders
Name
Description
driverlib
Device drive library
.project
CCS project files
hal_LCD.c
LCD library
hal_LCD.h
LCD library header
hal_tmp107.c
Hardware abstraction layer for TMP107 library
hal_tmp107.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