Scale _Exponent
if (t Time_Offset)
Output Input;
else
Output (Input Noise_Level) ;
18
PGA460-Q1
ZHCSFZ7B –FEBRUARY 2017 –REVISED JANUARY 2019
www.ti.com.cn
版权 © 2017–2019, Texas Instruments Incorporated
7.3.4.1 Ultrasonic Echo—Band-Pass Filter
The ultrasonic echo signal is an amplitude-modulated signal with an underlying carrier frequency equal to the
drive frequency of the ultrasonic transducer. The DSP band-pass filter block allows the frequencies outside of the
observed frequency band to be filtered out and therefore reducing the amount of noise influencing the ultrasonic
echo signal.
The center frequency of the filter is automatically adjusted based on the driving frequency set by the FREQ bit
while the bandwidth of the filter can be adjusted from 2 kHz to 8 kHz in steps of 2 kHz by setting the BPF_BW bit
in the INIT_GAIN EEPROM register.
The band-pass filter is a second-order Butterworth IIR type filter. On power up, the PGA460-Q1 device calculates
the coefficients and places them in the BPF_A2_xSB, BPF_A3_xSB, and BPF_B1_xSB registers. These
registers can be overwritten by the user to reconfigure the filter. However, if the FREQ or BPF_BW bit is
changed, the coefficient calculation sequence is rerun and the device rewrites these registers. In case the
FREQ_SHIFT bit is set to 1 (80- to 480-kHz driving frequency range), the band-pass filter coefficients are not
calculated automatically by the PGA460-Q1 device. In this case the MCU is required to write these values
through the UART or USART interface.
7.3.4.2 Ultrasonic Echo–Rectifier, Peak Hold, Low-Pass Filter, and Data Selection
The rectifier, peak extractor, and low-pass filter DSP blocks demodulate the echo signal while outputting a base-
band representation to be compared against the programmed thresholds. These blocks are defined as:
Rectifier This block outputs the absolute value of the input signal since the input signal can be positive and
negative in amplitude.
Peak hold This block holds the peak value of the rectified signal for a specific amount of time required for the
low-pass filter to detect the peak amplitude of the signal.
Low-pass filter (LPF) This block removes any noise artifacts from the echo signal. The LPF is realized as a
first-order IIR type filter. The user can set the cutoff frequency by setting the LPF_CO bit in
CURR_LIM_P2 register from 1 kHz to 4 kHz with a step of 1 kHz.
On power up the PGA460-Q1 device calculates the values of the filter coefficients and places them in the
LPF_A2_xSB and LPF_B1_xSB registers, respectively. The user can overwrite the values in these registers and
reconfigure the filter. In this case, the PGA460-Q1 device does not take any action. However, if the LPF_CO bit
is changed, the coefficient calculation sequence must be rerun and the device repopulates these registers.
7.3.4.3 Ultrasonic Echo—Nonlinear Scaling
The nonlinear scaling block in the DSP data path provides exponential scaling (digital nonlinear amplification) for
the echo signal to achieve a higher SNR. This feature is useful for detecting long distance object where the
amplitude of the echo signal is very attenuated and close to the noise floor.
The nonlinear scaling block performs the following algorithm:
where
• t is the current record time.
• Time_Offset is set by the SCALE_N parameter and is used to select one of the time points corresponding to
threshold points, TH9, TH10, TH11, or TH12 defined in the Ultrasonic Echo—Threshold Data Assignment
section.
• Scale_Exponent is the nonlinear exponent (1.5 or 2) and defined by the SCALE_K bit.
• Noise_Level is the user-set noise level between 0 and 31 in 1 LSB step and defined by the NOISE_LVL bit. (3)
The SCALE_N, SCALE_K, and NOISE_LVL bits are EEPROM parameters in the DSP_SCALE register.