Negative pulse generation circuit and method
By designing a negative pulse generation circuit in a flexible DC transmission and distribution valve control system, using NPN transistors and capacitor and resistor components, the problem of complexity and low reliability of negative pulse signal generation in the existing technology is solved, and a simplified design is achieved. and highly reliable negative pulse signal generation.
Patent Information
- Application Number
- CN202410648238.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-30
AI Technical Summary
In flexible DC transmission and distribution valve control systems, it is difficult for existing technology to generate negative pulse signals simply and effectively, leading to problems of complex design, high cost and low reliability.
A negative pulse generation circuit is designed, which includes NPN transistors, capacitors, resistors and other components. The PWM signal is used to control the turning on and off of the transistor, and combined with the voltage adjustment circuit, the generation and regulation of negative pulse signals are achieved.
It achieves simplified circuit design, reduces costs, improves product reliability, and can effectively generate negative pulse signals with a preset frequency.
Smart Images

Figure CN118573154A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hardware of a flexible direct current power transmission and distribution valve control system, and in particular to a negative pulse generating circuit and method. Background Art
[0002] In the design of flexible DC transmission and distribution valve control system, due to the particularity of the project's high reliability requirements, it is necessary to make strict designs in terms of product reliability and design detection circuits for key node signals. The accuracy of the detection signal should be based on the fact that there are no abnormalities in the hardware circuit. In some cases, it is necessary to detect negative pulse signals to determine whether the hardware circuit is normal.
[0003] In most hardware designs, a positive pulse signal of a certain frequency is obtained through a PWM signal of a certain frequency. However, if a negative pulse signal is desired, it is achieved through a more complex device or circuit design. This design not only increases the cost of the project and increases the PCB layout area, but also increases the probability of device failure of the product. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention provides a negative pulse generating circuit and method, which are used to solve the technical problem of realizing negative pulse signals by complex device or circuit design in the prior art.
[0005] The present invention is achieved through the following technical solutions:
[0006] A negative pulse generating circuit comprises a power supply and a negative pulse generating circuit connected to the power supply, and a negative pulse voltage regulating circuit connected to the negative pulse generating circuit, wherein the negative pulse generating circuit is used to convert a PWM signal into a negative pulse signal of a preset frequency and output it, and the negative pulse voltage regulating circuit is used to adjust the negative pulse voltage amplitude.
[0007] Furthermore, the negative pulse generating circuit includes an NPN transistor Q1, the collector of the NPN transistor Q1 is connected to one end of a capacitor C1, the other end of the capacitor C1 is connected to a power supply VCC, the base of the NPN transistor Q1 is connected to a PWM signal, the high level and the low level of the PWM signal are respectively used to control the on and off of the NPN transistor Q1, and the emitter of the NPN transistor Q1 is grounded GND.
[0008] Furthermore, the negative pulse generating circuit also includes a base filter protection circuit of the NPN transistor Q1, and the base filter protection circuit includes a capacitor C2 and a resistor R2, one end of the capacitor C2 and one end of the resistor R2 are both connected to the PWM signal and the base of the NPN transistor Q1, and the other end of the capacitor C2 and the other end of the resistor R2 are both connected to the emitter of the NPN transistor Q1 and grounded GND.
[0009] Furthermore, the negative pulse voltage regulation circuit includes resistors R1, R3 and R4, one end of the resistor R1 is connected to the power supply VCC, and the other end is respectively connected to one end of the capacitor C1, one end of the resistor R3 and the power supply OUT, the other end of the resistor R3 is respectively connected to the other end of the capacitor C1 and one end of the resistor R4, and the other end of the resistor R4 is connected to the emitter of the NPN transistor Q1 and the ground GND.
[0010] Furthermore, the power supply VCC is used to provide a maximum voltage amplitude of a negative pulse output.
[0011] Furthermore, the capacitance of the capacitor C1 is 0.1 uF, the capacitor C2 is open, the model of the NPN transistor Q1 is BC817-25, and the resistance of the resistor R2 is 10 kΩ.
[0012] Furthermore, the power supply VCC is a DC power supply, and its output voltage is 3.3V.
[0013] Furthermore, the resistance of the resistor R1 is 10Ω, the resistance of the resistor R3 is 5kΩ, and the resistance of the resistor R4 is 20kΩ.
[0014] Furthermore, the voltage amplitude of the input PWM signal is 3.3V, the frequency is 1 Hz, and the duty cycle is 20%.
[0015] A method for generating a negative pulse circuit, comprising the following steps:
[0016] The PWM signal is input into the negative pulse generating circuit and controls the opening and closing of the negative pulse generating circuit. When the negative pulse generating circuit is closed, the pulse voltage regulating circuit divides the power supply VCC, and the negative pulse generating circuit stores energy.
[0017] When the negative pulse generating circuit is turned on, the negative pulse generating circuit releases the stored energy and starts to store energy again. At this time, the power supply OUT output forms a negative pulse signal.
[0018] Compared with the prior art, the present invention has the following beneficial technical effects:
[0019] The present invention provides a negative pulse generating circuit and method, comprising a power supply and a negative pulse generating circuit connected to the power supply, and a negative pulse voltage regulating circuit connected to the negative pulse generating circuit, wherein the negative pulse generating circuit is used to convert a PWM signal into a negative pulse signal of a preset frequency and output the negative pulse signal, and the negative pulse voltage regulating circuit is used to regulate the negative pulse voltage amplitude; when the PWM signal is input into the negative pulse generating circuit and controls the on and off of the negative pulse generating circuit, when the negative pulse generating circuit is turned off, the pulse voltage regulating circuit divides the power supply VCC, and the negative pulse generating circuit stores energy; when the negative pulse generating circuit is turned on, the negative pulse generating circuit releases the stored energy and starts to store energy again, at which time, the power supply OUT forms a negative pulse signal; the negative pulse generating circuit of the present application has a simple circuit, low cost, and higher reliability in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A module diagram of a negative pulse generating circuit in an embodiment of the present disclosure is shown;
[0021] Figure 2 A negative pulse generating circuit topology diagram is shown in an embodiment of the present disclosure;
[0022] Figure 3 A waveform diagram of an input PWM signal in an embodiment of the present disclosure is shown;
[0023] Figure 4 A schematic diagram of a transistor collector waveform in an embodiment of the present disclosure is shown;
[0024] Figure 5 A schematic diagram of the output waveform of the power supply OUT in the embodiment of the present disclosure is shown;
[0025] Figure 6 A schematic diagram of a waveform of a negative pulse output by the power supply OUT in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0026] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0027] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0028] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0029] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0030] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0031] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0032] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0033] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0034] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0035] Figure 1 A module diagram of a negative pulse generating circuit in an embodiment of the present disclosure is shown. In this embodiment, the module includes a power supply and a negative pulse generating circuit connected to the power supply, and a negative pulse voltage regulating circuit connected to the negative pulse generating circuit. The negative pulse generating circuit is used to convert a PWM signal into a negative pulse signal of a preset frequency and output it, and the negative pulse voltage regulating circuit is used to adjust the amplitude of the negative pulse voltage.
[0036] Figure 2 A topological diagram of a negative pulse generating circuit in an embodiment of the present disclosure is shown. The negative pulse generating circuit in this embodiment includes an NPN transistor Q1, the collector of the NPN transistor Q1 is connected to one end of a capacitor C1, the other end of the capacitor C1 is connected to a power supply VCC, the base of the NPN transistor Q1 is connected to a PWM signal, the high level and the low level of the PWM signal are respectively used to control the opening and closing of the NPN transistor Q1, and the emitter of the NPN transistor Q1 is grounded GND.
[0037] Furthermore, the negative pulse generating circuit also includes a base filter protection circuit of the NPN transistor Q1, and the base filter protection circuit includes a capacitor C2 and a resistor R2, one end of the capacitor C2 and one end of the resistor R2 are both connected to the PWM signal and the base of the NPN transistor Q1, and the other end of the capacitor C2 and the other end of the resistor R2 are both connected to the emitter of the NPN transistor Q1 and grounded GND; it should be noted that, in this embodiment, the capacitor C2 in the base filter protection circuit is used for filtering, mainly for filtering out ripples in the rectified output voltage, so that the output voltage is more stable and smooth; and the protection aspect is mainly based on the resistor R2.
[0038] Furthermore, in the embodiment of the present disclosure, the negative pulse voltage regulation circuit includes resistors R1, R3 and R4, one end of the resistor R1 is connected to the power supply VCC, and the other end is respectively connected to one end of the capacitor C1, one end of the resistor R3 and the power supply OUT, the other end of the resistor R3 is respectively connected to the other end of the capacitor C1 and one end of the resistor R4, and the other end of the resistor R4 is connected to the emitter of the NPN transistor Q1 and the ground GND.
[0039] Furthermore, in the embodiment of the present disclosure, the power supply VCC is used to provide a maximum voltage amplitude of a negative pulse output.
[0040] Furthermore, in the embodiment of the present disclosure, the capacitance of the capacitor C1 is 0.1 uF, the capacitor C2 is open, the model of the NPN transistor Q1 is BC817-25, and the resistance of the resistor R2 is 10 kΩ.
[0041] The power supply VCC is a DC power supply, and its output voltage is 3.3V.
[0042] The resistance of the resistor R1 is 10Ω, the resistance of the resistor R3 is 5kΩ, and the resistance of the resistor R4 is 20kΩ.
[0043] The voltage amplitude of the input PWM signal is 3.3V, the frequency is 1 Hz, and the duty cycle is 20%.
[0044] The present disclosure provides a method for generating a negative pulse circuit, comprising the following steps:
[0045] The PWM signal is input into the negative pulse generating circuit and controls the opening and closing of the negative pulse generating circuit. When the negative pulse generating circuit is closed, the pulse voltage regulating circuit divides the power supply VCC, and the negative pulse generating circuit stores energy.
[0046] When the negative pulse generating circuit is turned on, the negative pulse generating circuit releases the stored energy and starts to store energy again. At this time, the power supply OUT output forms a negative pulse signal.
[0047] Specifically, the high level and low level of the input PWM signal are used to control the opening and closing of the NPN transistor Q1 respectively, so that the power supply VCC charges and discharges the capacitor C1. During the shutdown period of the NPN transistor Q1, the negative pulse voltage regulation circuit resistors R1, R3 and R4 divide the power supply VCC, and the pin 1 of the capacitor C1 forms a potential with a certain proportion of the power supply VCC to the ground. At the moment the NPN transistor Q1 is turned on, the potential of the pin 1 of the capacitor C1 is instantly grounded, the capacitor C1 releases the stored energy, and at the same time, the potential of the pin 2 of the capacitor C1 is lowered. However, at the moment when the energy release of the capacitor C1 is completed, the power supply VCC starts to charge the capacitor C1, then a negative (sharp) pulse signal can be formed at the power supply OUT end, in which the capacitor is first discharged and then charged. The width of the negative pulse can be adjusted by changing the capacitance of C1.
[0048] It should be noted that in the embodiments of the present disclosure, the negative (sharp) pulse signal is a special pulse signal, which is a unipolar pulse signal whose peak amplitude drops rapidly and quickly recovers to the initial value; from the perspective of level change, the negative pulse signal is a signal that jumps from a high level to a low level, and then jumps from a low level to a high level, that is, the negative pulse first has a falling edge and then continues at a low level for a period of time before having a rising edge.
[0049] Furthermore, the NPN transistor Q1 is composed of two N-type semiconductors with a P-type semiconductor sandwiched between them, and includes an N-type doped collector, a P-type doped base, and an N-type doped emitter; when the base of the NPN transistor Q1 is connected to the high level of the PWM signal, the NPN transistor Q1 is turned on, and when the base of the NPN transistor Q1 is connected to the low level of the PWM signal, the NPN transistor Q1 is turned off. Specifically, the electron flow is injected from the N-type doped emitter into the P-type doped base, and then flows from the base to the N-type doped collector; when the base current is large enough, the NPN transistor Q1 enters the on state, at which time the resistance between the collector and the emitter becomes very small, and can be regarded as a wire; when the base current is zero or very small, the NPN transistor Q1 enters the off state, at which time the resistance between the collector and the emitter becomes very large, which is equivalent to the disconnected state.
[0050] In the negative pulse voltage regulation circuit, resistors R1, R3 and R4 form a potential constraint on the voltage across capacitor C1, which can control the minimum voltage amplitude of the negative pulse; specifically, the current is limited by resistors R1, R3 and R4, thereby controlling the charging or discharging speed of capacitor C1; during the charging process, the power supply provides charge to capacitor C1 through resistors R1, R3 and R4, so that the voltage across capacitor C1 gradually increases. Due to the existence of resistors, the voltage across capacitor C1 will not immediately reach the power supply voltage, but will rise at a slower rate until it is equal to the power supply voltage. This process can be regarded as a potential constraint on the voltage across capacitor C1 through resistors; during the discharging process, when capacitor C1 is disconnected from the power supply and connected to a resistive load, capacitor C1 will begin to discharge, that is, charge flows from one plate of capacitor C1 to the other plate, forming a current through the resistor. Similarly, due to the existence of resistors, the discharging process will not be completed immediately, but will proceed at a certain rate until the voltage across capacitor C1 drops to zero.
[0051] Furthermore, those skilled in the art can control the charging and discharging rates of the capacitor C1 by selecting a suitable resistance value, thereby achieving potential constraints on the voltage across the capacitor C1. For example, if the voltage across the capacitor C1 needs to reach a stable value in a shorter time, a smaller resistance value can be selected; if the voltage across the capacitor C1 needs to remain stable for a longer time, a larger resistance value can be selected.
[0052] In the embodiment of the present disclosure, the power supply VCC selects DC 3.3V, the input PWM signal selects a square wave with a voltage amplitude of 3.3V, a frequency of 1Hz, and a duty cycle of 20%, and the minimum pulse voltage and pulse width of the generated negative pulse are adjusted by adjusting the resistance values of the resistors R1, R3, and R4; Figure 3 Schematic diagram of the waveform of the input PWM signal in the embodiment of the present disclosure is shown. Figure 4 Schematic diagram of transistor collector waveform in the embodiment of the present disclosure is shown. Figure 5 Schematic diagram of the output waveform of the power supply OUT in the embodiment of the present disclosure is shown. Figure 6 A schematic diagram of a waveform of a negative pulse output by the power supply OUT in an embodiment of the present disclosure is shown.
[0053] During the shutdown period of the NPN transistor Q1, since the resistors R1, R3 and R4 in the negative pulse voltage regulation circuit divide the power supply VCC, the voltage at pin 1 of the capacitor C1 is 2.639V, and the potential at pin 2 of the capacitor C1 is 3.298V. At the moment the NPN transistor Q1 is turned on, the potential at pin 1 of the capacitor C1 is 0V, and the capacitor C1 releases the stored energy and simultaneously lowers the potential at pin 2 of the capacitor C1. However, at the moment the energy release of the capacitor C1 is completed, the power supply VCC starts to charge the capacitor C1, and a negative pulse can be formed at the power supply OUT end. The width of the negative pulse can be adjusted by changing the capacitance of the capacitor C1. In the negative pulse voltage regulation circuit, the resistors R1, R3 and R4 form a potential constraint on the voltage at both ends of the capacitor C1, and the minimum voltage amplitude of the negative pulse can be controlled and adjusted.
[0054] It should be noted that in the embodiments of the present disclosure, the connection ends of the above-mentioned devices are marked and distinguished to better illustrate the present method. Figure 2 As shown, for example, the two ends of the resistor R1 are respectively represented as pin 1 and pin 2 of the resistor R1, wherein pin 1 of the resistor R1 is used to connect the power supply VCC, and pin 2 of the resistor R1 is respectively connected to pin 2 of the capacitor C1 and pin 1 of the resistor R3, as well as the power supply OUT terminal; pin 1 of the capacitor C1 is respectively connected to pin 3 of the NPN transistor Q1 and pin 2 of the resistor R3, as well as pin 1 of the resistor R4, and pin 1 of the NPN transistor Q1 is respectively connected to pin 2 of the resistor R2 and pin 1 of the capacitor C2, as well as the IN_PWM signal; pin 2 of the resistor R4, pin 2 of the NPN transistor Q1, pin 1 of the resistor R2, and pin 2 of the capacitor C2 are all connected to the ground GND; it constitutes another expression form of the present scheme, which can be identified as the same scheme as the technical scheme of the present application.
[0055] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.
[0056] In addition, it should be understood that although this specification is described in accordance with the implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation modes that can be understood by those skilled in the art. The above content is only to illustrate the technical idea of the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution according to the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A negative pulse generating circuit, characterized in that: It includes a power supply and a negative pulse generating circuit connected to the power supply, and a negative pulse voltage regulating circuit connected to the negative pulse generating circuit. The negative pulse generating circuit is used to convert a PWM signal into a negative pulse signal of a preset frequency and output it, and the negative pulse voltage regulating circuit is used to adjust the negative pulse voltage amplitude.
2. A negative pulse generating circuit according to claim 1, characterized in that: The negative pulse generating circuit includes an NPN transistor Q1, the collector of the NPN transistor Q1 is connected to one end of a capacitor C1, the other end of the capacitor C1 is connected to a power supply VCC, the base of the NPN transistor Q1 is connected to a PWM signal, the high level and the low level of the PWM signal are respectively used to control the turning on and off of the NPN transistor Q1, and the emitter of the NPN transistor Q1 is grounded GND.
3. A negative pulse generating circuit according to claim 2, characterized in that: The negative pulse generating circuit also includes a base filter protection circuit of the NPN transistor Q1, and the base filter protection circuit includes a capacitor C2 and a resistor R2, one end of the capacitor C2 and one end of the resistor R2 are both connected to the PWM signal and the base of the NPN transistor Q1, and the other end of the capacitor C2 and the other end of the resistor R2 are both connected to the emitter of the NPN transistor Q1 and grounded GND.
4. A negative pulse generating circuit according to claim 2, characterized in that: The negative pulse voltage regulation circuit includes resistors R1, R3 and R4. One end of the resistor R1 is connected to the power supply VCC, and the other end is respectively connected to one end of the capacitor C1, one end of the resistor R3 and the power supply OUT. The other end of the resistor R3 is respectively connected to the other end of the capacitor C1 and one end of the resistor R4. The other end of the resistor R4 is connected to the emitter of the NPN transistor Q1 and the ground GND.
5. A negative pulse generating circuit according to claim 2, characterized in that: The power supply VCC is used to provide a negative pulse output with a maximum voltage amplitude.
6. A negative pulse generating circuit according to claim 2, characterized in that: The capacitance of the capacitor C1 is 0.1uF, the capacitor C2 is open, the model of the NPN transistor Q1 is BC817-25, and the resistance of the resistor R2 is 10kΩ.
7. A negative pulse generating circuit according to claim 2, characterized in that: The power supply VCC is a DC power supply, and its output voltage is 3.3V.
8. A negative pulse generating circuit according to claim 4, characterized in that: The resistance of the resistor R1 is 10Ω, the resistance of the resistor R3 is 5kΩ, and the resistance of the resistor R4 is 20kΩ.
9. A negative pulse generating circuit according to claim 1, characterized in that: The voltage amplitude of the input PWM signal is 3.3V, the frequency is 1 Hz, and the duty cycle is 20%.
10. A method for generating a negative pulse circuit, characterized in that, A negative pulse generating circuit according to any one of claims 1 to 9, comprising the following steps: The PWM signal is input into the negative pulse generating circuit and controls the opening and closing of the negative pulse generating circuit. When the negative pulse generating circuit is closed, the pulse voltage regulating circuit divides the power supply VCC, and the negative pulse generating circuit stores energy. When the negative pulse generating circuit is turned on, the negative pulse generating circuit releases the stored energy and starts to store energy again. At this time, the power supply OUT output forms a negative pulse signal.
