A variable timing circuit

By designing a variable timing circuit, the problem of excessive size of timers with long timing durations is solved, realizing the ability to adapt to various timing requirements in a small size, with boost and testing capabilities, and suitable for scenarios with size requirements.

CN116232302BActive Publication Date: 2026-11-17BEIJING HUACHUANG QIXING MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211692115.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-11-17
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

Existing timers are bulky when the timing period is long, making them unsuitable for scenarios with size requirements. Furthermore, implementing multiple timing periods increases the number of components.

Method used

A variable timing circuit is adopted, including a power supply module, a boost module, a control module, an energy storage capacitor, and an electronic switch. The timing duration is set by the control module, which controls the boost module to charge and discharge the energy storage capacitor, thereby realizing the adjustment of various timing times.

Benefits of technology

It achieves adaptability to various timing requirements in a small size, is suitable for scenarios with requirements on package size, has boost function and testing function, and has good practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232302B_ABST
    Figure CN116232302B_ABST
Patent Text Reader

Abstract

This application relates to a variable timing circuit, comprising a power supply module, a boost module, a control module, an energy storage capacitor, and an electronic switch. The power supply module is used to connect to an external power source and output a supply voltage. The control module, connected to the power supply module, outputs a first control signal after a specified delay and a second control signal after the energy storage capacitor has finished charging. The boost module, connected to both the power supply module and the control module, increases the amplitude of the supply voltage upon receiving the first control signal, outputting a load voltage to charge the energy storage capacitor. The electronic switch, connected to the control module, is turned on upon receiving the second control signal, discharging the energy storage capacitor. This application saves space required for the circuit, offering the advantage of small size and making it better suited for scenarios with strict package size requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of timers, and in particular to a variable timing circuit. Background Technology

[0002] A timer is a widely used timing tool.

[0003] In related technologies, timers include voltage conversion modules, counting modules, and electronic switches, primarily implementing timing functions through hardware circuits. It's understood that, on the one hand, the timing duration of such timers is relatively limited. When a longer timing duration is required, the selected capacitor also becomes larger. On the other hand, although multiple timing durations can be achieved, this still increases the size of the timer. Therefore, it's difficult to apply to scenarios where timer size is a constraint. Summary of the Invention

[0004] To increase practicality, this application provides a variable timing circuit.

[0005] The variable timing circuit provided in this application adopts the following technical solution: A variable timing circuit includes a power supply module, a boost module, a control module, an energy storage capacitor, and an electronic switch; The power module is used to connect to an external power source and output a power supply voltage; The control module is connected to the power module and is used to output a first control signal after a specified delay, and to output a second control signal after the energy storage capacitor has finished charging. The boost module is connected to the power supply module and the control module respectively, and is used to increase the amplitude of the supply voltage and output the load voltage when the first control signal is received, so as to charge the energy storage capacitor. The electronic switch is connected to the control module and is used to turn on when a second control signal is received, so that the energy storage capacitor discharges.

[0006] By adopting the above technical solution, users can set the required timing duration in the control module, enabling the control module to output a first control signal after a specified delay to control the boost module to charge the energy storage capacitor. Once charging is complete, the control module also outputs a second control signal to control the energy storage capacitor to discharge. Compared to related technologies, this method has the advantage of smaller size, making it better suited for scenarios with strict packaging size requirements.

[0007] Optionally, the boost module includes an oscillation unit and a voltage doubler rectifier unit; The oscillation unit is connected to the power module and the control module respectively, and is used to output an oscillation signal when the first control signal is received; The voltage doubler rectifier unit is connected to the power supply module and the oscillation unit respectively. When it receives the oscillation signal, it increases the amplitude of the supply voltage and outputs the load voltage to charge the energy storage capacitor.

[0008] Optionally, the oscillation unit includes a first NAND gate, a second NAND gate, a third NAND gate, an oscillation resistor, and an oscillation capacitor; The input terminal of the first NAND gate is connected to the control module, the input terminal of the second NAND gate is connected to the output terminal of the first NAND gate, the input terminal of the third NAND gate is connected to the output terminal of the first NAND gate, one end of the oscillating resistor is connected to the other input terminal of the first NAND gate, and the other end is connected to the input terminal of the third NAND gate. One end of the oscillating capacitor is connected to the common terminal of the oscillating resistor and the first NAND gate, and the other end is connected to the output terminals of the second and third NAND gates.

