O Introduction
The design of analog filters generally includes two aspects: determining the filter transfer function H(s) based on the technical indicators, i.e. the amplitude-frequency characteristics of the filter; and designing the actual network to implement this transfer function. The key to designing the filter H(s) is to find an approximation function, and there are currently many approximation functions. However, no matter which approximation function is used, very tedious calculations are required, and a table lookup is required based on the calculation results.
Matlab is a simple and efficient high-level language. It is a rich and powerful analysis tool. Its application covers almost all scientific and engineering computing fields. Matlab provides a wealth of functions for analog filter design. Through programming, it is easy to realize low-pass, high-pass, band-pass, and band-stop filters, and can draw the amplitude-frequency and phase-frequency characteristic curves of the filter, which greatly simplifies the design of analog filters. This paper introduces the design and implementation of a distortion-free analog filter using Matlab, and gives the simulation results of the amplitude-frequency and phase-frequency characteristics and the eye diagram after the signal passes through the distortion-free filter.
1 Distortionless filter design based on Matlab
Design requirements: A digital baseband signal with a frequency of 8 kHz is converted into an analog signal through digital/analog (D/A) conversion. The analog signal is input into the distortion-free filter, and the attenuation is required to be ~6 dB at 8 kHz; after 16 kHz (cut-off frequency), the attenuation reaches more than -60 dB. The purpose of this is to suppress harmonic interference and reduce the fluctuation of the waveform after the cut-off frequency after the analog signal passes through the distortion-free filter.
The distortion-free filter consists of three parts, namely, low-pass filter, band-stop filter and phase shift circuit. The low-pass filter is used to pass low-frequency signals within 8 kHz; the band-stop filter is used to suppress 16 kHz signals. After being cascaded with the previous low-pass filter, it can make the attenuation of the signal after 16 kHz reach more than 60 dB, effectively suppressing the interference of each harmonic and reducing the fluctuation of the waveform after 16 kHz; the phase shift circuit is used to compensate for the phase offset of the previous two circuits, so that the phase characteristic of the entire distortion-free filter becomes a straight line.
1.1 Low-pass filter design
The low-pass filter uses a Butterworth filter because it has a relatively flat amplitude-frequency characteristic and a good linear phase-frequency characteristic, and is often used as the primary of the filter. In Matlab, the [b, a] = butter(n, wn, 's') statement is used to implement the design of the Butterworth filter. Among them, [6, a] are the coefficients of the filter transfer function polynomial; n is the order of the filter; wn is the angular frequency at 3 dB; 's' represents the analog filter.
In this design, an 8th order Butterworth filter is used, and the frequency at -3 dB is 8 kHz. The main procedures are as follows:
Finally, the amplitude-frequency and phase-frequency characteristics of the low-pass filter are plotted as shown in Figure 1(a). The actual circuit uses the Max291 chip to implement the Butterworth filter, which is equivalent to an 8th-order Butterworth filter, as shown in Figure 1(b).
1.2 Band-stop filter design
The function of a band-stop filter (also known as a notch filter) is to suppress a certain frequency signal and pass other frequency signals. In Matlab, the statement [b, a] = butter (n, Wn, 'stop', 's') is used to implement a band-stop filter, where [b, a] are the coefficients of the filter transfer function polynomial; n is the order of the filter; wn = [fl*2*pi fu*2*pi] are the angular frequencies at the lower end of the stop band - 3 dB and the upper end - 3 dB; 's' represents the analog filter. The main program is as follows:
Similar to the amplitude-frequency and phase-frequency characteristics of the low-pass filter, the amplitude-frequency and phase-frequency characteristics of the band-stop filter are shown in Figure 2(a). In this design, the actual circuit uses a VCVS type second-order band-stop filter as shown in Figure 2(b). The values of resistors R1, R2, R3, and capacitor C1 need to be determined, and their calculation formulas can be obtained through Matlab programming, and finally the corresponding nominal values are selected according to the calculation results.
1.3 Cascade of low-pass filter and band-stop filter
Cascade the low-pass and band-stop filters designed previously so that the amplitude-frequency characteristics of the circuit after cascading can meet the design requirements, that is, the attenuation at 8 kHz is -6 dB; the attenuation after 16 kHz (cut-off frequency) reaches more than -60 dB. If the requirements cannot be met, the Q value in the band-stop filter is continuously modified according to the simulation results until the design requirements are met. In Matlab, the conv function is used to realize the cascade of the two circuits. The main program is as follows:
b3 and a3 are the polynomial coefficients of the transfer function after the low-pass and band-stop filters are cascaded. Similar to the amplitude-frequency and phase-frequency characteristics of the low-pass filter, the amplitude-frequency and phase-frequency characteristics of the cascade circuit are shown in Figure 3. It can be seen that when Q is 0.7, the amplitude-frequency characteristic meets the design requirements, but the phase-frequency characteristic is not a straight line within 8000-Hz. In order to prevent the output signal from being distorted, a phase shift filter must be added to make the total phase shift characteristic a straight line.
1.4 Phase-shift filter design and phase-frequency characteristics of distortion-free filters
In this design, a first-order inverting gain all-pass filter circuit is used, and its transfer function is:
The circuit diagram is shown in Figure 4. The low-pass, band-stop, and phase-shift circuits are cascaded to form a distortion-free filter. In Matlab, the phase-frequency characteristic curve of the phase-shift and distortion-free filter can be obtained by programming.
The main procedures are as follows:
%b, a are the transfer function polynomial coefficients of the distortion-free filter, where b3, a3 are the transfer function polynomial coefficients after the low-pass and band-stop filters are cascaded. The final phase curve is shown in Figure 5. It can be seen that the phase-frequency characteristic of the distortion-free filter is a straight line.
The actual circuits of each part are cascaded to obtain the actual circuit of the distortion-free filter. The input analog signal and output signal eye diagram of the distortion-free filter are shown in Figure 6. As can be seen from the figure, the eye diagram trace is clear. The eyes are large and straight, and the intersections between the eyes are clear. This shows that the amplitude-frequency and phase-frequency characteristics of the distortion-free filter are good and can meet the design requirements.
2 Conclusion
Using Matlab to design analog filters is simple and convenient, and avoids complex calculations and table lookups. Through simulation, the frequency response curve after parameter modification can be intuitively seen. This design can meet the requirements of system design, avoid the trouble of repeated adjustment of hardware circuits, and greatly improve work efficiency. Matlab can not only be used for the design of analog filters, but also for the design of digital filters such as FIR and IIR. It is a very powerful tool in filter design.
Previous article:Rapid evaluation of power VDMOS reliability based on Arrhenius model
Next article:Design and Generation of Optimal Circuit Test Sets Based on BP Neural Network
Recommended ReadingLatest update time:2024-11-16 20:27
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- TI's GaN technology brings half the size and double the power to machines
- MSP430F149 MCU Control Stepper Motor C Language Example
- Design of high frequency AC signal sampling circuit
- [RVB2601 Creative Application Development] 5 Display letters AB at the same time, and eliminate them by long pressing and short pressing
- How to quickly test the continuity and sequence of wire harnesses using the ATX-100S wire harness tester?
- [FreeRTOS check-in station 5 opens] Interrupts and task switching, closing time is August 26
- How do satellite communications work from space?
- Important considerations in smart speaker design: pros and cons of design
- Domestic core TLSR8285 / TLSR8278 multi-protocol wireless chip
- Definition of priority order of MSP430 microcontroller interrupts