The invention relates to the field of analog to digital converters (ADC). More specifically it relates to ADCs which apply a binary search algorithm through the different quantization levels for obtaining the digital representation of an analog input signal.
Different applications, such as for example automotive products, require components which support self-diagnosis. Especially the major components, such as for example ADCs, should support self-diagnosis. This requirement can be implemented at system level. For instance, when the product features both an ADC and a digital to analog converter (DAC), feeding the output of the DAC to the input of the ADC in some test mode allows to check both blocks upon comparing ADC's output codes to DAC's input one. Gain, offset and linearity errors can be easily estimated and tested against some tolerances.
Many products are however not featuring any internal DAC: this is the case for sensors with digital output, or drivers (LED, motor), as this saves some area and is therefore cost efficient.
In some other architectures, a test DAC is implemented inside the ADC. However, such an internal test DAC typically has a reduced resolution and a reduced accuracy. It only provides a basic functionality checking. Because of that, such a solution can not be used in Functional Safety Applications. The DAC would need to be improved significantly for a complete ADC checking, what is not area and thus cost efficient.
The successive approximation register (SAR) ADC illustrated in
During the first sampling phase, switches SW1 and SW2 are closed (closed actually means enabled=conducting), whereas switch SW3 is open (open actually means disabled=non-conducting) and input signal VIN is stored on capacitor CS.
During the second conversion phase, switches SW1 and SW2 are open, whereas switch SW3 is closed: the signal fed to the comparator is thus the DAC output voltage, minus the input signal stored on capacitor CS. The output of the comparator is the sign of such difference, i.e. it is telling whether the DAC output voltage is bigger than the input voltage. Based on such information, the logic block SAR is generating more and more accurate digital estimates of input signal VIN during the conversion. The final estimate is eventually copied in the output register REG.
Upon closing switch SW3 rather than SW1 during the sampling phase, the DAC output rather than the signal input VIN can be sampled on capacitor CS: such test mode would allow checking the correct behavior, but most failures wouldn't be detectable, since the test signal and the subsequent approximations would be affected in the same way. Namely, high leakage current in only a few switches would make the DAC and the ADC totally non-linear, with no way to detect that. Whereas leakage current might be increasing over product lifetime (spreading of deep trench isolation (DTI) cracks with repeated thermal shocks, for instance). Hence, this solution can also not be used in functional safety applications.
There is therefore a need for analog to digital converters which support self-diagnosis such, that they can be used in functional safety applications.
It is an object of embodiments of the present invention to provide good analog to digital converters which can be used in self-diagnosis test mode.
The above objective is accomplished by a method and device according to the present invention.
Embodiments of the present invention relate to an analog to digital converter for converting an input signal into a digital value. The analog to digital converter comprises a successive approximation register a first and a second digital to analog converter, a switch matrix, optionally a register for storing the digital value, a comparator, and a comparator switch between a first and a second input of the comparator.
The successive approximation register is connected with its output to the first DAC, to the second DAC, and optionally to the register.
The switch matrix is configured for capacitively coupling the input signal between the first input and the second input of the comparator, or for capacitively coupling an output signal of the first DAC or an output signal of the second DAC or both between the first input and the second input of the comparator and an output of the comparator is connected to an input of the successive approximation register.
It is an advantage of an ADC in accordance with embodiments of the present invention that it can be used in functional mode and in self-diagnosis test mode. This is achieved by providing two DACs and a switch matrix wherein the switch matrix is configured for capacitively coupling the input signal between the first input and the second input of the comparator, or for capacitively coupling the first DAC or the second DAC or both between the first input and the second input of the comparator.
In functional mode, the two DACs are in parallel and their respective linearity errors are averaged. When comparing this ADC architecture, according to the present invention, with the prior art ADC illustrated in
In embodiments of the present invention each of the DACs may comprise a resistor string. In embodiments of the present invention each string is made of identical resistors. In embodiments of the present invention the two strings are preferably made of a same number of same resistors in order to allow optimal/minimal linearity errors in each string for a same total area.
In embodiments of the present invention the ADC comprises a controller which is configured for controlling the switch matrix.
In embodiments of the present invention the controller is configured for controlling the comparator switch and the switch matrix for capacitively coupling the input signal between the first input and the second input of the comparator for sampling the input signal.
In embodiments of the present invention the controller is configured for controlling the comparator switch and the switch matrix for capacitively coupling the output signal of the first digital to analog converter and the output signal of the second DAC between the first input and the second input of the comparator for conversion.
In embodiments of the present invention the controller is configured for controlling the comparator switch and the switch matrix for capacitively coupling the output signal of the first DAC between the first input and the second input of the comparator or for capacitively coupling the output signal of the second DAC between the first input and the second input of the comparator for sampling,
After sampling the output signal of the first or he second DAC the controller is configured for controlling the comparator switch and the switch matrix for capacitively coupling the output signal of the second DAC between the first input and the second input of the comparator for conversion after sampling the output of the first DAC, or for controlling the comparator switch and the switch matrix for capacitively coupling the output signal of the first DAC between the first input and the second input of the comparator for conversion after sampling the output of the second DAC.
In embodiments of the present invention the ADC is single ended. For a single ended ADC, in accordance with embodiments of the present invention, the switch matrix may comprise a first capacitor and a second capacitor, both connected with their second terminal to the first input of the comparator. The switch matrix, furthermore, may comprise:
In embodiments of the present invention the controller is configured such that the first, the second and the comparator switch are closed and such that the third, the fourth, the fifth and the sixth switch are open for sampling the input signal, and such that the third and the sixth switch are closed and the first, the second, the fourth, the fifth and the comparator switch are open for conversion.
In embodiments of the present invention the controller is configured such that the third, the fourth and the comparator switch are closed and such that the first, the second, the fifth and the sixth switch are open for sampling the output of the first DAC or such that the fifth, the sixth and the comparator switch are closed and such that the first, the second, the third and the fourth switch are open for sampling the output of the second DAC and
In embodiments of the present invention each DAC may comprise at least one multiplexer controlled by an input digital code obtained from the output of the successive approximation register for connecting an internal node of the resistor string to the output of the DAC.
In embodiments of the present invention the ADC is a differential ADC. A differential ADC may comprise a first pair of capacitors connected with their second terminals respectively to the first and second input of the comparator and a second pair of capacitors connected with their second terminals respectively to the first and second input of the comparator.
In embodiments of the present invention the switch matrix comprises:
In embodiments of the present invention the ADC may be a differential ADC. Each DAC of such a differential ADC may comprise a resistor string. Each DAC, furthermore, may comprise a matrix of four switches, a first multiplexer connected to an upper halve of the resistor string and a second multiplexer connected to a lower halve of the resistor string. The multiplexers are controlled by an input digital code obtained from the output of the successive approximation register using sign and magnitude coding wherein the magnitude controls the first and the second multiplexer and wherein the sign controls the matrix of four switches to connect the output of the first multiplexer to the positive output terminal of the DAC and the output of the second multiplexer to the negative output terminal of the DAC if the sign is positive, and the output of the first multiplexer to the negative output terminal of the DAC and the output of the second multiplexer to the positive output terminal of the DAC if the sign is negative.
In embodiments of the present invention the resistor string of the first DAC and the resistor string of the second DAC are positioned such that a first symmetry axis and a second symmetry axis orthogonal to the first symmetry axis can be identified between the resistors and wherein any pair of resistors with a same index in the resistor string of the first DAC and the resistor string of the second DAC has their center of gravity right at the crossing of the first symmetry axis and the second symmetry axis.
Particular and preferred aspects of the invention are set out in the accompanying independent and dependent claims. Features from the dependent claims may be combined with features of the independent claims and with features of other dependent claims as appropriate and not merely as explicitly set out in the claims.
These and other aspects of the invention will be apparent from and elucidated with reference to the embodiment(s) described hereinafter.
Any reference signs in the claims shall not be construed as limiting the scope.
In the different drawings, the same reference signs refer to the same or analogous elements.
The present invention will be described with respect to particular embodiments and with reference to certain drawings but the invention is not limited thereto but only by the claims. The drawings described are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn on scale for illustrative purposes. The dimensions and the relative dimensions do not correspond to actual reductions to practice of the invention.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a sequence, either temporally, spatially, in ranking or in any other manner. It is to be understood that the terms so used are interchangeable under appropriate circumstances and that the embodiments of the invention described herein are capable of operation in other sequences than described or illustrated herein.
It is to be noticed that the term “comprising”, used in the claims, should not be interpreted as being restricted to the means listed thereafter; it does not exclude other elements or steps. It is thus to be interpreted as specifying the presence of the stated features, integers, steps or components as referred to, but does not preclude the presence or addition of one or more other features, integers, steps or components, or groups thereof. Thus, the scope of the expression “a device comprising means A and B” should not be limited to devices consisting only of components A and B. It means that with respect to the present invention, the only relevant components of the device are A and B.
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment, but may. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner, as would be apparent to one of ordinary skill in the art from this disclosure, in one or more embodiments.
Similarly it should be appreciated that in the description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Furthermore, while some embodiments described herein include some but not other features included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention, and form different embodiments, as would be understood by those in the art. For example, in the following claims, any of the claimed embodiments can be used in any combination.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Embodiments of the present invention relate to an ADC 100 for converting an input signal into a digital value. An example of a successive approximation register ADC in accordance with embodiments of the present invention is illustrated in
The ADC 100 comprises a successive approximation register 110, a first DAC 120A and a second DAC 120B, a switch matrix 130, optionally a register 140 for storing the digital value obtained by the ADC, a comparator 150, and a comparator switch 160 between a first and a second input of the comparator 150.
The successive approximation register 110 is connected with its output to the first DAC 120A, to the second DAC 120B, and optionally to the register 140. The register is not strictly required. The successive approximation register is a register itself which can be read out. The difference is that the successive approximation register is changing over the conversion, while the register 140 is keeping always the last result until a new result is written to the register.
In embodiments of the present invention the switch matrix 130 comprises a plurality of switches for capacitively coupling the input signal between the first input and the second input of the comparator 150, or for capacitively coupling an output signal of the first DAC 120A or an output signal of the second DAC 120B or both between the first input and the second input of the comparator 150.
The switches may for example be MOS field effect transistors (p-type, n-type, native type, depletion type). One switch might also comprise different transistors as e.g. p-type and n-type transistors. A switch might also comprise a dedicated voltage control in order to open (non-conducting switch) or to close (conducting switch) the switch.
An output of the comparator 150 is connected to an input of the successive approximation register 110.
An ADC in accordance with embodiments of the present invention can be used in functional mode and in self-diagnosis test mode. In functional mode, the two DACs are in parallel and their respective linearity errors are averaged. In self-diagnosis test mode, the output of one DAC is converted with the ADC using either the other DAC or both DACs in parallel.
In embodiments of the present invention a signal is capacitively coupled between the first input and the second input of the comparator by capacitively coupling the signal to the first input of the comparator and by connecting the second input of the comparator to a reference signal in case of a single ended signal, or by capacitively coupling a first complementary signal to the first input of the comparator and a second complementary signal to the second input of the comparator in case of a differential signal comprising two complementary signals.
In embodiments of the present invention two smaller DACs are used in parallel in a SAR ADC rather than one single bigger one in order to achieve functional safety at no extra cost. This can be achieved for whatever kind of DAC that is used in the SAR ADC.
In embodiments of the present invention the used DACs are comprising resistor strings. In embodiments of the present invention two independent resistor strings are implemented.
The invention is not limited to resistor string DACs. Any other type of DAC may be used. In embodiments of the present invention two smaller DACs are used in parallel in a successive approximation register ADC rather than one single bigger one in order to achieve functional safety at no extra cost.
In functional mode, the two DACs are in parallel, and their respective linearity errors are averaged: they can feature devices with half the size of the ones that would be needed when one single DAC is used (Pelgrom's Law: matching error is inversely proportional to square root of area). Same thing applies to the output impedance: it is divided by two upon connecting the blocks in parallel, so that again, switches as used in each DAC feature half the size of the ones needed for a single DAC.
In self-diagnosis test mode, the output of one DAC is converted with the ADC using either the other or both the DAC's in parallel: in both cases, errors affecting only one DAC would be detected. And the likelihood of correlated errors is not any higher than with an external test DAC: again, the two DACs are totally independent, featuring their own set of switches and decoders. Such decoders are further using partly different architectures, as explained in the next section: this is further reducing the likelihood of correlated errors.
In embodiments of the present invention the ADC 100 comprises a controller 180 which is configured for controlling the switch matrix 130. In embodiments of the present invention the controller used for each conversion of the switch matrix may be implemented in a dedicated hardware logic block. This may for example be a finite state machine. In embodiments of the present invention the diagnostic routine may be implemented in software run on a microcontroller.
In embodiments of the present invention the controller 180 is configured for controlling the comparator switch 160 and the switch matrix 130 for capacitively coupling the input signal between the first input and the second input of the comparator 150 for sampling the input signal.
In embodiments of the present invention the controller 180 is configured for controlling the comparator switch 160 and the switch matrix 130 for capacitively coupling the output signal of the first DAC 120A and the output signal of the second DAC 120B between the first input and the second input of the comparator 150 for conversion. It is an advantage of embodiments of the present invention that the two DACs are used in parallel and that their respective linearity errors are averaged.
In embodiments of the present invention the controller 180 is configured for controlling the comparator switch 160 and the switch matrix 130 for capacitively coupling the output signal of the first DAC 120A between the first input and the second input of the comparator 150 or for capacitively coupling the output signal of the second DAC 120B between the first input and the second input of the comparator 150 for sampling.
In embodiments of the present invention the controller is configured for controlling the comparator switch 160 and the switch matrix 130 for capacitively coupling the output signal of the second DAC 120B between the first input and the second input of the comparator 150 for conversion after sampling the output of the first DAC 120A, or for controlling the comparator switch 160 and the switch matrix 130 for capacitively coupling the output signal of the first DAC 120A between the first input and the second input of the comparator 150 for conversion after sampling the output of the second DAC 120B. It is an advantage of embodiments of the present invention that the linearity of both DACs can be checked upon comparing one DAC against the other.
An exemplary switch matrix 130 for a single ended ADC 100 in accordance with embodiments of the present invention is shown in
The switch matrix 130 comprises a first switch 131 between an input terminal 101 for the single ended input signal and a first terminal of the first capacitor 171.
The switch matrix 130 comprises a second switch 132 between the input terminal 101 and a first terminal of the second capacitor 172.
The switch matrix 130 comprises a third switch 133 between the first DAC 120A and the first terminal of the first capacitor 171.
The switch matrix 130 comprises a fourth switch 134 between the first DAC 120A and the first terminal of the second capacitor 172.
The switch matrix 130 comprises a fifth switch 135 between the second DAC 120B and the first terminal of the first capacitor 171.
The switch matrix 130 comprises a sixth switch 136 between the second DAC 120B and the first terminal of the second capacitor 172.
In functional mode the ADC, in accordance with embodiments of the present invention, may operate in two phases.
During the sampling phase the first switch 131, the second switch 132 and the comparator switch 160 are closed, so that the input signal VIN is stored on the first capacitors 171 and the second capacitor 172. All other switches are kept open.
During the conversion phase the third switch 133 and the sixth switch 136 are closed whereas all other switches shown in
It is an advantage of embodiments of the present invention that besides the functional mode also alternative (test) modes are available. For the exemplary embodiment illustrated in
Upon closing the third switch 133 and the fourth switch 134 rather than the first switch 131 and the second switch 132 during the sampling phase, the output of DAC0 rather than input signal VIN can be stored on the first capacitor 171 and the second capacitor 172.
Upon closing switches the sixth switch 136 and the fifth switch 135 rather than the first switch 131 and the second switch 132 during the sampling phase, the output of DAC1 rather than input signal VIN can be stored on the first capacitor 171 and the second capacitor 172.
Upon closing the third switch 133 and the fourth switch 134 rather than the third switch 133 and the sixth switch 136, DAC0 only can be used during the conversion.
Upon closing switches the sixth switch 136 and the fifth switch 135 rather than the third switch 133 and the sixth switch 136, DAC1 only can be used during the conversion.
An ADC, in accordance with embodiments of the present invention may be single ended or differential. In both cases the ADC may be used in functional mode or in test mode.
In functional mode, the two DACs are used in parallel and their respective linearity errors are averaged. In self-diagnosis test mode, the output of one DAC is converted with the ADC using either the other DAC or both DACs in parallel.
In embodiments of the present invention, in test mode, the output of one DAC is converted with the ADC using either the other DAC or both DACs in parallel. In both cases, errors affecting only one DAC can be detected. The test mode may be applied to a single mode ADC and to a differential ADC. The detection can for example be done using a microcontroller. The microcontroller may compare the error with a threshold and report a fault if the error exceeds the threshold. This threshold may be the accuracy as targeted in the application. This may for example be 0.5 LSB. The invention is, however, not limited thereto. In embodiments of the present invention an error can be measured with a with a higher resolution than the one of the ADC. This may be achieved by averaging. Several conversions may be performed (for example 16 conversions), and the resulting codes are then averaged to reduce noise and get a higher resolution. The microcontroller may be configured for doing so.
The likelihood of facing exactly the same linearity errors on both the first DAC 120A and the second DAC 120B being extremely low, the linearity of both DACs can now be safely checked upon comparing one DAC against the other.
An exemplary switch matrix 130 for a differential ADC 100 in accordance with embodiments of the present invention is shown in
The ADC 100, illustrated in
The switch matrix 130 comprises:
A differential ADC in accordance with embodiments of the present invention may comprise a controller 180 for controlling the switch matrix such that the differential ADC can operate in functional mode and in test mode.
In embodiments of the present invention each of the DACs 120A, 120B comprises a resistor string 121.
In embodiments of the present invention each DAC 120 comprises at least one multiplexer 122 controlled by an input digital code obtained from the output of the successive approximation register 110 for connecting an internal node of the resistor string 121 to the output of the DAC. The input digital code is obtained from the output of the successive approximation register. The input digital code may be equal to the output of the successive approximation register.
An example of a resistor-string DAC with single-ended architecture is illustrated in
For a differential architecture, 2 multiplexers MUXP and MUXN are used, respectively connected to the lower and upper halves of the resistor-string. An example thereof is illustrated in
Whatever the considered architecture, single-ended or differential, using two rather than one single string is bringing significant advantages in terms of matching. Both cases are considered hereafter.
A particularly advantageous layout for matching is a common-centroid layout. In the common-centroid layout the devices to be matched have the same gravity center, in order to reject the effect of gradients in any direction. For a resistor-string DAC, it is particularly advantageous that all the resistors located below the node selected by the multiplexer have the same gravity center as all the ones located above these nodes, and this whatever the input code DIN. Meeting such a requirement with one single resistor-string is possible yet extremely complex, namely upon using cochlea-style layout. However, this kind of tricky layout results in interconnect wires of different length, and the varying voltage drops along such wires might affect the linearity of the DAC.
With a dual resistor-string, in accordance with embodiments of the present invention, a much simpler and regular layout can be used to meet the common-centroid requirement, thanks to the averaging of the output of the 2 DACs. An example of such a layout with a single-ended architecture is illustrated in
Resistor-strings of higher resolution can be built the same way, upon adapting the number of rows and columns in the array in order to maintain the layout as square as possible (minimal distances between components means best matching). The ratio of the number of rows and columns is thereby dependent on the ratio of the width and length of a unit resistor and this depends on the semiconductor technology used to implement the resistor.
This resistor arrangement can provide both a single-ended or a differential output (so that the ADC can in turn support both modes—and this is one of the features of all ADC's based on that technique).
The layout as used for the dual single-ended resistor-string (see
However, in any array of resistors, one is always facing some kind of second order gradient, i.e. resistors closer to the center of the array are typically different than the ones closer to its border. Typically, dummy devices are surrounding the array to mitigate the phenomenon, but it has been observed to affect several rows of devices, and increasing the number of rows of dummy devices comes at the cost of an increased total area issue and at the cost of a decreased speed, since wires from resistor-string nodes to MUXes would become very long. With the layout described at
The dual differential resistor-string DAC depicted on
Number | Date | Country | Kind |
---|---|---|---|
23201440.7 | Oct 2023 | EP | regional |