[0009] Optionally, the voltage multiplier rectifier unit includes multiple voltage multiplier sub-units, each of which includes a diode and a capacitor connected in series; each voltage multiplier sub-unit is connected in parallel with the diode of the previous voltage multiplier sub-unit.

[0010] By adopting the above technical solution, the amplitude of the output load voltage can be adjusted according to the user's needs.

[0011] Optionally, it also includes an NPN transistor and a fourth NAND gate, wherein the electronic switch is an NMOS transistor; The base of the NPN transistor is connected to the control module, the emitter of the NPN transistor is grounded, the input of the fourth NAND gate is connected to the collector of the NPN transistor, the gate of the NMOS transistor is connected to the output of the fourth NAND gate, the source is grounded, and the drain is connected to the output of the boost module.

[0012] Optionally, the control module is a microcontroller.

[0013] Optionally, the microcontroller is configured as follows: Get the delay duration, charging duration, and total timer duration; After connecting to power, obtain the timing duration; When the timing duration is determined to be equal to the preset delay duration, the first control signal is output; The duration of the first control signal is determined based on the timing duration and the delay duration; When the duration of the first control signal is determined to be equal to the charging duration, the second control signal is output.

[0014] Optionally, the microcontroller is further configured to include: When a quick check command is received, the first control signal for the duration of continuous testing is output. When the duration of the first control signal is determined to be equal to the charging duration, the second control signal is output. The duration of the second control signal is the difference between the test duration and the charging duration.

[0015] In summary, this application includes at least one of the following beneficial technical effects: 1. Users can set the desired timing duration in the control module, enabling the module to output a first control signal after a specified delay to control the boost module to charge the energy storage capacitor. Once charging is complete, the control module also outputs a second control signal to control the energy storage capacitor to discharge. Compared to related technologies, this method has the advantage of smaller size, making it better suited for scenarios with limited package size.

[0016] 2. The variable timing circuit of this application has boost and testing functions, which can meet various user needs and has good practicality. Attached Figure Description

[0017] Figure 1 This is a system schematic diagram of a variable timing circuit according to an embodiment of this application.

[0018] Figure 2 This is a circuit diagram of a variable timing circuit according to an embodiment of this application.

[0019] Explanation of reference numerals in the attached diagram: 1. Power supply module; 2. Control module; 3. Boost module; 31. Oscillation unit; 32. Voltage doubler rectifier unit; 321. Voltage doubler sub-unit; 4. Electronic switch. Detailed Implementation

[0020] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figure 1-2 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the application.

[0021] This application discloses a variable timing circuit that can be adjusted to various timing intervals according to user needs, while also having the advantages of small size and low power consumption. (Refer to...) Figure 1 and Figure 2 The variable timing circuit includes a power supply module 1, a boost module 3, a control module 2, an energy storage capacitor C2, and an electronic switch 4.

[0022] Among them, power module 1 is used to connect to an external power source and output the power supply voltage; Control module 2 is connected to power module 1 and is used to output a first control signal after a specified delay, and to output a second control signal after the energy storage capacitor C2 has finished charging. That is, under the control of the microcontroller, the variable timing circuit of this application can realize the function of outputting the load voltage after power-on and after the total timing duration.

[0023] Preferably, the control module 2 is a microcontroller. The microcontroller used in this application has eight pins and an RC oscillator. The seventh pin is used to output a first control signal to charge the energy storage capacitor C2. The sixth pin is used to output a second control signal to discharge the energy storage capacitor C2 to an external load device after charging is complete. The fourth pin is used to receive a quick check command for rapid testing when the variable timing circuit starts. The frequency of the built-in RC oscillator is preferably 4MHz for timing, thereby controlling the output state of each pin.

[0024] Specifically, the boost module 3 is connected to the power module 1 and the control module 2 respectively. It is used to receive the first control signal and to increase the amplitude of the power supply voltage when the first control signal is received, and output the load voltage to charge the energy storage capacitor C2.

[0025] The boost module 3 includes an oscillation unit 31 and a voltage doubler rectifier unit 32.

