CN204557121U - A kind of pulse input circuit - Google Patents

A kind of pulse input circuit Download PDF

Info

Publication number
CN204557121U
CN204557121U CN201520190549.1U CN201520190549U CN204557121U CN 204557121 U CN204557121 U CN 204557121U CN 201520190549 U CN201520190549 U CN 201520190549U CN 204557121 U CN204557121 U CN 204557121U
Authority
CN
China
Prior art keywords
input
pins
voltage
ground connection
frequency converter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201520190549.1U
Other languages
Chinese (zh)
Inventor
巫春玲
刘盼芝
陈俊硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changan University
Original Assignee
Changan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changan University filed Critical Changan University
Priority to CN201520190549.1U priority Critical patent/CN204557121U/en
Application granted granted Critical
Publication of CN204557121U publication Critical patent/CN204557121U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The utility model relates to electric control device, particularly relate to a kind of pulse input circuit, comprise voltage-to-frequency converter and processor, 1 and 2 pins of voltage-to-frequency converter are respectively by resistance R15 and R17 ground connection, 4 pin ground connection, 3 pins are connected with one end of single-pole double-throw switch (SPDT) S1, and the other end of single-pole double-throw switch (SPDT) S1 is connected with pulse signal generating circuit, and the output terminal of single-pole double-throw switch (SPDT) S1 is connected with processor; And 3 pins of voltage-to-frequency converter connect power supply by resistance R18,5 pins of voltage-to-frequency converter are by electric capacity C2 ground connection, and 5 pins connect 8 pins of voltage-to-frequency converter by resistance R16, and 8 pins connect power supply; 6 pins of voltage-to-frequency converter are by electric capacity C21 ground connection, 7 pins of voltage-to-frequency converter meet slide rheostat R13 by resistance R14, one end ground connection of slide rheostat R13, another termination power, the utility model circuit structure is simple, can realize input simulating signal and digital signal in circuit simultaneously.

Description

