TIDUEJ6A January 2019 – July 2022
The ultrasonic gas-flow meter application included in this reference design is provided in source code to let developers customize it according to their needs. Although developers can customize the functionality and behavior of the application as needed, the most common customizations are:
Although the Design Center GUI lets developers modify different ultrasonic configuration parameters, as described in Section 3.1.2.4, the application includes source code of configuration files, which can be modified to customize the default configuration of the system.
The application is designed in a modular way, including a hardware abstraction layer (HAL) to encapsulate hardware interactions. This feature allows for easier customization of different hardware requirements from developers and an easier migration between TI platforms.
The library includes proprietary algorithms, which are used to process captured ADC waveforms and obtain flow rate information. However, it is possible for developers to implement custom algorithms to add a proprietary IP or attempt to optimize the performance of the system.
The application supports several features that can be enabled, disabled, or customized by developers. Table 4-1 lists the features.
Feature | Description | Definitions |
---|---|---|
Resonator calibration | The application periodically calibrates the resonator using the 32-kHz crystal as a reference. The resulting value is used as a correction term for ToF calculations. | USS_APP_RESONATOR_CALIBRATE |
USS_APP_RESONATOR_CALIBRATE_INTERVAL | ||
Automatic gain control | The application periodically calculates the optimal gain setting. | USS_APP_AGC_CALIBRATE |
USS_APP_AGC_CALIBRATE_INTERVAL | ||
DC offset cancellation | The application calculates and cancels the DC offset of the captured ADC signals. | USS_APP_DC_OFFSET_CANCELLATION |
USS_APP_DC_OFFSET_CANCELLATION_INTERVAL |
Application Software (SW) for MSP430FR6043-Based Ultrasonic Gas Flow Meter describes application customization in more detail.