1. Technical Field
The present disclosure relates to electronic devices, particularly relates to an electronic device with a delay circuit.
2. Description of Related Art
For some electronic devices, the delay time in many delay circuits are dependent on the product of the resistors and the capacitors that made up the delay circuitry. For many such delay circuits the charging and discharging time of the capacitors can be changed by changing the resistances of the resistors. However, it is difficult to change the charging time without affecting the discharging time or vice versa. This is inconvenient.
Therefore, there is room for improvement in the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout two views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
The power supply 1 provides a voltage to the delay circuit 2. In the embodiment, the power supply 1 is an internal battery. In the other embodiments, the power supply 1 can be an adapter connected to a commercial power supply.
The delay circuit 2 is connected between the power supply 1 and the load 3. The delay circuit 2 is charged gradually and delays outputting the voltage of the power supply 1 to the load 3 for a first predetermined time period when the electronic device 100 is first being powered on. The delay circuit 2 further generates a delay signal for keeping the load 3 working during a second predetermined time period after the electronic device 100 has been powered off. The delay circuit 2 includes a first adjusting module 21, a switching module 23, a delay module 25, and a second adjusting module 27.
The first adjusting module 21 is connected between the power supply 1 and the switching module 23. The first adjusting module 21 outputs a working voltage and can adjust the duration of the first predetermined time period and keep the second predetermined time period unchangeable.
The switching module 23 is connected between the first adjusting module 21 and the delay module 25. The switching module 23 establishes an electrical connection between the first adjusting module 21 and the delay module 25 when the working voltage is received, and, and cuts off the electrical connection between the first adjusting module 21 and the delay module 25 when the working voltage is not supplied.
The delay module 25 is connected to the switching module 23, the second adjusting module 27, and the load 3. The delay module 25 is charged by the working voltage and delays the output of the working voltage to the load 3 for a first predetermined time period when the electronic device 100 is powered on. The delay module 25 further outputs a delay signal which keeps the load 3 supplied with power for a second predetermined time period when the electronic device 100 is powered off.
The second adjusting module 27 is connected to the switching module 23, the delay module 25, and the load 3. The second adjusting module 27 forms a discharge path from the delay module 25 to the load 3 and can adjust the duration of the second predetermined time period and the first predetermined time period at the same time when the electronic device 100 is powered off.
The load 3 is powered by the working voltage to execute a function, such as a playing music or playing a video, for example. In the embodiment, the load 3 is an enable pin of a power IC.
When either the first predetermined time period or the second predetermined time period is being adjusted, the other predetermined time period is not adjusted, that is to say, the respective durations of the first and second predetermined periods of time can be independently adjusted.
The switching module 23 includes a diode D1. An anode of the diode D1 is connected between the first resistor R1 and the second resistor R2. A cathode of the diode D1 is connected to the delay module 25, the second adjusting module 27, and the load 3.
The delay module 25 includes a first capacitor C1 and a second capacitor C2. The first capacitor C1 and the second capacitor C2 are connected in parallel between the cathode of the diode D1 and ground.
The second adjusting module 27 includes a third resistor R3. An end of the third resistor R3 is connected to the cathode of the diode D1, and other end of the third resistor R3 is grounded. In the embodiment, the resistance of the third resistor R3 is adjustable.
When the power terminal V1 is powered on, the difference in voltage between the anode and the cathode of the diode D1 is greater than 0.3V, and the diode D1 is turned on. The first capacitor C1 and the second capacitor C2 are charged gradually by the voltage of the power terminal V1 through the diode D1. As the first capacitor C1 and the second capacitor C2 are being charged, there is a delay in transmitting the working voltage to the load 3, and after the first predetermined time period the working voltage develops to power on the load 3. The first predetermined time period is calculated according to the following formula:
The voltage provided to the load 3 can be calculated according to the following formula:
When the power terminal V1 is powered off, the difference in voltage between the anode and the cathode of the diode D1 is smaller than 0V, and the diode D1 is turned off. The first capacitor C1, the second capacitor C2, and the third resistor R3 forms the discharge path to generate a delay signal for a second predetermined time period, and the load 3 continues to be powered by the delay signal. The second predetermined time period can be calculated according to the following formula:
T
discharging=(C1+C2)×R3 (3)
From the formulas (1)˜(3), the first predetermined time period depends on the resistance of the first resistor R1, the second resistor R2, and the third resistor R3. The second predetermined time period relates only to the resistance of the third resistor R3. To change the first predetermined time period and keeping the second predetermined time period and the working voltage unchanged, the resistances of the first resistor R1 and the second resistor R2 are changed and the resistance of the third resistor R3 is not changed. To change the second predetermined time period and keep the first predetermined time period and the working voltage unchanged, the resistances of the first resistor R1, the second resistor R2, and the third resistor R3 are all changed. Thus, the respective durations of the first predetermined time period and the second predetermined time period can be adjusted independently of the other.
It is to be understood, however, that even though information and advantages of the present embodiments have been set forth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and that changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
201210165540.6 | May 2012 | CN | national |