A kind of pulse input circuit
Technical field
The utility model belongs to electric control devices field, particularly relates to a kind of pulse input circuit.
Background technology
There are two kinds of modes in the pulse signal source of linear stepping motor: one is digital input signals, is generated by external pulse generator; Another kind is analog input signal, but can not input simulating signal and digital signal in the prior art in a circuit simultaneously.
Utility model content
The purpose of this utility model is to overcome above-mentioned the deficiencies in the prior art, provides a kind of pulse input circuit.
For solving the problem, the technical scheme that the utility model is taked is: comprise voltage-to-frequency converter and processor, 1 pin of voltage-to-frequency converter and 2 pins are respectively by resistance R15 and R17 ground connection, 4 pin ground connection, 3 pins are connected with one end of single-pole double-throw switch (SPDT) S1, the other end of single-pole double-throw switch (SPDT) S1 is connected with pulse signal generating circuit, and the output terminal of single-pole double-throw switch (SPDT) S1 is connected with processor;
And 3 pins of voltage-to-frequency converter connect power supply by resistance R18,5 pins of voltage-to-frequency converter are by electric capacity C2 ground connection, and 5 pins connect 8 pins of voltage-to-frequency converter by resistance R16, and 8 pins connect power supply;
6 pins of voltage-to-frequency converter are by electric capacity C21 ground connection, and 7 pins of voltage-to-frequency converter meet slide rheostat R13 by resistance R14, one end ground connection of slide rheostat R13, another termination power.
Described voltage-to-frequency converter adopts model to be LM331 voltage-frequency converter.
Described voltage-to-frequency converter comprise timing comparator, R ?S trigger, input comparator, No. two input comparators and a current mirror;
The input end of described current mirror is connected with single-pole double-throw switch (SPDT) and by triode with the inverting input of comparer respectively, the collector of this triode connects the input end of current mirror, the emitter of triode connects the inverting input of comparer, the base stage of triode connects the output terminal of comparer, and the normal phase input end of comparer connects power supply;
The inverting input of comparer is also by slide rheostat ground connection, one end of this single-pole double-throw switch (SPDT) is by resistance RL and the electric capacity CL ground connection in parallel with resistance RL, other end ground connection, and one end of this single-pole double-throw switch (SPDT) is connected with the normal phase input end of an input comparator, the inverting input of an input comparator is by electric capacity CI ground connection, and the inverting input of an input comparator also connects power supply by resistance RI, the output terminal of an input comparator is connected with timing comparator;
The output terminal of current mirror is connected with the normal phase input end of No. two input comparators by resistance R, the inverting input of No. two comparers is connected with the collector of triode T2, and the normal phase input end of No. two input comparators is by resistance R2 ground connection, the inverting input of No. two input comparators is by electric capacity C22 ground connection, and connect power supply by resistance R16, the grounded emitter of triode T2;
Described R ?the Q termination power of S trigger, the base stage of/Q termination triode T2, and R ?S trigger Q end be also connected with the collector of triode T1 and the base stage of triode TS, the grounded emitter of triode T1, base stage is by resistance R ground connection, the grounded emitter of triode TS, collector is connected with output pulse signal.
Described pulse signal generating circuit is pulse producer.
Described supply voltage is 5V.
Described processor adopts model to be the single-chip microcomputer of AT89C51, the output terminal of 14 pin order double-pole double throw switch S1 of this single-chip microcomputer, 18 pins and 19 pins connect oscillatory circuit, and 32 ?39 pins and 30 pins connect eight D-latchs, and the output termination linear DC motor of single-chip microcomputer.
Compared with prior art, the utility model has following beneficial effect: input signal of the present utility model has two-way, one tunnel is the pulse signal of pulse signal generating circuit, one tunnel is the analog input signal that simulating signal produces circuit generation, simulating signal to be produced by voltage-to-frequency converter the analog input signal that circuit produces and converts digital signal to by the utility model, thus input to single-chip microcomputer by single-pole double-throw switch (SPDT), input voltage can be changed by regulating swept resistance R13, input voltage is changed by regulating swept resistance R13, thus regulate the frequency of the signal inputed in single-chip microcomputer, the utility model circuit structure is simple, input simulating signal and digital signal can be realized in a circuit simultaneously.
Accompanying drawing explanation
Fig. 1 is structure principle chart of the present utility model;
Fig. 2 is the structure principle chart of voltage-to-frequency converter of the present utility model;
Fig. 3 is single-chip minimum system structural representation of the present utility model.
Embodiment
Below in conjunction with accompanying drawing, the utility model is described in further details:
See Fig. 1 to Fig. 3, the utility model comprises voltage-to-frequency converter and processor, 1 pin of voltage-to-frequency converter and 2 pins are respectively by resistance R15 and R17 ground connection, 4 pin ground connection, 3 pins are connected with one end of single-pole double-throw switch (SPDT) S1, the other end of single-pole double-throw switch (SPDT) S1 is connected with pulse signal generating circuit, and the output terminal of single-pole double-throw switch (SPDT) S1 is connected with processor; And 3 pins of voltage-to-frequency converter connect power supply by resistance R18,5 pins of voltage-to-frequency converter are by electric capacity C2 ground connection, and 5 pins connect 8 pins of voltage-to-frequency converter by resistance R16, and 8 pins connect power supply; 6 pins of voltage-to-frequency converter are by electric capacity C21 ground connection, and 7 pins of voltage-to-frequency converter meet slide rheostat R13 by resistance R14, one end ground connection of slide rheostat R13, another termination power.
Voltage-to-frequency converter of the present utility model adopts model to be LM331 voltage-frequency converter, this voltage-to-frequency converter comprise timing comparator, R ?S trigger, input comparator, No. two input comparators and a current mirror; The input end of current mirror is connected with single-pole double-throw switch (SPDT) and by triode with the inverting input of comparer respectively, the collector of this triode connects the input end of current mirror, the emitter of triode connects the inverting input of comparer, the base stage of triode connects the output terminal of comparer, and the normal phase input end of comparer connects power supply;
The inverting input of comparer is also by slide rheostat ground connection, one end of this single-pole double-throw switch (SPDT) is by resistance RL and the electric capacity CL ground connection in parallel with resistance RL, other end ground connection, and one end of this single-pole double-throw switch (SPDT) is connected with the normal phase input end of an input comparator, the inverting input of an input comparator is by electric capacity CI ground connection, and the inverting input of an input comparator also connects power supply by resistance RI, the output terminal of an input comparator is connected with timing comparator;
The output terminal of current mirror is connected with the normal phase input end of No. two input comparators by resistance R, the inverting input of No. two comparers is connected with the collector of triode T2, and the normal phase input end of No. two input comparators is by resistance R2 ground connection, the inverting input of No. two input comparators is by electric capacity C22 ground connection, and connect power supply by resistance R16, the grounded emitter of triode T2; R ?the Q termination power of S trigger, the base stage of/Q termination triode T2, and R ?S trigger Q end be also connected with the collector of triode T1 and the base stage of triode TS, the grounded emitter of triode T1, base stage is by resistance R ground connection, the grounded emitter of triode TS, collector is connected with output pulse signal.
Supply voltage of the present utility model is 5V, and pulse signal generating circuit of the present utility model is that pulse producer produces pulse signal, and the change of its frequency can by pulse producer manual adjustments;
Processor of the present utility model adopts model to be the single-chip microcomputer of AT89C51, the output terminal of 14 pin order double-pole double throw switch S1 of this single-chip microcomputer, 18 pins and 19 pins connect oscillatory circuit, and 32 ?39 pins and 30 pins connect eight D-latchs, and the output termination linear DC motor of eight D-latchs.
This oscillatory circuit comprises the crystal oscillator Y1 be connected across between 18 pin and 19 pin, and this crystal oscillator Y1 is connected with one end of electric capacity C9, C10 parallel with one another, the equal ground connection of the other end of C9, C10;
This eight D-latch employing model is eight D-latchs of 74ALS373, the D0 ?D7 pin of this eight D-latch connects the P00 ?P07 pin of single-chip microcomputer, Q0 with the Q1 pin of this eight D-latch is connected with linear electric motors, eight D-latchs /OE pin ground connection, LE pin connects 30 pins of single-chip microcomputer, and 9 pins of single-chip microcomputer are connected with 7 pin of MAX813 chip, 1 pin of MAX813 chip connects its 8 pin, 2 pin connect 5V power supply, 3 pin ground connection, and cross-over connection has electric capacity C8 between 2 pin and 3 pin.
See Fig. 2, the frequency to voltage converter principle of work of voltage-to-frequency converter of the present utility model is in this circuit, and we use the pressure/frequency mapping function of LM331, so tell about its voltage-frequency shift theory at this.Voltage-frequency-conversion circuit that Fig. 2 is made up of LM331, outer meeting resistance R t, C twith timing comparator, return-to-zero transistor, R ?S trigger etc. form monostable timing circuit.As input end V i+input a positive voltage, when input comparator exports high level, the set of R ?S trigger, Q exports high level, and export driving tube conducting, Ausgang is logic low, and meanwhile, current switch is beaten to the right, and current source IR is to electric capacity C lcharging.Work as C ltwo ends charging voltage is greater than V cc2/3 time, timing comparator exports a high level, make R ?S trigger reset, Q output low level, export driving tube cut-off, output f is logic high, meanwhile, return-to-zero transistor cutoff, electric capacity C tdischarged rapidly by return-to-zero transistor; Current switch is beaten to the left side, electric capacity C lto resistance R lelectric discharge.As electric capacity C lsparking voltage equals input voltage V itime, when input comparator exports high level again, R ?the set of S trigger, iterative cycles like this, form self-sustained oscillation.If electric capacity C lduration of charging be t 1, discharge time is t 2, then according to electric capacity C lthe principle of upper charge balance, Wo Menyou:
(I R-V L/R L)t 1=t 2V L/R L
Can be obtained fom the above equation: f=1/ (t 1+ t 2)=V l/ (R li rt 1)
In fact, the V of this circuit lin little scope, (about 10mv) fluctuation, therefore, can think V l=V i, therefore above formula can be expressed as: f=V i/ (R li rt 1)
Visible, output pulse frequency f and input voltage V ibe directly proportional, thus achieve voltage-frequency conversion.The 1.90V reference voltage that in formula, IR is supplied by internal reference voltage source and outer meeting resistance R sdetermine, IR=1.90/R s, change R svalue, the conversion gain of adjustable circuit, t 1by timing element R tand C tdetermine, its relational expression t 1=1.1R tc t, representative value R t=6.8k Ω, C t=0.01uf, t 1=75us.IR is brought into and can obtain from this formula, resistance R s, R l, R twith electric capacity C tdirectly affect transformation result f, therefore will have certain requirement to the precision of element, suitably can select according to conversion accuracy.Electric capacity C talthough directly do not affect transformational structure, the capacitor that leakage current is little should be selected.Resistance R 1with electric capacity C 1composition low-pass filter, can reduce the disturbing pulse in input voltage, is conducive to improving conversion accuracy.
The course of work of the present utility model: pulse input circuit of the present utility model produces pulse input signal, the Puled input simulating signal (given input voltage) produced is converted to digital signal by voltage-to-frequency converter, input voltage can be changed by regulating swept resistance R13, the pulse signal that the digital signal obtained and pulse signal generating circuit produce is inputed in single-chip microcomputer by single-pole double-throw switch (SPDT), single-chip microcomputer can follow given input voltage automatically, change the size of this input voltage, just can change the frequency of pulse signal, reach the object that linear DC motor open loop stepless speed regulation controls.

