Adaptive ambient light compensation circuit

Through the adaptive ambient light compensation circuit, the negative feedback loop and current regulation of components such as PMOS and NMOS tubes is used to solve the problem that ambient light cannot be completely eliminated in the prior art, and the dynamic range and accuracy of the photoelectric measurement system are improved. And reduces the circuit area.

CN118963477AActive Publication Date: 2024-11-15SHANGHAI SHENXILING MICROELECTRONICS TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411168282.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-15
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

In existing photoelectric measurement systems, the limited accuracy of the current-type digital-to-analog converter causes the ambient light to be completely eliminated, affecting the dynamic range and accuracy of the measurement, and the large circuit area is not conducive to integration.

Method used

An adaptive ambient light compensation circuit was designed, using PMOS and NMOS tubes, filter capacitors, switches and current sources and other components to achieve accurate compensation of ambient light signals through negative feedback loops and current adjustments, ensuring the signal light signals. Accurate transmission.

Benefits of technology

It significantly improves the dynamic range and measurement accuracy of the photoelectric measurement system, effectively eliminates ambient light interference, reduces circuit area, and improves integration and production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963477A_ABST
    Figure CN118963477A_ABST
Patent Text Reader

Abstract

The invention provides a self-adaptive ambient light compensation circuit, which aims at solving the problem of ambient light interference in a photoelectric measurement system and realizes high-precision ambient light compensation through an integrated analog circuit. The circuit adopts PMOS (P-channel Metal Oxide Semiconductor) and NMOS (N-channel Metal Oxide Semiconductor) transistors and various amplifiers, resistors, capacitors and switch elements to construct a system capable of adaptively adjusting and eliminating the influence of ambient light current. Compared with the prior art, the self-adaptive current sink and copy current technology is utilized, the environment light compensation range is effectively expanded and reaches 0-5 mA, meanwhile, the circuit area is reduced, and the integration level is improved. In addition, by optimizing the design of the filter capacitor and the filter resistor, the stabilization time is further shortened, and the compromise problem between the filter bandwidth and the establishment time is avoided. The self-adaptive ambient light compensation circuit has a wide application prospect in a photoelectric measurement system, and the measurement dynamic range and accuracy can be remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of analog integrated circuits, and in particular to an adaptive ambient light compensation circuit. Background Art

[0002] Photodiode plus transimpedance amplifier is a common architecture for the front end of photoelectric measurement system. The photodiode receives light signals and converts them into current signals, and the transimpedance amplifier can convert current signals into voltage signals. The light signals received by the photodiode usually include the light signals to be measured and the ambient light signals that are easy to cause interference and reduce the dynamic range of the measurement. Therefore, in order to ensure the accuracy of the measurement, additional circuits need to be added to eliminate the ambient light signals.

[0003] Ginseng Figure 1 The figure shows a photoelectric measurement front-end circuit diagram with an ambient light elimination circuit in the prior art, which includes an amplifier AMP, a feedback resistor Rf, a photodiode PD and an N-bit IDAC. The photodiode PD is used to receive the light signal and convert it into a current signal. The amplifier AMP and the feedback resistor Rf form a transimpedance amplifier to convert the current signal into a voltage signal. IDAC stands for current-type analog-to-digital converter. The input is an N-bit (N-bit) digital signal and the output is a current signal. The current output range of the N-bit current-type analog-to-digital converter is 0 to (2 N -1)*ILSB, ILSB is the minimum unit current that the N-bit current-type DAC can output.

[0004] Ginseng Figure 1 The operation of the prior art circuit shown includes two moments. In the first moment, the photodiode only receives ambient light, generates a current IAM, and generates a voltage Vout after entering the transimpedance amplifier. Vout satisfies the following formula:

[0005] Vout=Vcm+I AM *Rf

[0006] By adjusting the Nbit input code of the current-type DAC, the current entering the transimpedance amplifier can be changed until the output Vout of the transimpedance amplifier is Vcm. At this time, the current IDAC of the current-type DAC is IAM, that is, the current generated by the ambient light-excited photodiode is provided entirely by the current-type DAC and no longer enters the transimpedance amplifier. At the second moment, the photodiode receives ambient light and the measured signal light, generating a current IAM+Iin, where IAM is provided entirely by the current DAC, and only the signal current Iin generated by the signal light-excited photodiode can enter the transimpedance amplifier, thereby achieving the purpose of eliminating ambient light and accurately measuring signal light. Since the current-type DAC has limited precision, that is, the minimum output unit current ILSB, the current excited by ambient light through the photodiode cannot be completely eliminated, and the current excited by ambient light often has a large range, so the current-type DAC has a large area, which is not conducive to integration.

