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

GetDistance.ino - COM Terminal Input Example

Before the Energia sketch is run, a serial COM terminal should be opened to see the instructions and available command listing for the GetDistance.ino sketch. A two digit hex input with a newline terminator should always be entered for every request from the sketch. For example, to run a COM Ping Test, send "00" through the COM terminal. This sketch allows you to perform a single register read or write (commands 01 and 02), configure the time-of-flight driver and record settings of the MCU (command 03), run a time-of-fight command to print the time-of-flight results of the VOUT ADC capture and/or the O4 Echo Interrupt (command 04), and choose what results to capture and display (command 05).

TUSS4470 energia-getDistance-Results.gifFigure 6. TUSS44x0_Ultrasonic GetDistance.ino Results

The complete TUSS44x0 register listing and values can also be printed for review (command 06).

TUSS4470 energia-getDistance-RegMap.gifFigure 7. TUSS44x0_Ultrasonic GetDistance.ino Registers and Bit Fields