Summary of the invention
Object of the present invention is intended to overcome the defect of above-mentioned prior art, a kind of 256 grades of gray scales linearity Acousto-Optic Modulator Drivers that have based on computer, microprocessor and a plurality of simulant electronic switch formation are provided, there are 256 gear number word voltages and control function, can realize acousto-optic modulator and the modulation of laser beam intensity is to digital linear with the digital voltage of controlling changes, thereby make to have through the light intensity of the laser beam of acousto-optic modulator modulation the Acousto-Optic Modulator Driver of certain gray scale (intensity) grade.
The present invention is achieved through the following technical solutions:
256 grades of linear Acousto-Optic Modulator Drivers of gray scale, is characterized in that: comprise linear gray scale acoustooptic modulation drive circuit, digital voltage generator, tonal gradation selection circuit and datel circuit, power supply and computer; Described tonal gradation selects circuit or computer gray-scale data, to give digital voltage generator by datel circuit, digital voltage generator produces Linear Driving signal and controls linear gray scale acoustooptic modulation drive circuit afterwards, provide+24V of power supply direct voltage ,+12V direct voltage and+5V direct voltage;
Described linear gray scale acoustooptic modulation drive circuit comprises crystal oscillating circuit, simulation equilibrium modulation circuit, level shifting circuit, pre-amplification circuit and power amplifier; The high-frequency carrier signal that the voltage of changing through described level shifting circuit produces crystal oscillating circuit by simulation equilibrium modulation circuit carries out amplitude modulation(PAM) and obtains modulation signal, and this modulation signal is through the linear rear drive power amplifier generation Linear Driving signal that amplifies of pre-amplification circuit;
Described digital voltage generator comprises microprocessor U1, program storage, multi-path digital control simulation electronic switch, organizes resitstance voltage divider, display driver circuit and light-emitting diode display more; Under program control in described program storage, microprocessor U1 is selected circuit to obtain gray-scale data or is obtained by datel circuit the gray-scale data that computer sends by tonal gradation, afterwards gray-scale data is shown in to light-emitting diode display by display driver circuit, send control command to multi-path digital control simulation switch simultaneously, gating is organized one group of resitstance voltage divider more, and produces corresponding class voltage;
In described program storage, comprise the generation of class voltage, demonstration and receiving computer transmission data program;
Gray-scale data is housed in described computer and processes and send software, its function is that gray-scale data is sent to digital voltage generator by datel circuit.
Described level shifting circuit is by a triode T1, four fixed resistance R6, R7, R8, R9 and an adjustable precision resistance W2 form, wherein: the base stage of described triode T1 connects the digital control voltage of 0.7-5.82V, connect+12V of collector electrode direct voltage, emitter is connected with one end of resistance R 6, the other end ground connection of resistance R 6, triode T1, resistance R 6 forms an emitter follower, one end ground connection of resistance R 7, the other end is connected with a stiff end of resistance R 9 and adjustable precision resistance W2, the other end of resistance R 9 is the output of level shifting circuit, one end ground connection of resistance R 8, the other end is connected with moved end with the base stage of triode T1 and another stiff end of adjustable precision resistance W2, resistance R 7, R8, R9 and adjustable precision resistance W2 form a voltage conversion circuit.
Described multi-path digital control simulation electronic switch consists of 16 digital control simulation electronic switches, each digital control simulant electronic switch is one group, four binary system control input end A of every group of digital control simulant electronic switch, B, C, D is connected to together, wherein: the input A of digital control simulant electronic switch group is connected with the P0.0 port of microprocessor U1, input B is connected with the P0.1 port of microprocessor U1, input C is connected with the P0.2 port of microprocessor U1, input D is connected with the P0.3 port of microprocessor U1, the 15th pin of 16 groups of digital control simulant electronic switches respectively with the P1.0 of microprocessor U1, P1.1 ... P1.7, P2.0, P2.1 ... P2.7 port connects, the 1st pin of 16 groups of digital control simulant electronic switches links together, output as 256 grades of class voltages of digital voltage generator,
Described gray scale is selected circuit by the P0.7 port of microprocessor U1, the pull-up resistor of 1 4.7K and a non-locking press-button form, non-locking press-button one end ground connection, the pull-up resistor connection that the other end is connected with P0.7 port with microprocessor U1.
Described many groups resitstance voltage divider by 256 accurate adjustable resistors and described power supply+12V direct voltage forms, 16 accurate adjustable resistors are one group, two stiff ends of each accurate adjustable resistor are connected to together, one end is wherein connected with+12V direct voltage, the other end is connected with direct current ground wire, the moved end of each resistor of every group of accurate adjustable resistor, is connected with the input channel 0-15 of every group of simulant electronic switch respectively; Described many groups resitstance voltage divider, becomes 256 grades of class voltages the direct voltage of 0.7-5.82V, and each class magnitude of voltage is corresponding one by one with linear revise magnitude of voltage, and its adjacent class average voltage is poor is 0.02V.
Its significant beneficial effect is:
1, in laser large screen display application, utilize and there is the linear Acousto-Optic Modulator Driver driving of 256 grades of gray scales three primary colors acousto-optic modulator, and Computer Image Processing and control technology, realize laser large screen picture and text and show;
2, in laser heterodyne interference fields of measurement, utilize and there is the linear Acousto-Optic Modulator Driver driving of 256 grades of gray scales acousto-optic modulator, easily realize the amplitude matches of flashlight and reference light, complete laser heterodyne interference nano measurement.
Embodiment
Below in conjunction with accompanying drawing explanation embodiment, the present invention will be further described in detail.
As shown in Figure 1, a kind of linear Acousto-Optic Modulator Driver of 256 grades of gray scales that has of the present invention, comprises linear gray scale acoustooptic modulation drive circuit, digital voltage generator, tonal gradation selection circuit and datel circuit, power supply and computer; Described tonal gradation selects circuit or computer gray-scale data, to give digital voltage generator by datel circuit, digital voltage generator produces Linear Driving signal and controls linear gray scale acoustooptic modulation drive circuit afterwards, provide+24V of power supply direct voltage ,+12V direct voltage and+5V direct voltage.
Described digital voltage generator comprises microprocessor U1, program storage, multi-path digital control simulation electronic switch, organizes resitstance voltage divider, display driver circuit and light-emitting diode display more; Under program control in described program storage, microprocessor U1 is selected circuit to obtain gray-scale data or is obtained by datel circuit the gray-scale data that computer sends by tonal gradation, afterwards gray-scale data is shown in to light-emitting diode display by display driver circuit, send control command to multi-path digital control simulation switch simultaneously, gating is organized one group of resitstance voltage divider more, and produces corresponding class voltage.
In described program storage, comprise the generation of class voltage, demonstration and receiving computer transmission data program;
Gray-scale data is housed in described computer and processes and send software, its function is that gray-scale data is sent to digital voltage generator by datel circuit.
As shown in Figure 2, neutral line gray scale acoustooptic modulation driving circuit principle of the present invention.Linear gray scale acoustooptic modulation drive circuit comprises crystal oscillating circuit, simulation equilibrium modulation circuit, level shifting circuit, pre-amplification circuit and power amplifier; The high-frequency carrier signal that the voltage of changing through described level shifting circuit produces crystal oscillating circuit by simulation equilibrium modulation circuit carries out amplitude modulation(PAM) and obtains modulation signal, and this modulation signal is through the linear rear drive power amplifier generation Linear Driving signal that amplifies of pre-amplification circuit.Wherein:
Crystal oscillating circuit is by a crystal oscillator CRY2, a triode T2, an adjustable precision resistance W1, an inductance L 1, four capacitor C 10, C11, C12, C13 and four resistance R 10, R11, R12, R13 form, and wherein triode T2, resistance R 12, R13 and adjustable precision resistance W1 form an emitter follower, the enamel covered wire coiling that inductance L 1 can be 0.2mm with core nominal diameter, coiling diameter is 2mm, the number of turn 15 circles;
Simulation equilibrium modulation circuit is comprised of a mixing integrated circuit SCM-1 (U20);
Level shifting circuit is by a triode T1, four fixed resistance R6, R7, R8, R9 and an adjustable precision resistance W2 form, wherein: the base stage of described triode T1 connects the digital control voltage of 0.7-5.82V, connect+12V of collector electrode direct voltage, emitter is connected with one end of resistance R 6, the other end ground connection of resistance R 6, triode T1, resistance R 6 forms an emitter follower, one end ground connection of resistance R 7, the other end is connected with a stiff end of resistance R 9 and adjustable precision resistance W2, the other end of resistance R 9 is the output of level shifting circuit, one end ground connection of resistance R 8, the other end is connected with moved end with the base stage of triode T1 and another stiff end of adjustable precision resistance W2, resistance R 7, R8, R9 and adjustable precision resistance W2 form a voltage conversion circuit.
Pre-amplification circuit is by a triode T3, an adjustable precision resistance W3, four capacitor C 14, C15, C16, C17 and three resistance R 14, R15 and R16 form, custom circuit annexation slightly, as shown in Figure 2.
Power amplifier is comprised of a slice radio frequency amplifier U21 (model is MHW6222) and two capacitor C 18, C19, and wherein C19 is porcelain Jie trimmer, and adjusting range is 5-15pF.Custom circuit annexation is omited, as shown in Figure 2.
As shown in Figure 3, the principle of datel circuit of the present invention and power supply.Telecommunication circuit adopts the single supply level shifting circuit U18 that meets rs-232 standard, mainly complete the transfer of data between computer and microprocessor U1, (this concrete microprocessor U1 that implements to select is single chip computer AT 89C51, single supply level shifting circuit U18 is MAX232), the pin 10 of microprocessor U1 is connected with 11 with the pin 9 of telecommunication circuit U18 respectively with 11.In addition, be connected between electrochemical capacitor E3, pin 4 and 5 and be connected to electrochemical capacitor E4 between the pin 1 and 3 of telecommunication circuit U18, wherein pin 1 and 4 connects the positive ends of electrochemical capacitor; Between the pin 6 of telecommunication circuit U18 and power supply ground, be connected between electrochemical capacitor E5, pin 2 and power supply VCC and be connected to electrochemical capacitor E2, wherein pin 6 connects the negative polarity end of electrochemical capacitor, the positive ends that pin 2 connects electrochemical capacitor; The pin 7,10,12 of telecommunication circuit U18 and 13 use; Telecommunication circuit U18 is by three needle socket P1 and computer transmission data.Power supply is comprised of transformer BY, two rectifier bridge B1 and four Voltage stabilizing module V1, V2, V3 and V4, and V1 adopts three-terminal voltage-stabilizing pipe 78M24, and V2 adopts three-terminal voltage-stabilizing pipe 78M12, and V3 adopts three-terminal voltage-stabilizing pipe 78M06, and V4 adopts three-terminal voltage-stabilizing pipe 78M05.Power supply is inputted 220 volts of alternating currents after transformer BY step-down and rectifier bridge B2, B1 full-wave rectification, by V1, V2, become stable+24V voltage and+12V voltage; + 24V voltage is again by become+5V of V3 voltage; + 24V voltage is to crystal oscillating circuit, simulation equilibrium modulation circuit, preamplifier and power amplifier power supply, and+12V voltage is to level shifting circuit and 16 analog switch CD4067 power supplies, and+5V voltage is to microprocessing systems and display system power supply.Adopt secondary step-down and voltage stabilizing effectively to improve the antijamming capability of power supply.
As shown in Figure 4, the set of circuits of the digital voltage generator in the present invention and tonal gradation are selected circuit theory.Tonal gradation is selected circuit by the P0.7 port of microprocessor U1, the pull-up resistor of 1 4.7K and a non-locking press-button form, non-locking press-button one end ground connection, the pull-up resistor connection that the other end is connected with P0.7 with microprocessor U1; Tonal gradation selects data also can complete by computer control, computer sends microprocessor U1 class data (10 systems are 0-255) corresponding to class voltage that will control to by the telecommunication circuit shown in Fig. 3, and microprocessor U1 is according to the corresponding passage of class data strobe and show its class numeral; The simulant electronic switch that multi-path digital is controlled selects 1 digital control simulant electronic switch (model is CD4067) to form by 16 16, each digital control simulant electronic switch is one group, connect+the 12V of 24 pin of every group of digital control simulant electronic switch, 12 pin ground connection, together with four binary system control input end A, B, C of every group of digital control simulant electronic switch are connected to D.Wherein:
Input A is connected with the P0.0 port of microprocessor U1, and input B is connected with the P0.1 port of microprocessor U1, and input C is connected with the P0.2 port of microprocessor U1, and input D is connected with the P0.3 port of microprocessor U1; The 1st pin of every group of digital control simulant electronic switch links together, as 256 step voltage outputs of digital voltage generator;
The permission end of every group of digital control simulant electronic switch (the 15th pin) is connected with the P10 port of microprocessor U1 and of P20 port respectively, as the 1st group of digital control simulant electronic switch U2 the 15th pin is connected with the P1.0 of microprocessor U1, the 15th pin of the 2nd group of digital control simulant electronic switch U3 is connected with the P1.1 of microprocessor U1 ..., the 16th group of digital control simulant electronic switch U17 the 15th pin be connected with the P2.7 port of microprocessor U1, 256 accurate adjustable resistors and one+12V DC power supply that described many groups resitstance voltage divider is 10k Ω ohm by nominal resistance form, 16 accurate adjustable resistors are divided into one group, two stiff ends of each accurate adjustable resistor are connected to together, one end is wherein connected with+12V DC power supply, and the other end is connected with direct current ground wire, the moved end of 16 groups of accurate adjustable resistors, be connected with the input channel 0-15 of 16 groups of digital control simulant electronic switches respectively, as the moved end of the 1st of the accurate adjustable resistor of the 1st group the resistor W1-1 is connected with the 9th pin of the 1st group of digital control simulant electronic switch U2, the moved end of the 2nd resistor W1-2 is connected with the 8th pin of the 1st group of digital control simulant electronic switch U2, the moved end of the 16th resistor W1-16 is connected with the 16th pin of the 1st group of digital control simulant electronic switch U2, the like, the moved end of the 1st resistor W1-1 of the accurate adjustable resistor of the 16th group is connected with the 9th pin of the 16th group of digital control simulant electronic switch U17, the moved end of the 2nd resistor W1-2 is connected with the 8th pin of the 16th group of digital control simulant electronic switch U17, the moved end of the 16th resistor W1-16 is connected with the 16th pin of the 16th group of digital control simulant electronic switch U17.Described many groups resitstance voltage divider, becomes the direct voltage of 0.7-5.82V 256 grades of class voltage (U that adjacent class voltage difference is 0.02V
i, i=1,2,3 ... 256), can obtain thus 256 grades of corresponding with it gray value (P
i, i=1,2,3 ... 256), gray value (P) meets P=bU+a with the linear regression of voltage (U), and wherein a and b can be tried to achieve by least square method, by formula P=bU+a, can calculate U
1and U
256corresponding P
1and P
256and the adjacent class gray scale difference △ P of 256 grades of class gray scales, can obtain P thus
1, P
2, P
3p
256, and can calculate U ' by formula P=bU+a
1, U '
2, U '
3u '
256, when class voltage U
1≤ U '
1time, get U
1=U '
1, when class voltage U '
1<U
2<U '
2time, get U
2=U '
2, the like can obtain 256 grades of class voltage U
1, U
2, U
3u
256, these 256 grades of class voltages have linear revise function, and due to acousto-optic modulator unintentional nonlinearity feature, therefore the adjacent class voltage difference of 256 grades of class voltages is unequal, and its average electrical pressure reduction is 0.02V.
As shown in Figure 5, display driver circuit and light-emitting diode display principle in the present invention.Described display driver circuit and light-emitting diode display are MAX7219 by a slice display driver circuit U19(model), 7 segment numeral pipe LED of 4 common cathodes form.Display driver circuit U19 is a kind of integrated serial input/output common cathode display driver, can drive 8 common cathode light-emitting diode displays, and integrate binary-coded decimal decoder, multiplexer, section driving and bit driver circuit, include the static SRAM of 8 * 8 twoports.Its connects 7 segment numeral light-emitting diode displays demonstrations of microprocessor and 8 bit digital, and the interface of it and CPU has serial data line DIN, clock cable CLK and data to latch line LOAD.The data of display driver circuit U19 latch line LOAD and are connected with the P0.4 port of microprocessor U1, and clock cable CLK is connected with the P0.5 port of microprocessor U1, and serial data line DIN is connected with the P0.6 port of microprocessor U1.
As shown in Figure 6, the program flow diagram that the microprocessor in the present invention and the packet between display driver circuit transmit, its main flow process is:
It is 8 that counter R3 initial value is set, and clear 0 data latch line LOAD, and data most-significant byte is put into accumulator A;
Clear 0 clock cable CLK, accumulator A moves to right one and arrives C, and C delivers to serial data line DIN, and 1 clock cable CLK is put in time delay;
Do you judge that counter R3 is 0? be, it is 8 that counter R3 is set, and data least-significant byte is put into accumulator A; No, clear 0 clock cable CLK, accumulator A moves to right one and arrives C, and C delivers to serial data line DIN, and 1 clock cable CLK is put in time delay;
Clear 0 clock cable CLK again, accumulator A moves to right one, and to C, C delivers to serial data line DIN, and 1 clock cable CLK is put in time delay;
Do you judge that counter R3 is 0? be, put 1 data and latch line LOAD, finish this secondary program; No, clear 0 clock cable CLK, accumulator A moves to right one and arrives C, and C delivers to serial data line DIN, and 1 clock cable CLK is put in time delay.
As shown in Figure 7, the main program flow chart in Acousto-Optic Modulator Driver of the present invention, its main flow process is:
The beginning that powers on, carries out initialization to this Acousto-Optic Modulator Driver, comprises initialization display driver circuit, and 4 light-emitting diode displays show 8888, forbid 16 digital control simulant electronic switch gatings (putting P1.0-P1.7 port and P2.0-P2.7 port is 1); It is input port that P0.7 is set, and closes other and interrupts, and opens serial-port communication and interrupts, clear 0 tonal gradation counter, communication baud rate and transmission data format are set, and (data format is eight bit data position, without parity bit, a position of rest), time delay 0.5 second, 4 light-emitting diode displays show 0000 afterwards;
Judged whether tonal gradation selection signal? have, the class data of button number of times or computer transmission deposit class memory in, according to the data in class memory, passage corresponding to the corresponding digital control simulant electronic switch of gating, and show corresponding class numeral, judged whether again afterwards tonal gradation selection signal; No, continue to wait for tonal gradation selection signal.