[0007] Therefore, it is necessary to propose a new technical solution to improve the above technical problems. Summary of the invention

[0008] In view of the defects in the prior art, an object of the present invention is to provide an adaptive ambient light compensation circuit.

[0009] An adaptive ambient light compensation circuit according to the present invention includes: a first PMOS tube MP1, a second PMOS tube MP2, a third PMOS tube MP3, a fourth PMOS tube MP4, a fifth PMOS tube MP5, a sixth PMOS tube MP6 and a seventh PMOS tube MP7;

[0010] The source of the first PMOS tube MP1 is connected to the source of the second PMOS tube MP2, the filter capacitor C, the source of the third PMOS tube MP3 and the drain of the NMOS tube MN1; the drain of the first PMOS tube MP1 is connected to the resistor R1 and the source of the fourth PMOS tube MP4; the gate of the first PMOS tube MP1 is connected to the resistor R2 and the resistor R1;

[0011] The source of the second PMOS transistor MP2 is connected to the filter capacitor C, the source of the third PMOS transistor MP3 and the drain of the NMOS transistor MN1; the drain of the second PMOS transistor MP2 is connected to the switch S1 and the switch S4; the gate of the second PMOS transistor MP2 is connected to the other end of the resistor R2;

[0012] The source of the third PMOS tube MP3 is connected to the filter capacitor C and the drain of the NMOS tube MN1; the drain of the third PMOS tube MP3 is connected to the switch S2 and the switch S3; the gate of the third PMOS tube MP3 is connected to the switch S5 and the other end of the filter capacitor C;

[0013] The source of the fourth PMOS transistor MP4 is connected to the resistor R1 and the resistor R2; the drain of the fourth PMOS transistor MP4 is connected to the drain of the seventh PMOS transistor MP7, the current source Is1 and the current source Is2; the gate of the fourth PMOS transistor MP4 is connected to the drain of the fifth PMOS transistor MP5 and the other end of the current source Is1;

[0014] The source of the fifth PMOS transistor MP5 is connected to the switch S2, the switch S4, the switch S6 and the cathode of the photodiode PD; the drain of the fifth PMOS transistor MP5 is connected to the other end of the current source Is1, and the gate of the fifth PMOS transistor MP5 is connected to the gate of the sixth PMOS transistor MP6 and the other end of the current source Is2;

[0015] The source of the sixth PMOS transistor MP6 is connected to the source of the NMOS transistor MN1 and the inverting input terminal of the amplifier AMP2; the drain and gate of the sixth PMOS transistor MP6 are connected to the other end of the current source Is2;

[0016] The source of the seventh PMOS transistor MP7 is connected to the inverting input terminal of the amplifier AMP1, the switch S1 and the switch S3; the drain of the seventh PMOS transistor MP7 is connected to the current source Is1 and the current source Is2; the gate of the seventh PMOS transistor MP7 is connected to the output terminal of the amplifier AMP1.

[0017] Preferably, the other end of the switch S6 is connected to a transimpedance amplifier, which includes at least an amplifier AMP3 and a feedback resistor Rf, and is used to convert the current signal output by the photodiode PD into a voltage signal; the other end of the switch S6 is connected to the inverting input terminal of the amplifier AMP3 and one end of the feedback resistor Rf; the other end of the feedback resistor Rf is connected to the output terminal of the amplifier AMP3; the non-inverting input terminal of the amplifier AMP3 is connected to a preset common mode level Vcm.

[0018] Preferably, the switches S3, S4 and S5 are closed, and the switches S1, S2 and S6 are opened, the photodiode PD only receives the ambient light signal, and the adaptive current regulation circuit completely compensates for the current generated by the ambient light signal.

[0019] Preferably, the switches S3, S4 and S5 are disconnected, and the switches S1, S2 and S6 are closed, the photodiode PD receives ambient light and signal light simultaneously, the adaptive current regulation circuit only compensates for the current generated by the ambient light signal, and the current generated by the signal light signal enters the transimpedance amplifier for conversion.

