A kind of digitlization automatic level control method
Technical field
The invention belongs to signal source field, be specifically related to a kind of digitlization automatic level control method.
Background technology
At universal signal source domain, the amplitude of General Requirements output signal meets certain accuracy, in order to realize the accurate control to power output, use automatic electric-level control technology, to guarantee the accuracy of power output.Automatic electric-level control technology is a kind of common method of automatic, accurate control signal amplitude, and it directly has influence on the power characteristic of signal source output signal, indexs such as precision and stability.At universal signal source domain, traditional analog automatic electric-level control loop is generally comprised of power monitoring circuit, power comparison circuit and control voltage forming circuit, and loop block diagram as shown in Figure 1.
As shown in Figure 1, power monitoring circuit, comprises coupler, wave detector and logarithmic amplifier, for completing the analog monitoring function to power signal; Power comparison circuit comprises with reference to DAC and comparator, for completing the comparing function to monitoring power and calibration power; Control voltage forming circuit and comprise integrator and driver, for completing the formation of final control voltage.
Wherein, in wave detector, detecting circuit is generally comprised of detector diode, and its output voltage is different with the level of input signal, presents obvious interval characteristic, when small-signal and input voltage be square-law characteristic, during large-signal and input voltage be linear characteristic.As shown in Figure 2.Therefore, logarithmic amplification circuit need to be set conventionally to carry out number conversion detecting circuit, make voltage and power (dBm) after conversion linear, could be by the reference level comparison after this voltage and DAC conversion, and then result is relatively carried out to integration, the voltage producing removes the electric current of amplitude of accommodation controller through driver, realize the object of power controlling of amplitude.In order to realize logarithmic amplification circuit, in whole simulated power interval, normally work, generally also need to increase the compensation that compensating circuit is realized high-power logarithm flex point and low-level detection biasing.
Adopt traditional analog automatic level control method, circuit more complicated, debugging work load is large, the loop stability time is longer, is mainly manifested in:
1) traditional analog automatic level control method is in order to make power-level detector corresponding in proportion with reference level, need to add logarithmic amplification, compensating circuit, in links such as the comparison with reference level and integrations, also use analog circuit, whole system hardware circuit is comparatively complicated, cost is higher, higher to hardware circuit specification requirement;
2) traditional analog automatic level control method is normally worked in whole simulated power interval in order to realize logarithmic amplification circuit, need to increase logarithm flex point and detection bias compensation, linear characteristic when being convenient to two ends between regulatory region and being large-signal and small-signal input, therefore the otherness for every complete machine all needs manually to debug, process is comparatively loaded down with trivial details, affects the operating efficiency of system debug;
3) traditional analog automatic level control method removes the comparative result with reference level the linear modulation voltage of conditioning signal path by analog integration link, according to the difference of integration bandwidth, the response speed of controlling voltage is different, generally in μ s level, has affected the stabilized speed of final power.
Summary of the invention
For the above-mentioned technical problem existing in prior art, the present invention proposes a kind of digitlization automatic level control method, by simple hardware circuit design, can realize the accurate output in certain power bracket to universal signal source and control.
To achieve these goals, the present invention adopts following technical scheme:
A digitlization automatic level control method, comprises digitlization automatic level control circuit, and described digitlization automatic level control circuit comprises wave detector, ADC change-over circuit, FPGA circuit, DAC change-over circuit and driver; Described digitlization automatic level control method, adopts following level to control step:
S1, the signal being produced by signal source output circuit enter wave detector, and produce detecting circuit;
The detecting circuit producing in S2, step S1 enters ADC change-over circuit, carries out ADC sampling processing and becomes digital signal;
The digital signal producing in S3, step S2 enters FPGA circuit, in FPGA circuit, described digital signal is amplified and logarithm operation, obtain with FPGA circuit in the linear voltage value of the power-reference voltage numerical value stored, and this voltage value and power-reference voltage numerical value are directly compared, the result after is relatively through ratio conversion process;
Result in S4, step S3 after ratio conversion process enters DAC change-over circuit, converts analog control voltage to;
The analog control voltage obtaining in S5, step S4 feeds back in signal source output circuit through driver, realizes signal source output circuit is carried out to power controlling of amplitude.
Further, above-mentioned signal source output circuit comprises amplitude controller, signal conditioning circuit, coupler and digitlization automatic level control circuit; Input signal obtains output signal successively after amplitude controller, signal conditioning circuit and coupler;
In described step S1, the output signal being produced by coupler enters wave detector, and produces described detecting circuit;
In described step S5, described analog control voltage arrives amplitude controller through driver, by the electric current of amplitude of accommodation controller, realizes power controlling of amplitude.
Compared with prior art, tool of the present invention has the following advantages:
1) digitlization automatic level control method in the present invention, adopt FPGA circuit and coordinate ADC change-over circuit and DAC change-over circuit, can realize in traditional analog control circuit to number conversion, compensation, reference voltage generation and comparison and integrating function, reduced design cost and the complexity of digitlization automatic level control circuit;
2) digitlization automatic level control method in the present invention, owing to not needing to carry out the logarithm compensation operation in analog control circuit, has therefore reduced manual debugging work load, has improved the operating efficiency of system debug;
3) digitlization automatic level control method in the present invention, producing the link of analog control voltage, owing to not needing integral operation, as long as A/D and D/A clock speed meet the demands, can realize than analog control circuit stabilized speed faster.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of traditional analog automatic level control circuit;
Fig. 2 is diode detection characteristic schematic diagram;
Fig. 3 is the structured flowchart of digitlization automatic level control circuit in the present invention;
Fig. 4 is the FB(flow block) of digitlization automatic level control method in the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the present invention is described in further detail:
Basic thought of the present invention is: by the specificity analysis to simulated power observation circuit output signal, a kind of digitlization automatic level control method is proposed, except front end detection, ADC change-over circuit and rear end analog control circuit, all the other links are carried out digitized processing by FPGA circuit, can effectively reduce cost and the technical complexity of automatic level control circuit, be beneficial to the operating efficiency that improves system debug.
Concrete, shown in Fig. 3, signal source output circuit, comprises amplitude controller, signal conditioning circuit, coupler and digitlization automatic level control circuit.
Digitlization automatic level control circuit, comprises wave detector, ADC change-over circuit, FPGA circuit, DAC change-over circuit and driver.Input signal obtains output signal successively after amplitude controller, signal conditioning circuit and coupler.
The output of coupler is connected with the input of wave detector, and the output of driver is connected with the input of amplitude controller.
The output signal being produced by coupler enters wave detector and produces detecting circuit, the detecting circuit producing enters ADC change-over circuit and carries out ADC sampling, be processed into digital signal and send to FPGA circuit, in FPGA circuit, this digital signal is amplified and logarithm operation, obtain with FPGA circuit in the linear voltage data of the power-reference voltage data of storing, then this voltage data and power-reference voltage data are directly compared, result relatively enters DAC change-over circuit and converts analog control voltage to after ratio conversion, analog control voltage feeds back on amplitude controller through driver, by the electric current of amplitude of accommodation controller, realize power controlling of amplitude.
In digitlization automatic level control circuit of the present invention, detecting circuit is without simulation logarithmic transformation circuit, but directly by ADC change-over circuit, convert digital signal to, then this digital signal is carried out to logarithm operation, thereby obtain the voltage linear with power-reference voltage, and do not need the analog compensation circuits such as logarithm flex point and detection biasing; In addition, at the comparing element with power-reference voltage, all adopt digital simulation technique, not simulation generative circuit and the hardware comparison circuit of required power reference voltage; In the generation link of analog control voltage, directly adopt simple DAC change-over circuit, do not need integrating circuit.The design of above structure, has simplified design cost and the complexity of automatic level control circuit greatly.
Shown in Fig. 4, a kind of digitlization automatic level control method, adopts above-mentioned digitlization automatic level control circuit.Concrete, digitlization automatic level control method, comprises following level control step:
S1, the signal being produced by signal source output circuit enter wave detector, and produce detecting circuit;
The detecting circuit producing in S2, step S1 enters ADC change-over circuit, carries out ADC sampling processing and becomes digital signal;
The digital signal producing in S3, step S2 enters FPGA circuit, in FPGA circuit, described digital signal is amplified and logarithm operation, obtain with FPGA circuit in the linear voltage data of the power-reference voltage data of storing, and this voltage data and power-reference voltage data are directly compared, the result after is relatively through ratio conversion process;
Result in S4, step S3 after ratio conversion process enters DAC change-over circuit, converts analog control voltage to;
The analog control voltage obtaining in S5, step S4 feeds back in signal source output circuit through driver, and signal source output circuit is carried out to power controlling of amplitude, has realized the accurate output in certain power bracket to universal signal source and has controlled.
In step S1, the output signal being produced by coupler enters wave detector and produces described detecting circuit;
In step S5, analog control voltage arrives amplitude controller through driver, by the electric current of amplitude of accommodation controller, realizes power controlling of amplitude.
Digitlization automatic level control method in the present invention, owing to not needing to carry out the logarithm compensation operation in analog control circuit, has therefore reduced manual debugging work load, has improved the operating efficiency of system debug; In addition, producing the link of analog control voltage, owing to not needing to carry out the integral operation in analog control circuit, as long as A/D and D/A clock speed meet the demands, can realize than analog control circuit stabilized speed faster.
Certainly; more than explanation is only preferred embodiment of the present invention; the present invention is not limited to enumerate above-described embodiment; should be noted that; any those of ordinary skill in the art are under the instruction of this specification; that makes is allly equal to alternative, obvious variant, within all dropping on the essential scope of this specification, ought to be subject to protection of the present invention.