OSCILLATOR CIRCUIT

Abstract: An oscillator circuit comprises a capacitor (5); a charge current source (1) for charging the capacitor; a discharge constant current circuit (2) for discharging the charge of said capacitor; a comparator (3) for comparing the charge voltage of said capacitor with a first or second reference voltage (E1; E2); a reference voltage switching control circuit (4) for supplying the first or second reference voltage, selected according to the output of said comparator, to said compara­ tor and controlling the turning on and off of said discharge constant current circuit (2); and a control constant current source (6) for controlling the current from said charge current source (1); wherein the output signal frequency of said comparator is controlled by regulating said control constant current source (6) to switch the current capacity of said charge current source (1).

Description: Background of the invention The present invention relates to an oscillator circuit utilizing the charging and discharging of a capacitor, and more particularly to such a circuit permitting switching between different oscillating frequencies. The present invention is also concerned with an oscillator circuit which is particularly suitable in adapting a tone ringer of a telephone set which alternately generates high frequency tone such as 1400 Hz and low frequenzy tone such as 400 Hz. A conventional oscillator circuit of this kind is enabled to alter the output frequency either by switching between the outputs of a plurality of oscillator circuits or by varying the time constant of one oscillator circuit. The former has the disadvantage of complexity resulting from the increased number of circuits because of the need for a plurality of oscillator circuits, and the latter has that of inability to make the plurality of oscillating frequencies widely different from one another on account of the difficulty to set the plurality of frequencies independent of one another and of the difficulty to vary the time constant over a wide range. In US-A-3618132, there is described a Wien bridge type RC circuit, the frequency of which may be varied between two or more predetermined values by switching transistors on and off. The circuit incorporates a number of resistors and cannot readily be constructed by means of large scale integration techniques. The present invention enables a circuit which has a comparatively simple structure to be provided. In US-A-4359649, there is described a square wave pulse generator in which a capacitor is acted upon by two bucking constant-current sources, one of the terminals of the capacitor being connected to the two constant current sources and to the non-inverting input of an operational amplifier connected as a Schmitt trigger. The other terminal of the capacitor is tied to a reference potential. Summary of the invention An object of the present invention is to provide a simply structured oscillator circuit which is capable of oscillating at a plurality of frequencies which are completely independent of one another and any one of which can be freely selected. The invention is defined in claim 1. Brief description of the drawings The present invention will be better understood from the following detailed description taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram illustrating a preferred embodiment of the present invention; Fig. 2A, 2B and 2C are waveform diagrams representing the operation of the preferred embodiment; Fig. 3 is a detailed diagram of the circuit shown in Fig. 1; and Fig. 4 is a circuit diagram mainly illustrating a comparator and a reference voltage switching control circuit for use in the embodiment shown in Fig. 1. Detailed description of the preferred embodiment A preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings. In Fig. 1, the preferred embodiment of the invention comprises a capacitor 5; a charge current source 1 for charging a capacitor 5; a discharge constant current circuit 2 for discharging the capacitor 5; a comparator 3 for comparing the charged voltage of the capacitor 5 with a reference voltage C; a reference voltage switching control circuit 4 for supplying as the reference voltage C either a first reference voltage E₁ or a second reference voltage E₂(E₁>E₂), selected according to the output of the comparator 3, and for controlling the turning on and off of the discharge constant current circuit 2; and constant current sources 6, 7 and 8 for controlling the oscillation frequency. When the capacitor 5 is charged by a the charge current source 1 to reach the voltage of the first reference voltage E₁ as shown in Fig. 2A, the output B (Fig. 2B) of the comparator 3 rises to a high level, in response to which the reference voltage switching control circuit 4 switches the reference voltage C (Fig. 2C) to the second reference voltage E₂ and turns on the discharge constant current circuit 2. As, in response to the turning on of the discharge constant current circuit 2, the capacitor 5 discharges and its voltage eventually falls to the second reference voltage E₂, the output of the comparator 3 is reversed to the low level, so that the reference voltage switching control circuit 4 switches the reference voltage C to the first reference voltage E₁ and turns off the discharge control current circuit 2. Accordingly, oscillation is excited in the output of the comparator 3 at a frequency determined by the charge current and discharge current of the capacitor and the first and second reference voltages. The charge current source 1 is current mirror-coupled to the first constant current source 6, and the current from the charge current source 1 is controlled by the first constant current source 6, to which flows a current that is the sum of the currents from the second constant current source 7 and the third constant current source 8. In response to the turning on or off of the third constant current source 8 by an input pulse (IN), the current flowing to the first constant current source 6 varies between two values, which the current from the charge current source 1 to charge the capacitor 5 varies binarily. The discharge current of the discharge constant current circuit 2, interlocked with the charge current source 1, also varies binarily. Therefore, the output of the comparator 3 is made variable in two frequencies. Even if the discharge constant current circuit 2 were not interlocked with the charge current circuit 1, but were a fixed constant current source for instance, it would also be possible to make the oscillation frequency binarily variable, but it is desirable, in order to make constant the duty factor of the oscillation output pulse, to so set the current flowing to the discharge constant current circuit 2 as to be a fixed multiple of that from the charge current source 1. If, for instance, the current flowing to the discharge constant current circuit 2 is set to be double that from the charge current source 1, the duty factory of the output pulse will be 50%. Fig. 3 is a detailed circuit diagram of the preferred embodiment of the present invention illustrated in Fig. 1, showing the constant current sources 1, 2, 6, 7 and 8 particularly in detail. Referring to the figure, the third constant current source 8 includes a circuit in which a constant current circuit 10 is connected to a transistor 15 in series; a transistor 16 current mirror-coupled to the transistor 15; a transistor 12 of which the emitter is connected to the collector of the transistor 16, the collector is connected to the collector of a PNP transistor 20 and the base is connected to the connection point between the constant current circuit 10 and the transistor 15; and an input transistor 14. To the collector of the transistor 12 flows the same current I₁ which flows to the constant current circuit 10. The collector of the transistor 14 is connected to that of the transistor 15, and the emitter of same is grounded. As the control input pulse (IN) is supplied to the base of the transistor 14, the transistor 14 is turned on and, because the current of the constant current circuit 10 does not flow into the transistor 15, the currents of the transistors 16 and 12 will be reduced to zero. The second constant current source 7 comprises a circuit in which a constant current circuit 11 is connected to a transistor 18 in series; a transistor 19 current mirror-coupled to the transistor 18; and a transistor 17 connected between the collector of the transistor 19 and that of the PNP transistor 20. The base of the transistor 17 is connected to the connection point between the constant current circuit 11 and the collector of the transistor 18. To the collector of the transistor 17 flows the same current l₂ which flows to the constant current circuit 11. The transistors 12 and 14 through 19 are NPN transistors. The first constant current source 6 includes the PNP transistor 20 of which the emitter is connected to a positive power source and the collector, to the collectors of the transistors 12 and 17 and to the base of a PNP transistor 21. The PNP transistor 21 is provided for the biasing purpose, and its collector is grounded. To the PNP transistor 20 flows a current which is the sum of the collector current I₁ of the transistor 12 and the collector current l₂ of the transistor 17. Therefore, a collector current of I₁ + l₂ normally flows thereto, and the collector current of the transistor 20 turns l₂ when that of the transistor 12 is reduced to zero by the control pulse IN. A PNP transistor 22, corresponding to the charge current source 1 in Fig. 1, is current mirror-coupled to the PNP transistor 20, and charges a capacitor 5 with the collector current equal to that flowing to the PNP transistor 20. Transistor 25, 22′ and 25′ make up a discharge constant current circuit. The transistor 22′ is current mirrorcoupled to the transistor 22 to allow the collector current equal to that of the transistor 22 to flow. The transistor 25 whose base and collector are connected to each other is also current mirror-coupled to the transistor 25. As both the discharge current of the capacitor 5 and the collector current of the transistor 22 flow to the transistor 25 while the transistor 25 being turned on, it is requisite that, in order to generate the pulse oscillation signal B 50 percent duty ratio, the collector current of the transistor 25 become twice that of the transistor 25′. Therefore, the base-emitter junction area of the transistor 25 is so formed as to be twice that of the transistor 25′. The comparator 3 compares the voltage of the capacitor 5 with the first or second reference voltage E₁ or E₂ and produces a high level output if the voltage of the capacitor 5 is found higher, or a low level output if it is found lower. The reference voltage switching control circuit 4 keeps the NPN transistor 25 off and supplies the first reference voltage E₁ to the comparator 3 when the output of the comparator 3 is at the low level. Then the capacitor 5 is placed in a charging state. When the output of the comparator 3 is at the high level, the reference voltage switching control circuit 4 supplies the second reference voltage E₂ to the comparator 3, and keeps the NPN transistor 25 on. Then the capacitor 5 is placed in a discharging state. The charge current from the PNP transistor 22 which constitutes the constant charge current circuit and the discharge current of the NPN transistor 25 which constitutes the constant discharge current circuit are binarily varied by turning on and off the third constant current source 8 with the input control pulse (IN). In other words, the output oscillation frequency of the comparator 3 binarily varies with whether or not the input control pulse (IN) is supplied. When the oscillator shown in Fig. 3 is used for a tone ringer of a telephone set, the power is provided at the terminal Vcc as an output of a rectifier circuit (not shown) which rectifies a ringing signal supplied from the telephone line and in the input control pulse (IN) signal having a low repetition rate such as 1 sec is provided. In response to this control pulse, tone frequency of the ringes is alternately varied between a high and a low frequency. Incidentally, if the oscillation frequency is to be varied ternarily, there may be provided a fourth constant current source in parallel with the constant current sources 7 and 8 which determine the charge and discharge currents for the capacitor 5, and the charge and discharge current values varied ternarily by turning on and off this fourth constant current source with a control pulse. Fig. 4 illustrates in detail an example of the combination of the transistors 22, 22′, 25 and 25′, the comparator 3 and the reference voltage switching control circuit 4 for use in the circuit of Fig. 3. Transistors 30a, 30b, 30c and 30d constitute the comparator, and a diode 31, a zener diode 33 and transistors 32 and 34 constitute the reference voltage switching control circuit. The Zener diode 33 and the transistor 34 together function as a constant voltage source, and the bases of the transistors 22 and 22′ are connected to the transistors 20 and 21 in Fig. 3. Transistors 26 and 27 respectively bias the Zener diode 33 and transistors 30a through 30d, which constitute the comparator. Now, if the voltage of the capacitor 5 is smaller than the sum of the Zener voltage of the Zener diode 33 and the base-emitter voltage V BE of the transistor 34, the output transistor 30b will be cut off and the Zener diode 33 have the Zener voltage. Then the transistor 34 is turned on and the transistor 25 cut off. In this state, the capacitor 5 is charged by the transistor 22, and when the voltage of the capacitor 5 has risen to reach the sum of the Zener voltage of the Zener diode 33 and the V BE of the transistor 34, the comparator's action is reversed to turn on the transistors 30b. Therefore, the transistor 32 is turned on, the Zener diode 33 and the transistor 34 are cut off, the transistor 25 is actuated and the capacitor 5 discharged. As the terminal voltage of the capacitor 5 falls below the voltage between the anode of the diode 31 and the ground, the comparator's action is reversed again to cut off the transistor 30b. As hitherto described, the present invention, which provides for a structure to vary the charge and discharge currents of the oscillator circuit in accordance with an input control pulse, has the benefit of permitting a plurality of mutually independent oscillation frqeuencies to be obtained with a simple circuitry.

