TIDUEJ6A January 2019 – July 2022
Equation 5 gives the signal processing for time of flight.
where
Similarly, let the received signal at transducer 1 (upstream capture), r1(t), be represented by the data vector, see Equation 6.
As an example, for the sampling frequency of fs = 4000 kHz and capture duration of 40 µs, the size of the received data vectors N = 160.
Based on r1 and r2 , a correlation value, corr(k), is calculated as Equation 7.
where
The maximum of the correlation is calculated as Equation 8.
where
These variables are the correlation values at and near the maximum. The real maximum of the correlation is now given by an interpolation (see Equation 9).
The DToF is now given by Equation 10.
For efficient implementation, m is chosen as +1, implying that only three correlations (Z-1, Z0 , and Z+1) are computed most of the time. Figure 3-3 shows the previous relationships.
The correlation-based ToF calculation has been reported in the literature previously, as given in the MSP430FR58xx, MSP430FR59xx, and MSP430FR6xx Family User's Guide. Efficient interpolation techniques are given in the EVM430-FR6043 Hardware Guide. As previously mentioned, for efficiency of implementation, the correlation is only computed over a few points, leading to a low-power implementation.
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. A maximum of the signal for each capture is first computed. The envelope crossing as a given ratio of this maximum is then determined. The absToF is then calculated by a constant offset from this threshold crossing of the envelope, as shown in Figure 3-4 and Equation 11.
The UPS and DNS absToF are given by Equation 11.
where
Typically, this value can range from 35 to 70 µs. The threshold parameters, Tthreshups and Tthreshdns , correspond to the time from the ADC trigger to the envelope crossing a certain ratio (typically chosen to be 20%) of the signal maximum.