SLAA941 March 2020 TUSS4440 , TUSS4470
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:
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.