Claims (6)

1. a pulse input circuit, it is characterized in that: comprise voltage-to-frequency converter and processor, 1 pin of voltage-to-frequency converter and 2 pins are respectively by resistance R15 and R17 ground connection, 4 pin ground connection, 3 pins are connected with one end of single-pole double-throw switch (SPDT) S1, the other end of single-pole double-throw switch (SPDT) S1 is connected with pulse signal generating circuit, and the output terminal of single-pole double-throw switch (SPDT) S1 is connected with processor;
And 3 pins of voltage-to-frequency converter connect power supply by resistance R18,5 pins of voltage-to-frequency converter are by electric capacity C2 ground connection, and 5 pins connect 8 pins of voltage-to-frequency converter by resistance R16, and 8 pins connect power supply;
6 pins of voltage-to-frequency converter are by electric capacity C21 ground connection, and 7 pins of voltage-to-frequency converter meet slide rheostat R13 by resistance R14, one end ground connection of slide rheostat R13, another termination power.
2. a kind of pulse input circuit according to claim 1, is characterized in that: described voltage-to-frequency converter adopts model to be LM331 voltage-frequency converter.
3. a kind of pulse input circuit according to claim 2, is characterized in that: described voltage-to-frequency converter comprises timing comparator, R-S trigger, input comparator, No. two input comparators and a current mirror;
The input end of described current mirror is connected with single-pole double-throw switch (SPDT) and by triode with the inverting input of comparer respectively, the collector of this triode connects the input end of current mirror, the emitter of triode connects the inverting input of comparer, the base stage of triode connects the output terminal of comparer, and the normal phase input end of comparer connects power supply;
The inverting input of comparer also by slide rheostat ground connection, one end of this single-pole double-throw switch (SPDT) by resistance RL and with resistance R lelectric capacity C in parallel lground connection, other end ground connection, and one end of this single-pole double-throw switch (SPDT) is connected with the normal phase input end of an input comparator, the inverting input of an input comparator is by electric capacity C iground connection, and the inverting input of an input comparator is also by resistance R iconnect power supply, the output terminal of an input comparator is connected with timing comparator;
The output terminal of current mirror is connected with the normal phase input end of No. two input comparators by resistance R, the inverting input of No. two comparers is connected with the collector of triode T2, and the normal phase input end of No. two input comparators is by resistance R2 ground connection, the inverting input of No. two input comparators is by electric capacity C22 ground connection, and connect power supply by resistance R16, the grounded emitter of triode T2;
The Q termination power of described R-S trigger, the base stage of/Q termination triode T2, and the Q of R-S trigger hold also with collector and the triode T of triode T1 sbase stage be connected, the grounded emitter of triode T1, base stage by resistance R ground connection, triode T sgrounded emitter, collector is connected with output pulse signal.
4. a kind of pulse input circuit according to claim 1, is characterized in that: described pulse signal generating circuit is pulse producer.
5. a kind of pulse input circuit according to claim 1, is characterized in that: described supply voltage is 5V.
6. a kind of pulse input circuit according to claim 1, it is characterized in that: described processor adopts model to be the single-chip microcomputer of AT89C51, the output terminal of 14 pin order double-pole double throw switch S1 of this single-chip microcomputer, 18 pins and 19 pins connect oscillatory circuit, 32-39 pin and 30 pins connect eight D-latchs, and the output termination linear DC motor of single-chip microcomputer.
CN201520190549.1U 2015-03-31 2015-03-31 A kind of pulse input circuit Expired - Fee Related CN204557121U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520190549.1U CN204557121U (en) 2015-03-31 2015-03-31 A kind of pulse input circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520190549.1U CN204557121U (en) 2015-03-31 2015-03-31 A kind of pulse input circuit