[0026] The oscillation unit 31 is connected to the power supply module 1 and the control module 2 respectively, and is used to receive the first control signal and output the oscillation signal when the first control signal is received.

[0027] Specifically, the oscillation unit 31 includes a first NAND gate U1, a second NAND gate U2, a second NAND gate U3, an oscillation resistor R1, and an oscillation capacitor C3. The input terminal of the first NAND gate U1 is connected to the control module 2, the input terminal of the second NAND gate U2 is connected to the output terminal of the first NAND gate U1, the input terminal of the second NAND gate U3 is connected to the output terminal of the first NAND gate U1, one end of the oscillation resistor R1 is connected to the other input terminal of the first NAND gate U1, and the other end is connected to the input terminal of the second NAND gate U3. One end of the oscillation capacitor C3 is connected to the common terminal of the oscillation resistor R1 and the first NAND gate U1, and the other end is connected to the output terminals of the second NAND gate U2 and the second NAND gate U3.

[0028] To prevent the microcontroller from being damaged by the load voltage, a transistor V8 is also installed on the line connecting the first NAND gate U1 to the microcontroller. Preferably, transistor V8 is an NPN transistor.

[0029] The base of NPN transistor V8 is connected to pin 7 of the microcontroller, its emitter is grounded, and its collector is connected to one input of the first NAND gate U1. When the microcontroller's pin 7 outputs a high-level signal, NPN transistor V8 is in the ON state, and its collector outputs a low-level signal, so oscillation unit 31 is not working. When the microcontroller's pin 7 outputs a low-level signal (i.e., outputs the first control signal), NPN transistor V8 is in the OFF state, and its collector outputs a high-level signal, so oscillation unit 31 generates an oscillation signal.

[0030] The oscillation unit 31 operates as follows: When the oscillation unit 31 starts working, both input terminals of the first NAND gate U1 are connected to a high-level signal, and its output terminal outputs a low-level signal. This causes the output terminals of the second NAND gate U2 and the second NAND gate U3 to both output high-level signals. At this time, the oscillation capacitor C3 is in a charging state. Until the oscillation capacitor C3 is fully charged, the voltage output of the first NAND gate U1 changes from low to high, causing the output terminals of the second NAND gate U2 and the second NAND gate U3 to both output low-level signals. At this time, the oscillation capacitor C3 is in a discharging state. Until the oscillation capacitor C3 has finished discharging, the voltage output of the first NAND gate U1 changes from high to low again. This cycle repeats, thereby generating a continuous oscillation signal.

[0031] The voltage doubler rectifier unit 32 is connected to the power supply module 1 and the oscillation unit 31 respectively. It is used to receive the oscillation signal and, when the oscillation signal is received, to increase the amplitude of the power supply voltage and output the load voltage.

[0032] Specifically, the voltage multiplier rectifier unit 32 includes multiple voltage multiplier sub-units 321. Each voltage multiplier sub-unit 321 includes a diode and a capacitor connected in series. Each voltage multiplier sub-unit 321 is connected in parallel with the diode of the previous voltage multiplier sub-unit 321. It should be noted that all diodes are forward-biased.

[0033] In this application, five voltage multiplier units 321 are provided, and since the voltage of capacitor C1 when it is fully charged is 5V, the load voltage output by the voltage multiplier rectifier unit 32 is 25V. Of course, in other scenarios, the number of voltage multiplier units 321 can be adjusted according to the actual situation to output different load voltages.

[0034] A storage capacitor C2 is also connected between the output terminal of the voltage doubler rectifier unit 32 and the ground wire.

[0035] Electronic switch 4 is connected to control module 2 and is used to receive a second control signal and to turn on when the second control signal is received, so as to discharge energy storage capacitor C2. Preferably, electronic switch 4 is NMOS transistor V9.