[0020] Preferably, the first PMOS tube MP1, the second PMOS tube MP2, the third PMOS tube MP3, the fourth PMOS tube MP4, the fifth PMOS tube MP5, the sixth PMOS tube MP6 and the seventh PMOS tube MP7, the NMOS tube, the resistors R1 and R2, the filter capacitor C, the amplifiers AMP1 and AMP2, the current sources Is1 and Is2, and the switches S1, S2, S3, S4 and S5 together constitute the main body of the adaptive ambient light compensation circuit; the amplifier AMP3, the photodiode PD, the feedback resistor Rf and the switch S6 together constitute the main body of the front-end circuit of the photoelectric measurement circuit.

[0021] Preferably, the non-inverting input terminal of the amplifier AMP1 is connected to a preset common mode level Vcm, the inverting input terminal is connected to the source of the seventh PMOS tube, the output terminal is connected to the gate of the seventh PMOS tube, the drain of the seventh PMOS tube is grounded, and the negative feedback loop formed plays the role of an adaptive current sink, and the source of the seventh PMOS tube is clamped to the preset common mode level Vcm; the non-inverting input terminal of the amplifier AMP2 is connected to the preset common mode level Vcm, the inverting input terminal is connected to the source of the NMOS tube, the output terminal is connected to the gate of the NMOS tube, the drain of the NMOS tube is connected to the power supply, and the negative feedback loop formed allows the source VP of the NMOS tube to be clamped to the preset common mode level Vcm.

[0022] Preferably, the ratio of the current source Is1 to the current source Is2 is the same as the W / L ratio of the fifth PMOS tube and the sixth PMOS tube, so the gate voltages of the fifth PMOS tube and the sixth PMOS tube are the same, and thus the source voltages of the fifth PMOS tube and the sixth PMOS tube are equal.

[0023] Preferably, the switches S3, S4 and S5 are closed, the switches S1, S2 and S6 are opened, and the photodiode PD is stimulated to generate current Iam only after receiving ambient light. The first, second, fourth and fifth PMOS and the resistor R2, switch S4 and current source Is1 together form a loop. After the loop is stable, the current in the second PMOS tube is equal to the sum of the current source Is1 and the current stimulated by the photodiode PD; the W / L of the second and third PMOS tubes are the same, so the current of the third PMOS tube is a copy of the current of the second PMOS tube, that is, I=Iam+Is1 is satisfied; and after filtering by the resistor R1 and the filter capacitor C, the current in the third PMOS tube is a low-noise current.

[0024] Preferably, the switches S3, S4 and S5 are disconnected, the switches S1, S2 and S6 are closed, and the photodiode PD not only receives the current Iam generated by the same ambient light excitation as at the first moment, but also receives the current Iin generated by the signal light source excitation; the gate power supply of the third PMOS tube maintains the same voltage as at the first moment due to the presence of the filter capacitor, so the current in the third PMOS tube is still the current size Iam+Is1 at the first moment; since the current in the photodiode is Iam+Iin, only the current Iin generated by the difference in the signal light source exciting the photodiode PD enters the transimpedance amplifier formed by the feedback resistor Rf and the amplifier AMP3, and the current Iam generated by the ambient light exciting the photodiode PD is completely offset by the adaptive ambient light compensation circuit; the current range of the ambient light compensation circuit to compensate for the ambient light is 0-5mA.

[0025] Preferably, it also includes a resistor R1, an amplifier AMP4, a resistor R3, a capacitor C2 and an eighth PMOS tube MP8; the non-phase input terminal of the amplifier AMP4 is connected to the drain or source of the eighth PMOS tube, the output terminal is short-circuited with the inverting input terminal and connected to one end of the resistor R3 and the capacitor C2; the other end of the resistor R3 and the capacitor C2 is connected to the gate of the eighth PMOS tube.

[0026] Compared with the prior art, the present invention has the following beneficial effects:

[0027] 1. The adaptive ambient light compensation circuit of the present invention significantly improves the dynamic range and measurement accuracy of the photoelectric measurement system by accurately compensating for the ambient light component in the measurement light signal; compared with the prior art, the present invention can more effectively eliminate the interference of ambient light, making the measurement of signal light more accurate;