Publications (1)

Publication Number Publication Date
CN204557121U true CN204557121U (en) 2015-08-12

Family

ID=53832210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520190549.1U Expired - Fee Related CN204557121U (en) 2015-03-31 2015-03-31 A kind of pulse input circuit

Country Status (1)

Country Link
CN (1) CN204557121U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107693942A (en) * 2017-09-30 2018-02-16 南京春之象电子技术有限公司 A kind of medical low-frequency electric pulse therapeutical instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107693942A (en) * 2017-09-30 2018-02-16 南京春之象电子技术有限公司 A kind of medical low-frequency electric pulse therapeutical instrument
CN107693942B (en) * 2017-09-30 2023-07-11 南京春之象电子技术有限公司 Medical low-frequency electric pulse therapeutic instrument

Similar Documents

Publication Publication Date Title
CN102662104B (en) Zero-crossing detection method and circuit
CN202238482U (en) Ultrasonic atomizer
CN203838587U (en) Numerical-control direct current source
CN207992389U (en) A kind of full dynamic aging circuit of diode
CN204557121U (en) A kind of pulse input circuit
CN104564461A (en) Oil injector electromagnetic valve driving circuit controlled by current feedback
CN103701421B (en) Volume regulating device, volume regulating method and electronic equipment
CN102931832B (en) PWM (pulse width modulation) type adjustable RC (resistance-capacitance) circuit and adjustment method thereof
CN104955251A (en) Voltage detecting circuit and lamp
CN107482925B (en) A kind of frequency-conversion constant-current source follower circuit
CN103401530B (en) The stepless matching network of a kind of impedance for ultrasonic power
CN204465978U (en) A kind of LED power with short-circuit protection circuit
CN202177843U (en) LCD intelligent current source
CN208861180U (en) The detection device of generator set controller revolving speed output circuit
CN203734534U (en) Current driver based on BUCK circuit
CN203554743U (en) LED drive circuit
CN204517686U (en) Voltage stabilizing full-wave rectifying circuit
CN202648785U (en) Circuit used for eliminating electronic weighing zero drift
CN204243796U (en) Based on the super capacitor charger of STM32F407IG
CN205901369U (en) Battery fills electrical safety controller
CN204030956U (en) A kind of circuit structure of electric motor car accessory power supply
CN203416168U (en) Multi-stage constant current type adjustable switching power supply
CN206378762U (en) A kind of reference voltage sample circuit controlled for constant-current source
CN204271962U (en) A kind of current of electric control system
CN205666808U (en) Ring oscillator

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150812

Termination date: 20160331

CF01 Termination of patent right due to non-payment of annual fee