Claims: 1. An oscillator circuit having an output which may be varied between two or more predetermined frequencies, the oscillator circuit including a capacitor (5), a charge current source (1) for charging the capacitor (5), a constant current discharge circuit (2) for discharging a charge on the capacitor (5), a comparator (3) for comparing the charge voltage on the capacitor (5) with a first or a second reference voltage (E₁; E₂), and a reference voltage switching control circuit (4) for supplying the first or the second reference voltage (E₁; E₂), selected according to the output of the comparator (3), to the comparator (3) and controlling the turning on and off of the constant current discharge circuit (2), and the oscillator circuit being characterised in that a constant current control source (6) is current mirror-coupled to the charge current source (1) and controls the current from the charge current source (1), and in that the output signal frequency of the comparator (3) constituting the output signal frequency of the oscillator is controlled by regulating the constant current control source (6) so as to switch the current capacity of the charge current source (1). 2. An oscillator circuit as claimed in claim 1 characterised in that there are provided second (7) and third (8) constant current sources, the sum of the outputs of the second (7) and third (8) constant current sources being applied to the control constant current source (6).

Inventors: KITAGUCHI, TAKAHISA
Applicants: NEC CORPORATION
Application year: 1985
Main classification: H03B5
IPC codes: H03K3, H03L7, H03K4