[0036] Similarly, to prevent the microcontroller from being damaged by the load voltage, the variable timing circuit of this application also includes an NPN transistor V7 and a second NAND gate U4. Specifically, the base of the NPN transistor V7 is connected to the sixth pin of the microcontroller, the emitter is grounded, and the collector is connected to the power module 1. The input of the second NAND gate U4 is connected to the collector of the NPN transistor V7. The gate of the NMOS transistor V9 is connected to the output of the second NAND gate U4, the source is grounded, and the drain is connected to the output of the voltage doubler rectifier unit 32. That is, when the sixth pin of the microcontroller outputs a low-level signal, the NPN transistor V7 is in the off state. At this time, a high-level signal is input to the second NAND gate U4, and a low-level signal is output, causing the NMOS transistor V9 to turn off. Conversely, when the sixth pin of the microcontroller outputs a high-level signal, i.e., when the second control signal is output, the NPN transistor V7 is in the conducting state. At this time, a low-level signal is connected to the input of the second NAND gate U4, and a high-level signal is output, causing the NMOS transistor V9 to conduct, i.e., the output of the voltage doubler rectifier unit 32 begins to discharge. In other embodiments, the second control signal can be changed to a low-level signal, the NPN transistor V7 can be replaced with a PNP transistor, or the NMOS transistor V9 can be replaced with a PMOS transistor; all of these can achieve the above function, which will not be elaborated here.

[0037] To achieve the above functions, the microcontroller also has a corresponding program loaded inside, which is configured as follows: S101: Obtain the delay duration, charging duration, and total timer duration.

[0038] The total timing duration is the user-defined timing time, which includes a delay duration and a charging duration. The charging duration is the time required for the energy storage capacitor C2 to charge. It can be understood that the energy storage capacitor C2 only begins charging when the microcontroller outputs a continuous first control signal. The delay duration is the difference between the total timing duration and the charging duration. During this time period, the variable timing circuit of this application is connected to a power source, but the microcontroller does not output the first control signal.

[0039] It is understood that charging time is also affected by the performance of the microcontroller and the response speed of the circuit. Therefore, before determining the charging time, it is necessary to conduct sampling tests on the same batch of microcontrollers to determine the charging time based on the results of the sampling tests.

[0040] S102: After power is connected, the timing duration is obtained; The timing duration is the total time taken from the start of the variable timing circuit to the present. The timing function can be implemented through an RC oscillator and counter configured inside the computer.

[0041] S103: When the timing duration is determined to be equal to the preset delay duration, output the first control signal.

[0042] As described above, the delay duration is the difference between the total timing duration and the charging duration. The total timing duration is input by the user, while the charging duration is pre-stored within the microcontroller. Therefore, once the total timing duration is determined, the calculated delay duration is also stored in the microcontroller. When the timing duration is less than the delay duration, timing continues. When the timing duration equals the delay duration, the first control signal is output to start charging the energy storage capacitor C2.

[0043] S104: Determine the duration of the first control signal based on the timing duration and the delay duration.

[0044] It is understood that during the charging process of the energy storage capacitor C2, the seventh pin of the microcontroller also continuously outputs the first control signal. The duration of the first control signal is the difference between the timing duration and the delay duration.

[0045] S105: When the duration of the first control signal is determined to be equal to the charging duration, the second control signal is output.

[0046] When the duration of the first control signal equals the charging time, and the timing duration equals the total timing duration, charging is complete. At this point, the microcontroller's sixth pin outputs the second control signal, turning on the NMOS transistor V9. The variable timing circuit then begins discharging to power the load. It is important to note that during the discharging process, the microcontroller's sixth pin continuously outputs the second control signal.

[0047] In addition to the functions mentioned above, the microcontroller also provides a function to quickly check whether the timing function is effective, specifically: S106: When a quick check command is received, output the first control signal for the duration of continuous testing.

[0048] It is understood that the microcontroller pre-stores the test duration. The test duration is the time consumed by the quick check. The microcontroller receives the quick check command through its fourth pin. When the quick check command is received, the microcontroller outputs the first control signal through its seventh pin. The first control signal will continue for the test duration.

[0049] S107: When the duration of the first control signal is determined to be equal to the charging duration, the second control signal is output.

[0050] Because the rapid check test requires verifying the charging and discharging functions of the variable timing circuit, the test duration must be longer than the charging duration. When the current duration of the first control signal is less than the charging duration, it indicates that the energy storage capacitor C2 is not fully charged and needs to continue charging. When the current duration of the first control signal equals the charging duration, it indicates that the energy storage capacitor C2 is fully charged. At this point, the microcontroller's sixth pin outputs the second control signal to initiate the discharge of the variable timing circuit. In the rapid check test, the duration of the second control signal should be the difference between the test duration and the charging duration.

