MATCHING CURRENT SOURCE

Abstract: In a matching current source for providing equivalent sink and source current, external voltage controls the amplitude of sink current and an operational amplifier is connected to mirror the sink current to the source current. The operational amplifier comprises a unity gain feedback loop for eliminating the effect of the channel length modulation effect in MOS transistors and the Early Effect in bipolar transistors, and serves the function of generating equivalent sink and source currents.

Description: Field of the invention This invention relates to current sources and is more in particular directed to a matching current source for providing the same quantity of sink current as source current. Description of the Prior Art In many integrated circuits, particularly analog circuits, current sources are frequently used. For some cases, a matching current source which generates equivalent sink and source current is very important. However, it is recognized that the transistor current is affected by the channel length modulation effect in MOS devices and Early Effect in bipolar devices. The drain currents of MOS transistors are consequently not independent of their drain-source voltages and the collector currents of bipolar transistors are not independent of their collector-emitter voltages. Actually, the drain current (collector current) increases with increasing drain-source voltage (collector-emitter voltage). Fig. 1 illustrates the circuit of a known current source which provides sink current and source current. In this circuit, MOS transistors T1 and T2 are serially connected, with the sources of the transistors T1 and T2 being connected to the voltage terminals V+ and V-respectively and the gate of transistors T1 being connected to its drain at node F. Node F is also coupled to the gate of transistor T3 having its source connected to the terminal V+. Input voltages at node B are applied to the gate of transistor T2 as well as to the gate of a transistor T4 that has its source connected to the voltage terminal V-. A voltage node A controls a switch S, for selectively connecting output node C to the drains of the transistors T3 and T4, at terminals D and E respectively. Since the channel length modulation effect exists, this circuit can't provide equivalent sink and source current. Node B controls the amplitude of source current. Node C is an output node which is at a fixed voltage in the range between V+ and V-. When node A controls the switch S to close the contact between C and D and open the contact between C and E, this circuit functions to source current. Changes in the voltage applied to node B change the current I1. The drain-source voltage Vds1 of transistor T1 and drain-source voltage Vds2 of transistor T2 vary in opposite directions with changes in the voltage of node B. However, the voltage of node C is constant. Therefore, Vds1-Vds2, Vds1-Vds3 and Vds2-Vds4 vary with changes in the voltage of node B. Vds1 Vds2, Vds3 and Vds4 are the drain-source voltages of transistors T1, T2, T3 and T4 respectively. Not only transistors T1 and T2, but also transistors T3 and T4, experience the different degree of channel length modulation effect. A linear relationship consequently does not exist between currents I1 and I2, and a linear relationship does not exist between currents I3 and I1. Similarly a linear relation does not exist between currents I2 and I3. Moreover, the ratios of current I4(=I2) in the sourcing current mode and the current -I4(=I3) in the sinking current mode are different for different voltages at node B. Therefore, this circuit can't provide matched current. In a matched current condition the amplitude of source current in a sourcing current mode is the same as the amplitude of sink current in sinking current mode, independently of whether those currents are large or small. One method commonly employed to overcome this problem is the adjustment or the current source by laser trimming. However, this method only provides equivalent source and sink current at one constant current, and the ratio of source-to-sink current varies with different amplitudes of source and sink current. SUMMARY OF THE INVENTION A matching current source may be implemented by MOS transistors or bipolar transistors. In spite of the effects of the channel length modulation effect or the Early Effect, the circuit of the invention provides equivalent sink and source current independently of whether the output currents are large or small. In accordance with this invention, there is provided a matching current source for providing a sink or a source current alternatively, having a first circuit stage comprising first and second transistors; a second circuit stage comprising a third transistor, first and second switches, and a fourth transistor connected in series in that order; control means for selectively setting said first and second switches either to a first state in which the first switch is on and the second switch is off, or to a second state in which the first switch is off and the second switch is on; and an output junction connected between the first and second switches for providing a source current or a sink current depending whether the first and second switches are set to said first or second states; said matching current source being characterized in that it comprises: a set of dummy switches comprising third and fourth constantly on switches connected between said first and second transistors for providing a constant impedance relationship between the first and second circuit stages, and a connecting junction for connecting the third and fourth switches; an operational amplifier comprising an inverting input and having its output coupled to the input electrode of the first transistor and its noninverting input coupled to the connecting junction between the third and fourth switches so that the operational amplifier and the first circuit stage comprises a unity gain feedback loop, the output of the operational amplifier further being coupled to the input electrode of the third transistor; and a feedback circuit coupled to the output junction and providing an output terminal of said matching current source, said feedback circuit comprising means for holding the voltage at said output junction equal to that of the inverting input so that the connecting junction, the inverting input of the operational amplifier and the output junction are held at the same voltage; whereby the matching current source provides a sink current or a source current of equivalent values. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a circuit diagram of a prior art current source; Figure 2 is a simplified schematic diagram of the current source of the present invention; Figure 3 is a circuit diagram of one embodiment of the present invention; Figure 4 is a circuit diagram of another embodiment of the present invention; and Figure 5 is the comparison of waveforms of the matching current source of the present invention and prior current source, assuming the connection of the outputs of these circuits to the same integrator. DETAILED DISCLOSURE OF THE INVENTION A schematic diagram of matching current source of the present invention is illustrated in Fig. 2. As illustrated in this figure, a matching current source is comprised of two dummy switches (S1, S2), two current switches (S3, S4), four current mirror transistors (T5, T6, T7 and T8) and an operational amplifier OP. As illustrated in Fig. 2, The transistor T5, switches S1 and S2 and transistor T6 are connected in series in that order between the supply voltage terminals V+ and V-, and the transistor T7, switches S3 and S4 and transistor T8 are connected in series in that order between the terminals V+ and V-. The non-inverting input of the amplifier OP is connected to the node I between the switches S1 and S2 and the output of the amplifier is coupled to the gates of the transistors T5 and T7. The switches S3 and S4 are controlled by the voltage at node H. The voltage at node F is applied to the gates of the transistors T6 and T8. The node G, at the junction of switches S3 and S4 is connected to the inverting input of an operational amplifier in the feedback circuit 1 and the voltage at node E is applied to the inverting input of the operational amplifier OP as well as to the non-inverting input of the operational amplifier in the feedback circuit 1. As illustrated in Fig. 2, the feedback circuit may be comprised of the above discussed operational amplifier having a feedback impedance Z, the output terminal J of the feedback circuit having a voltage waveform that is symmetrical in both the sourcing and sinking modes with respect to the voltage V(E) applied to the node E. Current switches S3 and S4, which are controlled by node H, must have one of the two following conditions: (i) S3 is on (conductive) and S4 is off (nonconductive) when the matching current source operates in the sourcing current mode. (ii) S3 is off and S4 is on when the matching current source operates in the sinking current mode. Switches S1 and S2 provide a constant impedance relationship between the first circuit stage (including transistor T5, switch S1, switch S2 and transistor T6 in series) and the second circuit stage (including transistor T7, switch S3, switch S4 and transistor T8 in series). The switches S1 and S2 are dummy switches since they are constantly on and their sole purpose is to provide an impedance similar to that of a current switch. The voltage applied to node F, coupled to the gates of transistors T6 and T8, controls the amplitudes of the currents I5, I6 and I7. The inverting input, node E, of operational amplifier OP is set at a constant voltage. The output node G of the matching current source is indirectly set at the same voltage as node E by the feedback circuit 1 of Fig. 2. Operational amplifier OP and the first circuit stage comprise a unity gain feedback loop, and therefore nodes E, I and G are held at the same voltage. If the condition: (where L is the channel length of the MOS transistors employed in the circuit, W is channel width of the MOS transistors and X is positive real number) is satisfied, the following conditions will be true: (i) I8=I6=X*I5 is true since Vgs5=Vgs7, Vds5=Vds7 and (W/L) of T7 = X*(W/L) of T5 when S3 is on and S4 is off. (ii) -I8=I7=X*I5 is true since Vgs6=Vgs8, Vds6=Vds8 and (W/L) of T8 = X*(W/L) of T6 when S3 is off and S4 is on. Therefore, the matching current source provides equivalent source and sink current. If, in a modification of the circuit shown in Fig. 2, the transistors T5, T6, T7 and T8 are bipolar transistors and the condition: is satisfied, the matching current source also provides equivalent source and sink current since Vbe5-Vfbe7, Vce5=Vce7 when S3 is on and S4 is off and Vbe6=Vbe8, Vce6=Vce8 when S3 is off and S4 is on. This is analogous to the matching current source employing MOS transistors as discussed above. Referring to Fig. 3, in accordance with a first preferred embodiment of the invention. This circuit differs from that of Fig. 2 only in that S1, S2, S3 and S4 are all MOS transistors. The gate of the transistor employed for the switch S1 is illustrated as connected to the terminal V- and the gate of the transistor employed for the switch S2 is illustrated as connected to the terminal V+, whereby both of the transistors are always conductive. In this circuit: When the voltage of node H is V+, the circuit operates in the sinking current mode and the relation -I8=I7=X*I5 is true since Vgs6=Vgs8, Vds6-Vds8, Vgs(S2)=Vgs(S4) and Vds(S2)=Vds(S4). When the voltage of node H is V-, then the circuit operates in the sourcing current mode and the relation I8=I6=X*I5 is true since Vgs5=Vgs7, Vds5=Vds7, Vgs(S1)=Vgs(S3) and Vds(S1)=Vds(S3). Therefore, the circuit provides equivalent source and sink current at the same voltage of node F. Referring to Fig. 4, in accordance with another preferred embodiment of the invention, the feedback circuit 1 of Fig. 3 is replaced by integrator 2 as shown. In this circuit, the integrator as illustrated may be comprised of an operational amplifier with a feedback capacitor C1. Assuming V(H) of Fig. 5(c) is voltage waveform applied to node H of Fig. 4, initially the voltage across the capacitor C1 is zero. If node F is set at a constant voltage, the voltage waveform of the output J of the integrator is the waveform a1 of Fig. 5(a). If node F is set at a different constant voltage, the waveform will change to the waveform a2 of Fig. 5(a). The waveform a1 and a2 both are symmetrical waveforms with respect to V(E), the voltage of node E , since the voltage slope of integrator output dV(J)/dt equals I7/C1 when V(H)=V+ and the voltage slope of integrator output dV(J)/dt equals-I6/C1 when V(H)=V-. If the matching current source of the invention were replaced by the current source in Fig. 1, waveforms a1 and a2 of Fig 5(a) would be expected to change to the waveform b1 and b2 as shown in Fig. 5(b). The waveforms b1 and b2 are not symmetrical to any constant voltage.

