A kind of voltage collection circuit that is used for digital signal processor
Technical field
The present invention relates to a kind of voltage collection circuit, relate in particular to a kind of voltage collection circuit that is used for digital signal processor.
Background technology
Digital signal processor (DSP) is a kind of microprocessor of uniqueness, is the device of handling bulk information with digital signal.Its principle of work is to receive simulating signal, converts 0 or 1 digital signal into, again to digital signal make amendment, delete, processing such as reinforcement.Therefore, DSP needs corresponding collection of simulant signal circuit to cooperate its work.For example when gathering voltage, just need voltage collection circuit, iff working voltage sensor acquisition is not because factors such as interference obviously meet the requirement of DSP.Therefore need to suppress the voltage collection circuit of interference, but A/D (mould/number) converter among the present general direct DSP of this type of circuit lacks the corresponding protection part, when abnormal signal, can make dsp chip damage.
Summary of the invention
The object of the present invention is to provide a kind of voltage collection circuit that is used for digital signal processor, the interference when it can not only suppress voltage acquisition can also be avoided because of exporting the situation that abnormal signal damages dsp chip.
The technical scheme that realizes above-mentioned purpose is:
A kind of voltage collection circuit that is used for digital signal processor; The input end of this voltage collection circuit connects voltage sensor; Output terminal linking number word signal processor; Said voltage collection circuit comprises first resistance, first electric capacity, voltage comparator, second resistance, the 3rd resistance, the 4th resistance, power supply, the 5th resistance, first diode, second diode and second electric capacity, wherein:
One end of said first resistance connects said voltage sensor, and the other end connects the inverting input of said voltage comparator;
One end of said first electric capacity connects the inverting input of said voltage comparator, other end ground connection;
The in-phase input end ground connection of said voltage comparator, output terminal connect the inverting input of this voltage comparator through said second resistance;
The output terminal of said voltage comparator, the 3rd resistance, the 5th resistance and digital signal processor connect successively;
One end of said the 4th resistance connects said power supply, and the other end connects the end that joins of said the 3rd resistance and the 5th resistance;
The negative pole of said first diode connects said power supply, the anodal end that joins that connects said the 5th resistance and digital signal processor;
The plus earth of said second diode, negative pole connect the end that joins of said the 5th resistance and digital signal processor;
One end ground connection of said second electric capacity, the other end connect the end that joins of said the 5th resistance and digital signal processor.
The above-mentioned voltage collection circuit that is used for digital signal processor, wherein, said digital signal processor carries A/D converter, and this A/D converter connects the output terminal of said voltage collection circuit.
The invention has the beneficial effects as follows: the interference when the present invention adopts voltage follower to suppress voltage acquisition; Adopt voltage lifting circuit that the signal of zero level fluctuation is carried and be unipolar signal; And constitute holding circuit by resistance, electric capacity and diode, prevent the situation that causes dsp chip to damage because of the output abnormal signal.Simultaneously, the present invention is simple in structure, is easy to realize.
Description of drawings
Fig. 1 is the circuit diagram that is used for the voltage collection circuit of digital signal processor of the present invention.
Embodiment
To combine accompanying drawing that the present invention is described further below.
See also Fig. 1; The input end that is used for the voltage collection circuit of digital signal processor of the present invention connects voltage sensor 1; Output terminal linking number word signal processor 2; This digital signal processor 2 carries A/D converter 21, and the output terminal linking number word signal processor 2 of voltage collection circuit of the present invention promptly connects A/D converter 21.
Voltage collection circuit of the present invention comprises first resistance R 1, first capacitor C 1, voltage comparator U1, second resistance R 2, the 3rd resistance R 3, the 4th resistance R 4, power vd D, the 5th resistance R 5, the first diode D1, the second diode D2 and second capacitor C 2, wherein:
One end of first resistance R 1 connects voltage sensor 1, and the other end connects the inverting input of voltage comparator U1;
One end of first capacitor C 1 connects the inverting input of voltage comparator U1, other end ground connection;
The in-phase input end ground connection of voltage comparator U1, output terminal connect the inverting input of this voltage comparator U1 through second resistance R 2;
The output terminal of voltage comparator U1, the 3rd resistance R 3, the 5th resistance R 5 and digital signal processor 2 connect successively;
One end of the 4th resistance R 4 connects power vd D, and the other end connects the end that joins of the 3rd resistance R 3 and the 5th resistance R 5;
The negative pole of the first diode D1 connects power vd D, the anodal end that joins that connects the 5th resistance R 5 and digital signal processor 2;
The plus earth of the second diode D2, negative pole connect the end that joins of the 5th resistance R 5 and digital signal processor 2;
One end ground connection of second capacitor C 2, the other end connect the end that joins of the 5th resistance R 5 and digital signal processor 2.
First resistance R 1, first capacitor C 1, voltage comparator U1 and second resistance R 2 constitute voltage followers, and first resistance R 1 and first capacitor C 1 play the effect that suppresses interference; The 3rd resistance R 3, the 4th resistance R 4 and power vd D form level lifting circuit, will be unipolar signal around the signal boost that zero level fluctuates; Power vd D, the 5th resistance R 5, the first diode D1, the second diode D2 and second capacitor C 2 constitute holding circuits, because the output signal is directly inputted to A/D converter 21, prevents to export abnormal signal and cause digital signal processor 2 to damage.
Above embodiment only supplies to explain the present invention's usefulness; But not limitation of the present invention; The technician in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also make various conversion or modification; Therefore all technical schemes that are equal to also should belong to category of the present invention, should be limited each claim.