[0051] This application discloses a variable timing circuit that can set different timing durations according to user needs. Compared to timers in related technologies, it reduces the number of required components, thus reducing the required circuit area. Furthermore, when the total timing duration reaches multiple hours, there is no need to select matching capacitors, which further facilitates the reduction of the timing circuit's size and packaging. In summary, the variable timing circuit of this application can achieve both boost voltage functionality and the advantages of small size and low power consumption, making it highly practical.

[0052] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features unless specifically stated otherwise. That is, unless specifically stated otherwise, each feature is only one example of a series of equivalent or similar features.

Claims

1. A variable timing circuit, characterized in that: It includes a power supply module (1), a boost module (3), a control module (2), an energy storage capacitor, and an electronic switch (4); The power module (1) is used to connect to an external power source and output a power supply voltage; The control module (2) is connected to the power module (1) and is used to output a first control signal after a specified delay time, and to output a second control signal after the energy storage capacitor has finished charging. The boost module (3) is connected to the power supply module (1) and the control module (2) respectively, and is used to increase the amplitude of the power supply voltage and output the load voltage to charge the energy storage capacitor when the first control signal is received. The electronic switch (4) is connected to the control module (2) and is used to turn on when a second control signal is received, so that the energy storage capacitor discharges. The boost module (3) includes an oscillation unit (31) and a voltage multiplier rectifier unit (32); The oscillation unit (31) is connected to the power module (1) and the control module (2) respectively, and is used to output an oscillation signal when the first control signal is received; The voltage doubler rectifier unit (32) is connected to the power supply module (1) and the oscillation unit (31) respectively. When the oscillation signal is received, the amplitude of the power supply voltage is increased and the load voltage is output to charge the energy storage capacitor.

2. The variable timing circuit according to claim 1, characterized in that: The oscillation unit (31) includes a first NAND gate, a second NAND gate, a third NAND gate, an oscillation resistor, and an oscillation capacitor; The input terminal of the first NAND gate is connected to the control module (2), the input terminal of the second NAND gate is connected to the output terminal of the first NAND gate, the input terminal of the third NAND gate is connected to the output terminal of the first NAND gate, one end of the oscillating resistor is connected to the other input terminal of the first NAND gate, and the other end is connected to the input terminal of the third NAND gate. One end of the oscillating capacitor is connected to the common terminal of the oscillating resistor and the first NAND gate, and the other end is connected to the output terminals of the second NAND gate and the third NAND gate.

3. The variable timing circuit according to claim 2, characterized in that: The voltage multiplier rectifier unit (32) includes multiple voltage multiplier sub-units (321), each voltage multiplier sub-unit (321) including a diode and a capacitor connected in series; each voltage multiplier sub-unit (321) is connected in parallel with the diode of the previous voltage multiplier sub-unit (321).

4. The variable timing circuit according to claim 3, characterized in that: It also includes an NPN transistor and a fourth NAND gate, and the electronic switch (4) is an NMOS transistor; The base of the NPN transistor is connected to the control module (2), the emitter of the NPN transistor is grounded, the input of the fourth NAND gate is connected to the collector of the NPN transistor, the gate of the NMOS transistor is connected to the output of the fourth NAND gate, the source is grounded, and the drain is connected to the output of the boost module (3).

5. The variable timing circuit according to claim 4, characterized in that: The control module (2) is a microcontroller.

6. The variable timing circuit according to claim 5, characterized in that: The microcontroller is configured as follows: Get the delay duration, charging duration, and total timer duration; After connecting to power, obtain the timing duration; When the timing duration is determined to be equal to the preset delay duration, the first control signal is output; The duration of the first control signal is determined based on the timing duration and the delay duration; When the duration of the first control signal is determined to be equal to the charging duration, the second control signal is output.

7. The variable timing circuit according to claim 6, characterized in that: The microcontroller is further configured to include: When a quick check command is received, the first control signal for the duration of continuous testing is output. When the duration of the first control signal is determined to be equal to the charging duration, the second control signal is output. The duration of the second control signal is the difference between the test duration and the charging duration.

Citation Information

Patent Citations

  • Delay control circuit

    CN107450377A

  • Testing device and method for simulating working condition of capacitor

    CN111722077A