TIDUEA0A March   2019  – September 2020

 

  1.   Description
  2.   Resources
  3.   Features
  4.   Applications
  5.   5
  6. 1System Description
    1. 1.1 Key System Specifications
  7. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
    3. 2.3 Highlighted Products
      1. 2.3.1 Device Recommendation
      2. 2.3.2 Digital Temperature Sensor - TMP117
      3. 2.3.3 Digital Temperature Sensor - TMP116
      4. 2.3.4 ESD Protection Devices
    4. 2.4 System Design Theory
      1. 2.4.1 PT100, PT500, PT1000 based Measurement in Heat Meters
      2. 2.4.2 TMP117 Configuration as Temperature Sensor
      3. 2.4.3 Digital RTD Solution Using TMP117
      4. 2.4.4 Ambient Temperature Considerations
  8. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Required Hardware and Software
      1. 3.1.1 Hardware
      2. 3.1.2 Interface Test Software for TMP116
    2. 3.2 Testing and Results
      1. 3.2.1 Test Setup for Performance Testing
      2. 3.2.2 EMI and EMC Test Requirements for DRTD
      3. 3.2.3 TMP117 EMI/EMC Test Results
      4. 3.2.4 TMP117 Based Temperature Probe Measurement Performance Test Results
      5. 3.2.5 TMP116 Based Temperature Probe Measurement Performance Test Results
      6. 3.2.6 I2C-bus Cable Length Considerations
      7. 3.2.7 Power Supply
      8. 3.2.8 ESD Test Results for TMP116
      9. 3.2.9 Summary
  9. 4Design Files
    1. 4.1 Schematics
    2. 4.2 Bill of Materials
    3. 4.3 Layout Prints
    4. 4.4 Altium Project
    5. 4.5 Gerber Files
    6. 4.6 Assembly Drawings
  10. 5Software Files
  11. 6Related Documentation
    1. 6.1 Trademarks
  12. 7About the Author
  13. 8Revision History

Interface Test Software for TMP116

Note, the same setup and procedure can be followed to interface to the TMP117 sensor for testing. The TMP116 and TMP117 are also resgister compatible.

The TIDA-010002 has been tested together with the EVM430-FR6047, a reference development platform used to evaluate the performance of the MSP430FR6047 for ultrasonic sensing applications, such as smart water or Heat Meters. The highly-accurate flow measurement of the MSP430FR6047 MCU in combination with the Class AA sensor temperature accuracy delivers a cost-optimized, ultra-low-power hardware platform for designing Heat and Cooling Meters or Heat Calculators.

GUID-843658E7-6496-4712-A25C-889EFE71D666-low.pngFigure 3-1 EVM430-FR6047 With a 6-m DRTD (TIDA-010002 is Sealed Inside the Metal Body)

The MSP430FR6047 application software is called Ultrasonic Sensing (USS) Design Center. To download the software, visit MSP430 MCUs Ultrasonic Sensing Design Center. The MSP-USSSWLIB free software is the basis for the example code provided with the TIDA-010002 design. The MSP-USSSWLIB has three parts, the USSSWLib, the USS Design Center GUI and the Demo Application. As of August, 2018 the latest revision on TI.com is the "UltrasonicWaterFR6047_02_10_00_05_windows_installer.exe" and contains the "MSP430FR6047EVM_USS_Water_Demo" Code Composer Studio project, which is the one used here.

The "hal_system.c" file was modified to enable MSP430FR6047's eUSCI_B0 as the I2C-master for the TIDA-010002 as the slave. The "main.c" file in "Water_Demo" software project has been modified; both read and write access to the TMP116 device is implemented, including the TMP116 EEPROM write function.

The USCI_A1 module of the MSP430FR6047 has been set to operate as the communication interface to the PC (using the back-channel UART of the MSP430 debugger, integrated onto the EVM). The UART settings are 57600,8N1 and the data being output can be monitored inside the Code Composer Studio CCSv8.1.0 by opening a Terminal window; alternatively the user can run his favorite UART terminal program.

The I2C driver for communication with the TMP116 has been developed, utilizing the existing Hardware Abstraction Layer (HAL) driver for the MSP430FR6047 EVM. The I2C-Address of the TIDA-010002 is hard-wired 0x48 hex, with R3 mounted on the TIDA-010002 PCB (see Figure 3-1).

The complete modified Demo Application software is available under BSD Clause 3 license as an open source example in Section 5. When using this code project under CCSv8.3 or later the actual temperature reading is printed into the Terminal window, which is displayed in the bottom left in Figure 3-2. The number format in the terminal is two digits before and 4 digits after the decimal point. Thus the string "251328", which is the first data in the COM12 Terminal window, means +25.1328°C.

Note that below 0°C temperature conversion has not been implemented in the text code and must be added by the user.

The code example uses 8 samples averaging with a cycle of 1 second as the default settings for TMP116 to demonstrate the operation of the complete system. The user should adjust the TMP116 settings as appropriate for his specific application.

GUID-9B6A749F-8F4B-4B0B-B28D-CA091B410F61-low.pngFigure 3-2 TIDA-010002 Code Example With Terminal Output in COM12 and EnergyTrace++

The EnergyTrace++Figure 3-2 window on the bottom right shows the activity of the MSP430 peripherals - see vertical blue stripes in the lines eUSCI_A1 and eUSCI_B0.