The oscillator circuit comprises a capacitor and first to fourth constant current supplies and switches are connected to the capacitor. Both terminals of the capacitor are used for charges and discharges. One period comprises four steps; charging the first terminal of the capacitor, discharging the second terminal, charging the first terminal, and discharging the second terminal.
|
1. An oscillator circuit comprising:
a capacitor comprising a first terminal and a second terminal;
an oscillation signal generator circuit which generates an oscillation signal based on a voltage on a selected one of the first terminal and the second terminal; and
a charge/discharge circuit capable of charging the capacitor only via a first one of the terminals of the capacitor and of discharging the capacitor only via a second one of the terminals of the capacitor.
19. A method of generating an oscillation signal comprising:
a) discharging a capacitor by increasing a voltage level of a first terminal of said capacitor to output a first logic level to an output node;
b) charging said capacitor by decreasing a voltage level of a second terminal of said capacitor to output said first logic level to said output terminal;
c) discharging said capacitor by decreasing a voltage level of said first terminal of said capacitor to output said second logic level; and
d) charging said capacitor by increasing a voltage level of said second terminal of said capacitor to output node.
17. An integrated circuit, comprising a driver circuit which drives a load; and an oscillator circuit, wherein the oscillator circuit comprises:
a capacitor having a first terminal and a second terminal;
an oscillation signal generator circuit which generates an oscillation signal based on a voltage on a selected one of the first terminal and the second terminal; and
a charge/discharge circuit capable of charging the capacitor only via a first one of the terminals of the capacitor and of discharging the capacitor only via a second one of the terminals of the capacitor, wherein:
the oscillator circuit generates an oscillation signal by charging and discharging the capacitor, monitors current on the load in a cycle based on the oscillation signal, and controls the driver circuit based on a monitoring result.
18. An oscillator circuit comprising:
a capacitor comprising a first terminal and a second terminal;
an oscillation signal generator circuit which generates an oscillation signal based on a voltage of a selected one of the first terminal and the second terminal; and
a charge/discharge circuit capable of charging and discharging the capacitor via both terminals of the capacitor,
wherein the oscillation signal generator circuit is a first comparator which outputs an oscillation signal based on a comparison result of a voltage of a selected one of the first terminal and the second terminal with a reference voltage, and the charge/discharge circuit independently controls each voltage of the first terminal and the second terminal,
wherein the charge/discharge circuit comprises:
a first charge/discharge circuit connected to the first terminal of the capacitor, capable of charging and discharging the capacitor;
a second charge/discharge circuit connected to the second terminal of the capacitor, capable of charging and discharging the capacitor; and
a second comparator which controls charging and discharging by the first charge/discharge circuit based on a comparison result of a voltage of the second terminal with a reference voltage, wherein the first comparator outputs an oscillation signal based on a comparison result of a voltage of the first terminal with a reference voltage and controls charging and discharging by the second charge/discharge circuit based on the oscillation signal; and
a reference voltage output circuit which outputs a first reference voltage and a second reference voltage as the reference voltage based on output of a selected one of the first and second comparators.
2. The oscillator circuit according to
3. The oscillator circuit according to
4. The oscillator circuit according to
first and second switches connected to the first terminal of the capacitor; and
third and fourth switches connected to the second terminal of the capacitor,
wherein the first constant current supply is connected between the first switch and a first power supply, the second constant current supply is connected between the third switch and the first power supply, the third constant current supply is connected between the second switch and a second power supply, and the fourth constant current supply is connected between the fourth switch and the second power supply.
5. The oscillator circuit according to
the charge/discharge circuit independently controls the voltage on the first terminal and the voltage on the second terminal.
6. The oscillator circuit according to
7. The oscillator circuit according to
the charge/discharge circuit performs a first charge of the capacitor by increasing a voltage on the first terminal, a first discharge of the capacitor by increasing a voltage on the second terminal, a second charge of the capacitor by decreasing a voltage on the first terminal, and a second discharge of the capacitor by decreasing a voltage on the second terminal, and
the oscillation signal generator circuit outputs one period of the oscillation signal during one cycle of the first charge, the first discharge, the second charge, and the second discharge.
8. The oscillator circuit according to
a charge circuit connected to the first terminal of the capacitor and only capable of charging the capacitor;
a discharge circuit connected to the second terminal of the capacitor and only capable of discharging the capacitor; and a control circuit which controls charging and discharging by the charge circuit and the discharge circuit.
9. The oscillator circuit according to
a first circuit connected between the first terminal and a first power supply,
a second circuit connected between the first terminal and a second power supply,
a third circuit connected between the second terminal and the first power supply, and
a fourth circuit connected between the second terminal and the second power supply.
10. The oscillator circuit according to
11. The oscillator circuit according to
a charge circuit connected to the first terminal of the capacitor and capable of charging the capacitor;
a discharge circuit connected to the second terminal of the capacitor and capable of discharging the capacitor; anda second comparator which controls charging by the charge circuit and discharging by the discharge circuit, based on a comparison result of a voltage on the second terminal with a reference voltage,wherein the first comparator outputs an oscillation signal based on a comparison result of a voltage on the first terminal with a reference voltage and controls discharging by the discharge circuit based on the oscillation signal.
12. The oscillator circuit according to
13. The oscillator circuit according to
14. The oscillator circuit according to
15. The oscillator circuit according to
the first comparator outputs one period of the oscillation signal during one cycle of a first charge, a first discharge, a second charge, and a second discharge of the capacitor,
the first charge is performed by connecting the second terminal to the second power supply and switching a connection of the first terminal to the first power supply from the second power supply,
the first discharge is performed by connecting the first terminal to the first power supply, and switching a connection of the second terminal to the first power supply from the second power supply,
the second charge is performed by connecting the second terminal to the first power supply and switching the connection of the first terminal to the second power supply from the first power supply, and
the second discharge is performed by connecting the first terminal to the second power supply and switching the connection of the second terminal to the second power supply from the first power supply.
16. The oscillator circuit according to
the charge circuit comprises a first constant current supply connected to a first power supply, and a third constant current supply connected to a second power supply,the discharge circuit comprises a second constant current supply connected to the first power supply, and a fourth constant current supply connected to a second power supply,
the charge circuit connects the first terminal to a selected one of the first and third constant current supplies according to the output of the second comparator, and
the discharge circuit connects the second terminal to a selected one of the second and fourth constant current supplies according to the oscillation signal.
20. The method of generating an oscillation signal according to
21. The method of generating an oscillation signal according to
|
1. Field of the Invention
This invention relates to an oscillator circuit, and, in particular, to an oscillator circuit using charges and discharges of a capacitor, and an integrated circuit incorporating the same.
2. Description of Related Art
Japanese Unexamined Patent Application Publication No. 10-233657 discloses a CR (capacitor-resistor) oscillator circuit using charges and discharges of a capacitor. This oscillator circuit comprises a capacitor and a comparator, wherein one input terminal of the comparator is supplied with a reference voltage and the other input terminal is supplied with the voltage generated by charging and discharging the capacitor, and the comparator outputs the results of the comparison as the oscillation signal. In this circuit, the reference voltage is switched between a lower reference voltage and a higher reference voltage based on the generated oscillation signal. The operation of charging and discharging the capacitor is also controlled based on this oscillation signal.
In the above-mentioned CR oscillator circuit, the period of the oscillation is determined only by the conditions of one terminal of charging and discharging the capacitor. In order to have a longer period with this oscillator circuit, a capacitor with higher capacitance is required. Such a capacitor, however, takes a larger area, which causes the problem of the increasing cost of the chip.
One of the purposes of this invention is to provide an oscillator circuit which can generate longer period of the oscillation signal without increasing the size of the capacitor, and an integrated circuit incorporating the same.
The oscillator circuit according to this invention features that the oscillation signal is generated by charging and discharging the capacitor via each terminal independently.
In the present invention, a voltage difference between both terminals is generated by charging and discharging the capacitor via each terminal. For example, a constant current applied to one terminal raises the voltage of the one terminal, making the voltage of the one terminal higher than that of the other terminal and increasing the voltage difference between them. Then, a constant current applied to the other terminal decreases the voltage difference between the other terminal and the one terminal. Similarly, a constant current applied to the one terminal lowers the voltage of the one terminal, making the voltage of the one terminal lower than that of the other terminal and increasing the voltage difference between them. Then, a constant current applied to the other terminal decreases the voltage difference between the other terminal and the one terminal. The successive combination of these operations allows a longer period of the oscillation signal to be generated, compared with the case where the voltage of the one terminal of the capacitor is fixed to a constant value and the voltage of the other terminal is raised and lowered by the charges and discharges.
The integrated circuit according to the present invention comprises a driver circuit for driving a load and a control circuit for controlling the driver circuit. The control circuit has an oscillator circuit for generating an oscillation signal by charging and discharging the capacitor via each terminal. The control circuit monitors the current on the load in a given cycle based on the oscillation signal and controls the driver circuit based on the monitoring result. In the present invention, the current on the load such as a lamp or motor of a vehicle is monitored in a given cycle based on the oscillation signal generated by the oscillator circuit having a capacitor that can be charged and discharged via each terminal. It is thereby possible to downsize or eliminate the circuit such as a divider for making the period of the oscillation signal longer even in the case of using a capacitor with small capacitance.
As described above, this invention allows the generation of the longer period of oscillation signal without increasing the size of the capacitor.
The above and other objects, features and advantages of 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 to be considered as limiting the present invention.
In order to distinguish the above-mentioned and other purposes, features and advantages of this invention, the embodiments of the invention are described in detail below by reference to the drawings.
The switch 4 is composed of, for example, an inverter being supplied with the output signal OUT, and p-MOS transistor being supplied with the output of the inverter. The switch 5 is composed of, for example, an inverter being supplied with the output signal OUT, and an n-MOS transistor being supplied with the output of the inverter. Both one terminals of the switches 4 and 5 are connected to the second terminal B of the capacitor of 3, which is node B. Both the other terminals of the switches 4 and 5 are connected to (third and fourth) current supplies 8 and 9 respectively. The current supply 8 is connected to a first power supply, e.g., Vcc power supply, and supplies constant current Ir3; on the other hand, the current supply 9 is connected to a second power supply, e.g., the ground, and supplies constant current Ir4. The switch 4 is in ON state when the logic level of the output signal OUT is high. The switch 5 is in ON state when the logic level of output signal OUT is low. The switch 4 may be a transfer gate of p-MOS and n-MOS transistors arranged in parallel between node B and the current supply 8. Also, the switch 5 may be a transfer gate of p-MOS and n-MOS transistors arranged in parallel between node B and the current supply 9.
The output of the comparator 2 is supplied as the control signal for (first and second) switches 6 and 7. The switch 6 is in ON state when the output of the comparator 2 is low level, and is composed of, for example, a p-MOS transistor. The switch 7 is in ON state when the output of the comparator 2 is high level, and is composed of, for example, an n-MOS transistor. Both one terminals of the switches 6 and 7 are connected to the first terminal of the capacitor 3, which is node A. Both the other terminals of the switches 6 and 7 are connected to (first and second) current supplies 10 and 11 respectively. The current supply 10 is connected to the first power supply, e.g., Vcc power supply, and supplies constant current Ir1. The current supply 11 is connected to the second power supply, e.g., the ground, and supplies constant current Ir2. Each of the switches 6 and 7, as well as the switches 4 and 5, may be arranged by transfer gates of p-MOS and n-MOS transistors.
If the switch 6 and the constant current supply 10 connected to the first terminal A of the capacitor 3 constitute a first circuit, the switch 7 and the constant supply 11 constitute a second circuit, the switch 4 and the constant current supply 8 connected to the second terminal B of the capacitor 3 constitute a third circuit, and the switch 5 and the constant current supply 9 constitute a fourth circuit, at least one of the first to fourth circuits maybe composed of a resistor, or a switch and a resistor, for example.
Each of the other input terminals of comparators 1 and 2 are connected to node C. Node C is connected to a reference voltage generator 14 via switches 12 and 13. The switch 12 is connected between the terminal of the higher reference voltage of the reference voltage generator 14 and node C. The switch 12 is, for example, composed of a transfer gate, and is in ON state when the logic output level of the comparator 2 is low. The switch 13 is connected between the lower reference voltage terminal of the reference voltage generator 14 and node C. The switch 13 is, for example, composed of a transfer gate, which is in ON state when the logic output level of the comparator 2 is high. The reference voltage generator 14 is a constant voltage supply which generates a higher reference voltage VH and a lower reference voltage VL.
In sum, the oscillator circuit 100 according to this embodiment comprising the capacitor 3, the comparator 1, and a charge/discharge circuit. The comparator 1, as described above, outputs the oscillation signal OUT based on the result of the comparison between the voltage of the first terminal A of the capacitor 3 and the higher reference voltage VH or the lower reference voltage VL. The charge/discharge circuit controls the charging and discharging of the capacitor 3 via each terminal. In this embodiment, the charge/discharge circuit comprising the comparator 2, a first charge/discharge circuit including the switches 6, 7 and the constant current supplies 10, 11, a second charge/discharge circuit including the switches 4, 5 and the constant current supplies 8, 9, and a reference voltage output circuit including the reference voltage generator 14 and the switches 12, 13. The comparator 2 serves as a control circuit to control the charging and discharging of the capacitor 3 by the first charge/discharge circuit. The comparator 1 serves as a control circuit to control the charging and discharging of the capacitor 3 by the second charge/discharge circuit.
Then, the operation of the oscillator circuit 100 of
The output signal OUT and the output of the comparator 2 are both low level during t0 to t2. Accordingly, the following state is resulted; the switch 6 is ON, the switch 7 is OFF, the switch 4 is OFF, and the switch 5 is ON. The voltage level of node A increases according to the current Ir1 supplied from the power supply 10 and the time constant of the capacitor 3. The voltage of node B is grounded. At this time, the switch 12 is in ON state and the switch 13 is in OFF state, so that node C is supplied with the higher reference voltage VH. It is noted that the current value from the current supplies 8 to 11 are assumed to be the same value.
The voltage difference between the terminals of the capacitor 3 is increasing, therefore the time period between t0 to t2 is a time period for charge (first charge).
At t2, the voltage of node A reaches VH, allowing the output signal OUT to change to high level. By this change, the switch 5 is turned off and the switch 4 is turned on. During this change, both switches 4 and 5 are in OFF state therefore for a instance resulting in an instant floating state of node B. Accordingly, node A becomes independent of the time constant, so that the voltage of node A is raised to Vcc from VH instantaneously. And, the voltage of node B is raised, for example, to VL due to the coupling effect. Then, the voltage of node B increases.
The voltage difference between the terminals of the capacitor 3 is decreasing, therefore the time period between t2 and t3 is a time period for discharge (first discharge).
At t3, the voltage of node B exceeds VH, allowing the output of the comparator 2 to change from the low level to the high level. By this change, the switch 6 is turned off and the switch 7 is turned on. During this change, a transient state where both switches 6 and 7 are in OFF state occurs. In this state, node A becomes floating, so that the voltage of node B becomes independent of the time constant and the node B is instantaneously charged to Vcc. The voltage of node A transiently exceeds Vcc cause of the coupling effect by which the voltage of node B is raised to Vcc. Then, the switch 7 is turned on and the switch 6 is turned off, which allows the voltage of node A to decrease gradually according to the time constant. On the other hand, by the above change that the output of the comparator 2 changes to high to turned off the switch 12 and to turned on the switch 13. Accordingly, the level of node C is shifted to VL.
The voltage difference between the terminals of the capacitor 3 is increasing, therefore the time period between t3 and t4 is a time period for charge (second charge).
At t4, the voltage of node A reaches VL. Then, the output of the comparator 1 changes from high to low. So that, the switch 5 is turned on and the switch 4 is turned off. During this change, the state of the floating node B occurs, and the voltage of node A drops from VL to the ground. This drop causes, for example, the voltage of node B to ramp down from Vcc to VH. Then, the voltage of node B gradually decreases according to the time constant.
The voltage difference between the terminals of the capacitor 3 is decreasing, therefore the time period between t4 and t5 is a time period for discharge (second discharge).
At t5, the voltage of node B reaches VL and the output of the comparator 2 changes to low level. According to this change of the output of the comparator 2, the switch 6 is turned on and the switch 7 is turned off. During the transition of switches 6 and 7, the floating state of the node A occurs, which causes the voltage of node B to fall from VL to the ground. So that, the voltage of node A falls below the ground level due to the coupling effect.
As described above, in this invention, after the capacitor 3 is charged via the one terminal (node A) with the current Ir1 (during t0–t2 ), it is discharged via the other terminal (node B) with the current Ir3 (during t2–t3 ), and then, after the capacitor 3 is charged via the one terminal with the current Ir2 (during t3–t4 ), it is discharged via the other terminal with current Ir4 (during t4–t5 ).
Thus, while one terminal of the conventional capacitor is grounded and only the other terminal is used for the charges and discharges, the present invention uses both terminals of the capacitor 3 for the charges and discharges. Therefore, the present invention allows the longer period of the oscillation signal than the conventional art.
In addition, if a longer period had to be obtained with the prior art configuration, the supplied current to the capacitor should be reduced. In this case, the configuration would be susceptible to noises, and it would be difficult to obtain a constant period because of the variation of the supplied current due to the leakage.
As depicted in
The diagnostic logic 214 further comprises a mask circuit 103 which is supplied with the mask signal α3 and the current α2 from the lamp 223, and a diagnostic circuit 104 which determines whether the output of the mask circuit 103 is anomaly or not. The mask circuit 103 generates the current α4 in which the lamp current α2 is masked during ΔT from T0 to T1 based on the mask signal α3, and supplies the current α4 to the diagnostic circuit 104. The lamp current α2 consumed in the lamp 223 surges when the current is applied at T0. In order to prevent the microcomputer 202 from detecting the surge current as an error, the mask circuit 103 masks the current α2 until T1 at witch the current is determined as normal. Thus, the diagnostic circuit 104 receives, before T1, the masked current which is masked to be determined as normal current, while receiving, after T1, the actual lamp current α2 on the output terminal which is not masked.
The diagnostic logic 214 comprises a low-cycle signal generator 105, which generates a low-cycle signal of a few 10 ms based on the output of the oscillator circuit 100 of this embodiment. As described above, since the oscillator circuit 100 of this embodiment is capable of generating the oscillation signal with a long period, it is possible to downsize or eliminate the low-cycle signal generator 105 such as a divider. The diagnostic circuit 104 supplies, for example, high level of a signal indicative of an anomaly to the microcomputer 202 when it detects anomaly current during T1 to T2, for instance.
The input logic 211 comprises an AND gate 21, which is supplied with the control signal, which is the lamp control signal α1 in this embodiment, from the microcomputer 202 and an inversed signal, inverted by the inverter 22, of the signal from the diagnostic circuit 104 indicative of an anomaly. The control signal from the microcomputer 202 becomes active, e.g., high when the load such as the lamp 223 is driven, otherwise, becomes low. Accordingly, when the microcomputer 202 drives the lamp 223, the AND gate 21 is supplied with the lamp control signal α1 of high level and the high level signal inverted by the inverter 22 whose input is the output of the diagnostic circuit 104 indicative that the output (current α4) of the mask circuit 103 is normal. At this time, the AND gate 21 outputs high level. On the other hand, the output of the AND gate 23, β1, remains at low level because the output of the diagnostic circuit 104 is low level.
Next, when the output of the diagnostic circuit 104 indicates an anomaly, the output of the inverter 22 changes to low level, so that the output of the AND gate 21 is fixed to low level. At this time, while the lamp control signal α1 is in high level, the output β1 of the AND gate 23 becomes a pulse signal (see
If, just like conventional oscillator circuit, the supplied current to the capacitor 3 is reduced in order to make the oscillation period longer, it is difficult to obtain a constant period due to noise. Correspondingly, the oscillator circuit 100 of this embodiment is capable of controlling the voltage at both terminals of the capacitor 3. Thus, the oscillator circuit 100 can generate the longer period of oscillation signal compared with the conventional oscillator circuit which controls the voltage at one terminal of the same capacitor. It is thereby possible to downsize or eliminate the low-cycle generator 105 which generates the low-cycle signal for detecting the short circuit in the lamp 223.
It should be noted that this invention is not limited by the above-described embodiments and it is apparent that any alteration for each embodiment is possible within the scope of this invention. For example, while the output OUT of the comparator 1 is used as the oscillation signal in the above described embodiment, the output of the comparator 2 may be used instead. Further, the occurrence of the excessive current is caused by the lamp in the above described embodiment, the load controlled by the microcomputer is not limited to the lamp but may be a motor and so on since the motor as well as the lamp can represent the similar current variation to
From the invention thus described, it will be obvious that the embodiments of the invention may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended for inclusion within the scope of the following claims.
Patent | Priority | Assignee | Title |
7504810, | Feb 18 2005 | National Semiconductor Corporation | Apparatus and method for generating a spread-spectrum clock for a switching regulator |
8054141, | Dec 31 2008 | STMicroelectronics, Inc | Method and circuit for cancelling out comparator-delay in the relaxation oscillator |
8766731, | Nov 11 2009 | ANAGEAR B V | Oscillator circuit and method of providing an oscillator output signal |
8970313, | Oct 02 2012 | Dialog Semiconductor GmbH | Area efficient single capacitor CMOS relaxation oscillator |
9054690, | Aug 29 2012 | Analog Devices International Unlimited Company | Chopped oscillator |
9214927, | Mar 19 2014 | NXP USA, INC | Relaxation oscillator |
Patent | Priority | Assignee | Title |
4383188, | Nov 14 1978 | BECKMAN INDUSTRIAL CORPORATION A CORP OF DE | Voltage-controlled constant current source |
4623851, | Oct 27 1984 | Kabushiki Kaisha Toshiba | Voltage controlled oscillator using flip-flop controlled switching circuits |
4623852, | Oct 31 1984 | Kabushiki Kaisha Toshiba | Voltage controlled oscillator having frequency independent of process parameters |
4972162, | Feb 16 1988 | Bell Telephone Laboratories, Incorporated; American Telephone and Telegraph Company | Wideband relaxation oscillator utilizing parasitic capacitances |
5426384, | Dec 27 1993 | Motorola, Inc. | Voltage controlled oscillator (VCO) with symmetrical output and logic gate for use in same |
5896070, | May 09 1996 | Voltage or current controlled emitter-coupled multivibrator with pull-down amplifiers | |
6803832, | Sep 06 2002 | SHENZHEN XINGUODU TECHNOLOGY CO , LTD | Oscillator circuit having reduced layout area and lower power supply transients |
20030155982, | |||
DE19719441, | |||
EP180084, | |||
EP1158677, | |||
JP10233657, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Sep 02 2004 | MITSUDA, TSUYOSHI | NEC Electronics Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 015847 | /0453 | |
Sep 28 2004 | NEC Electronics Corporation | (assignment on the face of the patent) | / | |||
Apr 01 2010 | NEC Electronics Corporation | Renesas Electronics Corporation | CHANGE OF NAME SEE DOCUMENT FOR DETAILS | 025346 | /0840 |
Date | Maintenance Fee Events |
Apr 18 2007 | ASPN: Payor Number Assigned. |
May 03 2010 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jun 27 2014 | REM: Maintenance Fee Reminder Mailed. |
Nov 14 2014 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Nov 14 2009 | 4 years fee payment window open |
May 14 2010 | 6 months grace period start (w surcharge) |
Nov 14 2010 | patent expiry (for year 4) |
Nov 14 2012 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 14 2013 | 8 years fee payment window open |
May 14 2014 | 6 months grace period start (w surcharge) |
Nov 14 2014 | patent expiry (for year 8) |
Nov 14 2016 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 14 2017 | 12 years fee payment window open |
May 14 2018 | 6 months grace period start (w surcharge) |
Nov 14 2018 | patent expiry (for year 12) |
Nov 14 2020 | 2 years to revive unintentionally abandoned end. (for year 12) |