[0028] 2. The current range of ambient light generated by the ambient light compensation circuit of the present invention can reach 0-5mA, which basically covers most application scenarios and provides strong support for accurate measurement under different lighting conditions;

[0029] 3. The adaptive ambient light compensation circuit of the present invention optimizes the circuit design, especially the implementation of the first resistor R1 (such as Figure 3 As shown in the figure), the required circuit area is effectively reduced; this design not only reduces the chip space occupied, but also improves the circuit integration and reduces the production cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0031] Figure 1A photoelectric measurement front-end circuit diagram with an ambient light elimination circuit in the prior art;

[0032] Figure 2 The adaptive ambient light compensation circuit diagram provided by the present invention;

[0033] Figure 3 Schematic diagram of the implementation of resistor R1. DETAILED DESCRIPTION

[0034] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0035] Embodiment 1:

[0036] Reference Figure 2 According to the present invention, an adaptive ambient light compensation circuit is provided, comprising: a first PMOS tube MP1, a second PMOS tube MP2, a third PMOS tube MP3, a fourth PMOS tube MP4, a fifth PMOS tube MP5, a sixth PMOS tube MP6 and a seventh PMOS tube MP7;

[0037] The source of the first PMOS tube MP1 is connected to the source of the second PMOS tube MP2, the filter capacitor C, the source of the third PMOS tube MP3 and the drain of the NMOS tube MN1; the drain of the first PMOS tube MP1 is connected to the resistor R1 and the source of the fourth PMOS tube MP4; the gate of the first PMOS tube MP1 is connected to the resistor R2 and the resistor R1;

[0038] The source of the second PMOS transistor MP2 is connected to the filter capacitor C, the source of the third PMOS transistor MP3 and the drain of the NMOS transistor MN1; the drain of the second PMOS transistor MP2 is connected to the switch S1 and the switch S4; the gate of the second PMOS transistor MP2 is connected to the other end of the resistor R2;

[0039] The source of the third PMOS tube MP3 is connected to the filter capacitor C and the drain of the NMOS tube MN1; the drain of the third PMOS tube MP3 is connected to the switch S2 and the switch S3; the gate of the third PMOS tube MP3 is connected to the switch S5 and the other end of the filter capacitor C;

[0040] The source of the fourth PMOS transistor MP4 is connected to the resistor R1 and the resistor R2; the drain of the fourth PMOS transistor MP4 is connected to the drain of the seventh PMOS transistor MP7, the current source Is1 and the current source Is2; the gate of the fourth PMOS transistor MP4 is connected to the drain of the fifth PMOS transistor MP5 and the other end of the current source Is1;

[0041] The source of the fifth PMOS transistor MP5 is connected to the switch S2, the switch S4, the switch S6 and the cathode of the photodiode PD; the drain of the fifth PMOS transistor MP5 is connected to the other end of the current source Is1, and the gate of the fifth PMOS transistor MP5 is connected to the gate of the sixth PMOS transistor MP6 and the other end of the current source Is2;

[0042] The source of the sixth PMOS transistor MP6 is connected to the source of the NMOS transistor MN1 and the inverting input terminal of the amplifier AMP2; the drain and gate of the sixth PMOS transistor MP6 are connected to the other end of the current source Is2;

[0043] The source of the seventh PMOS transistor MP7 is connected to the inverting input terminal of the amplifier AMP1, the switch S1 and the switch S3; the drain of the seventh PMOS transistor MP7 is connected to the current source Is1 and the current source Is2; the gate of the seventh PMOS transistor MP7 is connected to the output terminal of the amplifier AMP1.

[0044] The photodiode PD is used to receive the light signal and convert it into a current signal. The other end of the switch S6 is connected to a transimpedance amplifier, which includes at least an amplifier AMP3 and a feedback resistor Rf, and is used to convert the current signal output by the photodiode PD into a voltage signal; the other end of the switch S6 is connected to the inverting input end of the amplifier AMP3 and one end of the feedback resistor Rf; the other end of the feedback resistor Rf is connected to the output end of the amplifier AMP3; the non-inverting input end of the amplifier AMP3 is connected to the preset common mode level Vcm.

