SLAA941 March   2020 TUSS4440 , TUSS4470

 

  1.   TUSS44x0 Software Development Guide
    1.     Trademarks
    2. 1 Introduction to High-Level Software Flow
    3. 2 Main Energia Sketch File
      1. 2.1 MCU Initialization
      2. 2.2 TUSS44x0 Configuration
        1. 2.2.1 TUSS44x0 Odd Parity Calculation
        2. 2.2.2 TUSS44x0 Settings
          1. 2.2.2.1 Driver Settings
          2. 2.2.2.2 Receiver Settings
      3. 2.3 Read Ultrasonic Time-of-Flight
        1. 2.3.1 Run Time-of-Flight
        2. 2.3.2 Post-Process Data
        3. 2.3.3 Convert Time-of-Flight to Distance
    4. 3 Energia Examples
      1. 3.1 GetDistance.ino - COM Terminal Input Example
      2. 3.2 VOUT_ADC_Capture.ino - Standalone Example
    5. 4 References

Introduction to High-Level Software Flow

The TUSS44x0 device can only be operated as a slave device and must be paired with an external microcontroller unit (MCU), which acts as the master device. The master device is responsible for the initialization, configuration, and regular polling operation of the TUSS44x0 device. Figure 1 shows the high-level overview of the software flow for standard TUSS44x0 operation. There are three main components of the software flow:

  • The main Energia sketch file
  • The TUSS44x0 header and driver files
  • The master controller header and driver files

After master controller initialization, the program of the main file loops the routine shown in Figure 1 to report the ultrasonic time-of-flight result based on the response from the TUSS44x0 device. For the purpose of this guide, the TUSS44x0-specific code is referenced from the TUSS44x0 Energia IDE library package containing the GetDistance.ino, TUSS44x0_Ultrasonic.cpp and TUSS44x0_Ultrasonic.h files. The master controller used in this example is the MSP430F5529 MCU on the MSP-EXP430F5529LP platform. The TUSS44x0 EVM hardware (BOOSTXL-TUSS44x0) is used to demonstrate the operation of the software.

TUSS4470 HighLevelSWFlow.gifFigure 1. High-Level Software Flowchart for TUSS44x0 Operation