Offset correction circuit

Abstract: A current to voltage conversion circuit is formed of a differential amplifier circuit (1) with a negative input terminal connected to a light receiving element (3) and a register (4) which feeds back an output signal to the negative input terminal of the differential amplifier circuit (1) thereof. The variable gain amplifier circuit (5) amplifies the output voltage of the current to voltage conversion circuit to detect the bottom value of the output signal thereof. The comparator circuit (7) compares the bottom value with the reference value Vrl so that current flowing through the resistor (4) can be adjusted according to the difference between the bottom value and the reference value Vrl. The offset of the output signal from the variable gain amplifier circuit (5) supplied through the output terminal OUT is thereby adjusted. Since the peak value of the output signal of the variable gain amplifier circuit (5) is detected and the gain of the variable gain amplifier circuit (5) is controlled according to the difference between the peak value and the reference value Vr2, an output signal of a predetermined level can be obtained.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an offset correction circuit suitable for a current to voltage conversion circuit that converts an output current from a light emitting element into a voltage. Description of the Related Art Optical combinations means are known that transmit and receive data via a medium such as light, e.g. infrared rays, for example, as generally exemplified by a remote control for a television set. In such communication means, the light emitting element in the optical transmitter circuit emits data "1" or "0" while the light receiving element in the optical receiver circuit receives the transmitted data according to the output signal of the light receiving element. Then the output signal of the light receiving element is converted into data. Fig. 3 is a diagram illustrating a conventional current to voltage conversion circuit arranged in an optical receiver circuit to convert an output current from a light receiving element into a voltage. Referring to Fig. 3, the differential amplifier 1 has its positive input terminal connected to the reference voltage source 2 and its negative input terminal connected to the light receiving element 3. A resistor is connected between the output terminal and the negative input terminal. The output current of the differential amplifier 1 is fed back via the resistor 4 to maintain the differential amplifier 1 in equilibrium so that the entire output current of the light receiving element 3 flows through the resistor 4. When receiving light, the light receiving element 3 supplies the output current I1. When the output current I1 flows through the resistor 4, the output voltage Vout (= I1 x R + Vref, where R is the resistance of the resistor 4) occurs at the output terminal OUT due to a voltage drop across the resistor 4. The output current I1 depends on the light intensity, thus resulting in variations in the output voltage Vout at the output terminal OUT. As a result, an output signal representing "1" or "0" is produced according to the receive data from the output terminal OUT. The IrDA infrared radiation transmission standards stipulate that the intensity of an effective received light for light reception range from 16 µW to 20 mW in order to detect light with a micro power. Where a micro power light is received with the current to voltage conversion circuit of Fig. 3, the resistance of the resistor 4 is set to e.g. 10 MΩ to produce the output of several volts at the output terminal OUT. However, when the current in voltage conversion circuit shown in Fig. 3 produces an offset current Ioff from the negative input terminal of the differential amplifier 1, the resistor 4 with a large resistance of 10MΩ causes an offset voltage Voff of 10 volts even if the offset current is as small as 1µA. Such a large offset voltage adversely affects the operation of the current voltage circuit. Particularly, the problem is that the current to voltage conversion circuit which operates on a low voltage of 3 or 5 volts cannot provide a large offset voltage as well as an output signal definitely representing "1" or "0". JP-A-8223228 discloses an offset correction circuit for a current to voltage converter which applies a correction voltage at the input to an AGC amplifier receiving a voltage output signal from the converter. SUMMARY OF THE INVENTION The present invention is made to solve the above-mentioned problems and includes an objective of providing an offset correction circuit that corrects an offset of an output voltage from a current to voltage conversion circuit. According to the present invention, an offset correction circuit is provided as set out in Claim 1. The correction circuit corrects the output voltage of the current to voltage conversion circuit by adjusting a current flowing through the feedback resistor. Preferably, the first level detection circuit detects a peak value or bottom value of an output voltage of the current to voltage conversion circuit, the peak value or bottom value corresponding to the absence of the input current. The correction circuit may comprise a comparator circuit for comparing said level of said output voltage with a first predetermined reference voltage, whereby said current flowing through said feedback resistor is adjusted according to the output of said comparator circuit. The offset correction circuit may further comprise a variable gain amplifier circuit arranged between the current to voltage conversion circuit and the first level detection circuit, for amplifying the output voltage of the current to voltage conversion circuit with a.variable gain thereof and supplying the result to the first level detection circuit; a second level detection circuit for detecting a level of the output signal of the variable gain amplifier circuit when said input current is present; and a gain control circuit for controlling the gain of the variable gain amplifier circuit according to the level detected by the second level detection circuit. Preferably, the second level detection circuit detects a peak value or bottom value of an output voltage from the current to voltage conversion circuit, the peak value or bottom value corresponding to said current to the current to voltage converter being present. As described above, the offset correction circuit detects the output voltage of the current to voltage conversion circuit in the absence of an input signal and then shifts the output voltage thereof based on the detected output voltage, thus compensating for the offset of the output voltage. BRIEF DESCRIPTION OF THE DRAWINGS This and other objects, features, and advantages of embodiments of the present invention will become more apparent in the following detailed description and drawings, in which: Fig. 1 is a block circuit diagram showing an offset correction circuit according to an embodiment of the present invention, Figs. 2A, 2B, 2C, 2D, 2E, 2F, and 2G are diagrams illustrating waveforms at various points in the offset correction circuit shown in Fig. 1, Fig. 3 is a block circuit diagram illustrating a conventional offset correction circuit, and Fig. 4 is a block circuit diagram illustrating an offset correction diagram according to another embodiment of the present invention. DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, preferred embodiments of the present invention will be described with reference to the attached drawings. Fig. 1 is a block circuit diagram illustrating an offset correction circuit according to an embodiment of the present invention. Referring to Fig. 1, the offset correction circuit consists of a variable gain amplifier circuit 5 that amplifies an output voltage from the output terminal of the differential amplifier 1, a bottom detection circuit 6 that detects the bottom of an output signal of the variable gain amplifier circuit 5, a comparator circuit 7 that compares the output signal from the bottom detection circuit 6 with the reference voltage Vr1 and then varies the current flowing through the resistor 4 according to the comparison result, a peak detection circuit 8 that detects the peak of an output signal from the variable gain amplifier circuit 5. and a comparator circuit 9 that compares the output signal from the peak detection circuit 8 with the reference voltage Vr2 and then varies the gain of the variable gain amplifier circuit 5 according to the comparison result. A correction circuit is formed of the bottom detection circuit 6 and the comparator circuit 7. In Fig. 1, the same numerals as those used in Fig. 3 represent corresponding elements, and their description will not be reported here. Referring to Fig. 1, when the light receiving element 3 receives light, the current passing through it is converted into a voltage by means of the resistor 4. When the light receiving element 3 receives no light, no current flows through the light receiving element 3 or the resistor 4. As a result, the differential amplifier 1 outputs an output voltage a representing "0" or "1" at its output terminal, as shown in Fig. 2A. The output voltage a is amplified by the variable gain amplifier circuit 5. The bottom detection circuit 6 the detects the bottom of the output voltage b of the variable gain amplifier circuit 5, thus detecting the level representing "0" of the output voltage b. Since the time constant of the bottom detection circuit 6 is set to a large value, the output signal c of the bottom detection circuit 5 varies small corresponding to the variation of the output voltage a, as shown in Fig. 2B. The comparator circuit 7 receives the output voltage c of the bottom detection circuit 6, and then produces the output current d corresponding to the difference between the output signal c and the reference value Vrlf. The output current d is added to the current flowing through the resistor 4. The resultant current is supplied to the light emitting element 3. An offset, for example, is superposed on the output voltage a. When the output voltage a is high by the offset, as shown with solid lines in Fig. 2C, the variable gain amplifier circuit 5 amplifies the output signal b by its gain component, as shown with broken lines in Fig. 2C. The bottom detection circuit 6 detects the bottom value of the output signal b. The comparator circuit 7 compares the bottom value with the reference value Vr1 so that the degree of the offset is detected. The output current d flows corresponding to the offset. That is, when the comparator circuit 7 creates the output current d equal to the offset current flowing through the resistor 4, thus supplying the entire offset current flowing through the light receiving element 3, so that no offset current flows through the resistor 4. Thus, the offset voltage is not superposed on the output voltage a from the differential amplifier 1. This operation results in correcting the offset. Even if a variation in the output signal c of the bottom detection circuit 6 is small and the output voltage a is "1" or "0", the offset can be always and roughly eliminated because the time constant of the bottom detection circuit 6 is set to a large value. The peak detection circuit 8 detects the peak of the output the output signal b representing "1" of the variable gain amplifier circuit 5. The comparator circuit 9 compares the output signal e of the peak detection circuit 8 with the reference value Vr2 and then supplies the output signal f corresponding to the difference between the output signal e, or the comparison result, and the reference value Vr2 to the variable gain amplifier circuit 5. The gain of the variable gain amplifier circuit 5 varies corresponding to the output signal f. At this time, since the gain is varied so as to equalize the output signal e of the peak detection circuit 8 to the reference value Vr2, the level "1" of the output signals b of the variable gain amplifier circuit 9 is set to a predetermined level. Next, the gain varying operation of the variable gain amplifier circuit 5 will be described below together with the offset adjusting operation. The variable gain amplifier circuit 5 amplifies the output voltage a to the levels "1" and "0", that is, the bottom value and the peak value of the output signal b. The peak value is equaled to the reference Vr2, as shown in Fig. 2D. Thereafter, the current flowing through the resistor 4 is adjusted according to the output signal from the comparator circuit 7 so that the output voltage a is shifted so as to equalize the bottom value to the reference value Vr1, as shown in Fig. 2E. When the output voltage a is shifted, the peak value of the output signal b shifts from the reference value Vr2, as shown in Fig. 2E. Thus, the gain of the variable gain amplifier circuit 5 again varies according to the difference between the peak value and the reference value Vr2, so that the peak value of the output signal b becomes equal to the reference value Vr2, as shown in Fig. 2F. Moreover, when the output voltage a is amplified, the bottom value of the output signal b is boosted, thus shifting from the reference value Vr1, as shown in Fig. 2F. In such an operation, the current flowing through the resistor 4 is adjusted according to the difference between the bottom value and the reference value Vr1, so that the bottom value of the output signal b is equalized to the reference value Vr1 as shown in Fig. 2G. By repeating the above-mentioned operation, the error between the bottom value and the reference value Vr1 and the error between the peak value and the reference value Vr2 are decreased, so that the levels "1" and "0" of the output signal b are set to predetermined values, respectively. Thus, the offset which occurs because of the internal characteristic of the current to voltage conversion circuit can be compensated while the voltage converted output signal with no offset can be produced from the output terminal OUT. The offset correction circuit of Fig. 1 can compensate for an offset due to an external disturbance signal such as the sunlight received by the light receiving element 3, in addition to the internal offset which occurs in the current to voltage conversion circuit. Furthermore, the offset correction circuit shown in Fig. 4 can be used according to the present invention. In this embodiment, the light receiving element 10 is used in place of the light receiving element 3. When the light receiving element 10 does not receive light, it outputs the power source voltage. When the light receiving element 10 does receive light, it outputs the earth potential. Hence, in no signal state, the light receiving element 10 outputs the power source voltage at its terminal connected to the resistor 4. In a similar manner to that just described, the peak detection circuit 11 detects the peak value of the output signal b to adjust the current flowing through the resistor 4, so that the offset can be corrected. Moreover, the bottom detection circuit 12 detects the bottom value of the output signal b to adjust the gain of the variable gain amplifier circuit 5 so that the output level of the current to voltage conversion circuit can be adjusted. According to the described embodiment, an offset of the output voltage caused by a current to voltage conversion operation is directly detected and the offset output voltage can be compensated based on the detected offset level. Hence, even an output signal with a large offset can be compensated for accurately. Particularly, since a large offset level can be directly detected, accurate offset correction can be always established, even if the offset varies due to the resistance value of the resistor constituting the current to voltage conversion circuit. This feature allows the resistor to be set to a given value. Furthermore, since the output voltage level obtained through current to voltage conversion is detected at a light irradiation time and then adjusted to a predetermined level, an output voltage with a predetermined level can be always obtained, even if the power of a received light is feeble or high.