[0045] When switches S3, S4 and S5 are closed, switches S1, S2 and S6 are disconnected, the photodiode PD only receives the ambient light signal, and the adaptive current regulation circuit fully compensates for the current generated by the ambient light signal. When switches S3, S4 and S5 are disconnected, switches S1, S2 and S6 are closed, the photodiode PD receives both ambient light and signal light, and the adaptive current regulation circuit only compensates for the current generated by the ambient light signal, while the current generated by the signal light signal enters the transimpedance amplifier for conversion.

[0046] The first PMOS tube MP1, the second PMOS tube MP2, the third PMOS tube MP3, the fourth PMOS tube MP4, the fifth PMOS tube MP5, the sixth PMOS tube MP6 and the seventh PMOS tube MP7, the NMOS tube, the resistors R1 and R2, the filter capacitor C, the amplifiers AMP1 and AMP2, the current sources Is1 and Is2, and the switches S1, S2, S3, S4 and S5 together constitute the main body of the adaptive ambient light compensation circuit; the amplifier AMP3, the photodiode PD, the feedback resistor Rf and the switch S6 together constitute the main body of the front-end circuit of the photoelectric measurement circuit.

[0047] The non-inverting input terminal of the amplifier AMP1 is connected to the preset common mode level Vcm, the inverting input terminal is connected to the source of the seventh PMOS tube, the output terminal is connected to the gate of the seventh PMOS tube, the drain of the seventh PMOS tube is grounded, and the negative feedback loop formed plays the role of an adaptive current sink, and the source of the seventh PMOS tube is clamped to the preset common mode level Vcm; the non-inverting input terminal of the amplifier AMP2 is connected to the preset common mode level Vcm, the inverting input terminal is connected to the source of the NMOS tube, the output terminal is connected to the gate of the NMOS tube, the drain of the NMOS tube is connected to the power supply, and the negative feedback loop formed allows the source VP of the NMOS tube to be clamped to the preset common mode level Vcm.

[0048] The ratio of the current source Is1 to the current source Is2 is the same as the W / L ratio of the fifth PMOS tube and the sixth PMOS tube, so the gate voltages of the fifth PMOS tube and the sixth PMOS tube are the same, and thus the source voltages of the fifth PMOS tube and the sixth PMOS tube are equal.

[0049] The switches S3, S4 and S5 are closed, the switches S1, S2 and S6 are opened, and the photodiode PD is stimulated to generate current Iam only after receiving ambient light. The first, second, fourth and fifth PMOS and the resistor R2, the switch S4 and the current source Is1 together form a loop. After the loop is stable, the current in the second PMOS tube is equal to the sum of the current source Is1 and the current stimulated by the photodiode PD; the W / L of the second and third PMOS tubes is the same, so the current of the third PMOS tube is a copy of the current of the second PMOS tube, that is, I=Iam+Is1 is satisfied; and after filtering by the resistor R1 and the filter capacitor C, the current in the third PMOS tube is a low-noise current. Switch S3, switch S4 and switch S5 are disconnected, and switch S1, switch S2 and switch S6 are closed, and the photodiode PD not only receives the same ambient light excitation to generate current Iam as at the first moment, but also receives the signal light source excitation to generate current Iin; the gate power supply of the third PMOS tube maintains the same voltage as at the first moment due to the existence of the filter capacitor, so the current in the third PMOS tube is still the current size Iam+Is1 at the first moment; since the current in the photodiode is Iam+Iin, only the current Iin generated by the difference between the signal light source and the photodiode PD enters the transimpedance amplifier formed by the feedback resistor Rf and the amplifier AMP3, and the current Iam generated by the ambient light excitation of the photodiode PD is completely offset by the adaptive ambient light compensation circuit; the current range of the ambient light compensation circuit to compensate for the ambient light is 0-5mA.

[0050] The circuit also includes a resistor R1, an amplifier AMP4, a resistor R3, a capacitor C2 and an eighth PMOS tube MP8; the non-phase input terminal of the amplifier AMP4 is connected to the drain or source of the eighth PMOS tube, the output terminal is short-circuited with the inverting input terminal and connected to one end of the resistor R3 and the capacitor C2; the other ends of the resistor R3 and the capacitor C2 are connected to the gate of the eighth PMOS tube.

[0051] Embodiment 2:

