CN110572140B - Circuit and method for generating pulse signal - Google Patents
Circuit and method for generating pulse signal Download PDFInfo
- Publication number
- CN110572140B CN110572140B CN201910785343.6A CN201910785343A CN110572140B CN 110572140 B CN110572140 B CN 110572140B CN 201910785343 A CN201910785343 A CN 201910785343A CN 110572140 B CN110572140 B CN 110572140B
- Authority
- CN
- China
- Prior art keywords
- pulse signal
- resistor
- nand gate
- capacitor
- photoelectric coupler
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000006243 chemical reaction Methods 0.000 claims abstract description 21
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims abstract description 16
- 239000003990 capacitor Substances 0.000 claims description 36
- 238000010586 diagram Methods 0.000 description 4
- 238000007599 discharging Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/0175—Coupling arrangements; Interface arrangements
- H03K19/017509—Interface arrangements
- H03K19/017536—Interface arrangements using opto-electronic devices
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/20—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits characterised by logic function, e.g. AND, OR, NOR, NOT circuits
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/02—Generators characterised by the type of circuit or by the means used for producing pulses
- H03K3/53—Generators characterised by the type of circuit or by the means used for producing pulses by the use of an energy-accumulating element discharged through the load by a switching device controlled by an external signal and not incorporating positive feedback
- H03K3/57—Generators characterised by the type of circuit or by the means used for producing pulses by the use of an energy-accumulating element discharged through the load by a switching device controlled by an external signal and not incorporating positive feedback the switching device being a semiconductor device
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Electronic Switches (AREA)
- Manipulation Of Pulses (AREA)
Abstract
The invention discloses a circuit for generating pulse signals, which comprises: the conversion unit is used for receiving an alternating current signal and outputting a first level to the pulse signal generation unit when the alternating current signal is in a positive half period or a negative half period; when the alternating current signal is at the zero-crossing point moment, outputting a second level to the pulse signal generating unit; and the pulse signal generating unit is used for outputting a pulse signal when receiving the second level every time. The invention also discloses a method for generating the pulse signal. The circuit and the method provided by the invention realize the conversion of alternating current into direct current pulse signals.
Description
Technical Field
The present invention relates to the field of circuits, and in particular, to a circuit and a method for generating a pulse signal in the field of circuits.
Background
Most of the existing electronic products adopt direct current voltage and direct current pulse as signals, however, the part of circuits entering users from a power grid still is alternating current, and most of the alternating current cannot be directly utilized by electronic equipment.
How to convert alternating current into direct current and detect the frequency of the alternating current is a problem to be solved at present. In the prior art, an alternating current to direct current circuit is mostly realized by an integrated circuit, and an integrated chip is used for detecting alternating current frequency or outputting direct current pulse.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a circuit and a method for generating a pulse signal, which realize the purpose of converting alternating current into a direct current pulse signal.
In order to solve the above technical problem, an embodiment of the present invention provides a circuit for generating a pulse signal, including:
the conversion unit is used for receiving an alternating current signal and outputting a first level to the pulse signal generation unit when the alternating current signal is in a positive half period or a negative half period; when the alternating current signal is at the zero crossing point moment, outputting a second level to the pulse signal generating unit;
and the pulse signal generating unit is used for outputting a pulse signal when receiving the second level every time.
In an exemplary embodiment, the circuit further has the following features:
the conversion unit comprises a first resistor, a first capacitor, a direct current power supply, a first photoelectric coupler, a second photoelectric coupler and a second resistor; the first photoelectric coupler or the second photoelectric coupler comprises a light emitting diode and a photosensitive triode;
one end of the first resistor is used as an input end of the conversion unit, and the other end of the first resistor is connected with one end of the first capacitor; the other end of the first capacitor is grounded;
a collector of the phototriode of the first photoelectric coupler and a collector of the phototriode of the second photoelectric coupler are respectively connected with the direct-current power supply, an emitter of the phototriode of the first photoelectric coupler and an emitter of the phototriode of the second photoelectric coupler are respectively connected with one end of the second resistor, the end of the second resistor is used as an output end of the conversion unit, and the other end of the second resistor is grounded;
the anode end of the light emitting diode of the first photoelectric coupler is connected with one end of the first capacitor, and the cathode end of the light emitting diode of the first photoelectric coupler is grounded;
and the cathode end of the light emitting diode of the first photoelectric coupler is connected with one end of the first capacitor, and the anode end of the light emitting diode of the first photoelectric coupler is grounded.
In an exemplary embodiment, the circuit further has the following features:
the pulse signal generating unit comprises a first NAND gate, a second NAND gate, a third NAND gate, a second capacitor and a third resistor;
the first NAND gate, the second NAND gate and the third NAND gate are two-input NAND gates;
a first input end of the first nand gate is used as an input end of the pulse signal generation unit, and an output end of the third nand gate is used as an output end of the pulse signal generation unit;
the output end of the conversion unit is connected with the input end of the pulse signal generation unit, the output end of the first nand gate is respectively connected with one end of the second capacitor and the first input end of the second nand gate, the other end of the second capacitor is respectively connected with one end of the third resistor and the second input end of the second nand gate, and the output end of the second nand gate is respectively connected with the second input end of the first nand gate, the first input end of the third nand gate and the second input end of the second nand gate; the other end of the third resistor is grounded.
In an exemplary embodiment, the circuit further has the following features:
the resistance value of the first resistor is 360k omega, the capacitance value of the first capacitor is 10nF, the voltage of the direct current power supply is 5V, and the resistance value of the second resistor is 220k omega.
In an exemplary embodiment, the circuit further has the following features:
the capacitance value of the second capacitor is 0.1uF, and the resistance value of the third resistor is 5.1k omega.
In an exemplary embodiment, the circuit further has the following features:
the width of the pulse signal generated by the circuit is determined according to the capacitance value of the second capacitor and the resistance value of the third resistor.
In an exemplary embodiment, the circuit further has the following features:
the first level is a high level and the second level is a low level.
In order to solve the above problem, the present invention also provides a method of generating a pulse signal, comprising:
the conversion unit receives an alternating current signal, and outputs a first level to the pulse signal generation unit when the alternating current signal is in a positive half period or a negative half period; when the alternating current signal is at the zero crossing point moment, outputting a second level to the pulse signal generating unit;
the pulse signal generating unit outputs a pulse signal each time the second level is received.
In an exemplary embodiment, the method further comprises the following features:
and adjusting the capacitance value of the second capacitor and/or the resistance value of the third resistor to increase or decrease the width of the pulse signal generated by the pulse signal generating unit.
In conclusion, the circuit and the method provided by the embodiment of the invention are built by adopting the discrete components, so that the universality is strong and the cost is low.
Drawings
Fig. 1 is a schematic diagram of a circuit for generating a pulse signal according to an embodiment of the invention.
Fig. 2 is a circuit diagram of a circuit for generating a pulse signal according to an embodiment of the present invention.
Fig. 3 is a flowchart of a method of generating a pulse signal according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic diagram of a circuit for generating a pulse signal according to an embodiment of the present invention, and as shown in fig. 1, the circuit for generating a pulse signal according to the embodiment includes: a conversion unit and a pulse signal generation unit.
The conversion unit is used for receiving an alternating current signal and outputting a first level to the pulse signal generation unit when the alternating current signal is in a positive half period or a negative half period; when the alternating current signal is at the zero crossing point moment, outputting a second level to the pulse signal generating unit;
and the pulse signal generating unit is used for outputting a pulse signal when receiving the second level every time.
It should be noted that the pulse signal generating unit outputs a low level when receiving the first level for the first time, and outputs a low level when receiving the first level thereafter as long as the pulse signal is not output.
In an optional embodiment, the conversion unit includes a first resistor, a first capacitor, a dc power supply, a first photocoupler, a second photocoupler, and a second resistor; the first photoelectric coupler or the second photoelectric coupler comprises a light emitting diode and a photosensitive triode;
one end of the first resistor is used as an input end of the conversion unit, and the other end of the first resistor is connected with one end of the first capacitor; the other end of the first capacitor is grounded;
a collector of the phototriode of the first photoelectric coupler and a collector of the phototriode of the second photoelectric coupler are respectively connected with the direct-current power supply, an emitter of the phototriode of the first photoelectric coupler and an emitter of the phototriode of the second photoelectric coupler are respectively connected with one end of the second resistor, the end of the second resistor is used as an output end of the conversion unit, and the other end of the second resistor is grounded;
the anode end of the light emitting diode of the first photoelectric coupler is connected with one end of the first capacitor, and the cathode end of the light emitting diode of the first photoelectric coupler is grounded;
and the cathode end of the light emitting diode of the first photoelectric coupler is connected with one end of the first capacitor, and the anode end of the light emitting diode of the first photoelectric coupler is grounded.
In other alternative embodiments, the photocoupler can be replaced by a triode or a field effect transistor.
In an alternative embodiment, the pulse signal generating unit includes a first nand gate, a second nand gate, a third nand gate, a second capacitor, and a third resistor;
the first NAND gate, the second NAND gate and the third NAND gate are two-input NAND gates;
a first input end of the first nand gate is used as an input end of the pulse signal generation unit, and an output end of the third nand gate is used as an output end of the pulse signal generation unit;
the output end of the conversion unit is connected with the input end of the pulse signal generation unit, the output end of the first NAND gate is respectively connected with one end of the second capacitor and the first input end of the second NAND gate, the other end of the second capacitor is respectively connected with one end of the third resistor and the second input end of the second NAND gate, and the output end of the second NAND gate is respectively connected with the second input end of the first NAND gate, the first input end of the third NAND gate and the second input end of the second NAND gate; the other end of the third resistor is grounded.
In other embodiments, the nand gate may be replaced by other gates such as a three-input nand gate and a nor gate, as long as the same input and output effects can be achieved.
In an alternative embodiment, the first resistor has a resistance of 360k Ω, the first capacitor has a capacitance of 10nF, the dc power supply has a voltage of 5V, and the second resistor has a resistance of 220k Ω.
In an alternative embodiment, the capacitance of the second capacitor is 0.1uF, and the resistance of the third resistor is 5.1k Ω.
In an alternative embodiment, the width of the pulse signal generated by the circuit is determined according to the capacitance value of the second capacitor and the resistance value of the third resistor.
In an alternative embodiment, the first level is a high level and the second level is a low level.
In other embodiments, other circuits may be used that perform the same function.
Fig. 2 is a circuit diagram of a circuit for generating a pulse signal according to an embodiment of the invention. The working process of the circuit is as follows:
1) when the AC alternating current starts to work, when the AC is in a positive half cycle, the U1 photoelectric coupler is in a conducting state, the U2 is in a cut-off state, and when the AC is in a negative half cycle, the U1 is in a cut-off state, and the U2 is in a conducting state. The lower input of U3 is 1, whether it is a positive or negative half cycle.
2) When the AC alternating current just crosses zero, both U1 and U2 are cut off, so U3 has a lower input of 0 at this time.
3) When the Alternating Current (AC) crosses zero, since one end of the U3 has an input of 0, the output of the U3 is 1, the U3 charges the C2, since the voltage across the C2 cannot suddenly change, the input ends of the U4 are all 1, the output of the U4 is 0, the output of the U5 is 1, and the output of the U5 is a direct-current pulse positive voltage 1.
4) When the AC is in the positive or negative half cycle, the U3 output is 0, at which point the C2 starts discharging, and when the discharge is complete, the input of U4 is 0, then the U4 output is 1, so the U5 output is 0, at which point it is at the 0 position of the dc pulse.
The application specifically describes that AC is 220V/50Hz, R1 is 360K omega, C1 is 10nF, Vcc is 5V, R2 is 220K omega, C2 is 0.1uF, and R3 is 5.1K omega:
1) when the AC alternating current passes through the 0 point, the output of the U3 is 5V, the C2 starts charging, the output of the U4 is 0, and the output of the U5 is 5V high level.
2) When the AC cross is in the positive or negative half cycle, the output of U3 is 0V, at which time C2 starts discharging for about 0.5ms at R3C 2, and when discharging is completed, the input of U4 is 0, the output is 5V, the output of U5 is 0V, low.
3) In this cycle, the output is a pulse voltage, the pulse width is related to the magnitude of R3 and C2, and can be adjusted as needed, and the number of output dc pulses is twice the frequency.
Fig. 3 is a flowchart of a method for generating a pulse signal according to an embodiment of the present invention, and as shown in fig. 3, the method for generating a pulse signal according to the embodiment includes:
s11, the conversion unit receives the alternating current signal, and when the alternating current signal is in a positive half cycle or a negative half cycle, a first level is output to the pulse signal generating unit; when the alternating current signal is at the zero crossing point moment, outputting a second level to the pulse signal generating unit;
s12, the pulse signal generating unit outputs a pulse signal each time the second level is received.
In an alternative embodiment, the capacitance value of the second capacitor and/or the resistance value of the third resistor are adjusted to increase or decrease the width of the pulse signal generated by the pulse signal generating unit.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
The foregoing is only a preferred embodiment of the present invention, and naturally there are many other embodiments of the present invention, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, and these corresponding changes and modifications should fall within the scope of the appended claims.
Claims (5)
1. A circuit for generating a pulse signal, comprising:
the conversion unit is used for receiving an alternating current signal and outputting a first level to the pulse signal generation unit when the alternating current signal is in a positive half period or a negative half period; when the alternating current signal is at the zero crossing point moment, outputting a second level to the pulse signal generating unit;
a pulse signal generating unit for outputting a pulse signal every time the second level is received;
the conversion unit comprises a first resistor, a first capacitor, a direct current power supply, a first photoelectric coupler, a second photoelectric coupler and a second resistor; the first photoelectric coupler or the second photoelectric coupler comprises a light emitting diode and a phototriode;
one end of the first resistor is used as an input end of the conversion unit, and the other end of the first resistor is connected with one end of the first capacitor; the other end of the first capacitor is grounded;
a collector of the phototriode of the first photoelectric coupler and a collector of the phototriode of the second photoelectric coupler are respectively connected with the direct-current power supply, an emitter of the phototriode of the first photoelectric coupler and an emitter of the phototriode of the second photoelectric coupler are respectively connected with one end of the second resistor, the end of the second resistor is used as an output end of the conversion unit, and the other end of the second resistor is grounded;
the anode end of the light emitting diode of the first photoelectric coupler is connected with one end of the first capacitor, and the cathode end of the light emitting diode of the first photoelectric coupler is grounded;
the cathode end of the light emitting diode of the first photoelectric coupler is connected with one end of the first capacitor, and the anode end of the light emitting diode of the first photoelectric coupler is grounded;
the pulse signal generating unit comprises a first NAND gate, a second NAND gate, a third NAND gate, a second capacitor and a third resistor;
the first NAND gate, the second NAND gate and the third NAND gate are two-input NAND gates;
a first input end of the first nand gate is used as an input end of the pulse signal generation unit, and an output end of the third nand gate is used as an output end of the pulse signal generation unit;
the output end of the conversion unit is connected with the input end of the pulse signal generation unit, the output end of the first nand gate is respectively connected with one end of the second capacitor and the first input end of the second nand gate, the other end of the second capacitor is respectively connected with one end of the third resistor and the second input end of the second nand gate, and the output end of the second nand gate is respectively connected with the second input end of the first nand gate, the first input end of the third nand gate and the second input end of the second nand gate; the other end of the third resistor is grounded;
the resistance value of the first resistor is 360k omega, the capacitance value of the first capacitor is 10nF, the voltage of the direct current power supply is 5V, and the resistance value of the second resistor is 220k omega;
the capacitance value of the second capacitor is 0.1uF, and the resistance value of the third resistor is 5.1k omega.
2. The circuit of claim 1,
the width of the pulse signal generated by the circuit is determined according to the capacitance value of the second capacitor and the resistance value of the third resistor.
3. The circuit of claim 1,
the first level is a high level and the second level is a low level.
4. A method for generating a pulse signal, based on the circuit implementation of claim 1, comprising:
the conversion unit receives an alternating current signal, and outputs a first level to the pulse signal generation unit when the alternating current signal is in a positive half period or a negative half period; when the alternating current signal is at the zero-crossing point moment, outputting a second level to the pulse signal generating unit;
the pulse signal generating unit outputs a pulse signal each time the second level is received.
5. The method of claim 4,
and adjusting the capacitance value of the second capacitor and/or the resistance value of the third resistor to increase or decrease the width of the pulse signal generated by the pulse signal generating unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910785343.6A CN110572140B (en) | 2019-08-23 | 2019-08-23 | Circuit and method for generating pulse signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910785343.6A CN110572140B (en) | 2019-08-23 | 2019-08-23 | Circuit and method for generating pulse signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110572140A CN110572140A (en) | 2019-12-13 |
CN110572140B true CN110572140B (en) | 2022-09-20 |
Family
ID=68776016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910785343.6A Active CN110572140B (en) | 2019-08-23 | 2019-08-23 | Circuit and method for generating pulse signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110572140B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633020A (en) * | 2003-12-23 | 2005-06-29 | 中国科学院安徽光学精密机械研究所 | Non-master transformer type laser pulse power supply and operating method thereof |
CN202190442U (en) * | 2011-08-04 | 2012-04-11 | 英飞特电子(杭州)有限公司 | Chopping dimming device |
JP2019021959A (en) * | 2017-07-11 | 2019-02-07 | 横河電機株式会社 | Pulse generator circuit |
-
2019
- 2019-08-23 CN CN201910785343.6A patent/CN110572140B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633020A (en) * | 2003-12-23 | 2005-06-29 | 中国科学院安徽光学精密机械研究所 | Non-master transformer type laser pulse power supply and operating method thereof |
CN202190442U (en) * | 2011-08-04 | 2012-04-11 | 英飞特电子(杭州)有限公司 | Chopping dimming device |
JP2019021959A (en) * | 2017-07-11 | 2019-02-07 | 横河電機株式会社 | Pulse generator circuit |
Also Published As
Publication number | Publication date |
---|---|
CN110572140A (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101207333B (en) | Switch power supply and control method with awaiting orders mode thereof | |
KR20170002327A (en) | Input voltage detecting circuit and power supply device comprising the same | |
CN103633974A (en) | Power-on reset circuit with fixed resistance-capacitance time delay characteristic | |
CN204465489U (en) | A kind of New Low Voltage electrify restoration circuit | |
CN112130050B (en) | IGBT desaturation fault detection device | |
CN110572140B (en) | Circuit and method for generating pulse signal | |
CN203537356U (en) | Power on reset circuit | |
CN210351116U (en) | Time delay control circuit | |
CN105846663B (en) | Operating system and control method | |
CN111596123A (en) | Zero-crossing detection circuit | |
CN208818364U (en) | Temperature measuring circuit | |
CN206850404U (en) | A kind of line under-voltage protection circuit with the input of retarding window wide scope | |
CN114531014B (en) | Power supply circuit, device and equipment of synchronous rectifier | |
CN213843380U (en) | Zero-crossing detection circuit | |
CN214412270U (en) | Frequency converter output overcurrent protection circuit | |
CN109413803A (en) | LED adjusting control circuit | |
CN201541247U (en) | Power-on reset device of integrated circuit chip | |
CN203502529U (en) | Switching on/of judging circuit of electric leakage reclosure breaker | |
CN203606422U (en) | Zero-crossing detection circuit | |
CN102236769A (en) | Multiplier-divider and method thereof | |
CN204258771U (en) | AC/DC logic input. interface circuit and comprise its integrated circuit | |
CN103413567A (en) | Reference voltage supply circuit | |
CN216564505U (en) | Power protection circuit under quick break-make of input voltage | |
CN103413568A (en) | Reference voltage supply circuit | |
CN217931797U (en) | Power grid zero-crossing detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |