This application claims priority of No. 102121191 filed in Taiwan R.O.C. on Jun. 14, 2013 under 35 USC 119, the entire content of which is hereby incorporated by reference.
1. Field of the Invention
The invention relates to a technology of oscillator, and more particularly to a relaxation oscillator which reduces the logic delay.
2. Related Art
With the progress of the technology, the electronic technology has been progressed from the earliest vacuum tube and transistor to the integrated circuit chip, which has the quite wide applications. Thus, the electronic products have gradually become the indispensable essentials in the life of the modern human beings. However, the oscillator is an indispensable important element in analog circuit or digital circuit. The relaxation oscillator is an important oscillator in the oscillators. The relaxation oscillator is commonly used in capacitor sensor and single-chip power integrated circuit. Comparing with the LC oscillator, the relaxation oscillator merely requires one kind of energy storage device. The advantages of the relaxation oscillator includes a wide frequency adjustment range, and a high degree of linear control. A well-designed relaxation oscillator should have high stability, wide adjustable frequency range and high linearity.
In order to describe the concept of the oscillator, it is assumed that initial logic states of the reset terminal R, the set terminal S, the Q terminal and Q bar terminal of R-S flip-flop 101 are respectively “0”, “1”, “1”, “0”. At this time, the voltage of the node S4 is logic high voltage, the voltage of the node S3 is lower than the threshold voltage of the fourth N-type MOSFET. Because the logic state of the reset terminal R is “0”, and the logic state of the Q terminal is “1”, the voltage of the output terminal of the NOR gate 104 is logic low voltage so that the P-type MOSFET MP2 is turned on. The capacitor 106 is rapidly charged to the logic high voltage such that the voltage of the set terminal S of the R-S flip-flop 101 becomes logic low voltage. Meanwhile, the logic states of the reset terminal R, the set terminal S, Q terminal and the Q′ terminal of the R-S flip-flop 101 are respectively changed to “0”, “0”, “1” “0”.
Afterward, since the logic states of the set terminal S and the Q′ terminal are “0”, the output terminal of the NOR gate 103 outputs logic high voltage such that the P-type MOSFET MP1 is cut off. The capacitor 105 discharges through the N-type MOSFET MN1. When the voltage of the capacitor 105 is discharged to the logic low voltage, the logic states of the reset terminal R, the set terminal S, the Q terminal and the Q′ terminal of the R-S flip-flop 101 are respectively “1”, “0”, “0”, “1”. At this time, since the logic states of the set terminal S and the Q′ terminal of the R-S flip-flop 101 are respectively “0”, “1”, and the logic states of the reset terminal R and the Q terminal of the R-S flip-flop 101 are respectively “1”, “0”, the output terminal of the NOR gate 103 and the output terminal of the NOR gate 104 are logic low voltage, the P-type MOSFETs MP1 and MP2 are turned on. Meanwhile, the capacitor 105 is rapidly charged to logic high voltage, and the logic states of the reset terminal R, the set terminal S, the Q terminal and the Q′ terminal of the R-S flip-flop 101 becomes respectively “0”, “0”, “0”, “1”.
Next, since the logic states of the reset terminal R and the Q terminal of the R-S flip-flop 101 are “0”, the output terminal of the NOR gate 104 outputs a logic high voltage, the P-type MOSFET MP2 is cut off. The capacitor 106 discharges through the N-type MOSFET MN2. When the capacitor 106 is discharged to logic low voltage, the logic states of the reset terminal R, the set terminal S, Q terminal and the Q′ terminal of the R-S flip-flop 101 are respectively changed to “0”, “1”, “1”, “0” again.
In view of the above-identified problems, it is therefore an object of the invention to provide a relaxation oscillator to increase the operational frequency and to reduce the delay of the internal circuit.
To achieve the above-identified object, the invention provides a relaxation oscillator. The relaxation oscillator includes an R-S flip-flop, a first delay circuit and a second delay circuit. The R-S flip-flop includes an S input terminal, a R input terminal, a Q terminal and a Q′ terminal. The first delay circuit includes a first charging circuit, a first capacitor, a first discharging device and a first comparing/detecting circuit. The first terminal of the first charging circuit is coupled to a power voltage, the control terminal of the first charging circuit is coupled to the Q terminal. When the Q terminal outputs a first logic voltage, the first terminal of the first charging circuit is electrically conducted with the second terminal of the first charging circuit. The first terminal of the first capacitor is coupled to the second terminal of the first charging circuit, and the second terminal of the first capacitor is coupled to a common voltage. The first terminal of the first discharging device is coupled to the second terminal of the first charging circuit, the second terminal of the first discharging device is coupled to the common voltage. The input terminal of the first comparing/detecting circuit is coupled to the first terminal of the first capacitor, and the output terminal of the first comparing/detecting circuit is coupled to the R input terminal of the R-S flip-flop. When the voltage of the input terminal of the first comparing/detecting circuit is lower than the first voltage, the output terminal of the first comparing/detecting circuit outputs a first logic pulse.
The second delay circuit includes a second charging circuit, a second capacitor, a second discharging device and a second comparing/detecting circuit. The first terminal of the second charging circuit is coupled to the power voltage, the control terminal of the second charging circuit is coupled to the Q′ terminal. When the Q′ terminal outputs the first logic voltage, the first terminal of the second charging circuit is electrically conducted with the second terminal of the second charging circuit. The first terminal of the second capacitor is coupled to the second terminal of the second charging circuit, and the second terminal of the second capacitor is coupled to the common voltage. The first terminal of the second discharging device is coupled to the second terminal of the second charging circuit, the second terminal of the second discharging device is coupled to the common voltage. The input terminal of the second comparing/detecting circuit is coupled to the first terminal of the second capacitor, and the output terminal of the second comparing/detecting circuit is coupled to the S input terminal of the R-S flip-flop. When the voltage of the input terminal of the second comparing/detecting circuit is lower than the first voltage, the output terminal of the second comparing/detecting circuit outputs the first logic pulse.
According to the relaxation oscillator of a preferred embodiment of the present invention, the first charging circuit includes a first P-type MOSFET. The gate terminal of the first P-type MOSFET is coupled to the control terminal of the first charging circuit. The first source/drain terminal of the first P-type MOSFET is coupled to the first terminal of the first charging circuit, and the second source/drain terminal of the first P-type MOSFET is coupled to the second terminal of the first charging circuit. In addition, the first discharging device includes a first N-type MOSFET. The gate terminal of the first N-type MOSFET receives a first bias. The first source/drain terminal of the first N-type MOSFET is coupled to the first terminal of the first discharging device, and the second source/drain terminal of the first N-type MOSFET is coupled to the second terminal of the first discharging device.
According to the relaxation oscillator of a preferred embodiment of the present invention, the first comparing/detecting circuit includes a second P-type MOSFET and the second N-type MOSFET. The gate terminal of the second P-type MOSFET is coupled to a second bias, the first source/drain terminal of the second P-type MOSFET is coupled to the power voltage. The gate terminal of the second N-type MOSFET is coupled to the input terminal of the first comparing/detecting circuit, the first source/drain terminal of the second N-type MOSFET is coupled to the output terminal of the first comparing/detecting circuit and the second source/drain terminal of the second P-type MOSFET, and the second source/drain terminal of the second N-type MOSFET is coupled to the common voltage.
A relaxation oscillator is provided in the present invention. The relaxation oscillator includes an R-S flip-flop, a first delay circuit and a second delay circuit. The R-S flip-flop includes an S input terminal, a R input terminal, a Q terminal and a Q′ terminal. The first delay circuit includes a first inverter, a first capacitor and a first comparing/detecting circuit. The input terminal of the first inverter is coupled to the Q terminal. The first terminal of the first capacitor is coupled to the output terminal of the first inverter, and the second terminal of the first capacitor is coupled to a common voltage. The input terminal of the first comparing/detecting circuit is coupled to the first terminal of the first capacitor, and the output terminal of the first comparing/detecting circuit is coupled to the R input terminal of the R-S flip-flop. The second delay circuit includes a second inverter, a second capacitor and a second comparing/detecting circuit. The input terminal of the second inverter is coupled to the Q′ terminal. The first terminal of the second capacitor is coupled to the output terminal of the second inverter, and the second terminal of the first capacitor is coupled to the common voltage. The input terminal of the first comparing/detecting circuit is coupled to the first terminal of the second capacitor, and the output terminal of the first comparing/detecting circuit is coupled to the S input terminal of the R-S flip-flop.
According to the relaxation oscillator of a preferred embodiment of the present invention, the first inverter includes a first P-type MOSFET and a first N-type MOSFET. The gate terminal of the first P-type MOSFET is coupled to the Q terminal, and the first source/drain terminal of the first P-type MOSFET is coupled to a power voltage. The gate terminal of the first N-type MOSFET is coupled to the Q terminal, the first source/drain terminal of the first N-type MOSFET is coupled to the second source/drain terminal of the first P-type MOSFET, and the second source/drain terminal of the first N-type MOSFET is coupled to the common voltage. In addition, the first delay circuit further includes a first bias current source, coupled between the power voltage and the first source/drain terminal of the first P-type MOSFET, for providing a constant current.
Furthermore, in a preferred embodiment, the first comparing/detecting circuit includes a second bias current source and a second N-type MOSFET. The first terminal of the second bias current source is coupled to a power voltage for providing a constant current. The gate terminal of the second N-type MOSFET is coupled to the input terminal of the first comparing/detecting circuit. The first source/drain terminal of the first N-type MOSFET is coupled to the second terminal of the second bias current source, and the second source/drain terminal of the first N-type MOSFET is coupled to the common voltage.
The spirit of the present invention is to use the state diagram to analysis the conventional circuit to search the key delay point. Thus, the logic delay of the conventional art can be reduced. Therefore, the relaxation oscillator of the present invention can provide more fast clock and reduce the current consumption. In addition, the operational concept of the relaxation oscillator becomes more intuition, thus, the relaxation oscillator of the present invention is more easy to use for circuit designer.
Further scope of the applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.
The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention.
The present invention will be apparent from the following detailed description, which proceeds with reference to the accompanying drawings, wherein the same references relate to the same elements.
In order that people having ordinary skill in the art can know why the oscillating frequency cannot be increased, referring to
Similarly, When the voltage of the Q′ terminal QB goes down, the voltage of the Q terminal goes up. Afterward, the voltage of the node N2 goes down, and then the voltage of the node S3 goes up, and the voltage of the S input terminal goes down, and next, the voltage of the node N1 goes up. In other words, there are voltage delays of the Q terminal, the node N2, the node S3 and the S input terminal. In the state diagram, it can be seen that the reason why the oscillating frequency of the relaxation oscillator cannot be increased is the first voltage delay from the time in which the voltage of the Q terminal goes down, to the time in which the voltage of the node N2 goes up, and the second voltage delay from the time in which the voltage of the Q′ terminal QB goes down, to the time in which the voltage of the node N1 goes up.
Thus, designing the relaxation oscillator of the present invention should consider that the voltage of the node N1 should immediately goes up when the voltage of the Q′ terminal QB goes down, and the voltage of the node N2 should immediately goes up when the voltage of the Q terminal goes down.
The first delay circuit 402 includes a charging circuit 405, a discharging device 406, a capacitor 407 and a comparing/detecting circuit 408. The second delay circuit 403 also includes a charging circuit 409, a discharging device 410, a capacitor 411 and a comparing/detecting circuit 412. In order to describe the operational concept of the relaxation oscillator, it is assumed that the initial logic states of the R input terminal, the S input terminal, the Q terminal and the Q′ terminal of the R-S flip-flop 401 are respectively “0”, “1”, “1” and “0”. At this time, the voltage of the node S4 is logic high voltage, the voltage of the node S3 is lower than the detecting voltage of the comparing/detecting circuit 412. Since the logic state of the Q′ terminal is “0” and the logic state of the Q terminal is “1”, the charging circuit 409 is turned on, the charging circuit 405 is cut off. The capacitor 411 is rapidly charged to the logic high voltage, meanwhile, the capacitor 407 is discharged by the discharging device 406. When the voltage of the capacitor 407 is discharged to the detecting voltage of the comparing/detecting circuit 408, the voltage of the S input terminal of the R-S flip-flop 401 becomes logic low voltage, and the voltage of the R input terminal of the R-S flip-flop 401 becomes logic high voltage. At this time, the logic states of the R input terminal, the S input terminal, the Q terminal and the Q′ terminal of the R-S flip-flop 401 are respectively changed to “1”, “0”, “0” and “1”.
Afterward, since the logic state of the Q terminal of the R-S flip-flop 401 is “0”, and the logic state of the Q′ terminal of the R-S flip-flop 401 is “1”, the charging circuit 405 is turned on, and the charging circuit 409 is cut off. At this time, the capacitor 407 is rapidly charged to logic high voltage and the capacitor 411 is discharged by the discharging device 410. When the voltage of the capacitor 411 is discharged to the detecting voltage of the comparing/detecting circuit 412, the R input terminal of the R-S flip-flop 401 becomes logic low voltage. At this time, the logic states of the R input terminal, the S input terminal, the Q terminal and the Q′ terminal of the R-S flip-flop 401 are respectively changed to “0”, “1”, “1” and “0”.
Please comparing the present embodiment with the conventional art, people having ordinary skill in the art should know that the capacitor 105 would be discharged by the delay circuit until the logic states of the S input terminal and the Q′ terminal of the R-S flip-flop 101 are all “0” and the capacitor 106 would be discharged by the delay circuit until the logic state of the R input terminal and the logic state of the Q terminal are all “0”. In this embodiment, the capacitor 407 is immediately discharged when the Q terminal of the R-S flip-flop 401 becomes “1”, and the capacitor 411 is immediately discharged when the Q′ terminal of the R-S flip-flop 401 becomes “1”. In other words, the circuit providing by the embodiment of the present invention can greatly reduce the delay time.
First, it is assumed that the current flowing through the resistor R601 is represented as IR. The current IR can be represented as:
Also, it is assumed that the capacitance of the capacitor 407 is C, the voltage variation is ΔV, and the current flowing through the N-type MOSFET 502 is IM, the capacitor formula can be represented as:
CΔV=IMT
In addition, the voltage variation of the capacitor 407 is ΔV=VDD−VBN, and the current IM is proportional to the current IR (assuming the proportional coefficient is m). Thus the equation (2) can be modified as:
To reform the equation (3), we obtain
According to the mathematical derivation, people having ordinary skill in the art should know that the relaxation oscillator of the embodiment of the present invention can generate a clock irrelevant to the power voltage VDD, process parameter and temperature, because of the implementation of the bias generating circuit.
In particular, when the logic state of Q terminal of the R-S flip-flop 401 is “0”, the switch circuit 701 is cut off, the node S4 would be rapidly charged to the logic “1”. Thus, the logic state of the R input terminal of the R-S flip-flop 401 would rapidly change from logic “1” to “0”. Also, the charging circuit 702 independently charges the capacitor 701. When the Q terminal of the R-S flip-flop 401 outputs logic “1”, the switch circuit 701 is turned on, and the charging circuit 702 is cut off. The node S4 is discharged through switch circuit 701 and the N-type MOSFET 501. Therefore, the implementation of the present embodiment can further increase the operational frequency. Moreover, the implementation of the second delay circuit 403 is the same as that of the first delay circuit 402. Thus, the detail description is omitted.
First, it is assumed that the logic states of the R input terminal, the S input terminal, the Q terminal and the Q′ terminal of the R-S flip-flop 401 are respectively “0”, “1”, “1” and “0”. At this time, the voltage of the node S4 is logic high voltage, the voltage of the node S3 is lower than the detecting voltage of the comparing/detecting circuit 806 (In this embodiment, the detecting voltage is the threshold voltage of the N-type MOSFET). Since the logic state of the Q′ terminal is “0”, and the logic state of the Q terminal is “1”, the inverter 805 outputs “1”, and the inverter 801 outputs “0”, the capacitor 808 is charged to logic high voltage by the constant current of the bias current source 807. Meanwhile, the capacitor 804 is discharged by the N-type MOSFET of the inverter 801. Thus, the S input terminal of the R-S flip-flop 401 becomes logic low voltage, and the R input terminal of the R-S flip-flop 401 becomes logic high voltage. At this time, the logic states of the R input terminal, the S input terminal, the Q terminal and the Q′ terminal of the R-S flip-flop 401 are respectively “1”, “0”, “0” and “1”.
Next, since the logic state of the Q terminal of the R-S flip-flop 401 is “0”, and logic state of the Q′ terminal of the R-S flip-flop 401 is “1”, the inverter 801 outputs “1”, meanwhile, the inverter 805 outputs “0”. At this time, the capacitor 804 is charged to logic high voltage by the constant current of the bias current source 803, and the capacitor 808 is discharged by the N-type MOSFET of the inverter 805. the logic states of the R input terminal, the S input terminal, the Q terminal and the Q′ terminal of the R-S flip-flop 401 are respectively changed to “0”, “1”, “1” and “0”.
Similarly, comparing the abovementioned embodiment with the conventional art, people having ordinary skill in the art should know that the capacitor 105 would be discharged by the delay circuit until the logic states of the S input terminal and the Q′ terminal of the R-S flip-flop 101 are all “0” and the capacitor 106 would be discharged by the delay circuit until the logic state of the R input terminal and the logic state of the Q terminal are all “0”. In this embodiment, the capacitor 808 is immediately discharged when the Q terminal of the R-S flip-flop 401 becomes “1”, and the capacitor 804 is immediately discharged when the Q′ terminal of the R-S flip-flop 401 becomes “1”. In other words, the circuit providing by the embodiment of the present invention can greatly reduce the delay time.
In summary, the spirit of the present invention is to use the state diagram to analysis the conventional circuit to search the key delay point. Thus, the logic delay of the conventional art can be reduced. Therefore, the relaxation oscillator of the present invention can provide more fast clock and reduce the current consumption. In addition, the operational concept of the relaxation oscillator becomes more intuition, thus, the relaxation oscillator of the present invention is more easy to use for a circuit designer.
In addition, the relaxation oscillator can generate a clock irrelevant to the power voltage VDD, process parameter and temperature if the delay circuit coordinating with the bias generating circuit in the preferred embodiment of the present invention.
While the invention has been described by way of examples and in terms of preferred embodiments, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications.
Number | Date | Country | Kind |
---|---|---|---|
102121191 A | Jun 2013 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4983931 | Nakano | Jan 1991 | A |
6362697 | Pulvirenti | Mar 2002 | B1 |
6600379 | Anderson | Jul 2003 | B2 |
20050007201 | Lee et al. | Jan 2005 | A1 |
20140184345 | Lin | Jul 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20140368284 A1 | Dec 2014 | US |