A method and apparatus for characterizing an A/D converter are provided. The A/D converter is configured to convert an input signal into a digital output signal. The method and apparatus may provide: applying an input signal to the A/D converter that in a first phase at least includes a gradient of a rising exponential function with euler's number as the base, and in a further phase has a profile of a falling exponential function with euler's number as the base, integrating a digital output signal associated with the A/D converter during the first phase to provide a first sum, integrating the digital output signal associated with the A/D converter during the further phase to provide a second sum, and calculating from the first sum and the second sum at least a gain error of the A/D converter and/or a zero point error of the A/D converter.
|
1. A method of characterizing an analog-to-digital converter, the analog-to-digital converter configured to convert an input signal to a digital output signal, the method comprising:
applying the input signal to the analog-to-digital converter that in a first phase at least includes a profile of a rising exponential function with euler's number as the base, and in a further phase has a profile of a falling exponential function with euler's number as the base;
integrating the digital output signal during the first phase to provide a first sum;
integrating the digital output signal during the further phase to provide a second sum; and
calculating from the first sum and the second sum at least one of a gain error of the analog-to-digital converter and/or and a zero-point error of the analog-to-digital converter.
9. An electrical circuit for characterizing an analog-to-digital converter, the analog-to-digital converter configured to convert an input signal to a digital output signal, the electrical circuit comprising:
a generator to provide the input signal, the input signal in a first phase at least includes a profile of a rising exponential function with euler's number as the base, and in a further phase has a profile of a falling exponential function with euler's number as the base
an integrator to integrate the digital output signal during the first phase 2 to provide a first sum and to integrate the digital output signal during the further phase to provide a second sum;
a calculation unit to calculate from the first sum and the second sum at least one of a gain error of the analog-to-digital converter and/or and a zero-point error of the analog-to-digital converter.
2. The method according to
3. The method according to
wherein t is time, τ is a time constant, u0 is a constant, wherein u0 is smaller than or equal to a size of an input range of the analog-to-digital converter.
5. The method according to
6. The method according to
7. The method according to
8. The method according to
10. The electrical circuit according to
11. The electrical circuit according to
12. The electrical circuit according to
wherein t is time, τ is a time constant, u0 is a constant, wherein u0 is smaller than or equal to a size of an input range of the analog-to-digital converter.
13. The electrical circuit according to
14. The electrical circuit according to
15. The electrical circuit according to
16. The electrical circuit according to
17. The electrical circuit according to
|
This application claims priority of German patent application number 10 2013 007 903.9. The entire contents of the German patent application are hereby incorporated herein by reference.
The subject matter of this application generally relates to an apparatus and method for calculating parameters associated with analog-to-digital (A/D) converters.
Complex system-on-chip (SoC) components, such as microcontrollers for automotive applications, include a plurality of A/D converters. It is desirable that their functionality be checked during a production test. It may be advantageous that in the future, in addition, a test can be carried out during normal operation of the vehicle in the installed state. Methods are known in which a linearly rising signal is applied to one input of a test A/D converter. From the comparison of the output signal of the A/D converter with expected values it is possible to determine offset errors (also called zero point errors) and gain errors associated with the A/D converter.
Therefore, it may be desirable to provide a method that requires a minimum effort for the test. It may be particularly desirable to provide a test method that may be provided or loaded into a block to be tested (device under test, DUT).
In one embodiment, a method of characterizing an A/D converter is provided. The A/D converter is configured to convert an input signal into a digital output signal. The method may comprise: applying an input signal to the A/D converter that in a first phase at least includes a gradient of a rising exponential function with Euler's number as the base, and in a further phase has a profile of a falling exponential function with Euler's number as the base, integrating a digital output signal associated with the A/D converter during the first phase to provide a first sum, integrating the digital output signal associated with the A/D converter during the further phase to provide a second sum, and calculating from the first sum and the second sum at least a gain error of the A/D converter and/or a zero point error of the A/D converter.
In another embodiment, an electronic circuit is provided to characterize A/D converter. The A/D converter is capable of converting an analog input signal to a digital output signal. The electronic circuit may include a generator for providing an input signal. The input signal to the A/D converter may in a first phase at least include a gradient of a rising exponential function with Euler's number as the base, and in a further phase, the input signal may include a profile of a falling exponential function with Euler's number as the base. The electronic circuit may further include an integrator to integrate a digital output signal associated with the A/D converter during the first phase to provide a first sum, the integrator to further integrate the digital output signal associated with the A/D converter during the further phase to provide a second sum. Furthermore, the electronic circuit may include a calculation unit for calculating from the first sum and the second sum at least a gain error of the A/D converter and/or a zero point error of the A/D converter.
Embodiments are shown and illustrated with reference to the drawings. The drawings serve to illustrate the basic principle, so that only aspects necessary for understanding the basic principle are illustrated. The drawings are not to scale. In the drawings the same reference characters denote like features.
A device 1 is illustrated in
As is illustrated in
The oscillator 2 generates the clock signal during both a normal operation as well as in a test operation. The clock signal is received by the A/D converter 4 at the input C. The clock signal received by the A/D converter 4 is used by the converter 4 as a sampling clock signal. The A/D converter 4 converts analog signals received at the input E to digital signals in accordance with the sampling rate of the sampling clock signal received thereby. The digital signals are provided on the output Q.
As part of a normal operation of the integrated circuit 6, the circuit 6 receives an analog signal which is converted by the A/D converter 4 into a digital signal OUT. The function generator 3 switches its output to a high impedance level. The digital signal OUT is received by the control circuit 7 and is used to generate a control signal (control) that is output by the integrated circuit 6. The control signal may be used to control an actuator of a controller unit, which is not illustrated in
As part of a test operation of the integrated circuit 6, the signal uin is provided by the function generator 3. In this particular embodiment of operation, a signal is not provided on the input IN of the integrated circuit 6. Therefore, the signal uin received at the input E of the A/D converter 4. The signal uin is converted from an analog form to a digital form by the A/D converter 4 and output as the digital signal OUT output Q. The digital signal OUT is received by the detector circuit 5, which generates in accordance with the digital signal OUT a zero point error signal a0 and a gain error signal g0 u0. The values of a0 and g0 u0 can be output to control circuits external to the integrated circuit 6, which generate an error message if the values a0 and/or g0 u0 are outside a predetermined range. In an alternative, the values may be used to calibrate the ATD converter 4. The evaluation circuit 5 also receives the clock signal CLK at a clock input C of the evaluation circuit 5.
The input signal uin is applied to the data input E of the A/D converter 4. The rise and fall of the input signal uin is shown in the graph associated with
The function for ufall is i provided by the following formula:
The values u0 and τ are considered to be constants. The value u0 is chosen such that it is at or within a maximum voltage or voltage range of the A/D converter 4.
As should be understood, in various embodiments, the first and further phases may be switched. For example, the first phase may be between times tc and td (ufall) and proceed the further phase between times ta and tb (usteig).
The input of the changeover switch 51 is connected to the output E of the A/D converter 4. The control circuit 52 switches the switch 51 so that the output of the switch 51 is selectively connected to the input of the summing element 53 and to the input of the summing element 54. The summers 53 and 54 add the value applied to its input to a respective register value, respectively. The timing of the addition can be determined in each case by the control circuit 52, this also controls a reset, that is, the setting of the register value to zero, if required.
The output of the summing element 53 is connected to a first input of the multiplier 58, while the second input of the multiplier 58 is connected to an output of the memory 591. The output of the summing element 54 is connected to a first input of the multiplier 57, while the second input of the multiplier 57 is connected to the output of the memory 591.
The output of multiplier 58 is connected to a first input of a divider unit 601, whose second input is connected to the output of the memory 59. The divider unit 601 divides the output value of the multiplier 58 by the contents of the memory 59, the output of the multiplier 57 is connected to a first input of divider unit 60, whose second input is connected to the output of the memory 59. The divider unit 60 divides the output of the multiplier 57 by the contents of memory 59.
The output signal of the divider unit 601 and the output of the divider unit 60 are each connected to an input of the adder 61, which outputs the sum of the two output signals to the memory 62. This memory 62 stores the received value as E.
The output signal of the divider unit 601 and the output of the divider unit 60 are also respectively connected to one input of the subtracter 63, which outputs the difference between the values of the output signals to the memory 64. This memory 64 stores the received value as A.
The output of memory 64 is connected to a first input of the multiplier 68 whose second input is connected to the output of the memory 69. The output of memory 64 is the one with the output g0 u0 and secondly connected to the second input of the subtracter 65. The first input of the subtractor 65 is connected to the output of the memory 62. The output of subtractor 65 is connected to a first input of a divider unit 66, whose second input is connected to an output of the memory 67. The dividing unit 66 divides the value present at its first input with the value present at its second input, and outputs it as a0.
The adder 61 outputs at its output the sum of the values at its inputs. The multipliers each provide at their outputs the product of the values at their inputs. The multipliers 58, 57, 68, the adders 61, the divider units 60, 601, 66 and the subtracters 63 and 65 are each designed as digital circuits. They may each contain one, not shown in the
Alternatively, the multipliers and dividers can be implemented by a central processing unit. The central processing may be switched in such a way that in a first time window, the calculations of the units 53, 58 and 601 are performed, and the calculations carried out by the units 54, 57 and 60 are performed in a second time window.
The embodiment illustrated in the figures, in particular
As input signals, rising and falling exponential functions will be used, taking advantage of the special properties of the exponential function with the Euler's number as a base. The rising and falling edge of an exponential function with the amplitude u0 and the time constant τ are described by the following two relations.
The time constant τ is the same for both curves. If an A/D converter has a zero error a0 and a gain error g0, the following voltages of the rising edge and the falling edge are provided:
The method is based on the formulation or formation of sums over defined measurement interval. The rising and falling values from time t=T0 to t=T0+T1 are given by the following.
Next, the sum ΣS and the difference ΔS of the two integration results are given by following.
T0 and T1 can now be selected in this embodiment so that the following relations hold:
Based on the curves in
Therefore the following may be provided for ΣS and ΔS as:
where g0 is a dimensionless number that indicates the gain. When g0=1 in the gain error is zero, that is, the gain of the A/D converter is ideal. The product is the gain g0 u0 times the swept area of the input signal uin. The value a0 has the dimension of volts and returns the zero-point error.
For desired values, the following are provided:
For a practical implementations, the equations will be mapped to a hardware structure, as shown for example in
Consequently, the values −2.259 and 2 in are stored the memories 69 and 67.
In the example shown, the integration is aided by the summing units 53 and 54 and the multipliers 57 and 58. The summers will each receive a register. In this register, a register content is stored in the form of a binary number. If the summers receives a rising clock edge at a clock input, the voltage applied to a data input of the summing value is added to the register content and saved the result of this addition as the new register contents. At the end of the measurement, the respective register content is multiplied by one of the multipliers 57 and 58 by the constant factor TS. The output signal of the multiplier 58 corresponds to a first sum and Ssteig the output of the multiplier 57 corresponds to a second sum Sfall.
The at the clock input of the summing elements 53 and 54 corresponds to the clock CLK, and hence the sampling rate of the A/D converter 4, the stored value in the memory is equal to the period of the clock CLK.
In further not shown embodiments, the summing elements 53 and 54 are operated at a higher frequency than the CLK and therefore a value stored in the memory 591 corresponding to Ts is smaller than the period length of CLK.
In one implementation, the clock inputs of the multipliers 58, 57, 68, adders 61, 65, the divider units 60, 601, 66 and the subtracter 65 are supplied with a clock having a lower frequency as CLK. In the embodiment shown, the circuits receive a clock signal only once during a measurement and, in particular in one example, when the first and second phases are over. For this purpose, a counter is provided in the control circuit 52, which counts up to the end of the second phase.
The integrating described herein may be accomplished by way of digital integration techniques. That is, an accumulation of products from respective signal values and the time interval from the previous signal value.
The embodiments shown in the figures, in some embodiments, the time interval between two additions is constant in the same as TS. For this reason, it is possible to initially add all the values to be added in succession to a register content to subsequently multiply the contents of register with TS. This can be illustrated with instructions in pseudo-code:
begin {
Register Contents: = 0;
from (t = T0) to (t ≥ T1 − tclk) Loop {t: = t + tclk; Register Contents: =
register contents
+ out (t);} end loop;
result of integration = register contents * tclk;
end}
out (t) denotes the digital value that is output from the Q output of the AD converter, and the tclk period length of the clock CLK.
The single multiplication in the foregoing as compared to a multiple multiplying has the advantage that little power is consumed because usually a multiplication consumes more power than an addition.
In other embodiments, the addition is not carried out periodically at equidistant points in time, but also at non-equidistant times. In this case, the respective output of the A/D converter 4 is multiplied by the time difference to the previous time of calculation. The results of the multiplications are added to one another. The following pseudo-code will illustrate this:
begin {
register Contents: = 0;
from (t = T0) to (t ≥ T1 TABT) Loop {t: = t + TABT; Register
Contents: = register
contents + E * TABT;} end loop;
resolved of integration = register contents;
end}
The TABT refers to the time difference from the preceding sampling time. If the time points are non-equidistant to each other, the followed varies TABT.
However, the latter method of calculation may be used for both equidistant points in time as well as non-equidistant consecutive time points.
The implementations provided provide the determination of the gain error and rounding errors. When the values for these parameters are determined, these values can include quantization by the analog to digital converter and rounding errors. To minimize these rounding errors, it can be useful in certain embodiments, for an A/D converter, for example, to select a value other than zero for T0 to start measuring something later.
An embodiment of the method can be summarized as follows:
Certain embodiments have the following properties:
Further exemplary examples have the following properties:
1. The tested A/D converter is fed with the falling and rising edges of an exponential function.
2. The amplitude of the exponential signals is known.
3. The arrangement comprises at least one register, wherein the A/D converter the falling edges of output value of the are accumulated.
4. The arrangement includes at least one register, wherein the A/D converter the rising edges of output value of the are accumulated.
5. The arrangement includes a control unit, which controls the procedure. In particular, the control unit determines whether the data on the rising or falling edge is to be processed, as well as the points in time at which the accumulation begins and ends.
6. The arrangement includes a number of computing units, for forming sums, differences, quotients, and products.
7. The arrangement includes a processor (central processing unit (CPU)), and the least part of the functional aspects of the computing units can be mapped into the processor in the form of a software program and executed by the CPU.
Although various exemplary embodiments of the invention have been disclosed, it will be apparent to those skilled in the art that various changes and modifications can be made which will achieve some of the advantages of the invention without departing from the spirit and scope of the invention. It will be obvious to those reasonably skilled in the art that other components performing the same functions may be suitably substituted. It should be mentioned that features explained with reference to a specific figure may be combined with features of other figures, even in those cases in which this has not explicitly been mentioned. Further, the methods of the invention may be achieved in either all software implementations, using the appropriate processor instructions, or in hybrid implementations that utilize a combination of hardware logic and software logic to achieve the same results. Such modifications to the inventive concept are intended to be covered by the appended claims.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
4354177, | Nov 07 1980 | SCHLUMBERGER SYSTEMS AND SERVICES, INC | Method and apparatus for calibrating an analog-to-digital converter for a digital-to-analog converter test system |
5623263, | Oct 20 1995 | National Science Council | 4th-order sigma-delta modulator with leapfrog topology |
5631646, | Jul 05 1994 | Telefonaktiebolaget LM Ericsson | Method for determination of errors in analogue-digital conversion |
7551666, | Feb 13 2004 | Panasonic Corporation | Wireless communications system and wireless digital receiver for use therein |
7808411, | Sep 30 2008 | Infineon Technologies AG | Method and circuit for digitizing with improved resolution |
7839314, | Feb 15 2006 | University of Westminster | Satellite radio navigation receiver |
8706445, | Jul 22 2009 | Advantest Corporation | Measurement apparatus, program, recording medium, and measurement method |
20090007661, | |||
20090058705, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 01 2016 | Infineon Technologies AG | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
May 06 2019 | PTGR: Petition Related to Maintenance Fees Granted. |
Mar 13 2023 | REM: Maintenance Fee Reminder Mailed. |
Aug 28 2023 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Jan 07 2023 | 4 years fee payment window open |
Jul 07 2023 | 6 months grace period start (w surcharge) |
Jan 07 2024 | patent expiry (for year 4) |
Jan 07 2026 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jan 07 2027 | 8 years fee payment window open |
Jul 07 2027 | 6 months grace period start (w surcharge) |
Jan 07 2028 | patent expiry (for year 8) |
Jan 07 2030 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jan 07 2031 | 12 years fee payment window open |
Jul 07 2031 | 6 months grace period start (w surcharge) |
Jan 07 2032 | patent expiry (for year 12) |
Jan 07 2034 | 2 years to revive unintentionally abandoned end. (for year 12) |