Ambient light sensor

The proposed circuit design for ambient light sensors addresses inaccuracies by compensating for parasitic impedance and operational amplifier offsets, enhancing measurement accuracy through a presetting phase and feedback loop, resulting in improved ambient light sensing.

FR3125671B1Active Publication Date: 2024-08-23STMICROELECTRONICS (ALPS) SAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2021008026
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-23
Publication Date
2024-08-23
Estimated Expiration
2041-07-23

AI Technical Summary

Technical Problem

Existing ambient light sensors and accompanying circuits face issues with parasitic impedance and operational amplifier offset voltages, leading to inaccuracies in measuring ambient light levels.

Method used

A circuit design that includes an integrator assembly with an operational amplifier, capacitors, and compensation circuits to correct for parasitic impedance and offset voltages, utilizing a presetting phase to adjust capacitor charges and a feedback loop to maintain a virtual zero offset.

Benefits of technology

The solution effectively compensates for parasitic effects, improving the accuracy and precision of ambient light measurements by minimizing error voltages due to parasitic impedance and operational amplifier offsets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000019_0000
    Figure 00000019_0000
  • Figure 00000019_0001
    Figure 00000019_0001
  • Figure 00000020_0000
    Figure 00000020_0000
Patent Text Reader

Abstract

Ambient Light Sensor This description relates to a light sensor (PD) readout circuit, comprising: - an integrator circuit including an operational amplifier (OA2), a first capacitor (CINT2), and at least one circuit (206, 207) adapted to compensate for an offset voltage of the operational amplifier (OA2), a first electrode of said first capacitor (CINT2) being connected to an inverting input of said operational amplifier (OA2), and a second electrode of said first capacitor (CINT2) being connected to a non-inverting output of said operational amplifier (OA2); and - a preset circuit (204, 205) adapted to receive a first voltage equal to a setting voltage (VPRESET) multiplied by a coefficient (K), and to charge said first capacitor (CINT2). Figure for the abbreviation: Fig. 3
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: Ambient light sensor Technical field This description applies generally to electronic devices and systems, and more specifically to measuring devices. This description relates more specifically to an ambient light measuring device. Such a device typically consists of one or more ambient light sensors and accompanying circuits, such as readout circuits or calibration circuits. More specifically, this description concerns a readout circuit for an ambient light sensor. Previous technique An ambient light sensor, or ambient brightness sensor, is an electronic device or component used to measure the brightness or variations in brightness of an ambient light source at a given wavelength. An ambient light sensor can be implemented, for example, by a phototransistor, a photodiode, and / or a photonic integrated circuit. An ambient light sensor is usually part of a more complete measuring device, in which it may be accompanied by one or more circuits, such as a reading circuit, a calibration circuit, etc. An ambient light measurement device can be used in a screen-based electronic system to adjust the screen brightness according to the ambient lighting, or to adjust the screen colorimetry. It would be desirable to be able to improve, at least in part, the known ambient light sensors, and, more particularly, the known circuits accompanying the ambient light sensors. Summary of the invention There is a need for more efficient ambient light measurement devices. There is a need for more efficient circuits to accompany ambient light sensors in a measurement device. There is a need for more efficient ambient light sensor reading circuits. There is a need for more accurate ambient light sensor reading circuits. One embodiment overcomes all or part of the drawbacks of the reading circuits known from ambient light sensors. One embodiment provides a reading circuit for an ambient light sensor that compensates for the parasitic impedance of the ambient light sensor. One embodiment provides a light sensor reading circuit, comprising: - an integrator circuit comprising an operational amplifier, a first capacitor, and at least one circuit adapted to compensate for an offset voltage of the operational amplifier, a first electrode of said first capacitor being connected to an inverting input of said operational amplifier, and a second electrode of said first capacitor being connected to a non-inverting output of said operational amplifier; and - a preset circuit adapted to receive a first voltage equal to a setting voltage multiplied by a coefficient, and to charge said first capacitor. According to one embodiment, said at least one circuit adapted to compensate for an offset voltage of the operational amplifier, comprises an input circuit connected to the inverting input and to a non-inverting input of the operational amplifier and an output circuit connected to the inverting and non-inverting outputs of the operational amplifier. According to one embodiment, said at least one circuit adapted to compensate for an operational amplifier offset voltage is adapted to provide a square wave signal whose amplitude is equal to the amplitude of the operational amplifier offset voltage. According to one embodiment, the preset circuit comprises: - a second capacitor whose capacitance is equal to the capacitance of the first capacitor divided by said coefficient; - a third capacitor whose capacitance is less than the capacitance of the first capacitor; and - a fourth capacitor whose capacitance is equal to the capacitance of the third capacitor divided by said coefficient. According to one embodiment, the second and fourth capacitors are connected in parallel. According to one embodiment, a third electrode of the second capacitor is connected to a node receiving the first voltage via a first switch, and is connected to a node receiving a reference potential via a second switch, and a fourth electrode of the second capacitor is connected to the inverting input of the operational amplifier by a third switch, and is connected to the node receiving the reference potential by a fourth switch. According to one embodiment, said third capacitor is short-circuited by a fifth switch, and is connected to the inverting input of the operational amplifier by a sixth switch. According to one embodiment, said coefficient is greater than zero. According to one embodiment, the operational amplifier operates in a saturation mode. According to one embodiment, the preset circuit comprises a first resistor, one terminal of which is connected to the node receiving said first voltage, and a second terminal of which is connected to an input of a flip-flop that oscillates between the node receiving the reference potential and the non-inverting input of the operational amplifier, and a second resistor, a third terminal of which is connected to the non-inverting input of the operational amplifier and a fourth terminal is connected to the non-inverting output of the operational amplifier via a seventh switch. According to one embodiment, the coefficient is equal to -1. Another embodiment provides for an ambient light measurement device comprising an ambient light sensor and a reading circuit described previously. According to one embodiment, the sensor is a photodiode. Another embodiment provides for a method of using the device described above, comprising the following successive phases: a pre-setting phase of the first capacitor, and an integration phase. According to one embodiment, the process further includes a reset phase in which the first capacitor is discharged. Brief description of the drawings These features and advantages, as well as others, will be described in detail in the following description of particular embodiments, given by way of non-limiting example, in relation to the attached figures, among which: Figure 1 represents two equivalent electrical diagrams of an ambient light measurement device: [Fig.2] represents a graph illustrating the operation of a photodiode; [Fig.3] represents, schematically and partially in block form, one embodiment of an ambient light measurement device; [Fig.4] represents, schematically and partially in block form, a more detailed embodiment of the ambient light measurement device of [Fig.3]; [Fig.5] represents chronograms illustrating an operation of the device of [Fig.3]; Figure 6 shows timing diagrams illustrating several operations of the device. of the [Fig.3]; Figure 7 shows in more detail a part of the device shown in Figure 3; and [Fig.8] represents, schematically and partially in block form, another more detailed embodiment of the ambient light measurement device of [Fig.3]. Description of the implementation methods The same elements have been designated by the same reference numerals in the different figures. In particular, structural and / or functional elements common to the different embodiments may have the same reference numerals and may have identical structural, dimensional and material properties. For the sake of clarity, only the steps and elements useful for understanding the implementation methods described have been represented and are detailed. Unless otherwise specified, when referring to two elements connected together, this means directly connected without intermediate elements other than conductors, and when referring to two elements connected (in English "coupled") together, this means that these two elements can be connected or be connected by means of one or more other elements. In the description that follows, when referring to absolute positional qualifiers, such as the terms “front”, “back”, “top”, “bottom”, “left”, “right”, etc., or relative positional qualifiers, such as the terms “above”, “below”, “superior”, “inferior”, etc., or to orientational qualifiers, such as the terms “horizontal”, “vertical”, etc., it refers, unless otherwise specified, to the orientation of the figures. Unless otherwise specified, the expressions 'approximately', 'roughly', 'significantly', and 'on the order of' mean within 10%, preferably within 5%. Figure 1 represents two equivalent electrical diagrams (A) and (B) of an ambient light measuring device 100. More specifically, the electrical diagram (A) represents the architecture of the device 100, and the electrical diagram (B) represents an equivalent architecture of the device 100 in which some of the components of the device 100 are replaced by one of their equivalent circuit models. Device 100 consists of an ambient light sensor PD, and a reading circuit 102. In one embodiment, the ambient light sensor is a photodiode PD. The anode of the photodiode PD is connected, preferably connected, to a GND node receiving a reference potential, for example, ground. The cathode of the photodiode PD is connected to an input node IN of the readout circuit 102 via a switch T1 controlled by a PD_EN signal. The 102 reading circuit includes an integrator circuit and a preset circuit. The integrator circuit includes, between the input node IN and an output node OUT of the reading circuit 102, an operational amplifier OA1 and a variable capacitance capacitor Cyvr. Operational amplifier OA1 includes an inverting input (-) connected, preferably connected, to the IN input of the readout circuit, and a non-inverting input (+) connected, preferably connected, to the GND node. Operational amplifier OA1 includes a non-inverting output connected, preferably connected, to the OUT output node, and provides a TIA-OUT voltage at this output node, referenced to the reference voltage of the GND node. Operational amplifier OA1 is further supplied with a DC supply voltage received at a VDD node. The capacitor Ciyr comprises a first electrode connected, preferably connected, to the input node IN, and a second electrode connected, preferably connected, to the output node OUT. The capacitor Civr may have a very low capacitance, for example, between 20 fF and 70 fF, for example, on the order of 50 fF. According to another embodiment, the capacitance of the capacitor Cinr may be on the order of picofarads, for example, between 1 and 10 pF. The preset circuit for the 102 playback circuit includes two switches, T2 and T3, controlled by the same PRESET_EN signal. Switch T2 has one terminal connected, preferably connected, to the OUT node, and its other terminal connected, preferably connected, to a node receiving a setting voltage Vpreser, referenced to the reference potential of the GND node. Switch T3 has one terminal connected, preferably connected, to the IN node, and its other terminal connected, preferably connected, to the GND node. Device 100 operates by alternating between two phases: a preset phase for the capacitance Cinr, and an integration phase for the voltage supplied by the photodiode PD. During the preset phase, switch T2 is conducting and the setting voltage Vpreser charges the capacitor Crvr. During the integration phase, switch T1 is not conducting, and the photodiode is disconnected from the readout circuit. At the end of the preset phase, the output voltage OUT is equal to the setting voltage Vrreser, and the value of the output voltage OUT is stored in the capacitance C INT+. During the integration phase, switch T1 is conducting, and photodiode PD provides a voltage and current dependent on the brightness or variations in brightness of an ambient light source to the reading circuit 102. The preset circuit is disconnected by opening switches T2 and T3. One drawback of device 100 is that the ambient light sensor, i.e., the photodiode PD, can exhibit parasitic impedance, described in more detail in relation to [Fig. 2], and the operational amplifier OA1 can exhibit a voltage input offset, both of which can impact the TIA_OUT output voltage. The 100' architecture takes into account and models these two parasitic phenomena, In the 100' architecture, the photodiode PD (denoted by dashed lines) is represented by its nonlinear and temperature-dependent model comprising a nonlinear resistor Rp arranged in parallel with a capacitor Cpp. More particularly, one terminal of the resistor Rap and one electrode of the capacitor Cpp are connected, preferably connected, to the input node IN, and the other terminal of the resistor Rpp and the other electrode of the capacitor Cpp are connected, preferably connected, to the GND node. The resistivity of the resistance Rpp depends on the variation of the current-voltage characteristic, or IV characteristic, of the photodiode PD, part of which is illustrated in [Fig. 2]. Furthermore, the impact of the resistance Rpp is relatively small at low temperatures, but can be significant at high temperatures. More specifically, Figure 2 represents an Spp curve illustrating the current-voltage characteristic of the PD photodiode, where the voltage is between the operating voltage and its opposite, denoted, respectively, voltage -Vos and Vos, and described in more detail below. The voltage Vos is a very low voltage, close to zero, for example, on the order of 1 mV. In theory, the photodiode characteristic has a shape similar to a curve given by the Shockley equation, but in practice, and within the considered range, the characteristic has a substantially linear progression. Thus, in the vicinity of zero voltage and the operating voltage, the output current of the photodiode depends linearly on the input voltage and the resistivity of the resistance Rpp. Furthermore, in the 100" architecture of [Fig. 1], the operational amplifier OA1 (denoted by dashed lines) is represented by an ideal operational amplifier OA1' accompanied by a capacitor Cox and a voltage source So. The voltage source Sos provides the voltage Vos equal to the input offset voltage of the operational amplifier OA1, the voltage Vos being the operating voltage described above. The voltage source Sos is arranged in series between the input node IN and the inverting input (-) of the operational amplifier OA1'. The capacitor Co4 has one electrode connected, preferably connected, to the inverting input of the operational amplifier OA1', and a second electrode connected, preferably connected, to the GND node. The ideal operational amplifier OA1' has its non-inverting input (+) connected, preferably connected, to the GND node, and its output connected, preferably connected, to the OUT node. When the pre-charge phase is complete, the output voltage is not actually perfectly equal to the Vpreser voltage, but is given by the following formula: [Math.1] CpptC, TIA_OUT =VrpreseT- V0 22tE ae Cinxr The embodiments presented below are intended to compensate as much as possible for the error voltage introduced by these parasitic phenomena. Fig. 3 is an electrical diagram of an ambient light measuring device 200 according to one embodiment. Like device 100 described in relation to [Fig.1], device 200 consists of an ambient light sensor PD, and a readout circuit 202 providing a voltage TIA_OUT on its output node OUT representative of a variation in ambient light measured by sensor PD. As in [Fig. 1], the ambient light sensor is a PD photodiode. The anode of the PD photodiode is preferably connected to a GND node receiving a reference potential, for example, ground. The cathode of the PD photodiode is connected to an IN input node of the readout circuit 202. The PD photodiode can also be represented by its nonlinear model, which includes the temperature-dependent, nonlinear resistor Rpn arranged in parallel with the capacitor Cpp. The reading circuit 202 includes an integrator circuit 203, and a preset circuit consisting of two parts 204 and 205. The integrator circuit 203 includes an operational amplifier OA2, a variable capacitance capacitor Civrz, and two circuits 206 (INMUX) and 207 (OUTMUX) for compensating the offset voltage of the operational amplifier AO2. The capacitor Cixrz has one electrode connected, preferably connected, to the input node IN, and one electrode connected, preferably connected, to the output node OUT. Circuits 206 and 207 are arranged on either side of operational amplifier OA2. More specifically, each circuit 206, 207 includes two inputs and two outputs. Circuit 206 is the input compensation circuit for operational amplifier OA2. Therefore, circuit 206 has: - a first input connected, preferably connected, to the IN input node of the reading circuit 202; - a second input connected, preferably connected, to the GND node; - a first output connected, preferably connected, to a non-inverting input (+) of the operational amplifier OA2; and - a second output connected, preferably connected, to an inverting input (-) of the operational amplifier OA2. Similarly, circuit 207 is the output compensation circuit of the operational amplifier OA2. Thus, circuit 207 has: - a first input connected, preferably connected, to an inverting output of the operational amplifier OA2; - a second input connected, preferably connected, to a non-inverting output of the operational amplifier OA2; - a first output connected, preferably wired, to the OUT output node of the reading circuit 202; and - a second output connected, preferably connected, to the GND node. Circuits 206 and 207 are designed to alternate the connections between their respective inputs and outputs based on a control signal whose sign varies periodically. The value of the control signal changes between two consecutive integration phases but remains constant during each integration phase. More specifically, when the control signal is in a first state, for example, a positive state, the non-inverting input and output are connected to the GND node, and the inverting input is connected to the IN node, while the inverting output is connected to the OUT node. Conversely, when the control signal is in a second state with the opposite sign to the signal in the first state, for example, a negative state, the non-inverting input and output are connected to the GND node, while the inverting input is connected to the IN node, and the non-inverting output is connected to the OUT node. Circuits 206 and 207 are designed to provide a square wave signal varying between a voltage Vos, corresponding to the offset voltage of operational amplifier OA2, and its opposite, a voltage -Vos, at a frequency defined by the duration of a complete read operation of circuit 202. These circuits 206 and 207 thus compensate for the offset voltage of operational amplifier OA2. Circuits 206 and 207 each include at least one multiplexer. The preset circuit is designed to implement a pre-charge phase for the read operation. As previously mentioned, the preset circuit consists of two parts, 204 and 205. Part 204 is designed to receive the adjustment voltage Vpreser multiplied by a coefficient K. Thus, part 204 comprises two inputs and one output: one input receiving this voltage and another input connected, preferably, to the GND node. The output of part 204 is connected, preferably, to the IN input node of the read circuit. Part 205 comprises one input connected, preferably, to the IN input node, and one output connected, preferably, to the OUT output node. The value of the voltage Vpreser is designed to precisely adjust the charge of capacitor Civr2, thereby allowing the TIA_OUT output voltage to be adjusted during the integration phase. Parts 204 and 205 can be implemented with capacitors and switches or with resistors and switches. Figures 4 to 7 show a Figure 8 shows an embodiment in which parts 204 and 205 are implemented with capacitors and switches, while Figure 8 shows an embodiment in which parts 204 and 205 are implemented with resistors and switches. These two embodiments have similar operating modes but include specific features explained in relation to their respective figures. Fig. 4 is an electrical diagram of a 300 device of the type of device 200 described in relation to Fig. 3, in which the preset circuit consists of capacitors and switches. Devices 200 and 300 have common elements which are not described again here. In device 300, the preset circuit includes a part 301 similar to part 204 described in relation to [Fig.3], and a part 302 similar to part 205 described in relation to [Fig.3]. Part 301 includes a power supply node receiving the setting voltage V Preser multiplied by the coefficient K, denoted K.Vpreser, always referenced to the reference voltage of the GND node. In the embodiment described here, the coefficient K is greater than zero. Part 301 comprises two capacitors C'ivrz and C'aux arranged in parallel with each other. More specifically, capacitor C'ivr is a variable capacitance capacitor, one electrode of which is connected, preferably connected, to a node A, and the other electrode of which is connected, preferably connected, to a node B. Capacitor C'aux comprises one electrode connected, preferably connected, to node A, and another electrode connected, preferably connected, to node B. Furthermore, the capacitance of capacitor C'aux, respectively C'inr2, is equal to the capacitance of capacitor Caux, respectively Cinrz, divided by the coefficient K. Part 301 further includes four switches, SW1, SW2, SW3, and SW4. Switches SW1 through SW4 are, for example, transistors. Switch SW1 connects, preferably connects, node A and the node receiving the K.Vpreser control voltage. Switch SW2 connects, preferably connects, node A and the GND node. Switch SW3 connects, preferably connects, node B and the IN input node. Switch SW4 connects, preferably connects, node B and the GND node. Part 302 includes a capacitor Caux and two switches, SW5 and SW6. One electrode of capacitor Caux is connected, preferably connected, to a node C, and a second electrode of capacitor Caux is connected, preferably connected, to the output node OUT. Switch SW6 is arranged in parallel with capacitor Caux. Thus, one terminal of switch SWS is connected, preferably connected, to node C, and a second terminal of switch SWS is connected, preferably connected, to the output node OUT. Switch SW6 connects, preference connects, the IN and C nodes. According to one embodiment, capacitor C'nrz has a capacitance equal to the capacitance of capacitor Cxr2 divided by the coefficient K. Similarly, capacitor C'aux has a capacitance equal to the capacitance of capacitor Caux divided by the coefficient K. Thus, the amount of energy stored in capacitors C'nrz and C'aux with voltage K. Voreser is equal to the amount of energy that can be stored in capacitors Cxr2 and Caux after the preset phase. In other words, capacitors Cxr2 and Caux are preset to voltage Vpreser after the end of the preset phase, which corresponds to the end of an energy transfer phase from capacitors C'nrz and C'aux to capacitors Cinrz and Caux. Capacitors C'aux and Caux are important in the case of a capacitor CinT with a very small capacitance, where the charge transfer from capacitor C'inr2 to capacitor Cv can be corrupted by parasitic charge injection through the switches. In this case, the value of capacitor Caux is relatively large compared to that of capacitor Cinr; for example, capacitor Caux has a capacitance on the order of 1 pF. The SW1 to SW6 switches are controlled by different signals which define the operating phases of the device 300. Timing diagrams of these signals are described in relation to [Fig.5]. Furthermore, in device 300, operational amplifier OA2 operates in saturation mode. This means that the output voltage of operational amplifier AO2 is forced to a value very close to the reference voltage GND before the charge transfer between the capacitors. During this time, switches SW5 and SW6 are closed, and therefore conducting, allowing capacitors Crvr2 and Caux to discharge. This allows the initial conditions to be precisely established before the start of the pre-tuning phase. To achieve this operating mode, a small saturation current Isar is supplied to the operational amplifier OA2 on one of its internal terminals SAT. This is described in more detail in relation to [Fig.7]. Figure 5 includes five timing diagrams illustrating the evolution of the control signals for switches SW1 to SW6, described in relation to Figure 4, and of the output voltage TIA_OUT. Figure 6 includes three timing diagrams illustrating the evolution of the output voltage TTA_OUT during several operations illustrated in Figure 5. More specifically, [Fig.5] is composed of: - of a SOUT curve illustrating the time evolution of the output voltage TIA_OUT supplied by the device 300; - of an S145 curve (SW, 4, 5) illustrating the temporal evolution of a signal of common control for switches SW1, SW4 and SW5; - of a curve S3 (SW3) illustrating the time evolution of a control signal of the SW3 switch; - of a curve S2 (SW2) illustrating the time evolution of a control signal for switch SW2; and - of a curve S6 (SW6) illustrating the time evolution of a control signal of the SW6 switch. More specifically, [Fig.5] is composed of: - a SOUT2 curve illustrating the time evolution of the output voltage TIA_OUT supplied by device 300; - an SVOS2 curve illustrating the signal provided by circuits 206 and 207; and - of an SD curve illustrating the control signal of circuits 206 and 207. The curves in [Fig. 6] illustrate in particular the operation of device 300 during its four operating phases. Indeed, the operation of device 300 includes: - a reset phase (RESET) during which the Crvrz capacitor is discharged; - a pre-charge phase (PRESET) during which the Cmvrz capacitor is being charged; - a charge transfer phase (CHARGE TRANSFER) during which the charges from the photodiode PD are transferred to the readout circuit; and - an integration phase (INTEGRATION) during which the capacitor Cinr2 is charged. More specifically, during the reset phase, capacitor Cinr2 is discharged, and the output signal TIA_OUT is at a low reference value, also called the low saturation level. Circuits 206 and 207 are configured with a first polarity by the control signal described by curve SD in [Fig. 6]. The polarity of the control signal remains the same until the end of the integration phase. Switches SW1, SW4, and SW5 are conducting, and their control signal, the evolution of which is illustrated by curve S145, is at a high reference level. Switch SW2 is not conducting, and its control signal, the evolution of which is illustrated by curve S2, is at a low level. Switch SW3 is not conducting, and its control signal, the evolution of which is illustrated by curve S3, is at a low level. Switch SW6 is conducting, and its control signal, the evolution of which is illustrated by curve S6, is at a high level. In this configuration, capacitors C'xT2 and C'aux receive the K.Vereset setting voltage across their first electrodes, via node A, and the voltage of reference of the GND node to their second electrodes, via node B. Thus, capacitors C'inrz and C'aux charge. More specifically, capacitors C'ivr2 and C'aux store an energy equal to the energy that capacitors C'inr and C'aux- can store. In addition, switches SW5 and SW6 short-circuit capacitors Civr2 and C aux, and the input terminal of circuit 206 is at the saturation voltage of operational amplifier OA2, i.e., at a voltage close to the reference voltage, i.e., close to ground. During the pre-charge phase, capacitors Crvrz and Caux are charged using the energy stored in capacitors C'inr and C'aux. Thanks to the saturation voltage injected by circuit 206 at the input of operational amplifier OA2, the output voltage TIA_OUT remains low. To achieve this, switches SW1, SW4, and SWS are made non-conductive. Thus, capacitors C'ivrz and C'aux receive the reference voltage from the GND node on their first electrodes, via node A, and have their second electrodes connected, preferably directly, to the input node IN, via node B. Capacitor Caux is no longer short-circuited by switch SWS. The energy stored by capacitors C'inr and C'aux is then transferred to capacitors Cyr and Caux. During the charge transfer phase, the current supplied by the ambient light sensor, i.e., the photodiode PD, is transferred to the operational amplifier OA2. The current supplied by the photodiode PD can also be called photocurrent. However, due to the large value of the capacitor Caux, this has a lesser impact on the voltage Vpreser. For this reason, switches SW2, SW3 and SW6 are conductive. During the integration phase, the integrator circuit can integrate the current supplied by the photodiode PD. To achieve this, switches SW3 and SW6 are made non-conductive. The addition of capacitor Caux reduces a voltage spike that can occur at the beginning of the integration phase due to the closing of switch SW3 and the value of capacitance Civrz. In other words, capacitor Caux protects capacitors Cixr2 and C'ixr, which have a lower capacitance value than capacitor Caux. Capacitor Caux has, for example, a capacitance between 1 and 10 pF. Capacitor Caux therefore absorbs excess charge (charge injection) that capacitors Cinrz and C'inT2 cannot absorb. One advantage of the embodiment described in relation to Figures 4 and 5 is that, after the reset phase, the charges of capacitors C'inrz and C'aux are transferred to capacitors Cinrz and Caux. This transfer is controlled by the feedback loop of operational amplifier OA2, which maintains a virtual zero added to The offset voltage Vos is applied to the input of circuit 206. However, an offset voltage applied to the photodiode PD creates an error current i.ror at the first polarity through the resistance Rpp of the photodiode PD, which is integrated with the current supplied by the photodiode PD. Finally, at the end of the integration, the voltage TIA_OUT comprises a useful component dependent on the current supplied by the photodiode PD and an error component dependent on the error current i.ror at the first polarity. In the next integration, as illustrated in [Fig. 6], which depicts the sequence of three operations described in [Fig. 5], the polarity of the control signal, referenced D, of circuits 206 and 207 is reversed, from a value D+ to a value D-. Thus, after a second reset phase, the input voltage of circuits 206 and 207 is equal to the opposite of the voltage Vos, referenced -Vos2. Therefore, after the preset phase, the integrator integrates the current supplied by the photodiode PD with an error current corresponding to the opposite of the error current i, referenced -i. As a result, at the end of the integration, the voltage TIA_OUT comprises a useful component dependent on the current delivered by the photodiode PD, and an error component dependent on the inverse of the error current i with respect to the previous integration cycle. Thus, the average value of two consecutive integrations removes the error voltage due to the resistance of the photodiode PD. As mentioned previously, the error component is particularly important as a function of temperature. Furthermore, accurate suppression of the error current ieror requires good linearity of the photodiode PD linearity, which depends on the IV characteristic of the voltages Vos and -Vos. In other words, the error current ieror should be as close as possible to the error current -ieror. Figure 7 is a more detailed electrical diagram of a 350 operational amplifier of the OA2 type. Figure 7 illustrates the operation of a 350 amplifier that can operate in saturation. As operational amplifier OA2 described in relation to [Fig.4], operational amplifier 350 has its inverting input terminals IN- and non-inverting input terminals IN+ connected, preferably connected, to output terminals of a circuit 206' of the type of offset voltage compensation circuit 206. The operational amplifier 350 comprises two PMOS transistors, T1 and T2, which are metal-oxide-semiconductor field-effect transistors (MOSFETs), with a P-channel. The gate of transistor T1 is connected, preferably connected, to the non-inverting input IN+ of the operational amplifier 350. One conduction terminal of transistor T1 is connected, preferably connected, to node N1, and a second conduction terminal of T1 is connected, preferably connected, to node N2. The gate of the transistor T2 is connected, preferably connected, to the inverting input IN- of operational amplifier 350. A first conduction terminal of transistor T2 is connected, preferably connected, to a node NI, and a second conduction terminal of T2 is connected, preferably connected, to a node N3. The operational amplifier 350 further includes a current source SI, a first terminal of which is connected, preferably connected, to the node NI, and a second terminal of which is connected, preferably connected, to the node VDD receiving a supply voltage from the operational amplifier 350. The operational amplifier 350 further comprises two PMOS transistors, T3 and T4. The gate of transistor T3 is connected, preferably connected, to a node N4. One conduction terminal of transistor T3 is connected, preferably connected, to the VDD node, and a second conduction terminal of T3 is connected, preferably connected, to a node NS. The gate of transistor T4 is connected, preferably connected, to the N4 node. One conduction terminal of transistor T4 is connected, preferably connected, to the VDD node, and a second conduction terminal of T4 is connected, preferably connected, to a node N6. The operational amplifier 350 also includes a flip-flop B1, one input of which is preferably connected to node N4. The output of flip-flop B1 oscillates between nodes N5 and N6. The flip-flop allows the phase of the operational amplifier 350 to be controlled by the control signal described in relation to Figures 4 and 5. Operational amplifier 350 further includes a flip-flop B2, one input of which is preferably connected to a node N7. The output of flip-flop B2 oscillates between nodes NS and N6. Flip-flops B1 and B2 form the output of operational amplifier 350, which is connected to circuit 207. The operational amplifier 350 further comprises two NMOS cascode transistors, T5 and T6. The gate of transistor T5 is connected, preferably connected, to node N8. One conduction terminal of transistor T5 is connected, preferably connected, to node NS, and a second conduction terminal of T5 is connected, preferably connected, to node N2. The gate of transistor T6 is connected, preferably connected, to node N8. One conduction terminal of transistor T6 is connected, preferably connected, to node N6, and a second conduction terminal of T6 is connected, preferably connected, to node N3. Node N8 receives, for example, a bias voltage. The operational amplifier 350 further includes a PMOS output transistor T7. The gate of transistor T7 is connected, preferably connected, to node N7. A first conduction terminal of transistor T7 is connected, preferably connected, to node VDD, and a second conduction terminal T5 is connected, preferably connected, to a non-inverting output OUT of the operational amplifier. 350. The operational amplifier 350 further comprises two constant current sources S2 and S3. One terminal of source S2 is connected, preferably connected, to node N2, and a second terminal is connected, preferably connected, to a node receiving a reference voltage from the operational amplifier 350. One terminal of source S3 is connected, preferably connected, to node N3, and a second terminal is connected, preferably connected, to a node receiving the reference voltage from the operational amplifier 350. The operational amplifier 350 further includes a current source S4 which forces the output voltage of the operational amplifier to a negative saturation during the reset phase. One terminal of the source S4 is connected, preferably connected, to the OUT output, and a second terminal of the source S4 is connected, preferably connected, to a node receiving the reference voltage of the operational amplifier 350. To be put into saturation mode, the operational amplifier 350 further includes a flip-flop B3 and a current source SS. One input of the flip-flop is connected, preferably connected, to a first terminal of the current source SS. The output of the flip-flop B2 oscillates between nodes N2 and N3. The second terminal of the current source SS is connected, preferably connected, to the node receiving the reference voltage of the operational amplifier 350. To be put into saturation mode, the current source S5 provides the saturation current Isar which unbalances the operational amplifier and sets its output to saturation during the re-initialization phase of the device 200 described in relation to [Fig. 3]. [Fig.8] is an electrical diagram of a 400 device of the type of device 200 described in relation to [Fig.3], in which the preset circuit consists of resistors and switches. Like device 200 described in relation to [Fig.3], device 400 includes a preset circuit consisting of two parts 405 and 406. Part 405 is similar to part 205 described in relation to [Fig.3]. Thus, part 405 is arranged between the input node IN and the output node OUT. Part 405 includes a resistor Rpreser_ra and a switch SW, arranged in series. One terminal of resistor Rpreser_rn is connected, preferably connected, to the input node IN, and a second terminal of resistor Rpreser_ra is connected, preferably connected, to the first terminal of switch SWz. The second terminal of switch SW£ is connected, preferably connected, to the output node OUT. Part 406 is similar to part 206 described in relation to [Fig. 3]. Thus, part 406 receives the control voltage Vpreser multiplied by the coefficient K, which in this embodiment is equal to -1; the voltage is then denoted -Vpreser, referenced relative to the reference voltage. Thus, in this embodiment, the adjustment voltage K.Vpreser, i.e., the voltage -Vpreser, is a negative voltage. Furthermore, part 406 is connected, preferably connected, to the input node IN. Part 406 includes a resistor Rpreser_1x and a flip-flop Bp. One terminal of resistor Rpreser_1x is connected, preferably connected, to the voltage-receiving node - Vereser, and a second terminal of resistor Rpreser_1x is connected, preferably connected, to the input terminal of flip-flop Bp. The output of flip-flop Bp oscillates between the GND and IN nodes. The operation of device 400 comprises the following two phases. A pre-charge phase during which capacitor C,n72 is charged, and an integration phase where capacitor Cyvrz is used. During the pre-charge phase, switch SW is conducting, and the circuit formed with operational amplifier OA2 is an inverting amplifier, not an integrator. Flip-flop Bp connects resistor Rpreserr_x to input IN, and capacitor Civr2 charges. During the integration phase, switch SWp is non-conducting, and the circuit formed with operational amplifier OA2 is indeed an integrator circuit. Flip-flop Bp connects resistor Rpresert 1x to GND. The embodiment described in relation to [Fig. 4] has the advantage of operating without the addition of an external circuit, unlike the embodiment described in relation to [Fig. 8] which may require a negative voltage generator of the Charge Pump type to supply the voltage -Vpreser- The embodiment of [Fig.8] has the advantage of comprising fewer components than the embodiment of [Fig.4] and of not requiring a reset phase. Various embodiments and variations have been described. A person skilled in the art will understand that some features of these various embodiments and variations could be combined, and other variations will become apparent to a person skilled in the art. Finally, the practical implementation of the described methods and variants is within the reach of the person in the trade, based on the functional indications given above.

