RELAXATION OSCILLATOR

20170353176 · 2017-12-07

Assignee

Inventors

Cpc classification

International classification

Abstract

A relaxation oscillator 2 comprises: a comparator 4 comprising: a differential pair of transistors 140, 142, 144. 40, 42, 44; a static current source 32; and a dynamic current source 32; and at least one energy storage component 8, 14;
wherein the comparator 4 is arranged to provide an output signal which triggers the charging or discharging of the energy storage component 8, the dynamic current source 32 being enabled prior to the charging or discharging being triggered and disabled after a predetermined time.

Claims

1. A relaxation oscillator comprising: a comparator comprising: a differential pair of transistors; a static current source; and a dynamic current source; and at least one energy storage component; wherein the comparator is arranged to provide an output signal which triggers the charging or discharging of the energy storage component, the dynamic current source being enabled prior to the charging or discharging being triggered and disabled after a predetermined time.

2. The relaxation oscillator as claimed in claim 1 comprising a plurality of energy storage components.

3. The relaxation oscillator as claimed in claim 2 wherein the output signal is used to switch between energy storage components so that one may be charging whilst another is discharging.

4. The relaxation oscillator as claimed in claim 1 wherein either or both of the current sources is a current mirror.

5. The relaxation oscillator as claimed in claim 1 wherein the oscillator is arranged to use a voltage across the energy storage component(s) to enable the dynamic current source.

6. The relaxation oscillator as claimed in claim 1 wherein the differential pair comprises field effect transistors.

7. The relaxation oscillator as claimed in claim 1 wherein the dynamic current source comprises at least one switching transistor arranged to enable and disable the dynamic current source.

8. The relaxation oscillator as claimed in claim 7 wherein a gate lead of said switching transistor is connected to the energy storage component.

9. The relaxation oscillator as claimed in claim 7 wherein the switching transistor(s) comprise field effect transistors.

10. The relaxation oscillator as claimed in claim 1 wherein the or each energy storage component comprises a capacitor.

11. The relaxation oscillator as claimed in claim 1 comprising an energy storage charging control module.

12. A battery powered integrated circuit comprising the relaxation oscillator as claimed in claim 1.

Description

[0018] An embodiment of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:

[0019] FIG. 1 is a circuit diagram of an exemplary embodiment of the present invention;

[0020] FIG. 2 is a timing diagram of an exemplary embodiment of the present invention;

[0021] FIG. 3 is a prior art circuit diagram; and

[0022] FIG. 4 is a circuit diagram of a comparator that comprises part of an exemplary embodiment of the present invention.

[0023] FIG. 1 shows a circuit diagram of an exemplary embodiment of a relaxation oscillator 2 in accordance with the present invention. The relaxation oscillator 2 comprises a comparator 4, two capacitors 8, 14, four switches 10, 12, 16, 18, and a charging control module 6.

[0024] The comparator 4 is a three input comparator wherein the three inputs are the capacitor voltages 20, 22 and a reference voltage 24. The comparator produces an output signal 26 that is taken as an input by the charging control module 6. The charging control module produces two actuation signals 28, 30 that control the switches 10, 12, 16, 18.

[0025] A first current source 32 produces a constant current through a fixed resistor 34, which due to Ohm's law produces a fixed potential difference across the resistor 34. This potential difference is taken as the voltage reference 24 that is then used as one of the inputs to the comparator 4 as outlined above.

[0026] A second current source 36 produces a constant current that is used to charge either the first capacitor 8 or the second capacitor 14, depending on the state of the circuit and which of the switches 10, 12, 16, 18 are closed at any given time.

[0027] The comparator 4 compares the two capacitor voltages 20, 22 to the reference voltage 24, and determines if either one of the two capacitor voltages 20, 22 is greater than the reference voltage 24. If one of the capacitor voltages 20, 22 exceeds the reference voltage 24, the output voltage 26 is set to logic high; else it remains at logic low.

[0028] The charging control module 6 is arranged so that at any given time one of the first actuation signal 28 and the second actuation signal 30 is high and the other is low. The control module 6 monitors the output signal 26 and whenever a positive edge arises on it, the charging control module 6 swaps which one of the signals 28, 30 is high and which one is low.

[0029] When the first actuation signal 28 goes high, the first switch pair 10, 12 is closed and the second switch pair 16, 18 is opened, connecting the first capacitor 8 to the second current source 36, and short-circuiting the second capacitor 14. When the second actuation signal 30 goes high, the first switch pair 10, 12 is opened and the second switch pair 16, 18 is closed, connecting the second capacitor 14 to the second current source 36, and short-circuiting the first capacitor 8.

