Summary of the invention
The technical problem to be solved in the present invention is, adopts the defect of pure hardware circuit for the isolation sample circuit of prior art, and providing a kind of can apply in sample circuit digital control, by the numerical control isolation sampling device of digital control realization isolation sampling.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of numerical control isolation sampling device, comprise isolation sample circuit and digital processing unit, wherein
The signal input part of described isolation sample circuit receives d. c. voltage signal, and control input end is connected to the universal input and output port of described digital signal processor with reception control signal;
Described isolation sample circuit is isolated sampling to generate isolation sampled signal based on described control signal to described d. c. voltage signal;
The signal input part of described digital signal processor is connected to the signal output part of described isolation sample circuit to receive described isolation sampled signal.
In numerical control isolation sampling device of the present invention, described isolation sample circuit comprises switch module and transformer; Wherein
The signal input part that the first input end of the former limit winding of described transformer is connected to described isolation sample circuit is connected to the first end of described switch module to receive the second input end of the former limit winding of d. c. voltage signal, described transformer, the second end ground connection of described switch module, the control signal input end of described switch module is connected to the control input end of described isolation sample circuit to receive described control signal; Under the control of described switch module in described control signal during conducting, the secondary of described transformer output isolation sampled signal.
In numerical control isolation sampling device of the present invention, described switch module comprises switching tube and driving circuit; Wherein, the control signal input end that the input end of described driving circuit is connected to described switch module is with reception control signal and based on described control signal output isolation drive signal; The output terminal that the grid of described switching tube is connected to described driving circuit is to receive described isolation drive signal and based on described isolation drive signal conduction or shutoff, the source ground of described switching tube, drain electrode are connected to the second input end of the former limit winding of described transformer.
In numerical control isolation sampling device of the present invention, described switching tube is mos field effect transistor or insulated gate bipolar transistor; Described driving circuit is isolated drive circuit.
In numerical control isolation sampling device of the present invention, described digital signal processor comprises for described isolation sampled signal being converted to the analog-to-digital conversion module of digital signal, for generate the control signal generation module of described control signal and for regulating described control signal and described analog-to-digital conversion module so that described analog-to-digital conversion module Obtaining Accurate described in isolate the adjustment module of sampled signal.
In numerical control isolation sampling device of the present invention, described numerical control isolation sampling device further comprises for the treatment of described isolation sampled signal to generate the secondary signal processing module of effective isolation sampled signal; The first input end of described secondary signal processing module is connected to secondary the second output terminal that the second input end of secondary first output terminal of described transformer, described secondary signal processing module is connected to described transformer to receive described isolation sampled signal, and the sampled signal output terminal of described secondary signal processing module is connected to the signal input part of described digital signal processor to export effective isolation sampled signal.
In numerical control isolation sampling device of the present invention, described numerical control isolation sampling device further comprises the first magnetic reset circuit between the first input end of the former limit winding that is arranged on described transformer and the second input end of the former limit winding of described transformer.
In numerical control isolation sampling device of the present invention, described numerical control isolation sampling device further comprises the second magnetic reset circuit being arranged between the first end of described switch module and the second end of described switch module.
In numerical control isolation sampling device of the present invention, described secondary signal processing module comprises transformation of scale unit for the treatment of described isolation sampled signal, proportional integral converter unit, proportion integration differentiation converter unit, for isolating the filter unit of sampled signal described in filtering or for isolating the clamp units of the voltage of sampled signal described in clamper.
In numerical control isolation sampling device of the present invention, described secondary signal processing module comprises clamp units and filter unit, wherein said clamp units is connected to the secondary of described transformer and isolates sampled signal with described in clamper, described filter unit is connected to described clamp units to receive the isolation sampled signal after clamper, and the isolation sampled signal after described clamper is carried out to filtering.
In numerical control isolation sampling device of the present invention, described secondary signal processing module further comprises the one in described transformation of scale unit, proportional integral converter unit, proportion integration differentiation converter unit, and the one in described transformation of scale unit, proportional integral converter unit, proportion integration differentiation converter unit is connected to described filter unit and processes with the isolation sampled signal to after filtering clamp.
In numerical control isolation sampling device of the present invention, described secondary signal processing module comprises one and the filter unit in described transformation of scale unit, proportional integral converter unit, proportion integration differentiation converter unit, wherein said filter unit is connected to the secondary of described transformer and isolates sampled signal with described in filtering, and the one in described transformation of scale unit, proportional integral converter unit, proportion integration differentiation converter unit is connected to described filter unit so that filtered isolation sampled signal is processed.
In numerical control isolation sampling device of the present invention, described secondary signal processing module comprises one and the clamp units in described transformation of scale unit, proportional integral converter unit, proportion integration differentiation converter unit, wherein said clamp units is connected to the secondary of described transformer and isolates sampled signal with described in clamper, and the one in described transformation of scale unit, proportional integral converter unit, proportion integration differentiation converter unit is connected to described clamp units and processes with the isolation sampled signal to after clamp.
Implement in numerical control isolation sampling device of the present invention, by use, isolating sample circuit generates isolation sampled signal and receives this isolation sampled signal by digital signal processor, make it possible to apply in sample circuit digital control, by digital control realization isolation sampling.
Embodiment
Fig. 1 is the theory diagram of the first embodiment of numerical control isolation sampling device of the present invention.As shown in Figure 1, numerical control isolation sampling device of the present invention, comprises isolation sample circuit 10 and digital processing unit 20.
The signal input part of described isolation sample circuit 10 receives d. c. voltage signal Vdc, and control input end is connected to the universal input and output port GPIO of described digital signal processor 20 with reception control signal Vpulse.Described isolation sample circuit 10 is isolated sampling to generate isolation sampled signal Vsample based on described control signal Vpulse to described d. c. voltage signal Vdc.The signal input part ADC of described digital signal processor 20 is connected to the signal output part of described isolation sample circuit 10 to receive described isolation sampled signal Vsample.
The principle of work of the numerical control isolation sampling device shown in Fig. 1 is as follows: the universal input and output port GPIO of digital signal processor 20 sends control signal Vpulse, described isolation sample circuit 10 is isolated sampling based on described control signal Vpulse to described d. c. voltage signal Vdc, obtain suitable isolation sampled signal Vsample, send back to again digital signal processor 20, thereby realize the sampling of d. c. voltage signal Vdc and control.By digital signal processor 20, control isolation sample circuit 10, when needs are sampled, sample.
In each embodiment of the present invention, the isolation sample circuit that described isolation sample circuit 10 can be any type.Various isolation sample circuit as known in the art may be used to the present invention.The present invention is not isolated the restriction of the type of sample circuit at this.Described digital signal processor 20 can be isolated sample circuit 10 from this and be received the isolation sampled signal Vsample of simulation, and is carried out analog to digital conversion, thereby realizes digitized sampling and control.In the following example of the present invention, show preferred isolation sample circuit and digital signal processor.
Fig. 2 is the schematic block circuit diagram of the second embodiment of numerical control isolation sampling device of the present invention.As shown in Figure 2, numerical control isolation sampling device of the present invention, comprises isolation sample circuit 10 and digital processing unit 20.Wherein, described isolation sample circuit 10 comprises switch module 100 and transformer T1.
The first input end of the former limit winding of described transformer T1 connects the signal input part of described isolation sample circuit 10 to receive d. c. voltage signal Vdc.The second input end of the former limit winding of described transformer T1 connects the first end of described switch module 100.The second end ground connection of described switch module 100.The control signal input end of described switch module 100 connects the control input end of described isolation sample circuit 10 to receive described control signal Vpulse.
Its principle of work is as follows, and the universal input and output port GPIO of digital signal processor 20 sends control signal Vpulse.The control signal input end of described switch module 100 receives described control signal Vpulse, and based on described control signal Vpulse conducting or shutoff.Under the control of described switch module 100 at described control signal Vpulse during conducting, the secondary of described transformer T1 output isolation sampled signal Vsample.This isolation sampled signal Vsample returns to described digital signal processor 20 through the signal input part ADC of described digital signal processor 20.
In the embodiment shown in Fig. 2, described switch module 100 can be the device for power switching that driven by driving circuit, also can be to control manually or automatically intelligent switch module closed and that turn-off by user, can be even also common manual or automatic switch device.In a preferred embodiment of the invention, described switching tube Q1 can be mos field effect transistor (MOSFET), also can be insulated gate bipolar transistor (IGBT), can also be other device for power switching, its driving circuit can be isolated drive circuit or non-isolated drive circuit.
Fig. 3 is the schematic block circuit diagram of the 3rd embodiment of numerical control isolation sampling device of the present invention.
As shown in Figure 3, numerical control isolation sampling device of the present invention, comprises isolation sample circuit 10 and digital processing unit 20.Wherein, described isolation sample circuit 10 comprises transformer T1, mos field effect transistor Q1, driving circuit 101 and secondary signal processing module 200.Described digital signal processor 20 comprises analog-to-digital conversion module 21, control signal generation module 22 and adjustment module 23.
As shown in Figure 3, the first input end of the former limit winding of described transformer T1 connects d. c. voltage signal Vdc, and the second input end of the former limit winding of described transformer T1 connects the drain electrode of described mos field effect transistor Q1.The source ground of described mos field effect transistor Q1.
The input end of described driving circuit 101 is from described control signal generation module 22 reception control signal Vpulse and based on described control signal Vpulse output isolation drive signal.
The grid of described mos field effect transistor Q1 is to receive described isolation drive signal and based on described isolation drive signal conduction or shutoff.
The secondary winding output isolation sampled signal Vsample of described transformer T1.Described secondary signal processing module 200 receives described isolation sampled signal Vsample and according to actual conditions, it is carried out to necessary processing, and output is subsequently isolation sampled signal V ' sample effectively.Described analog-to-digital conversion module 21 receives effectively isolation sampled signal V ' sample through the signal input part ADC of described digital signal processor 20, and it is carried out to analog to digital conversion.Adjustment module 23 in described digital signal processor 20 can fine adjustment control signal Vpulse and analog-to-digital conversion module 21, make analog-to-digital conversion module 21 efficiently and accurately during mos field effect transistor Q1 opens, obtain effectively isolation sampled signal V ' sample, realize the isolation sampling to d. c. voltage signal Vdc.
Below the principle of work of the numerical control isolation sampling device of the present embodiment is described:
Signal generation module 22 sends control signal Vpulse by the universal input and output port GPIO of digital signal processor 20, controls the turn-on and turn-off of mos field effect transistor Q1 through driving circuit 101.In mos field effect transistor Q1 conduction period, d. c. voltage signal Vdc is through his isolation and voltage transformation of transformer, then processes through secondary signal processing module 200, obtains effectively isolating sampled signal V ' sample.This is effectively isolated sampled signal V ' sample and sends to analog-to-digital conversion module 21 through the signal input part ADC of described digital signal processor 20.Adjustment module 23 can fine adjustment control signal Vpulse and analog-to-digital conversion module 21, make analog-to-digital conversion module 21 efficiently and accurately during mos field effect transistor Q1 opens, obtain effectively isolation sampled signal V ' sample, realize the isolation sampling to d. c. voltage signal Vdc.
In the present embodiment, the introducing of described secondary signal processing module 200 is to process for the isolation sampled signal that the secondary to from transformer T1 receives, so that obtain, is applicable to effective isolation sampled signal that subordinate's circuit is used.
Therefore in this secondary signal processing module 200, can comprise that the secondary that is connected to described transformer T1 is for processing the transformation of scale unit 201, proportional integral converter unit 202, proportion integration differentiation converter unit of described isolation sampled signal, for isolating the filter unit 204 of sampled signal described in filtering or for isolating the clamp units 205 of the voltage of sampled signal described in clamper.
For example, when needs carry out transformation of scale processing to isolation sampled signal, can adoption rate converter unit 201.When needs carry out proportional integral conversion to isolation sampled signal, can adoption rate integral transformation unit 202.When needs carry out proportion integration differentiation conversion to isolation sampled signal, can adoption rate integral differential converter unit.This area can be selected according to actual needs.When needs carry out filtering to isolation sampled signal, described filter unit 204 can be connected to the secondary of described transformer T1, for isolating sampled signal Vsample described in filtering.When needs carry out clamp to isolation sampled signal, clamp units 205 can be connected to the secondary of described transformer T1, for isolating sampled signal Vsample described in clamp.
In other preferred embodiments of the present invention, described secondary signal processing module 200 comprises one and the described filter unit 204 in described transformation of scale unit 201, proportional integral converter unit 202, proportion integration differentiation converter unit.Such as, when described secondary signal processing module 200 comprises filter unit 204 and transformation of scale unit 201, described filter unit 204 is connected to the secondary of described transformer T1, for described in filtering, isolate sampled signal, the isolation sampled signal of described transformation of scale unit 201 from described filter unit 204 accepts filter, and filtered isolation sampled signal is carried out to transformation of scale.
In other preferred embodiments of the present invention, described secondary signal processing module 200 comprises one and the described clamp units 205 in described transformation of scale unit 201, proportional integral converter unit 202, proportion integration differentiation converter unit.Such as, when described secondary signal processing module 200 comprises clamp units 205 and transformation of scale unit 201, described clamp units 205 is connected to the secondary of described transformer T1, for described in clamp, isolate sampled signal, the isolation sampled signal that described transformation of scale unit 201 receives clamp from described clamp units 205, and the isolation sampled signal after described clamp is carried out to transformation of scale.
In another kind of preferred embodiment of the present invention, described secondary signal processing module 200 can only include described clamp units 205 and filter unit 204, wherein said clamp units 205 is connected to the secondary of described transformer T1 and isolates sampled signal with described in clamper, described filter unit 204 is connected to described clamp units 205 to receive the isolation sampled signal after clamper, and the isolation sampled signal after described clamper is carried out to filtering.
In preferred embodiment of the present invention, described secondary signal processing module 200 further comprises one, described filter unit 204 and the described clamp units 205 in described transformation of scale unit 201, proportional integral converter unit 202, proportion integration differentiation converter unit.
As shown in Figure 4, in one embodiment of the invention, described secondary signal processing module 200 can comprise transformation of scale unit 201, filter unit 204 and clamp units 205.In this embodiment, described clamp units 205 is connected to the secondary of described transformer T1, for isolating sampled signal Vsample described in clamp.Then, by isolating sampled signal Vsample described in 204 pairs of clamps of filter unit, carry out filtering, generate clamp filtering isolation sampled signal Vsample ".Described transformation of scale unit 201 receives described clamp filtering isolation sampled signal Vsample " it is carried out to ratio variation, to export the effective isolation sampled signal Vsample ' after processing.
In other embodiments of the invention, can adoption rate integral transformation unit 202 (as shown in Figure 5) or proportion integration differentiation converter unit 203 carry out substitution ratio converter unit 201.
At this, those skilled in the art are known and can obtain aforementioned proportion converter unit 201, proportional integral converter unit 202, proportion integration differentiation converter unit, filter unit 204 and clamp units 205.Any above-mentioned functions module as known in the art may be used to the present invention, at this, just no longer its structure is tired out and has been stated.In addition, those skilled in the art can according to actual needs, select any known signal processing unit to carry out required processing so that it adapts to the needs of analog-to-digital conversion module 201 better to isolation sampled signal Vsample.
In simplified embodiment of the present invention, can make the isolation sampled signal Vsample of secondary output of transformer T1 without carrying out next step processing by adjusting the former limit of transformer T1 and the turn ratio of secondary winding, just can and control use for the detection of analog-to-digital conversion module 201.
Fig. 4 is the schematic block circuit diagram of the 4th embodiment of numerical control isolation sampling device of the present invention.
As shown in Figure 4, can safe and reliable work for transformer T1, when switching tube Q1 turn-offs, need to carry out magnetic reset.Therefore, between the first input end of the former limit of transformer T1 winding and the second input end of former limit winding, be provided with the first magnetic reset circuit 300.
Fig. 5 is the schematic block circuit diagram of the 5th embodiment of numerical control isolation sampling device of the present invention.
As shown in Figure 5, the second magnetic reset circuit 400 can be arranged between the source electrode and drain electrode of switching tube Q1, and then guarantee that transformer T1 can safe and reliable work.
In the present invention, can use any magnetic reset circuit well known in the prior art, those skilled in the art know and can obtain various magnetic reset circuit, at this, just no longer tire out and state.
Implement numerical control isolation sampling device of the present invention, can apply in sample circuit digital control, by digital control realization isolation sampling.In addition, also use magnetic reset circuit, guaranteed the work that transformer can be safe and reliable, and then guaranteed the stable and reliable of whole numerical control isolation sampling device.
Although the present invention describes by specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to alternative the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise the whole embodiments that fall within the scope of the claims in the present invention.