A high-pass filter (HPF) is an electronic filter that passes signals with a frequency higher than a certain cutoff frequency and attenuates signals with frequencies lower than the cutoff frequency. The amount of attenuation for each frequency depends on the filter design. A high-pass filter is usually modeled as a linear time-invariant system. It is sometimes called a low-cut filter or bass-cut filter in the context of audio engineering. High-pass filters have many uses, such as blocking DC from circuitry sensitive to non-zero average voltages or radio frequency devices. They can also be used in conjunction with a low-pass filter to produce a band-pass filter. In the optical domain filters are often characterised by wavelength rather than frequency. High-pass and low-pass have the opposite meanings, with a "high-pass" filter (more commonly "short-pass") passing only shorter wavelengths (higher frequencies), and vice versa for "low-pass" (more commonly "long-pass").
Description In electronics, a filter is a two-port electronic circuit which removes frequency components from a signal (time-varying voltage or current) applied to its input port. A high-pass filter attenuates frequency components below a certain frequency, called its cutoff frequency, allowing higher frequency components to pass through. This contrasts with a low-pass filter, which attenuates frequencies higher than a certain frequency, and a bandpass filter, which allows a certain band of frequencies through and attenuates frequencies both higher and lower than the band. In optics a high pass filter is a transparent or translucent window of colored material that allows light longer than a certain wavelength to pass through and attenuates light of shorter wavelengths. Since light is often measured not by frequency but by wavelength, which is inversely related to frequency, a high pass optical filter, which attenuates light frequencies below a cutoff frequency, is often called a short-pass filter; it attenuates longer wavelengths.
Continuous-time circuits
First-order passive
A resistor and either a capacitor or an inductor can be configured as a first-order high-pass filter. The simple first-order capacitive high-pass filter shown in Figure 1 is implemented by placing an input voltage across the series combination of a capacitor and a resistor and using the voltage across the resistor as an output. The transfer function of this linear time-invariant system is:
Vout(s)Vin(s)=sRC1+sRC. The product of the resistance and capacitance (R×C) is the time constant (τ); it is inversely proportional to the cutoff frequency fc, that is,
fc=12πτ=12πRC, where fc is in hertz, τ is in seconds, R is in ohms, and C is in farads. At the cutoff frequency, the filter's frequency response reaches -3dB referenced to the gain at an infinite frequency.
First-order active
Figure 2 shows an active electronic implementation of a first-order high-pass filter using an operational amplifier. The transfer function of this linear time-invariant system is:
Vout(s)Vin(s)=−sR2C1+sR1C. In this case, the filter has a passband gain of −R2/R1 and has a cutoff frequency of
fc=12πτ=12πR1C, Because this filter is active, it may have non-unity passband gain. That is, high-frequency signals are inverted and amplified by R2/R1.
All of these first-order high-pass filters are called differentiators, because they perform differentiation for signals whose frequency band is well below the filter's cutoff frequency.
Higher orders Filters of higher order have steeper slope in the stopband, such that the slope of nth-order filters equals 20n dB per decade. Higher order filters can be achieved simply by cascading these first order filters. While impedance matching and loading must be taken into account when chaining passive filters, active filters can be easily chained because the signal is restored by the output of the op amp at each stage. Various filter topologies and network synthesis filters for higher orders exist, which ease design.
Discrete-time realization
Discrete-time high-pass filters can also be designed. Discrete-time filter design is beyond the scope of this article; however, a simple example comes from the conversion of the continuous-time high-pass filter above to a discrete-time realization. That is, the continuous-time behavior can be discretized. From the circuit in Figure 1 above, according to Kirchhoff's Laws and the definition of capacitance:
{Vout(t)=I(t)R(V)Qc(t)=C(Vin(t)−Vout(t))(Q)I(t)=dQcdt(I) where Qc(t) is the charge stored in the capacitor at time t. Substituting Equation (Q) into Equation (I) and then Equation (I) into Equation (V) gives:
Vout(t)=C(dVindt−dVoutdt)⏞I(t)R=RC(dVindt−dVoutdt) This equation can be discretized. For simplicity, assume that samples of the input and output are taken at evenly spaced points in time separated by ΔT time. Let the samples of Vin be represented by the sequence (x1,x2,…,xn), and let Vout be represented by the sequence (y1,y2,…,yn) which correspond to the same points in time. Making these substitutions:
yi=RC(xi−xi−1ΔT−yi−yi−1ΔT) And rearranging terms gives the recurrence relation
yi=RCRC+ΔTyi−1⏞Decaying contribution from prior inputs+RCRC+ΔT(xi−xi−1)⏞Contribution from change in input That is, this discrete-time implementation of a simple continuous-time RC high-pass filter is
yi=αyi−1+α(xi−xi−1)whereα≜RCRC+ΔT By definition, 0≤α≤1. The expression for parameter α yields the equivalent time constant RC in terms of the sampling period ΔT and α:
RC=ΔT(α1−α). Recalling that
fc=12πRC so RC=12πfc then α and fc are related by:
α=12πΔTfc+1 and
fc=1−α2παΔT. If α=0.5, then the RC time constant equal to the sampling period. If α≪0.5, then RC is significantly smaller than the sampling interval, and RC≈αΔT.
Algorithmic implementation The filter recurrence relation provides a way to determine the output samples in terms of the input samples and the preceding output. The following pseudocode algorithm will simulate the effect of a high-pass filter on a series of digital samples, assuming equally spaced samples:
// Return RC high-pass filter output samples, given input samples, // time interval dt, and time constant RC function highpass(real[1..n] x, real dt, real RC) var real[1..n] y var real α := RC / (RC + dt) y[1] := x[1] for i from 2 to n y[i] := α × y[i−1] + α × (x[i] − x[i−1]) return y
The loop which calculates each of the n outputs can be refactored into the equivalent:
… excerpt ends here. Continue reading the full article.