[0052] The adaptive ambient light compensation circuit provided by the present invention is as follows Figure 2The circuit includes: a first PMOS tube MP1, a second PMOS tube MP2, a third PMOS tube MP3, a fourth PMOS tube MP4, a fifth PMOS tube MP5, a sixth PMOS tube MP6, and a seventh PMOS tube MP7; an NMOS tube MN1; a first resistor R1, a second resistor R2, and a feedback resistor Rf; a first amplifier AMP1, a second amplifier AMP2, and a third amplifier AMP3; a filter capacitor C; a first current source Is1, a second current source Is2; a first switch S1, a second switch S2, a third switch S3, a fourth switch S4, a fifth switch S5, a sixth switch S6, and a photodiode PD.

[0053] The first PMOS tube to the seventh PMOS tube, the NMOS tube, the first resistor and the second resistor, the filter capacitor, the first amplifier and the second amplifier, the first current source and the second current source, and the first switch to the fifth switch together constitute the main body of the adaptive ambient light compensation circuit; the third amplifier, the photodiode, the feedback resistor and the sixth switch together constitute the main body of the front-end circuit of the photoelectric measurement circuit.

[0054] The first amplifier has a positive input terminal connected to a preset common mode level Vcm, an inverting input terminal connected to the source of the seventh PMOS tube, an output connected to the drain of the seventh PMOS tube, and the drain of the seventh PMOS tube is grounded, and the negative feedback loop formed plays the role of an adaptive current sink, and the source of the seventh PMOS tube is clamped to the preset common mode level Vcm. The second amplifier has a positive input terminal connected to a preset common mode level Vcm, an inverting input terminal connected to the source of the NMOS tube, an output connected to the drain of the NMOS tube, and the drain of the NMOS tube is connected to a power supply, and the negative feedback loop formed allows the source VP of the NMOS tube to be clamped to the preset common mode level Vcm.

[0055] The ratio of the first current source to the second current source is the same as the W / L ratio of the fifth PMOS tube and the sixth PMOS tube, so the gate-source voltages of the fifth PMOS tube and the sixth PMOS tube are the same, and thus the source voltages of the fifth PMOS tube and the sixth PMOS tube are equal.

[0056] The working principle of the adaptive ambient light compensation circuit is as follows:

[0057] At the first moment, the third, fourth and fifth switches are closed, the first, second and sixth switches are open, and the photodiode generates current Iam after receiving only ambient light. The first, second, fourth and fifth PMOS and the second resistor, the fourth switch and the first current source together form a loop. After the loop is stable, the current in the second PMOS tube is equal to the sum of the current excited by the first current source and the photodiode. The W / L of the second and third PMOS tubes is the same, so the current of the third PMOS tube is a copy of the current of the second PMOS tube, that is, I=Iam+Is1 is satisfied. And after filtering by the first resistor and the filter capacitor, the current in the third PMOS tube is a low-noise current.

[0058] At the second moment, the third, fourth and fifth switches are disconnected, the first, second and sixth switches are closed, and the photodiode receives not only the same ambient light excitation as the first moment to generate the current Iam, but also receives the signal light source excitation to generate the current Iin. The gate power supply of the third PMOS tube maintains the same voltage as the first moment due to the presence of the filter capacitor, so the current in the third PMOS tube is still the current size Iam+Is1 at the first moment. Since the current in the photodiode is Iam+Iin, only the current Iin generated by the signal light source exciting the photodiode difference enters the transimpedance amplifier composed of the feedback resistor and the third amplifier, and the current Iam generated by the ambient light exciting the photodiode is completely offset by the adaptive ambient light compensation circuit. The ambient light compensation circuit can compensate for the current generated by ambient light in the range of 0 to 5mA. Basically covers most application scenarios.

[0059] In order to save area, the first resistor R1 can also be used Figure 3 The implementation method includes a fourth amplifier AMP4, a third resistor R3, a second capacitor C2 and an eighth PMOS tube MP8. The non-inverting input terminal of the fourth amplifier is connected to the drain or source of the eighth PMOS tube, and the output terminal is short-circuited with the inverting input terminal and connected to one end of the third resistor and the second capacitor. The other ends of the third resistor and the second capacitor are connected to the gate of the eighth PMOS tube.

[0060] At the first moment, the eighth PMOS gradually changes from the linear region of strong inversion to the weak inversion, and the impedance gradually changes from low to high. There is no trade-off between the setup time and the filtering bandwidth, so the time of the first moment can be reduced without requiring too large an area.