[0030] Basic operation of the oscillator will now be described with reference to FIG. 2 which is a timing diagram of the embodiment of FIG. 1. At an initial time t.sub.0, the second switch pair 16, 18 are closed, and thus the second capacitor 14 is connected to the second current source 36. This causes the second capacitor 14 to charge, and consequentially the second capacitor voltage 22 rises.

[0031] Once the second capacitor voltage 22 exceeds the reference voltage 24, the comparator output signal 26 changes to logic high. Subsequently, the charging control unit 6 detects the logic high on the output signal 26, changes the state of the two switch pairs 10, 12, 16, 18 such that the first capacitor 8 begins to charge and the second capacitor 14 discharges. As a result, the first capacitor voltage 20 begins to rise, while the second capacitor voltage 22 rapidly declines. Once the second capacitor voltage 22 no longer exceeds the reference voltage 24, the comparator output voltage 26 changes back to logic low.

[0032] The cycle continues, with each capacitor 8, 14 charging until it exceeds the reference voltage 24 before the output signal 26 is pulsed high and the roles of the capacitors swap. This repetitive pattern of charging and discharging cycles gives rise to a periodic, non-linear output signal 26.

[0033] FIG. 3 is a prior art circuit diagram of a comparator 104 comprising a static current source that could have been used in the relaxation oscillator of FIG. 1 and which is described for reference purposes only. The comparator 104 would take as inputs two capacitor voltages 120, 122 and a reference voltage 124 and provide an output voltage 126.

[0034] The comparator of FIG. 3 comprises three NMOS transistors 140, 142, 144 with their respective gate leads connected to the two capacitor voltages 120, 122, and the reference voltage 124 respectively. These three transistors 140, 142, 144 are arranged as a variant of a differential pair circuit. The reference transistor 144 forms one half of the differential pair, while the capacitor-connected transistors 140, 142 are arranged in parallel and jointly form the other half of the differential pair. This arrangement permits the comparator to compare either of the two capacitor voltages 120, 122 to the reference voltage 124. This differential pair arrangement is connected to the positive supply rail V.sub.DD 40 via a current mirror or active load arrangement comprising two transistors 146, 148.

[0035] The differential pair comprising the capacitor- and reference-connected transistors 140, 142, 144 is arranged as a long tailed pair. The tail of the long tailed pair that provides a bias current is provided in this arrangement by the tail transistor 150. This tail transistor 150 provides a constant, static current source for the operation of the differential pair.

[0036] A single sided output is taken from the differential pair and connected to the gate lead of a PMOS transistor 152 that forms a push-pull output stage with an NMOS transistor 154. This push-pull output stage causes the comparator output signal 126 to saturate to logic high or logic low at all times, depending on the single sided output from the differential pair at any given time.

[0037] FIG. 4 is a circuit diagram of an alternative comparator 204 in accordance the present invention. The topology of this arrangement is similar to that in FIG. 3 (and similar reference numerals are used for similar parts except for omission of the leading 1). However it advantageously adds an additional current source to the differential pair arrangement, in the form of a second tail 64 in parallel with a first tail transistor 50.

[0038] Two NMOS dynamic current source transistors 60, 62 are arranged in parallel with their respective source and drain leads connected together, with the drain leads further connected to the source leads of the differential pair transistors 40, 42, 44, and the source leads of the dynamic current source transistors 60, 62 connected to the second tail transistor 64. The gate leads of the dynamic current source transistors 60, 62 are each connected to the first and second capacitor voltages 20, 22 respectively.

[0039] This advantageous arrangement allows for a second dynamic current source, comprising the dynamic current source transistors 60, 62 and the second tail transistor 64, to be selectively enabled and disabled to provide additional current to the differential pair when required. When either one of the capacitor voltages 20, 22 is sufficiently high, the respective dynamic current source transistor 60, 62 will be switched on and connect the differential pair to the additional tail transistor 64 that provides additional current just before the comparator will change the output signal 26 to a logic high. This ensures a clean pulse with accurate timing and reduces the effect of noise, while maintaining low average power consumption.

[0040] Thus it will be seen that a relaxation oscillator particularly suited to applications where timing, noise and power considerations are particularly important has been described. Although a particular embodiment has been described in detail, many variations and modifications are possible within the scope of the invention.