[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of implementation method of driving signal of directly drive electronics.
The present invention solves above-mentioned technical problem by such technical scheme:
A kind of device that drives signal that produces, this device comprise at least one low frequency generator, at least one radio-frequency generator, the application of logic circuit module that links to each other with radio-frequency generator with low frequency generator respectively, the reckoning module that links to each other with application of logic circuit module and with the H bridge circuit module of calculating that module links to each other, wherein, described reckoning module can be extrapolated according to the driving signal the required brachium pontis input signal of four brachium pontis of H bridge circuit; The signal that described logical circuit sends with low frequency generator and high frequency signal generator respectively is as the input signal of logical circuit, and the brachium pontis input signal that described four brachium pontis are required is as the output signal of logical circuit.
A kind of implementation method that drives signal, this driving signal is square-wave signal, described driving signal comprises periodic signal and nonperiodic signal, described periodic signal comprises N the decomposed signal with single-frequency, nonperiodic signal comprises the positive signal with first identical level, the signal that has the negative signal of identical second electrical level and have zero level, wherein, described N is natural number, and the method comprises the steps:
Step S001: at first set a critical frequency, decomposed signal is pressed its frequency partition, the decomposed signal that will be lower than critical frequency is divided into low frequency signal, otherwise be divided into high-frequency signal, secondly low frequency signal is become n the low frequency decomposed signal with single-frequency according to different frequency decomposition, again high-frequency signal is become m the high-frequency decomposition signal with single-frequency according to different frequency decomposition, then nonperiodic signal is resolved into 2 the second low frequency decomposed signal and m high-frequency controling signals with single level according to different level, described m and n are 0 or natural number, and 2m+n=N-2;
Step S002: a low frequency generator is provided, and it can send nonperiodic signal and n low frequency decomposed signal, and a high frequency signal generator is provided, and it can send m high-frequency decomposition signal;
Step S003: a H bridge circuit is provided and calculates module, described reckoning module can be extrapolated according to the driving signal the required brachium pontis input signal of four brachium pontis of H bridge circuit;
Step S004 a: logical circuit is provided, the acquisition pattern of described logical circuit is: m the high-frequency decomposition signal that the nonperiodic signal that low frequency generator is sent and n low frequency decomposed signal and high frequency signal generator are sent is as the input signal of logical circuit, the brachium pontis input signal that described four brachium pontis are required draws logical circuit as the output signal of logical circuit.
Choosing is arranged, and the absolute value of described the first level and second electrical level is unequal.
Choosing is arranged, and the described step that draws logical circuit comprises:
Step K 001: according to the input of logical circuit, the truth table that output signal obtains logical gate;
Step K 002: try to achieve logical expression after the simplification with Karnaugh map according to truth table;
Step K 003: logical expression is carried out abbreviation and conversion;
Step K 004: draw logical circuit according to the logical expression after abbreviation and the conversion.
The reckoning step of described reckoning module is:
Step T001: the conduction level of determining four brachium pontis of H bridge circuit.
Step T002: the conducting direction of determining four brachium pontis of H bridge circuit.
Step T003: H bridge circuit forward conduction when driving the signal positive level, H bridge circuit negative sense conducting during negative level, not conducting during zero level namely obtains the conducting sequential of four brachium pontis.
Step T004: according to conducting sequential and conduction level, namely obtain four brachium pontis input signals that brachium pontis is required.
Compared with prior art, the present invention has the following advantages: can realize that by the driving signal that this method obtains the complexity of non-single cycle and level drives signal, thereby direct drive electronics, in addition, this method adopts low frequency signal to separate generation with high-frequency signal, can greatly reduce cost, and reduce the performance requirement to signal generator.
[embodiment]
Describe concrete structure of the present invention in detail below in conjunction with accompanying drawing.
A kind of device that drives signal that produces, it comprises at least one low frequency generator, at least one radio-frequency generator, the application of logic circuit module, the reckoning module that links to each other with application of logic circuit module that link to each other with radio-frequency generator with low frequency generator respectively and the H bridge circuit module that links to each other with the reckoning module.
The strict sequencing control of driving signal demand that the present invention realizes, so require low frequency generator to have regularly and tally function, such as PLC, single-chip microcomputer, DSP, FPGA and PC etc., according to concrete precision and cost requirement, can select arbitrarily wherein one or more.
High frequency signal generator can adopt multiple oscillator mode, and what the present invention adopted is Schmidt's multivibrator circuit.
As shown in Figure 1, a kind of implementation method that drives signal, this driving signal can be used for the electronic equipments such as drive motors.The driving signal that this method realizes is square-wave signal, and it comprises periodic signal and nonperiodic signal, and described periodic signal comprises N the decomposed signal with single-frequency, and described N is natural number; Nonperiodic signal comprises the positive signal with first identical level, the signal that has the negative signal of identical second electrical level and have zero level.This method comprises the steps:
Step S001: as shown in Figures 2 and 3, at first set a critical frequency, decomposed signal is pressed its frequency partition, the decomposed signal that will be lower than critical frequency is divided into low frequency signal, otherwise be divided into high-frequency signal, secondly low frequency signal is become n the low frequency decomposed signal with single-frequency according to different frequency decomposition, again high-frequency signal is become m the high-frequency decomposition signal with single-frequency according to different frequency decomposition, then nonperiodic signal is resolved into 2 the second low frequency decomposed signal and m high-frequency controling signals with single level according to different level, described m and n are 0 or natural number, and 2m+n=N-2.
Step S002: a low frequency generator is provided, and it can send nonperiodic signal and n low frequency decomposed signal, and a high frequency signal generator is provided, and it can send m high-frequency decomposition signal.
In step S001 and step S002, described critical frequency refers to the highest frequency of the signal that low frequency generator can send.In the present embodiment, can be decomposed into according to above-mentioned steps for driving signal shown in Figure 1: 1 high-frequency signal D, positive signal A, negative signal B, 1 high-frequency controling signal C and 1 low frequency signal E.
Step S003: a H bridge circuit is provided and calculates module, described reckoning module can be extrapolated according to the driving signal the required brachium pontis input signal of four brachium pontis of H bridge circuit;
The reckoning step of described reckoning module is:
Step T001: as shown in Figure 4, determine the metal-oxide-semiconductor model of four brachium pontis of H bridge circuit, namely select N-type metal-oxide-semiconductor and P type metal-oxide-semiconductor, thereby determine conduction level.Present embodiment adopts such as MP6404, and brachium pontis is P type metal-oxide-semiconductor on it, and lower brachium pontis is the N-type metal-oxide-semiconductor, in the situation that driving power meets the demands, it is more satisfactory selecting integrated bridge module, and the consistency of its each metal-oxide-semiconductor is better, and variation affected by environment also is consistent, and simplifies circuit.
Step T002: as shown in Figure 6, determine H bridge circuit conducting direction.
Step T003: H bridge circuit forward conduction when driving the signal positive level, H bridge circuit negative sense conducting during negative level, not conducting during zero level namely obtains the conducting sequential of four brachium pontis.In the present embodiment, H bridge circuit 1 and 3 brachium pontis conductings when driving the signal positive level, 2 of the H bridge circuit and 4 brachium pontis conductings during negative level.
Step T004: as shown in Figure 5, according to conducting sequential and conduction level, namely obtain four brachium pontis input signals 1,2,3,4 that brachium pontis is required.
Step S004 a: logical circuit is provided, the acquisition pattern of described logical circuit is: m the high-frequency decomposition signal that the nonperiodic signal that low frequency generator is sent and n low frequency decomposed signal and high frequency signal generator are sent is as the input signal of logical circuit, the brachium pontis input signal that described four brachium pontis are required draws logical circuit as the output signal of logical circuit.
In the present embodiment, with 1 high-frequency signal D, positive signal A, negative signal B, 1 high-frequency controling signal C and 1 the low frequency signal E input signal as logical circuit, with four brachium pontis input signal 1,2,3,4 output signals as logical circuit that brachium pontis is required, draw logical circuit.
The described step that draws logical circuit comprises:
Step K 001: according to the input of logical circuit, the truth table that output signal obtains logical gate;
Step K 002: try to achieve logical expression after the simplification with Karnaugh map according to truth table;
Step K 003: logical expression is carried out abbreviation and conversion;
Step K 004: draw logical circuit according to the logical expression after abbreviation and the conversion.
Structure by the definite logical circuit of above-mentioned steps is not unique, but needs to greatest extent abbreviation logical circuit, is beneficial to the stable and simplification of whole system.Fig. 6 is logical expression in the present embodiment.
Can make up corresponding logical circuit according to logical expression, for the stable module (Schmidt trigger) that has also added signal shaping in logical circuit of signal, physical circuit as shown in Figure 7.
For the logical circuit part, more be to introduce a kind of mentality of designing, a rather than concrete logical circuit, because the requirement according to the different driving signal, logical circuit will be adjusted in good time, for general signal, directly can realize with hardware logic electric circuit, its system is simpler, and for very complicated logical circuit, can consider to realize with FPGA, logical circuit part software implementation, realize able to programmely, so also can divide signal generation to be incorporated among the FPGA, make level of integrated system higher.
Each low frequency signal is flexible by realization that corresponding controller is programmed so signal generation divides in the driving signal of the present invention, the modification of can programming according to demand.
The first level of driving signal of the present invention and the absolute value of second electrical level can equate, also can be unequal, when the absolute value of the first level and second electrical level is unequal, only need change a little H bridge circuit part, can obtain required driving signal such as Fig. 8, repeat no more.
The low frequency signal of driving signal of the present invention and the frequency distance of high-frequency signal are larger, so the pattern that adopts low frequency signal and high-frequency signal to separate so at first can reduce the requirement to signal generator, greatly reduce cost; Secondly: can realize by multivibrator because of HFS, thus can just can change frequency range by simple replacement Resistor-Capacitor Unit, and need not to change circuit structure.
The above only is preferred embodiments of the present invention; protection scope of the present invention is not limited with above-mentioned execution mode; as long as the equivalence that those of ordinary skills do according to disclosed content is modified or changed, all should include in the protection range of putting down in writing in claims.