Ramp analog-digital converter able to provide an average of two signals directly
09923571 · 2018-03-20
Assignee
Inventors
Cpc classification
H03M1/123
ELECTRICITY
H03M1/00
ELECTRICITY
H03M1/0634
ELECTRICITY
H04N25/616
ELECTRICITY
H04N25/75
ELECTRICITY
International classification
Abstract
Ramp analog-digital converters used in matrix image sensors to provide a digital value representative of a level of illumination of a pixel are provided. Two voltage samples are applied to a comparator, a counter is used to count pulses at a frequency F from a starting instant of the ramp until a toggling of the comparator. Two other voltage samples, one of which is added to a linear voltage ramp having an identical starting instant and slope to the first ramp, are applied to a second comparator, a half counting frequency F/2 is applied to the counter from the toggling of one of the comparators, and the content of the counter at the moment of toggling of the other comparator is stored. Two measurements of samples of the same signal or of two different signals are averaged without undergoing a digital conversion for each signal and a digital addition.
Claims
1. An analog-digital conversion method comprising: providing N pairs of samples of either a same voltage or of respective voltages to respective pairs of inputs of N comparators, applying a clock signal comprising sequence of pulses at a frequency F, called counting frequency, to a counter configured for counting the said pulses, adding a same voltage ramp to one sample of each pair, whenever a comparator trips, changing the counting frequency to a value F.Math.(Nj)/N, j being a number of comparators that have tripped since said starting instant, and storing a content of the said counter when the Nth comparator trips; wherein N is a positive integer greater than 1.
2. The conversion method as claimed in claim 1, wherein N=2.
3. The conversion method as claimed in claim 1, wherein all comparators receive samples of a same pair of voltages in order to reduce reading noise.
4. The conversion method as claimed in claim 3, wherein the samples are taken at different instants.
5. The conversion method as claimed in claim 1, wherein the N comparators receive simultaneous N different pairs of samples in order to provide an average of those N pairs of samples.
6. A ramp analog-digital converter comprising: a circuit configured for setting up a voltage ramp, a clock generator for generating a clock signal at a selectable frequency, said clock signal comprising a series of pulses, a counter configured for counting the clock signal pulses from a starting instant of the said voltage ramp, N comparators, each having a pair of inputs for receiving N respective pairs of samples of either a same voltage or of respective voltage, one voltage sample of each pair being received on a respective input of a comparator, a summing circuit for adding said voltage ramp to one sample of each pair, a logic circuit configured for selecting an initial frequency F of the clock generator and a frequency F.Math.(Nj)/N of the clock generator whenever a comparator trips, j being a number of comparators that have tripped since said starting instant, and a memory for storing counter content when the Nth comparator trips; N being a positive integer greater than 1.
7. The ramp analog-digital converter as claimed in claim 6, wherein N=2.
8. A matrix image sensor comprising a converter as claimed in claim 6, wherein the N pairs of samples are provided by a column conductor connecting the pixels of one and the same pixel column, the samples being taken at 2N different instants.
9. The matrix image sensor comprising a converter as claimed in claim 8, wherein said pairs of samples are provided by respective column conductors, each connecting the pixels of one and the same pixel column.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Other features and advantages of the invention will emerge on reading the detailed description that follows and that is provided with reference to the appended drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION
(11)
(12) A voltage comparator COMP having two inputs E1, E2 receives the variable voltage Vin and the reference voltage Vref at these inputs; a rising or falling linear voltage ramp is added to one of these two voltages from an instant t0 that defines the start of the analog-digital conversion. The choice of the direction of the ramp or the choice of the input to which the ramp is applied is made on the basis of the sign of the difference between the variable voltage and the reference voltage, so that the voltages applied to the two inputs of the comparator become equal at the end of a variable time that defines the end of the conversion. Thus, if the reference voltage is lower than the variable voltage and if the voltage ramp is ascending, there is the assurance that the voltages become equal if a rising ramp is added to the reference voltage or a falling ramp is added to the variable voltage. Conversely, if the reference voltage is higher than the variable voltage, it is necessary to apply a falling voltage ramp to the reference voltage, or to add a rising ramp to the variable voltage.
(13) As these solutions are equivalent, it will be considered by convention in the remainder of the description of the invention that the reference voltage is at a consistently higher level than the variable voltage, that the ramp is ascending and that it is added to the variable voltage. This is what is represented in
(14) A counter CNT counts pulses applied to an incrementation input that receives these pulses at a clock frequency F. The counting is enabled by an enabling signal EN applied to an enabling input of the counter. This signal starts at the instant t0, which defines the start of the voltage ramp.
(15) The output of the comparator toggles when the voltage at the input E1 reaches the value Vref on account of the ascending of the linear ramp. The toggling of the comparator then triggers storage of the content of the counter, either by stopping counting or by allowing the counter to continue but triggering storage, in a digital memory MEM, of the content of the counter at the instant of the toggling. The counter or the memory then contains a value that is representative of the time (number of clock periods at frequency F) taken to equalize the voltages at the two inputs of the comparator, and therefore representative of the difference Vref-Vin when the ramp is linear.
(16)
(17) The column conductors of the matrix are each connected to the input of a respective ramp analog-digital converter. To simplify the diagram of
(18) Finally,
(19)
(20) The column conductor COL is connected to a double sampling circuit that takes two voltage samples from this conductor.
(21) The first sample Vr is a reset voltage for the pixel. This sample is applied to a sampling capacitance Cr by the closure of a switch Kr at a moment at which the column conductor receives from the pixel a reset level representing an absence of illumination for the pixel. This level is provided by a photodiode or a node for temporary storage of charges from the pixel after this photodiode or this node has been brought to a fixed reset potential.
(22) The second voltage sample Vs is a useful voltage level representing the illumination of the pixel. It is applied to another capacitance Cs by the closure of a switch Ks at a moment at which the column conductor receives from the pixel a voltage representing the illumination thereof. This level is provided by the photodiode after an integration time, or by the node for temporary storage of charges after the charges of a photodiode have been transferred to this node.
(23) The voltage samples Vr and Vs are held and kept in the capacitances Cr and Cs by the opening of the respective switches Kr and Ks.
(24) The capacitance Cr is connected between the input E2 of the comparator COMP and a zero potential ground. The capacitance Cs is connected between the input E1 of the comparator and the output of a linear voltage ramp generator. By way of example, the generator produces a ramp V.sub.RMP from the charging of a capacitance C.sub.RMP by a constant current source I.sub.RMP. By way of example, the capacitance C.sub.RMP is connected to the ground. The output of the generator is taken at the point at which the capacitance C.sub.RMP is connected to the current source. The capacitance C.sub.RMP can be shorted by a switch K.sub.RMP. The opening of this switch under the action of an enabling signal EN at an instant t.sub.0 enable charging of the capacitance C.sub.RMP and linearly increases the potential at the input E1 of the comparator from the voltage that has been sampled in the capacitance Cs.
(25) The counter receives a clock signal clk at frequency F. Counting is triggered by the same enabling signal EN as is used to control the opening of the switch K.sub.RMP, that is to say by the signal that triggers the start of analog-digital conversion by starting the ramp.
(26) The output of the comparator COMP toggles when the voltage Vs+V.sub.RMP at the input E1 reaches the value of the reference voltage Vr at the input E2. The toggling triggers storage of the content of the counter in the memory MEM. It will be noted that the memory can be doubled up in order to speed up the operation of the sensor: each converter has two memories, one being able to be used for reading while the other is used for writing, and vice versa; the toggling of the comparator triggers storage on each new conversion, alternately in one of the memories and then in the other. This design with two memories is not linked to the present invention and will not be described in more detail.
(27) It will be noted that in some cases, it would be possible to provide for a fixed reference voltage to be applied to the input E2 instead of a sampled voltage from the column conductor.
(28)
(29) Selection of the row containing the pixel places a voltage on the column conductor. The voltage is a voltage Vr representing a reset level for the pixel or a useful voltage Vs representing the illumination at the moment under consideration. It will be assumed in this case that the reset level and the useful level are read from a node for temporary storage of charges of the pixel, connected by means of a read transistor for the pixel to the column conductor when the row is selected.
(30) In the example represented in
(31) The charge transfer representing the illumination, from the photodiode of the pixel to the temporary storage node, causes a drop in the potential of the column conductor; a short closure control signal SHS is then applied to the switch Ks, which samples in the capacitance Cs the useful voltage level Vs representing the illumination. The capacitance Cs applies this voltage level to the input E1 of the comparator.
(32) The state of the output of the comparator is represented on the COMP row; by convention, this is considered to be a low state at the instant t.sub.0 of the start of the ramp.
(33) At the instant t.sub.0, the ascending linear voltage ramp is triggered, which increases the potential V.sub.E1=Vs+V.sub.RMP at the input E1 from Vs.
(34) Counting by the counter CNT is also triggered at the instant t.sub.0; counting is incremented at the rate provided by a clock at frequency F. Arbitrary figures are indicated in
(35) At an instant t.sub.1, when the voltage V.sub.E1 reaches the value Vr, the comparator toggles and triggers storage of the content of the counter.
(36) The comparator is reset to its initial state at the start of a subsequent reading and conversion sequence, or it returns thereto naturally at the moment of sampling of the reset level by the signal SHR.
(37)
(38) For a given theoretical value Vr and a theoretical value Vs, the instant of crossing can vary between two boundary instants t1.sub.MIN and t1.sub.MAX.
(39) A crossing at the instant t1.sub.MIN occurs in the extreme configuration in which Vr is at a lowest real level taking account of the noise while Vs is at a highest level taking account of the noise. Conversely, a crossing at the instant t1.sub.MAX occurs in the extreme configuration in which Vr is at a highest real level taking account of the noise while Vs is at a lowest level taking account of the noise.
(40) Toggling of the comparator can then take place, as can be seen in
(41) The noise may be from phenomena upstream of the converter, but also from the offset of the comparator and from other noise sources inside the converter.
(42) To minimize the effect of this noise, the invention proposes a method that will be understood by referring to
(43) This method consists in using two samplers that each take a pair of samples of the same measurement, and two comparators COMP and COMP, but a single counter CNT for counting a value that represents the average of the two sample differences, without needing to convert each of the pairs of samples with the aim of digitally adding them. In this case, a pair of samples is understood to mean the sample Vr and the sample Vs. The four samples can be taken at four different instants. They are considered to be taken at four different instants in this case.
(44) The two samplers are identical to that from
(45) The crossing of the curves V.sub.E1 and V.sub.E2 in
(46) According to the invention, as soon as a comparator toggles, be it the first or the second, the counting frequency of the counter is divided by two. Counting is therefore slower. As soon as the other comparator toggles, the content of the counter is read, that is to say that the content of the counter is stored in the memory MEM.
(47) This content is an average of the two samplings and this average is written directly to the memory, without there being the need to obtain a digital value for the first sample and a digital value for the second. This average reduces the uncertainty regarding the measurement in the presence of noise.
(48) Thus, in the example of
(49)
(50) The outputs of the comparators are considered to be active at the high logic level after toggling. They are connected to the two inputs of the OR gate 10. The output of the OR gate activates a switch SW that switches either a clock at frequency F (OR gate output at the low level) or a clock at frequency F/2 (OR gate output at the high level) to the incrementation control input of the counter. Initially, the counting frequency is F. It becomes F/2 from the toggling of one of the comparators.
(51) Moreover, the outputs of the comparators are connected to the inputs of the AND gate. The output of the AND gate remains at the low level until the two comparators have toggled. When it changes to the high level, it controls storage of the content of the counter in the memory.
(52) This principle of direct measurement of an average of two signals can be generalized to measurement of the average of N signals where N is greater than 2. By way of example, N can range from 3 to 10. In this case, N comparators are used rather than two. Each comparator of rank i receives a respective pair of samples of rank i, V.sub.is, among N pairs for which there is a need to obtain a digital value of the average of the differences V.sub.ir-V.sub.is directly. The outputs of the comparators are connected to the inputs of a logic circuit that is more complex than that of
(53) The toggling of the last comparator triggers storage of the content of the counter, and this content represents the average of the N signals, that is to say the average of N voltage differences V.sub.irV.sub.is.
(54)
(55) By way of example, in a pixel matrix, there is a need to group the measurements provided by two adjacent pixels in one and the same row of pixels into a single average value. This is the case particularly when there is little light and sensitivity is to be increased at the expense of resolution.
(56) At the moment of selection of the row, the two adjacent pixels provide reset voltages (Vr.sub.i, Vs.sub.i) and then useful voltages (Vr.sub.i+1, Vs.sub.i+1) on two adjacent column conductors COL.sub.i and COL.sub.i+1; the reset voltages are sampled by a common signal SHR; the useful voltages are sampled by a signal SHS. The signals corresponding to the column of rank i are applied to the sample and hold circuit associated with the comparator COMP, and the signals corresponding to the column of rank i+1 are applied to the sample and hold circuit associated with the comparator COMP.
(57) Depending on the value of the sample differences, it is the comparator COMP or the comparator COMP that toggles first in the course of the common ramp. The counter that counted at the frequency F counts at the frequency F/2 from the toggling.
(58) When the other comparator toggles, the content of the counter is stored. It represents the average of the measurements of the two pixels (average between the difference Vs.sub.i-Vr.sub.i in the samples from the column of rank i and the different Vs.sub.i+1-Vr.sub.i+1 in the samples from the column of rank i+1).
(59) If the circuit of
(60) switch that connects the output of the comparator COMP to the memory MEM.sub.i+1 so that the latter is able to record the measurement of the column of rank i+1,
(61) switch that freezes the output of the OR gate at zero, so that there is no further change of counting frequency;
(62) switch that shorts the AND gate in order to connect the output of the comparator COMP to the memory MEM.sub.i, so that only the toggling of the comparator COMP acts on the memory MEM.sub.i
(63) possibly a switch that disconnects the output of the comparator COMP from the OR and AND gates used for averaging, in order to stop performing the averaging.
(64) The arrangement of these switches is given only by way of example, to illustrate the change of mode, many other switching logic circuits being able to be imagined.