Previous "Instrumentation" competition requirements and design solutions 4
Frequency characteristics tester (1999 C) [1]
Frequency characteristics tester design requirements: Design and produce a frequency characteristics test system, including three parts: test signal source, tested network, detection and display.
(1) Basic requirements
① Make amplitude-frequency characteristic test
a. Frequency range: 100Hz~100kHz;
b. Frequency step: 10Hz;
c. Frequency stability: 10-4;
d. Measurement accuracy: 5%;
e. Automatic step measurement in the full frequency range and specific frequency range, and manual preset measurement range and step frequency value;
f. LED display, frequency display is 5 digits, voltage display is 3 digits, and can be printed out.
② Make a network to be tested
a. Circuit type: RC double T network;
b. Center frequency: 5kHz;
c. Bandwidth: ±50Hz;
d. Calculate the amplitude-frequency and phase-frequency characteristics of the network, and draw the phase curve;
e. Use the amplitude-frequency characteristic tester to test the amplitude-frequency characteristics of the self-made network to be tested.
(2) Development part
① Make a phase-frequency characteristic tester
a. Frequency range: 500Hz~10kHz;
b. Phase degree display: the phase value is displayed in three digits and another digit is used as a symbol display;
c. Measurement accuracy: 3°.
② Use an oscilloscope to display the amplitude-frequency characteristics.
③ Display the amplitude-frequency and phase-frequency characteristics simultaneously on the oscilloscope.
④ Others.
Frequency characteristics tester system design
Frequency characteristics test can be done by impulse response test method and frequency sweep test method. The frequency range required by the design is 100 Hz ~ 100 kHz, which belongs to the frequency range of low-frequency frequency characteristics tester. Both impulse response test method and frequency sweep test method can be used. The design requires the frequency to step by 10 Hz, and the frequency sweep test method with frequency stepping sweep is more convenient to operate.
The frequency sweep test method can use the method of frequency stepping point by point or frequency continuous change to complete the measurement of the entire frequency characteristic. This method does not require the time domain and frequency conversion calculation of the signal, and can be completed by measuring and calculating the analog quantity. In the frequency characteristic tester using the frequency sweep test method, the scanning synchronization control part generates a sawtooth or step-type scanning voltage, synchronously controls the operation of the voltage-controlled oscillator (VCO) and the display part, and synchronously compensates the performance of other parts of the whole machine, such as compensating the amplitude flatness of the frequency sweep signal source.
The frequency sweep signal source generates a sine wave oscillation signal with a frequency change from low to high or from high to low. There are many ways to generate the frequency sweep signal, which can be made into point frequency (continuous wave CW), automatic frequency step (STEP), continuous frequency change (sweep frequency SWEEP) and other forms as needed. The frequency sweep signal can be generated by VCO, and the control amount of VCO uses a ramp voltage or a step voltage. At the same time, the ramp voltage or the step voltage is used as the X-axis scanning voltage of the display to achieve synchronization of the frequency sweep and the curve display.
The measurement and calculation part measures the amplitude and phase of the input and output signals. The amplitude ratio of the output signal to the input signal is calculated to obtain the amplitude-frequency characteristic; the phase difference between the output and the input is calculated to obtain the phase-frequency characteristic. Analyzing only the amplitude-frequency characteristic of the circuit is called scalar analysis, while giving both the amplitude-frequency characteristic and the phase-frequency characteristic is called vector analysis.
There are various forms of displaying the frequency characteristics of a system, such as using graphics and text information display, the most commonly used are amplitude-frequency characteristic curves and phase-frequency characteristic curves. For frequency characteristics, Bode diagrams can also be used, that is, the frequency axis is scaled logarithmically, and the corresponding frequency step (sweep) is taken in geometric series.
The frequency marker generator circuit generates a frequency marker signal and puts a graphic mark on the displayed frequency characteristic curve to indicate the corresponding frequency value at that location.
The frequency characteristic tester can be implemented using a single-chip microcomputer or FPGA.
1. Sweep signal source
The frequency sweep test method includes the frequency sweep signal source, amplitude and phase detection, numerical calculation processing, frequency characteristic curve display, synchronous control and other parts. The circuit design considerations of each part are as follows:
(1) Performance indicators of swept frequency signal source generator: Sweep frequency test requires a sine wave signal. For sine wave signals, the main performance indicators are frequency stability, frequency accuracy, distortion and noise, signal source internal resistance, and output amplitude. When a sine wave signal is used for swept frequency measurement, in addition to the above-mentioned index requirements, other performance indicators to be considered include: swept frequency range, or frequency deviation, swept frequency speed, swept frequency mode, swept frequency linearity, flatness, output dynamic range, and attenuator accuracy. When measuring phase-frequency characteristics, the phase of the signal source should be controlled by preset and easy to measure.
(2) Implementation of frequency sweep signal generator:
a. Voltage controlled oscillator (VCO) form, which can be composed of a dedicated VCO chip or a function generator chip.
b. Phase-locked loop (PLL) frequency synthesizer form.
c. Direct digital synthesizer (DDS) form. DDS can not only synthesize sine waves, triangle waves, square waves and other functional waveforms, but also synthesize various modulation waveforms and waveforms of arbitrary shapes, as long as the required waveform is pre-calculated and stored in the waveform memory. This method can be used to make an arbitrary waveform generator (AWG). The phase of the DDS signal can be controlled very accurately, which is very important when measuring phase-frequency characteristics. At present, the highest clock frequency of dedicated DDS integrated circuit chips can reach more than 1 GHz, and the achievable signal source sine wave frequency can reach more than hundreds of MHz.
d. DDS + PLL frequency synthesizer: The DDS + PLL frequency synthesizer uses two DDSs. DDS1 is used as a frequency divider to directly change the frequency of the reference oscillator. DDS2 is used as a loop frequency divider of the frequency synthesizer to achieve small frequency steps. As a frequency divider, the upper limit of the operating frequency of DDS cannot be too high. Therefore, before the DDS frequency division, it first undergoes a 2N frequency division. PLL + DDS frequency synthesizer can use dedicated chips such as AD9858.
2. Amplitude measurement circuit design
The commonly used detection methods for amplitude measurement are peak detection and effective value detection.
(1) Effective value detection circuit: The effective value detection circuit can use a dedicated effective value detection circuit chip to achieve accurate RMS detection, such as the RMS-DC converter chip MX536A/MX636.
(2) Peak detection circuit: An active peak detection circuit is composed of an OP and a diode. The capacitor C used to maintain the peak voltage should take a corresponding value according to the bandwidth of the signal to be detected, and generally should not be too large. After completing a peak detection, the discharge switch tube is turned on to clear the charge on C, and then the next measurement is performed. Each measurement should be performed when the network reaches a steady-state output and should include at least one peak cycle. Therefore, the measurement speed varies with the network bandwidth and the excitation frequency.
The DC analog voltage obtained by the above two analog detection circuits needs to be converted into a digital quantity through an A/D converter for digital display.
3. Phase measurement circuit design
The measurement of phase-frequency characteristics is achieved by measuring the phase difference between the output and input signals of the network. It can also be divided into two types: analog circuit measurement method and digital measurement method.
(1) Analog measurement method: Use a zero-crossing voltage comparator to shape the input and output sine waves into square waves and send them to a phase detector for phase detection. The phase detector circuit consists of an XOR gate and a low-pass filter. The output of the XOR gate is a pulse square wave, and its duty cycle is proportional to the phase difference between the two signals. After passing through a low-pass filter, the duty cycle can be converted into a DC voltage, and after A/D conversion, the microcontroller reads the phase difference value. This value represents the relative phase difference between the two waveforms, but it cannot distinguish whether the phase relationship between the two is leading or lagging. For this purpose, a phase polarity discrimination circuit must be added.
(2) Digital method: The phase difference can be measured directly by using digital circuit technology to measure the output pulse width. The design requires that the phase measurement accuracy reaches 3° at 10 kHz, and the corresponding pulse width is about 1μs. General digital circuits can meet this counting speed requirement. The counting and frequency measurement functions in the microcontroller can also be used to complete this task. The specific method is to directly use the edges of the two square wave signals after shaping as the two interrupt sources of the microcontroller and measure the time interval between the two interrupts. This method requires the microcontroller clock frequency to be high enough.
|