Claims: An offset correction circuit that corrects an offset of an output voltage from a current to voltage circuit that converts an input current into a voltage, comprising: a first level detection circuit (6) for detecting a level of the output voltage when said input current to said current to voltage circuit is zero, and a correction circuit (7) for correcting the output voltage of said current to voltage conversion circuit according to the level of said output voltage detected by said first level detection circuit (6), wherein said current to voltage conversion circuit comprises a differential amplifier (1) having an inverting input terminal receiving said input current, a non-inverting input terminal and an output terminal, and a feedback resistor (4) for feeding back an output voltage from the output terminal of said differential amplifier to said inverting input terminal, characterised in that said correction circuit is connected to adjust a current flowing through said feedback resistor, to effect correction of the output voltage at the output terminal of said differential amplifier. The offset correction circuit defined in claim 1, wherein said first level detection circuit (6) detects a peak value or bottom value of the output voltage of said current to voltage conversion circuit, said peak value or bottom value corresponding to said current to the current to voltage converter being zero. The offset correction circuit, defined in claim 1 or 2, wherein said correction circuit (7) comprises a comparator circuit (7) for comparing said level of said output voltage with a first predetermined reference voltage, whereby said current flowing through said feedback resistor is adjusted according to the output of said comparator circuit. The offset correction circuit defined in any one of claims 1 to 3, further comprising: a variable gain amplifier circuit (5) arranged between said current to voltage conversion circuit (1) and said first level detection circuit (6) for amplifying the output voltage of said current to voltage conversion circuit (6) with a variable gain and supplying the result to said first level detection circuit (6); a second level detection circuit (8) for detecting a level of the output signal of said variable gain amplifier circuit (5) when said input current is present; and a gain control circuit (9) for controlling the gain of said variable gain amplifier circuit (5) according to the level detected by said second level detection circuit (8). The offset correction circuit defined in claim 4, wherein said second level detection circuit (8) detects a peak value or bottom value of an output voltage from said current to voltage conversion circuit, said peak value or bottom value corresponding to said current to the current to voltage converter being present.

Inventors: ARAI MASASHI, NARA MASAAKI, SEYAMA HIROKI, ARAI, MASASHI, NARA, MASAAKI, SEYAMA, HIROKI
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO., LTD.
Application year: 1998
Main classification: H03F3
IPC codes: H03F3