[0061] The simulated ambient light compensation method is adopted, and the adaptive adjustment can compensate the ambient light range. The compensation range is large, the area is small, and it is conducive to integration.

[0062] TIA: Transimpedance Amplifier

[0063] PD: Photodiode

[0064] IDAC: Current Digital-to-Analog Converter

[0065] PMOS: P-type transistor

[0066] NMOS: N-type transistor

[0067] trade-off: compromise

[0068] Those skilled in the art may understand this embodiment as a more specific description of Embodiment 1.

[0069] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0070] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. An adaptive ambient light compensation circuit, It is characterized in that include: a first PMOS tube MP1, a second PMOS tube MP2, a third PMOS tube MP3, a fourth PMOS tube MP4, a fifth PMOS tube MP5, a sixth PMOS tube MP6 and a seventh PMOS tube MP7; The source of the first PMOS tube MP1 is connected to the source of the second PMOS tube MP2, the filter capacitor C, the source of the third PMOS tube MP3 and the drain of the NMOS tube MN1; the drain of the first PMOS tube MP1 is connected to the resistor R1 and the source of the fourth PMOS tube MP4; the gate of the first PMOS tube MP1 is connected to the resistor R2 and the resistor R1; The source of the second PMOS transistor MP2 is connected to the filter capacitor C, the source of the third PMOS transistor MP3 and the drain of the NMOS transistor MN1; the drain of the second PMOS transistor MP2 is connected to the switch S1 and the switch S4; the gate of the second PMOS transistor MP2 is connected to the other end of the resistor R2; The source of the third PMOS tube MP3 is connected to the filter capacitor C and the drain of the NMOS tube MN1; the drain of the third PMOS tube MP3 is connected to the switch S2 and the switch S3; the gate of the third PMOS tube MP3 is connected to the switch S5 and the other end of the filter capacitor C; The source of the fourth PMOS transistor MP4 is connected to the resistor R1 and the resistor R2; the drain of the fourth PMOS transistor MP4 is connected to the drain of the seventh PMOS transistor MP7, the current source Is1 and the current source Is2; the gate of the fourth PMOS transistor MP4 is connected to the drain of the fifth PMOS transistor MP5 and the other end of the current source Is1; The source of the fifth PMOS transistor MP5 is connected to the switch S2, the switch S4, the switch S6 and the cathode of the photodiode PD; the drain of the fifth PMOS transistor MP5 is connected to the other end of the current source Is1, and the gate of the fifth PMOS transistor MP5 is connected to the gate of the sixth PMOS transistor MP6 and the other end of the current source Is2; The source of the sixth PMOS transistor MP6 is connected to the source of the NMOS transistor MN1 and the inverting input terminal of the amplifier AMP2; the drain and gate of the sixth PMOS transistor MP6 are connected to the other end of the current source Is2; The source of the seventh PMOS transistor MP7 is connected to the inverting input terminal of the amplifier AMP1, the switch S1 and the switch S3; the drain of the seventh PMOS transistor MP7 is connected to the current source Is1 and the current source Is2; the gate of the seventh PMOS transistor MP7 is connected to the output terminal of the amplifier AMP1.

2. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The other end of the switch S6 is connected to a transimpedance amplifier, which includes at least an amplifier AMP3 and a feedback resistor Rf, and is used to convert the current signal output by the photodiode PD into a voltage signal; the other end of the switch S6 is connected to the inverting input terminal of the amplifier AMP3 and one end of the feedback resistor Rf; the other end of the feedback resistor Rf is connected to the output terminal of the amplifier AMP3; the non-inverting input terminal of the amplifier AMP3 is connected to the preset common mode level Vcm.

3. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The switches S3, S4 and S5 are closed, and the switches S1, S2 and S6 are opened. The photodiode PD only receives the ambient light signal, and the adaptive current regulation circuit completely compensates for the current generated by the ambient light signal.

4. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The switches S3, S4 and S5 are disconnected, and the switches S1, S2 and S6 are closed. The photodiode PD receives ambient light and signal light simultaneously. The adaptive current regulation circuit only compensates for the current generated by the ambient light signal, and the current generated by the signal light signal enters the transimpedance amplifier for conversion.

5. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The first PMOS tube MP1, the second PMOS tube MP2, the third PMOS tube MP3, the fourth PMOS tube MP4, the fifth PMOS tube MP5, the sixth PMOS tube MP6 and the seventh PMOS tube MP7, the NMOS tube, the resistors R1 and R2, the filter capacitor C, the amplifiers AMP1 and AMP2, the current sources Is1 and Is2, and the switches S1, S2, S3, S4 and S5 together constitute the main body of the adaptive ambient light compensation circuit; the amplifier AMP3, the photodiode PD, the feedback resistor Rf and the switch S6 together constitute the main body of the front-end circuit of the photoelectric measurement circuit.

6. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The non-inverting input terminal of the amplifier AMP1 is connected to the preset common mode level Vcm, the inverting input terminal is connected to the source of the seventh PMOS tube, the output terminal is connected to the gate of the seventh PMOS tube, the drain of the seventh PMOS tube is grounded, and the negative feedback loop formed plays the role of an adaptive current sink, and the source of the seventh PMOS tube is clamped to the preset common mode level Vcm; the non-inverting input terminal of the amplifier AMP2 is connected to the preset common mode level Vcm, the inverting input terminal is connected to the source of the NMOS tube, the output terminal is connected to the gate of the NMOS tube, and the drain of the NMOS tube is connected to the power supply, and the negative feedback loop formed allows the source VP of the NMOS tube to be clamped to the preset common mode level Vcm.

7. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The ratio of the current source Is1 to the current source Is2 is the same as the W / L ratio of the fifth PMOS tube and the sixth PMOS tube, so the gate voltages of the fifth PMOS tube and the sixth PMOS tube are the same, and thus the source voltages of the fifth PMOS tube and the sixth PMOS tube are equal.

8. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The switches S3, S4 and S5 are closed, the switches S1, S2 and S6 are opened, and the photodiode PD is stimulated to generate current Iam only after receiving ambient light. The first, second, fourth and fifth PMOS and the resistor R2, switch S4 and current source Is1 together form a loop. After the loop is stable, the current in the second PMOS tube is equal to the sum of the current source Is1 and the current stimulated by the photodiode PD; the W / L of the second and third PMOS tubes is the same, so the current of the third PMOS tube is a copy of the current of the second PMOS tube, that is, I=Iam+Is1 is satisfied; and after filtering by the resistor R1 and the filter capacitor C, the current in the third PMOS tube is a low-noise current.

9. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that The switches S3, S4 and S5 are disconnected, and the switches S1, S2 and S6 are closed, and the photodiode PD not only receives the same ambient light excitation as the first moment to generate the current Iam, but also receives the signal light source excitation to generate the current Iin; the gate power supply of the third PMOS tube maintains the same voltage as the first moment due to the existence of the filter capacitor, so the current in the third PMOS tube is still the current size Iam+Is1 at the first moment; since the current in the photodiode is Iam+Iin, only the current Iin generated by the difference between the signal light source and the photodiode PD enters the transimpedance amplifier formed by the feedback resistor Rf and the amplifier AMP3, and the current Iam generated by the ambient light excitation of the photodiode PD is completely offset by the adaptive ambient light compensation circuit; the current range of the ambient light compensation circuit to compensate for the ambient light is 0-5mA.

10. The adaptive ambient light compensation circuit according to claim 1, It is characterized in that It also includes a resistor R1, an amplifier AMP4, a resistor R3, a capacitor C2 and an eighth PMOS tube MP8; the non-phase input terminal of the amplifier AMP4 is connected to the drain or source of the eighth PMOS tube, the output terminal is short-circuited with the inverting input terminal and is simultaneously connected to the resistor R3 and one end of the capacitor C2; the other ends of the resistor R3 and the capacitor C2 are connected to the gate of the eighth PMOS tube.

Citation Information

Patent Citations

  • Device and method for compensating dark current of image sensor

    CN103118236A

  • DC imbalance cancellation circuit and DC imbalance cancellation method

    CN108390727A

  • Trans-impedance amplification unit circuit feedback circuit, photoelectric detection circuit and laser radar system

    CN110492856A

  • Ambient light elimination circuit and elimination method

    CN117990209A

  • Induction circuit based on NMOS radiation total dose and photoelectric encoder radiation compensation circuit

    CN118519182A