Claims: A matching current source having a first circuit stage comprising first and second transistors (T5, T6); a second circuit stage comprising a third transistor (T7), first and second switches (S3, S4), and a fourth transistor (T8) connected in series in that order; control means (H) for selectively setting said first and second switches (S3, S4) either to a first state in which the first switch (S3) is on and the second switch (S4) is off, or to a second state in which the first switch (S3) is off and the second switch (S4) is on; and an output junction (G) connected between the first and second switches (S3, S4) for providing a source current or a sink current depending whether the first and second switches (S3, S4) are set to said first or second states, said matching current source being characterized in that it comprises: a set of dummy switches comprising third and fourth constantly on switches (S1, S2) connected between said first and second transistors (T5, T6) for providing a constant impedance relationship between the first and second circuit stages, and a connecting junction (I) for connecting the third and fourth switches (S1, S2); an operational amplifier (OP) comprising an inverting input (E) and having its output coupled to the input electrode of the first transistor (T5) and its noninverting input coupled to the connecting junction (I) between the third and fourth switches (S1, S2) so that the operational amplifier (OP) and the first circuit stage form a unity gain feedback loop, the output of the operational amplifier (OP) further being coupled to the input electrode of the third transistor (T7); and a feedback circuit (1) coupled to the output junction (G) and providing an output terminal (J) of said matching current source, said feedback circuit (1) comprising means for holding the voltage at said output junction (G) equal to that of the inverting input (E), so that the connecting junction (I), the inverting input (E) of the operational amplifier (OP), and the output junction (G) are held at the same voltage; whereby the matching current source provides a sink current or a source current of equivalent values. A matching current source according to claim 1 characterized in that said means in the feedback circuit (1) comprises a feedback amplifier having its output connected to the output terminal (J), its inverting input coupled to the output junction (G) and its noninverting input coupled to the inverting input (E) of the operational amplifier (OP). A matching current source according to claim 2 characterized in that the feedback circuit (1) comprises a capacitor connected between the inverting input and the output of the feedback amplifier so that the feedback circuit (1) comprises an integrating circuit. A matching current source according to any of the preceding claims characterised in that a constant impedance relationship is provided which satisfies the condition: A matching current source according to any of the preceding claims characterized in that said third and fourth switches (S1, S2) comprise constantly conductive fifth and sixth transistors, and the first and second switches (S3, S4) comprise seventh and eighth transistors which are conductive and nonconductive respectively in said first state and nonconductive and conductive respectively in said second state. A current source according to any of the preceding claims characterized in that said transistors and switches are all MOS transistors. A current source according to any of the claims 1 to 5 characterized in that said transistors and switches are all bipolar transistors.

Inventors: KUO, TAI-HAUR
Applicants: INDUSTRIAL TECHNOLOGY RESEARCH INSTITUTE
Application year: 1987
Main classification: G05F1
IPC codes: G05F3