SLAAES9 March 2025 MSP430FR5043 , MSP430FR6005 , MSP430FR6007 , MSP430FR6043 , MSP430FR6045 , MSP430FR6047
Estimating an accurate absToF in gas means that a temperature sensor is not needed to compute the velocity of sound in gas. In the USS SW Library used in this reference design, the absToF is determined by computing the envelope of the received signal through Hilbert transform. A maximum of the envelope for each capture is first computed. The envelope crossing as a given ratio of this maximum is then determined. The absToF offset is then calculated by the two envelope points crossing the threshold and the threshold line, as shown in Figure 2-3.
Figure 2-3 Hilbert Wide AlgorithmThe UPS and DNS absToF are therefore given by Equation 6.
where:
Typically, this value can range over 150us. The absTOF offset corresponds to the time from the ADC trigger to the envelope crossing a certain ratio (typically chosen to be 50%) of the envelope maximum.