In ultrasonic instruments, a measurement often depends on accurately determining how long an acoustic signal takes to travel through a medium or return from a target. Matched-filter ultrasonic sensing can improve the reliability of that time-of-flight (TOF) estimate by detecting a known transmit pattern within noisy received data. For automation engineers and system designers, the approach links transducer selection, signal acquisition, and digital processing into one measurement chain.
Why time-of-flight accuracy matters
An ultrasonic transmitter sends an acoustic pulse, and a receiver detects energy that has traveled through a medium or reflected from a target. In a ranging application, the measured delay is the round-trip travel time; range is calculated from that delay and the speed of sound. In flow measurement, upstream and downstream travel times can be compared, with their difference used to calculate the speed of a liquid or gas.
The quality of these measurements depends in part on how clearly the receiver can distinguish the wanted signal from noise. A weak or ambiguous return makes it harder to locate the signal’s arrival time precisely. Matched filtering addresses this challenge by using knowledge of the transmitted waveform during reception and processing.
How matched-filter ultrasonic sensing works
The receiver compares incoming samples with a reference pattern corresponding to the transmitted signal. In signal-processing terms, it applies a filter matched to that waveform. When the received signal contains the expected pattern, the filter output produces a correlation peak. The timing of that peak provides an estimate of the signal’s TOF.
This operation is useful because the filter combines signal energy across the duration of the transmitted waveform. When the reference pattern is aligned with the received signal, the desired signal adds coherently in the output, while uncorrelated noise does not produce the same concentrated response. The result is improved signal-to-noise ratio at the detection point.
A matched filter is also a form of convolution: the known transmit pattern is used as the filter coefficients, and the received data is processed against it. A typical receiver then estimates the signal envelope, finds a peak, and refines its position—for example, through curve fitting—to estimate TOF more precisely than simply selecting a coarse sample location.
Pulse compression and waveform choices
Some sonar and radar applications must distinguish targets that are close together while also maintaining adequate detection range. Short pulses can improve separation in time, but they require wider system bandwidth. Increasing transmitted energy can support detection, yet transmitter power may also be constrained. Pulse compression provides a way to balance these requirements.
With pulse compression, the transmitted signal is modulated according to a phase or frequency pattern across a longer pulse interval. The receiver recognizes that pattern and produces a narrower correlation peak. A longer transmitted pulse can carry energy over more time, while the compressed response supports finer timing resolution. The achievable resolution depends on the waveform’s autocorrelation and, in general, its bandwidth.
A linear frequency sweep, or chirp, is one pulse-compression waveform. Other ultrasonic applications—including flow and liquid-level measurement—may use square-wave pulses with narrow-band ceramic transducers. In that case, the drive frequency must match the transducer’s resonant frequency. Waveform selection therefore depends on the sensing task, transducer characteristics, and the TOF information the application needs.
Building the acquisition and processing chain
A matched-filter sensing system needs more than a digital filter. Its transmit path must generate the selected excitation pattern and drive the transducer. The receive path must amplify and digitize the returning signal, move samples into memory, and process them using the reference pattern. The system then extracts a TOF estimate from the filter output.
The MSP430FR6047 combines an Ultrasonic Sensing Solution (USS) subsystem with a Low-Energy Accelerator (LEA) to support this type of single-chip implementation. The USS handles key acquisition tasks:
- Generating excitation pulses and driving the transmit transducer.
- Amplifying and filtering the received transducer signal.
- Converting the analog signal into digital samples.
- Transferring samples into memory and notifying the CPU when data is ready.
Within the USS, the acquisition sequencer coordinates measurement timing, including pulse generation and signal acquisition. This allows the configured sequence to run without CPU intervention during the measurement itself. The design can keep the CPU in a low-power mode while the sequence runs, then signal it when acquisition is complete.
The MSP430FR6047 implementation described in the technical material supports square-wave excitation for narrow-band ceramic transducers. Its pulse generator does not dynamically change pulse frequency. This limitation matters when selecting a transducer and defining the measurement approach; the implementation should not be assumed to support every waveform or wide-band sensing method.
Using an accelerator for matched filtering
After acquisition, the received samples must be correlated with the reference waveform. The LEA is designed for vector and signal-processing operations, including finite impulse response (FIR) filtering. Because matched filtering is equivalent to FIR convolution using the reference signal as coefficients, an FIR operation can perform the core calculation. For larger data sets, FFT-based convolution may also be considered.
The LEA can also support related processing steps, such as constructing an envelope, locating a peak, and refining its position through curve fitting. It operates independently of the CPU but uses the system clock and shared memory. Implementers must coordinate memory use: during a direct transfer of ADC samples into LEA RAM, other bus masters cannot access that RAM.
A practical processing sequence is to configure the acquisition and data transfer, run the measurement, apply the reference-pattern filter, and then estimate the peak’s timing. Separating these stages helps teams reason about timing, memory ownership, and where the CPU needs to participate.
Design implications for automation systems
Matched filtering is most valuable when the application can define a repeatable transmit pattern and use the same pattern as a receiver reference. Designers should evaluate the transducer’s resonance, pulse characteristics, acquisition timing, sample handling, and the required TOF resolution together. Hardware sequencing and signal-processing acceleration can reduce CPU involvement, but they do not remove the need to configure and validate the full measurement chain.
For flow meters and other ultrasonic instruments, the practical benefit is a structured way to extract a timing estimate from noisy received data. By matching the receiver to the transmitted waveform—and coordinating acquisition, convolution, and peak estimation—design teams can build a more deliberate TOF measurement process around the needs and constraints of their application.