Claims

Claims

1. A circuit for reading a light sensor (PD), comprising: - an integrator assembly including an operational amplifier (OA2), a first capacitor (Cin:2), and at least one circuit (206, 207) adapted to compensate for an offset voltage of the op-amp rational (OA2), a first electrode of said first capacitor (C ivT2) being connected to an inverting input of said operational amplifier (OA2), and a second electrode of said first capacitor (C;vr2) being connected to a non-inverting output of said operational amplifier (OA2); and - a presetting circuit adapted to receive a first voltage equal to a setting voltage (Vrreser) multiplied by a coefficient (K), and charge said first capacitor (Cinr2), wherein said at least one circuit (206, 207) adapted to compensate for a operational amplifier (OA2) offset voltage, includes a input circuit (206) formed of multiplexers connected to the inverting input and to a non-inverting input of the operational amplifier (OA2) a output circuit (207) formed of multiplexers connected to in- outputs pouring and non-inverting of the operational amplifier (OA2), and said multiplexers are adapted to provide a slot signal of which the amplitude is equal to the amplitude of the offset voltage of the operational amplifier (OA2) by alternating their connections with the inputs and outputs of said operational amplifier, wherein the presetting circuit comprises: - a second capacitor (C'ixvr2) whose capacity is equal to the capacitance of the first capacitor (Civr2) divided by said coefficient (K), and a third electrode of the second capacitor (C'inr2) is connected to a node (A) receiving the first voltage by a first in- switch (SW1), and is connected to a node receiving a potential of reference by a second switch (SW2), and a fourth electrode of the second capacitor (C'xr7) is connected to the input in- operational amplifier (OA2) jug by a third in- switch (SW3), and is connected to the node receiving the potential of reference by a fourth switch (SW4); - a third capacitor (Caux) whose capacity is lower than the capacitance of the first capacitor (Cvrz), and being short-circuited by a fifth switch (SW5), and is connected to the inverting input of the operational amplifier by a sixth switch (SW6); and - a fourth capacitor (C'aux), connected in parallel with the second capacitor (C'ixr2), whose capacity is equal to the capacity of the third capacitor (Caux) divided by said coefficient (K), or wherein the presetting circuit comprises a first resistor (Rereser 1x) of which a first terminal is connected to the node receiving said first voltage, and a second terminal is connected to an input of a flip-flop (Br) which oscillates between the node receiving the reference potential and the non-inverting input of the operational amplifier (OA2), and a second resistor (RpreseT rs) of which a third terminal is connected to the non-inverting input of the operational amplifier (OA2) and a fourth terminal is connected to the non-inverting output of the amplifier operational (OA2) via a seventh switch (SWR).

2. Device (200, 300, 400) for measuring ambient light comprising an ambient light sensor (PD) and a reading circuit according to the re- vindication |.

3. A device according to claim 2, wherein the sensor is a photodiode (PD).

4. A method of using the device according to claim 2 or 3, comprising the following successive phases: a pre-charge phase of the first capacitor (Crvr2), and an integration phase.

5. The method of claim 4, further comprising a re- initialization in which the first capacitor (Civr2) is discharged.