DIGITAL-TO-ANALOG CONVERSION

Abstract: D/A-conversion of a Gray coded digital input signal is performed according to an inventive recursive Gray code-to-analog conversion algorithm. According to the recursive algorithm, the Gray code bits of the digital input are successively applied in the recursions of the algorithm, one Gray code bit for each recursion, and the analog output signal is generated by recursively updating an intermediate signal. In each recursion, the intermediate signal is selectively inverted in dependence on the particular Gray code bit that is applied in the recursion. The selective inversion of the intermediate signal is an inherent property of the Gray code-to-analog algorithm, and it is a key factor to reduce the accumulation of errors in a D/A-conversion. In a D/A-converter architecture based on the algorithm, the accumulation of offset errors will be low. Furthermore, the fact that the signal inversion is digitally controlled enables high precision implementations, further improving the performance of the D/A-converter.

Description: DIGITAL-TO-ANALOG CONVERSION TECHNICAL FIELD OF THE INVENTION The present invention generally relates to digital-to-analog conversion, and more specifically to cyclic and pipeline digital- to-analog conversion. BACKGROUND OF THE INVENTION A digital-to-analog (D/A) converter is a circuit on the borderline between the digital domain and the analog domain which acts as an intermediary in the exchange of information between the two domains. As the name indicates, a D/A-converter converts or transforms digital input signals to analog output signals, and is normally used for converting digital information in the form of combinations of two-level digits or bits into quantized analog information. D/A-converters are found in numerous applications of all modern technologies. They are widely used in different fields of electronics and communication. The performance evaluation of a D/A-converter with regard to accuracy and distortion is normally based on the magnitude of the error generated in the D/A-conversion. In general, all D/A-converters suffer from e.g. offset errors due to imperfections in the circuit realizations of the converters. These offset errors severely influence the behavior and performance of conventional D/A-converters . In particular, in conventional cyclic D/A-converters and pipeline D/A-converters using regular binary code, the offset errors propagate and accumulate in a strictly increasing manner during a conversion, thus limiting the accuracy of the converter and increasing the distortion. In addition, relatively large differential and integral non-linearities are introduced. SUMMARY OF THE INVENTION The present invention reduces these and other drawbacks of the prior art . It is a general object of the present invention to provide a D/A- converter which substantially reduces the accumulation of errors during a conversion, compared to conventional D/A-converters . It is a further object of the invention to provide a D/A- converter which has high accuracy and low sensitivity to circuit realization imperfections. In particular, it is an object of the invention to provide a cyclic D/A-converter with high accuracy and low accumulation of errors, as well as a high accuracy pipeline D/A-converter. Another object of the invention is to provide a method for converting a digital input signal into an analog output signal such that low accumulation of offset errors is obtained. These and other objects are solved by the invention as defined in the accompanying claims . In accordance with a general inventive concept, a digital input signal, provided in the form of Gray code, is converted into a quantized analog output signal according to an inventive Gray code-to-analog conversion algorithm. Preferably, the Gray code- to-analog algorithm is a recursive algorithm with a predetermined number of recursive steps, generally equal to the number of Gray code bits of the digital input. According to the recursive algorithm, the Gray code bits of the digital input are successively applied in the recursive steps of the algorithm, one Gray code bit for each recursive step, and the analog output signal is generated by recursively updating an intermediate analog signal. In each recursive step, the intermediate analog signal is selectively inverted in dependence on the particular Gray code bit that is applied in that recursive step. The analog output signal is defined as the intermediate signal of the last recursive step. The selective inversion of the intermediate signal is an inherent property of the Gray code-to-analog algorithm according to the invention, and it is a key factor to considerably reduce the accumulation of errors in a D/A-conversion. Since the input Gray code bits normally vary between the discrete states 0 and 1 more or less randomly, offset errors generated in the conversion will sometimes be added to and sometimes subtracted from the accumulated error. Consequently, the errors will generally not accumulate in an increasing manner, and the total accumulated error in a D/A-conversion according to the invention will lie substantially closer to zero than in a corresponding conventional D/A-conversion. In a D/A-converter architecture based on the Gray code-to-analog algorithm according to the invention, the accumulation of errors will generally be very low, leading to high tolerance to circuit realization imperfections. In particular, the Gray code-to-analog algorithm according to the invention is applied to and implemented in cyclic D/A-converters and pipeline D/A-converters . In a cyclic D/A-converter, the algorithm is implemented by using a single functional block, and the input bits are applied to this block cyclically to generate the analog output signal. In a pipeline D/A-converter, the algorithm is implemented sequentially by using a number of functional stages to process the input bits such that each input bit has its own dedicated hardware. In the latter case, the recursiveness of the algorithm is smeared out, in space, in a sequential manner. In cyclic D/A-conversion, an intermediate analog signal is cyclically updated in response to the Gray code bits of the digital input until a final analog output signal is generated. According to the inventive algorithm, in each cycle of updating the intermediate signal, the Gray code bit applied in that cycle determines whether or not the intermediate analog signal is inverted . A pipeline D/A-converter comprises a number of cascaded stages, and in pipeline D/A-conversion, an intermediate analog signal is updated through these stages in a pipelined manner in response to the Gray code bits of the digital input until a final analog output signal is generated. Each stage is responsive to a respective one of the input bits, and the input bits are successively applied to the stages of the converter, one bit for each stage, in a discrete- ime sequence. According to the inventive algorithm, in each pipeline stage, the Gray code bit applied to that stage determines whether or not the intermediate analog signal is inverted. The fact that the selective signal inversion is digitally controlled, i.e. determined by the Gray code bits of the digital input, enables high precision implementations which further improve the performance of the inventive D/A-converter. The D/A-conversion according to the invention offers the following advantages: - high accuracy and low distortion - low accumulation of offset errors,- - low sensitivity to circuit imperfections; and - good dynamic performance . Other advantages offered by the present invention will be appreciated upon reading of the below description of the embodiments of the invention. BRIEF DESCRIPTION OF THE DRAWINGS The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however- as well as other features and advantages thereof will be best understood by reference to the detailed description of the specific embodiments which follows, when read in conjunction with the accompanying drawings, wherein: Fig. 1 is a schematic diagram illustrating the basic principle of a conventional binary code cyclic D/A- converter (prior art) ; Fig. 2 is a schematic diagram illustrating the basic principle of a conventional binary code pipeline D/A- converter (prior art) ,- Fig. 3 is a schematic flow diagram of a method for converting a digital input signal into an analog output signal in accordance with the invention; Fig. 4 is a schematic block diagram illustrating the basic principle of a cyclic D/A-converter according to the invention; Fig. 5 is a circuit diagram of a fully differential realization of a cyclic D/A-converter in accordance with a first preferred embodiment of the invention,- Fig. 6 is a timing diagram illustrating clock pulses ' that are utilized in the realization of Fig. 5; Fig. 7A-C are reduced circuit diagrams of the fully differential realization of Fig. 5 at different clock phases ,- Fig. 8 is a schematic block diagram illustrating the basic principle of a pipeline D/A-converter according to the invention,- Fig. 9 is a circuit diagram of a fully differential realization of a pipeline D/A-converter in accordance with a second preferred embodiment of the invention; Fig. 10 is a timing diagram illustrating clock pulses that are utilized in the realization of Fig. 9; Fig. 11A-B are reduced circuit diagrams of the fully differential pipeline stage, shown in Fig. 9, at different clock phases; Fig. 12 is a schematic diagram illustrating the transformation of bits of binary code into Gray code bits; Fig. 13 is a circuit diagram of an illustrative fully differential realization of a cyclic D/A-converter in accordance with an alternative embodiment of the invention; and Fig. 14 is a timing diagram illustrating the clock signals that are utilized in the D/A-converter realization of Fig. 13. DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION The basic principles according to the present invention are generally applicable to D/A-converters, and particularly to D/A- converters that are subjected to accumulation of errors during a conversion. However, in this disclosure, the invention will mainly be described with reference to embodiments relating to cyclic D/A- converters, and pipeline D/A-converters . These specific embodiments of the invention are merely given as illustrative examples, and the invention is not limited thereto. For a better understanding of the present invention it is useful to begin by explaining the principle and operation of conventional cyclic D/A-converters and pipeline D/A-converters, that are based on regular binary code. Conventional cyclic and pipeline D/A-conversion based on regular binary code In order to avoid misconceptions, the following definition of regular binary code will be used throughout the disclosure. In regular binary code, numbers are expressed as linear combinations of powers of 2 : N Number = ∑ b( i ) ' 2 N_1 « 1 = 1 where i and N are integers, and b(i) represents a two-level digit (the i-th bit) . The integer N indicates the number of bits, and index i indicates the bit position. A coded number is normally represented as a sequence of bits, where the leftmost bit (i=l) of the sequence is the most significant bit (MSB) , and the rightmost bit (i=N) is the least significant bit (LSB) . Hereinafter, regular binary code will simply be referred to as binary code. In general, a cyclic D/A-converter utilizes the same functional components cyclically to convert a digital input signal into an analog output signal. A cyclic D/A-converter normally has a single digital input terminal, and an analog output terminal. In such a D/A-converter, the input bits of the digital input signal are successively applied, one bit for each cycle, to the digital input terminal of the converter, and an intermediate analog signal is cyclically updated in response to the input bits until the final analog output signal is generated. Fig. 1 is a schematic diagram illustrating the basic principle of a conventional cyclic D/A-converter which is based on binary code. The binary code cyclic D/A-converter shown in Fig. 1 comprises the following functional components: a first switch 4, an adder/subtractor 5, a second switch 6, an amplifier 7 with a gain factor equal to 0.5, and a sample/hold circuit 8. Clock signals are normally utilized to control the operation of the cyclic D/A-converter, i.e. functional components thereof. These" clock signals are generated by a conventional clock signal generator (not shown) . Consider, as a general example, an N-bit cyclic D/A-converter. Accordingly, the digital input signal comprises N input bits b b (i), where i goes from N to 1. Note that the b b (N) designates the least significant bit (LSB) and b b (l) the most significant bit (MSB). The input bits b b (i) are successively applied to the digital input terminal (indicated by the dotted line) of the cyclic D/A-converter, and a conversion starts with the LSB and ends with the MSB. The subscript b indicates that the digital input is given in binary code. The actual D/A-conversion starts by connecting the first switch 4 to ground, thus defining an initial analog signal V b (N+l) which is equal to zero. The first switch 4 is also connected to the adder/subtractor 5 which receives the initial analog signal V b (N+l)=0. The input bit, in this case b b (N), currently applied to the cyclic D/A-converter determines whether a reference signal Vr is added to or subtracted from the initial analog signal V b (N+l) . More specifically, the currently applied input bit b b (N) controls the second switch 6 such that either the reference signal Vr or its inverse -Vr will be switched into connection with the adder/subtractor 5 and subtracted from the initial analog signal . The output signal of the adder/subtractor 5 is sent to the amplifier 7 which amplifies the signal by a factor of 0.5. The output signal of the amplifier 7 is defined as an intermediate analog signal V b (N). This intermediate analog signal V b (N) is sampled by the sample/hold circuit 8. Now, the first switch 4 is connected to the output of the sample/hold circuit 8, thus closing the loop and enabling signal circulation. At this point, the intermediate signal V b (N) sampled and held by the sample/hold circuit 8, is released and passed to the adder/subtractor 5, and the next input bit b b (N-l) is applied to the digital input terminal. This input bit b b (N-l) determines whether the reference signal Vr or its inverse -Vr is added to the intermediate signal V b (N). The output signal of the adder/subtractor 5 is amplified in the amplifier 7 to generate an updated intermediate analog signal V b (N-l) associated with the input bit b b (N-l). Once again, the sample/hold circuit 8 samples and holds the output signal of the amplifier 7. In each cycle of the cyclic D/A-converter, the intermediate signal is updated by means of the adder/subtractor 5, the digitally controlled second switch 6 and the amplifier 7. In general, an updated intermediate signal V b (i) is generated based on the previous intermediate signal V b (i+1) and the current input bit b b (i) . The first switch 4 is connected to the output of the sample/hold circuit 8 during all cycles, and the operation continues until the most significant bit (MSB) has been applied to the cyclic D/A-converter. Then the output signal of the amplifier 7 or the output signal of the sample/hold circuit 8 is extracted, switched out of the converter loop, as the final analog output signal of the cyclic D/A-converter. A new cyclic D/A-conversion is started by once again connecting the first switch 4 to ground. With the intention of briefly explaining the principle and operation of a conventional pipeline D/A-converter based on regular binary code, reference will now be made to Fig. 2. The binary code pipeline D/A-converter 10 is a discrete-time N-bit D/A-converter which comprises a number, N, of signal processing stages that are connected in cascade (in series) . For illustrative purposes, all stages are not shown explicitly. In general, each stage has an analog input terminal, an analog output terminal and a digital input terminal . The analog output terminal of a stage is connected to the analog input terminal of the following stage. Each stage is responsive to a respective one of the input bits b b (i) , also referred to as the i-th MSB, of the digital input signal. In operation, the input bits b b (i) are successively applied to the stages of the converter, one bit for each stage, in a discrete-time sequence, and an intermediate analog signal V b (i) is updated by the signal processing stages of the converter in a pipelined manner until a final analog output signal V b (l)=V bout is generated in the last stage. By definition, when the last stage has generated its analog output signal V b (l), the D/A-conversion is completed. The signal processing stages of the binary code pipeline D/A- converter are typically controlled by non-overlapping clock signals, such as Φ λ and Φ 2 shown in Fig. 2, in combination with some sort of sample-and-hold circuitry provided in each stage. This ensures discrete- ime operation of the converter. If, as an example, stage i receives the i-th MSB to generate the intermediate analog signal V b (i) on clock phase Φ 2 , then stage (i-l) receives the (i-l) -th LSB to generate the intermediate analog signal V b (i-l) on clock phase Φ x and so on. In Fig. 2 there is also illustrated a more detailed representation of a single stage of the conventional pipeline D/A-converter. The pipeline stage of Fig. 2 basically comprises the following functional components: an adder/subtractor 15, a switch 16, an amplifier 17 with a gain factor equal to 0.5, and a sample/hold circuit 18. The pipeline stage of Fig. 2 operates as follows. The input signal, i.e. the intermediate signal V b (i+1), to the i-the stage is passed to the adder/subtractor 15. The input bit b b (i) applied to the i-th stage controls the switch 16 such that either the reference signal Vr or its inverse -Vr will be switched into connection with the adder/subtractor 15 and subtracted from the input signal V b (i+l) . The output signal of the adder/subtractor 15 is sent to the amplifier 17 which amplifies the signal by a factor of 0.5. The output signal of the amplifier 17 is sampled and held by the sample/hold circuit 18. In the next clock phase, the sampled and held signal of the S/H-circuit 18 is released and passed to the next stage as the intermediate signal V b (i) . A pipeline D/A-converter is generally considered to be a high speed converter. In order to fully utilize the high speed " capacity of a pipeline D/A-converter, the converter normally performs a number of D/A-conversions "simultaneously". Once a signal processing stage has updated the intermediate analog signal in response to the input bit of a first digital code value, and transferred the intermediate signal to the next stage, it is ready to receive an input bit of a second digital code value. In this way, the pipeline D/A-converter may simultaneously process input bits of different digital code values in different stages of the converter. This line of operation is made possible because of the discrete-time operation of the pipeline D/A- converter and increases the throughput of the converter. By comparing the conventional cyclic D/A-converter of Fig. 1 and the conventional pipeline D/A-converter of Fig. 2, it will be appreciated that the two types of D/A-converters are very similar to each other. The cyclic D/A-converter of Fig. 1 comprises the same functional components as the pipeline stage of Fig. 2. The main difference is that the cyclic converter uses the components cyclically, whereas the pipeline converter uses several duplicated stages of these components in a pipelined manner. In fact, both the binary code cyclic D/A-converter of Fig. 1 and the binary code pipeline D/A-converter of Fig. 2 can be summarized by the same algorithm. This algorithm is defined by the following equations: V b (N + 1) = 0 V b (i) = - - (v b (i + 1) - (-l) bb<i) - V r ) , i = N, N - 1 ,1 (1.1) V bout = V b (l ) - where b b (i) denotes the i-th MSB of the digital input signal. N represents the number of bits of the digital input, and i is an integer value ranging from N to 1. Note that b b (l) designates the MSB and b b (N) the LSB. The subscript b indicates that the digital input is in the form of binary code. V b (i) represents the intermediate signal associated with the i-th MSB, and V r is _ predetermined reference signal . By iterating eq. (1.1) until i=l, the following expression is obtained: b h (i) -1) V,bout Vv,(D ■ Σ V,. : ι . 2 ) 2 1 It is evident from eq. (1.2) that the analog output V^^ is proportional to the binary digital input bits . When the digital input bit is 1, a weighted reference is added to the analog output, whereas when the digital input bit is 0, a weighted reference is subtracted from the analog output. The weighting is determined by the bit position as indicated in eq. (1.2) . In order to more easily understand the operation of conventional binary code cyclic and pipeline D/A-converters, an illustrative example of an ideal 4-bit D/A-conversion will be described with reference to Figs. 1 and 2 and eq. (1.1) . In this particular example, assume that the digital input signal is equal to 0110, given in binary code with the leftmost bit as the MSB, and the rightmost bit as the LSB. Furthermore, assume that the reference signal corresponds to a voltage of 1.0 V and that the analog signals also are expressed in terms of voltage. The intermediate signal V b (i) will change in each recursion/iteration according to the recursive formula of eq. (l.l), where i goes from 4 to 1. The final analog output signal is defined as V b (l). The D/A- conversion starts by defining the initial analog signal V b (N+l) as V b (5) = 0 V. Digital input: 0110. Applying the 4-th MSB, i.e. the LSB, i=4 : b b (4) = 0, and V b (4) = 0.5 ■ (0 - (-1)° • 1.0) = 0.5 • (0-(1.0)) = -0.5 V Applying the 3-rd MSB, i=3 : ~~ b b (3) = 1, and V b ( 3 ) = 0 . 5 • ( - 0 . 5 - ( - 1 ) 1 • 1 . 0 ) = 0 . 5 • ( - 0 . 5 - ( - 1 . 0 ) ) = 0 . 25 V Applying the 2-nd MSB, i=2 : b b (2) = 1, and V b (2) = 0.5 • (0.25 - (-1) 1 • 1.0) = 0.5 • (0.25- ( -1.0) ) = 0.625 V Applying the MSB, i=l: b b (l) = 0, and V b (l) = 0.5 • (0.625 - (-1)° • 1.0)=0.5 • (0.625-1.0) = -0.1875 V. Accordingly, with a reference voltage of 1.0 V corresponding to a nominal full scale level, the digital input 0110 was converted into the quantized analog output signal of -0.1875 V. It should be noted that the conventional D/A-converter performing the above illustrative D/A-conversion is bipolar, i.e. the analog output signal may represent positive as well as negative voltages. With the conditions given in the example given above, the voltage of the quantized analog output signal may lie in the range between -0.9375 V (when the digital input code is 0000) and +0.9375 V (when the digital input code is 1111) with a resolution of 0.125 V. However, conventional cyclic and pipeline D/A-converters based on binary code suffer from high sensitivity to offset errors caused by circuit realization imperfections. In practical D/A-converter realizations, offset errors originate from e.g. the DC offset in the circuit and clock induced charge injections. Of course other types of errors such as low-frequency noise are generally also produced in the conversion. Anyway, in generating the intermediate analog signal V b (i) (where i goes from N to 1), an error ΔV b (i) will be generated. The errors generated in a conversion will propagate through and accumulate in the conventional D/A-converter. Referring to eq. (1.1) above with consideration to the error produced in generating each intermediate signal, the following equation results.- 1 v h ( i ) V, (i + 1) - (-1) b ,. (i ) v r + Δv b (i: N, N - 1 1 2 : ι . 3 : Because of the structure of the conventional binary code cyclic and pipeline D/A-converters, the errors will accumulate in a strictly increasing manner. This can be seen by iterating equation (1.3) down until i=l, with the following result: V bout = V b (l) = -∑ — ~ • V r + ∑ — • ΔV b (i). (1.4) i = ι . i = ι The total accumulated error in the final analog output signal for a conventional N-bit cyclic or pipeline D/A-converter based on binary code, is given by: N l AV b∞lt = _ — ■ ΔV„(i). (1.5! 1 = 1 ^ Since errors due to offset generally have the same sign, these errors are truly accumulated, limiting the accuracy and increasing the distortion of conventional binary code cyclic and pipeline D/A-converters . D/A-conversion according to the invention The general idea according to the present invention is to perform digital-to-analog conversion of a digital input signal into a quantized analog output signal according to an inventive Gray code-to-analog conversion algorithm. In D/A-converter architectures based on the Gray code-to-analog conversion algorithm according to the invention, the accumulation of errors during a conversion will be low. In particular, when compared to corresponding conventional binary code D/A-_ converters, the error accumulation will be substantially reduced. Before giving a specific example of a Gray code-to-analog conversion algorithm according to the invention, the concept of Gray code will be explained briefly. Gray code In general, Gray code is known as a sequence of bit patterns in which adjacent patterns differ in only a single bit. The Gray code structure is most easily understood by studying table I given below. Table I illustrates 4-bit Gray code to the left, 4- bit binary code in the middle, and corresponding decimal numbers to the right . Table I . In both types of code, Gray code and binary code, the rightmost bit is the least significant bit (LSB) . It should however be realized that in Gray code, no specific bit weights can be assigned to the bits of the coded values . Gray code is sometimes described as a reflection code, because all the positions of a Gray code value except for the leftmost bit position (MSB) appear as a reflection around a reflection line, whereas the leftmost position changes logical state. Gray code has been used in connection with D/A-converters in the" prior art : U.S. Patent No. 5,424,740 issued to Chang et al . on June 13, 1995 discloses a D/A-converter which has a generator responsive to a digital input signal which is encoded into Johnson code or Gray code for generating a control signal decoded from the Johnson code, a set of switches being connected to the generator and responsive to the control signal, and first and second terminals connecting therebetween a resistor device with a plurality of nodes connected to the switches. A node voltage is obtained between one of the nodes and one of the terminals to serve as an analog signal. The D/A-converter of Chang et al . uses Johnson code or Gray code as an intermediate step to generate a control signal . U.S. Patent No. 4,591,826 issued to Seiler on May 27, 1986 discloses a D/A-converter ladder using Gray code so as to have inherent monotonicity . The German patent application DE 34 13 456 Al discloses a D/A- converter with a Gray code input signal. The D/A-converter is a convolution-type converter which uses Gray code to facilitate the convolution. Each bit stage is assigned a convolutional current amplifier with a summing curve. In addition, no sample-and-hold functionality is associated with the bit stages, and the convolution-type converter of DE 34 13 456 Al is not at all relevant to D/A-architectures, such as cyclic and pipeline architectures, in which a sample-and-hold is required. The German patent application DE 34 00 061 Al discloses a D/A- converter for sine/cosine-signals which has switches that are controlled by Gray codes. A preferred Gray code-to-analog conversion algorithm according to the invention Now, the basic principles of the present invention will be explained with reference to an illustrative and preferred form of an inventive Gray code-to-analog conversion algorithm. The inventive algorithm given below is customized for cyclic and pipeline D/A-converters, but it should be understood that the general idea according to the invention is not limited thereto. Assume that the digital input signal has a predetermined integer number, N, of Gray code bits b g (i), where i is an integer ranging from N to 1, and that the analog output signal V gout is generated by using a predetermined reference signal V r . According to a preferred embodiment of the invention, a Gray code-to-analog algorithm is defined by the following equations: V g (N + 1) = 0; V goUt = g (l ) . where b g (i) denotes the i-th MSB of the digital input signal. Note that b g (l) designates the MSB and b g (N) the LSB. The subscript g indicates that the digital input is in the form of Gray code. V g (i) represents an intermediate analog signal associated with the i-th MSB. The intermediate analog signal V g (i), the analog output signal V gout and the reference signal V r can e.g. be representative of charges, voltages or currents depending on the chosen circuit realization. By iterating eq. (2.1) until i=l, the following expression is obtained: N 1 ∑ b 5 ( ]l V g ut = V g (l) = ∑ — (-1)' " 1 V„. ( 2 . 2 ; ι = ι 2 1 Notice that the digital inputs are Gray codes instead of binary codes and that the formula of eq. (2.1) differs significantly from that of eq. (1.1) for conventional binary code D/A- conversion. For a better understanding of the inventive Gray code-to-analog algorithm, an illustrative example of an ideal 4-bit Gray code-to analog conversion will now be described with reference to eq. (2.1) . In order to be able to compare conventional binary code D/A-conversion and the Gray code-to-analog conversion according to the invention, the Gray code value that corresponds to the binary code 0110 used as digital input in the example of the conventional binary code D/A-conversion above, is chosen as digital input. By using Table I above, it can be seen that the Gray code value 0101 corresponds to the binary code value 0110. Hence, the Gray code input and the binary code input are consistent with each other, although they are given in different types of code. In addition, consider the same reference voltage, 1.0 V, as in the example with the ideal binary code D/A- conversion above. Also, assume that the analog signals are expressed in terms of voltages in this particular example. The intermediate signal V g (i) will change in each recursion/iteration according to the recursive formula of eq. (2.1), where i goes from 4 to 1. The final analog output signal is defined as V g (l) . The analog output signal may represent positive as well as negative voltages, and the voltage of the quantized output signal may lie in the range between -0.9375 V (when the digital input code is 0000) and +0.9375 V (when the digital input code is 1000) with a resolution of 0.125 V. The D/A-conversion according to the invention starts by defining the initial analog signal V g (N+l) as Digital input (in the form of Gray code) : 0101. Applying the 4-th MSB, i.e. the LSB, i=4 : b g (4) = 1, and V g (4) = 0.5 • (0 - l.O)-(-l) 1 = 0.5 ■ (-l.O)-(-l) = 0.5 V Applying the 3-rd MSB, i=3 : b g (3) = 0, and V g (3) = 0.5 • (0.5 - l.O)-(-l) 0 = 0.5 • (-0.5M = -0.25 V Applying the 2-nd MSB, i=2 : b g (2) = 1, and V (2) = 0.5 • (-0.25 - l.O)-(-l) 1 = 0.5 • (-1.25)-(-l) - 0.625 V Applying the MSB, i=l: b g (l) = 0, and V (1) = 0.5 • (0.625 - l.O)-(-l) 0 = 0.5 • (-0.375)-! = -0.1875 V Accordingly, with a reference voltage of 1.0 V corresponding to a nominal full scale level, the Gray code input 0101 was converted into the quantized analog output signal of -0.1875 V, which is exactly the same output voltage as in the conventional binary code D/A-conversion of the binary code input 0110. In general, it can be shown that the Gray code D/A-conversion according to the invention has the same ideal characteristics with regard to the analog output signal as a corresponding conventional binary code D/A-conversion. By definition, binary code to Gray code conversion is given by: b (l) = b b (l) ; (2.3) b g (i) = b b (i) Θ b b (i - 1) , (2 < i < N) where the subscript g designates Gray code bits, the subscript b designates binary code bits and θ denotes the exclusive OR operation. A simple calculation reveals that: ,_ ,b b (i)θb,,(i-l) b h (ι) + b b (ι-l) (-1) (2.4) Therefore, the following relation results: (2.5) Inserting eq . ( 2 . 5 ) into eq . ( 2 . 2 ) gives : N b (ι ) N 1 ∑ b, (:) (-1) V gout . = V g (1) = -i ■ v,. = - ∑ V V, bout ( 2 . 6 ! 1 Σ = 1 - Δ _ ( - 1)1 1 = 1 2 1 It is seen from relation (2.6) that the Gray code D/A-conversion according to the invention and the conventional binary code D/A- conversion are mathematically consistent with each other. However, the propagation of offset errors in the Gray code D/A- conversion according to the invention differs completely from that in conventional binary code D/A-conversion. Offset errors due to imperfections in the circuit realization, will normally be generated in all D/A-converters . These offset errors may originate from e.g. DC-offsets and low-frequency noise in the circuit. As an example, in switched-capacitor realizations, the main contribution to the offset is normally due to clock induced charge injections in the clock controlled switches and other DC- offsets. Assume that an error ΔV g (i) will be produced in generating the intermediate analog signal V g (i) (where i goes from N to 1) . In D/A-converters based on the Gray code-to-analog conversion algorithm according to the preferred embodiment of the invention, the offset error will not necessarily accumulate in an increasing manner. Referring to eq. (2.1) above with consideration to the error Δv g (i) produced in generating each intermediate signal, the following equation results: U ) V g (i) V g (i + 1) V + Δv g (i) b„ -i) (2.7) By iterating equation (2.7) down until i=l, the result will be N 1 ∑ b- ) V g. out v g ( D = ∑ T <-ι (-IF 1 • ΔV i) 1 = 1 A 2 X ( 2 . 8 ! Therefore, the total accumulated error in the final analog output signal of an N-bit D/A-conversion according to the Gray code-to- analog algorithm of the invention, is given by: 1 ∑ b g ( 3 ) ΔV.gout Σ - ( ~ 1)' ' • ΔV g (i) : 2 . 9 ! 2 1 Now, compare the total accumulated error for the conventional binary code D/A-conversion and the inventive Gray code D/A- conversion by studying eq. (1.5) and eq. (2.9) . In order to more easily compare eq. (1.5) and eq. (2.9) first combine eq. (2.5) and eq . (2.9): Because the offset errors generally have the same sign independent of i, and assuming that Δv g (i) = ΔV b (i! the following relation results : ΔV gout = Strictly mathematically speaking, equation (2.11) shows that the absolute value of the total accumulated error in an N-bit Gray code D/A-conversion according to the invention is smaller than or equal to the absolute value of the total accumulated error in a corresponding N-bit binary code D/A-conversion. In practice, however, the Gray code accumulated error will generally be considerably smaller than the binary code accumulated error. It is useful to give a brief and intuitive explanation of this fact. According to the Gray code-to-analog conversion algorithm of the invention, in each recursion or iteration, the intermediate analog signal is selectively inverted depending on the particular Gray code bit that is applied in the recursion (iteration) . This selective inversion of the intermediate signal is an inherent property of the Gray code-to-analog algorithm according to the invention, and it is a key factor to considerably reduce the accumulation of errors in a D/A-conversion. Since the input Gray code bits normally vary between the discrete states 0 and 1 more or less randomly, offset errors generated in the conversion will sometimes be added to and sometimes subtracted from the accumulated error at that point. Consequently, the errors will generally not accumulate in an increasing manner, and the total accumulated error in a Gray code D/A-conversion according to the invention will lie substantially closer to zero than in a corresponding conventional binary code D/A-conversion. Accordingly, with regard to the sensitivity to circuit imperfections, D/A-converters based on the Gray code-to-analog algorithm according to the invention have a significant advantage over its binary code counterparts. For illustrative purposes, the error accumulation in a Gray code D/A-conversion according to the invention and the error accumulation in a corresponding binary code D/A-conversion, will be compared in the following. Consider, as an example, the 4-bit binary code 0110, and the corresponding 4-bit Gray code 0101. Since 4-bit code values are considered in this particular example, N is equal to 4. The offset error in generating each intermediate signal is assumed to be +0.02 V. Binary code accumulated error: According to equation (1.5) for a conventional binary code D/A- conversion, the total accumulated error in converting the binary code 0110 (b b (l)=0, b b (2)=l, b b (3)=l, b b (4)=0) will be: Δ, 0.02 + - • 0.02 0.02 + — • 0.02 = 0.01875V. 4 16 Gray code accumulated error: According to equation (2.9) for a Gray code D/A-conversion according to the invention, the total accumulated error in converting the Gray code 0101 (b g ( l ) =0 , b g ( 2 ) =l , b g ( 3 ) =0 , b g ( 4 1 ) will be : ΔV 0 + 1 + 0 gout - - (-1)° 0.02 + (-1) 0 + 1 • 0.02 + -1) 0.02 + 2 0 + 1 + 0 + 1 1 1 1 1 (-1) 0.02 - • 0.02 - • 0.02 - - ■ 0.02 + — • 0.02 16 2 4 8 16 = 0.01 - 0.005 0.0025 + 0.00125 = 0.00375V. It can be seen that I ΔV gout I < I ΔV bout I . The Gray code error accumulation according to the invention is generally considerably lower than the binary code error accumulation, because the sign associated with the errors are positive as well as negative. This is a property directly related to the selective signal inversion of the inventive Gray code-to-analog algorithm, resulting in the b,(i) term (-1) in eq. (2.9! Fig. 3 is a schematic flow diagram of a method for converting a digital input signal into an analog output signal in accordance with a preferred embodiment of the invention. It is assumed that the digital input signal has a predetermined integer number, N, of Gray code input bits b g (i), where i is an integer ranging from N to 1. The D/A-conversion according to the invention basically works as follows. In step A, the variable i is initially set to N+l, and an initial analog signal V g (N+l)=0 is defined. Next, in step B, the variable i is decremented by 1. In step C, the input bit b g (i) is applied in the D/A-conversion and an intermediate analog signal V g (i) is generated/updated according to the following expression: ■ [v g ( i + 1 ) v.j . { _ 1)b , In step C, the intermediate analog signal V g (i) is generated/updated by subjecting the previous intermediate signal V g (i+1) to a subtraction of a predetermined reference signal V r , subsequently to an amplification by 0.5 and selectively, depending on the applied Gray code bit b g (i), to a signal inversion. At this point i is equal to N, indicating that the initial analog signal V (N+l) is used as previous intermediate signal and that the input bit b g (N), i.e. the Gray code LSB, is applied in the D/A-conversion. If i is equal to 1, i.e. if all the bits of the digital input signal have been applied (YES) at this point, step D, the D/A-conversion is completed and the procedure ends by defining the analog output signal V gouC as the final intermediate signal V g (l) in step E. However, the digital input signal generally comprises more than a single bit such that N is greater than 1 (NO) , and the procedure returns to step B. In step B, the variable i is once again decremented by 1. At this point i=N-l, indicating that the next input bit b g (N-l) is to be applied in the D/A-conversion. The intermediate analog signal is updated, and the procedure continues in accordance with the flow diagram until i=l and all N Gray code bits have been applied in the D/A-conversion. A new D/A-conversion is initiated by once again defining the initial analog signal in step A, and starting to apply the Gray code input bits, one by one. It should be understood that the specific order of the amplification and the selective signal inversion in step C generally is not critical for the D/A-conversion according to the invention. It is possible to perform the selective inversion before the amplification. The D/A-conversion method described above with reference to Fig. 3 is preferably implemented in a cyclic manner or in a pipelined manner. Cyclic D/A-conversion is performed by using the same hardware cyclically, whereas pipeline D/A-conversion is performed by using dedicated hardware for each input bit, all as will be explained in more detail below. In addition, it should be understood that hybrids of cyclic and pipeline D/A-conversion are possible. Accordingly, the above method is alternatively implemented by a combination of the cyclic approach and the pipeline approach. It has been shown that the accumulation of errors will generally be very low in a D/A-conversion based on the Gray code-to-analog algorithm according to the invention. In the following, hardware implementations of the preferred form of the Gray code-to-analog conversion algorithm into cyclic and pipeline D/A-converters will be described. Implementations of the inventive Gray code-to-analog algorithm into cyclic D/A-converters Fig. 4 is a schematic block diagram illustrating the basic principle of a cyclic D/A-converter according to the invention. The cyclic D/A-converter 20 basically comprises the following functional components: a first switch 24, an adder/subtractor 25, an inverter 26, a second switch 27, an amplifier 28 with a gain factor equal to 0.5, and a sample/hold circuit 29. There is also provided a digital input terminal (indicated by the dotted line) for successively receiving the Gray code bits, one Gray code bit for each cycle of the cyclic D/A-converter 20. Non-overlapping clock signals are normally utilized to control the operation of the cyclic D/A-converter, i.e. functional components thereof. These clock signals are generated by a conventional clock signal generator (not shown in Fig. 4) . Consider, as a general example, an N-bit cyclic D/A-converter. Accordingly, the digital input signal comprises N Gray code input bits b g (i), where i goes from N to l. Note that b g (N) designates the least significant bit (LSB) and b g (l) the most significant bit (MSB) . The input bits b g (i) are successively applied to the digital input terminal of the cyclic D/A-converter, and a conversion starts with the LSB and ends with the MSB. The actual D/A-conversion starts by connecting the first switch 24 to ground, thus defining an initial analog signal V g (N+l) which is equal to zero. The first switch 24 is also connected to the adder/subtractor 25 which receives the initial analog signal V g (N+l)=0. The adder/subtractor 25 is also responsive to a reference signal Vr which is subtracted from the initial analog signal V g (N+l). The Gray code input bit, in this case b g (N), currently applied to the cyclic D/A-converter determines whether the output signal of the adder/subtractor 25 or its inverse is fed forward in the converter. The signal inversion is carried out by the signal inverter 26. The second switch 27 is controlled by the applied Gray code bit such that either the output signal of the adder/subtractor 25 or its inverse will be switched into connection with the amplifier 28. The amplifier 28 amplifies the incoming signal by a factor of 0.5. The output signal of the amplifier 28 is defined as an intermediate analog signal V g (N) associated with the input bit b g (N) . This intermediate analog signal V g (N) is sampled by the sample/hold circuit 29. Next, the first switch 24 is connected from ground to the output of the sample/hold circuit 29, thus closing the converter loop and enabling signal circulation. At this point, the intermediate signal V g (N) sampled and held by the sample/hold circuit 29, is released and passed to the adder/subtractor 25. The adder/subtractor 25 subtracts the reference signal Vr from the intermediate signal V g (N), and the signal inverter 26 performs a signal inversion of the added/subtracted signal. The next Gray code bit b g (N-l) is applied to the digital input terminal and it determines whether the output signal from the adder/subtractor 25 or its inverse, coming from the signal inverter 26, is switched into connection with the amplifier 28. The signal fed forward by the second switch 27 is amplified in the amplifier 28 to generate an updated intermediate analog signal V g (N-l) associated with the input bit b g (N-l) . Once again, the sample/hold circuit 29 samples and holds the output signal of the amplifier 28. In each cycle of the cyclic D/A-converter according to the invention, the intermediate signal is updated by means of the adder/subtractor 25, the signal inverter 26, the digitally controlled second switch 27 and the amplifier 28. In general, an updated intermediate signal V g (i) is generated based on the previous intermediate signal V g (i+1) and the current Gray code input bit b g (i) . The first switch 24 is connected to the output of the sample/hold circuit 29 in all cycles, and the operation continues until the most significant bit (MSB) has been applied to the cyclic D/A- converter. Then the output signal of the amplifier 28 or the output signal of the sample/hold circuit 29 is extracted, switched out of the converter loop, as the final analog output signal of the cyclic D/A-converter 20. A new cyclic D/A- conversion is started by once again connecting the first switch 24 to ground. The cyclic D/A-converter 20 of Fig. 4 is a direct realization of the inventive Gray code-to-analog algorithm defined above in eq. (2.1). The initial analog signal V g (N+l) is defined as zero by connecting the first switch 24 to ground. Then, in each cycle of updating the intermediate signal V g (i), a reference signal Vr is subtracted from the previous intermediate signal V g (i+1), and the resulting signal is selectively, depending on the Gray code bit b g (i) applied in that cycle, subjected to a signal inversion and amplified by 0.5. The conversion continues until V g (l) has been generated . It should be realized that alternatively, the amplifier 28 may be provided in front of the inverter 26 and the second switch 27. It should also be understood that the cycles of the cyclic D/A- converter are somewhat separated in time from each other, and at the same time temporarily electrically isolated from each other. This line of operation is ensured by the sample/hold functionality and the control of the circuit by non-overlapping clock signals, as will be explained in more detail below with reference to Figs . 5 and 6. Fig. 5 is a circuit diagram of an illustrative fully differential switched-capacitor realization of a cyclic D/A-converter in accordance with a first preferred embodiment of the invention. When dealing with fully differential realizations, dual signals, also referred to as differential signals, are considered. A differential signal has two signal parts of the same magnitude but opposite polarity. The circuit implementation of Fig. 5 realizes the Gray code-to-analog algorithm of eq. (2.1) with respect to differential signals. For reasons of simplicity, the differential signals will be referred to by the reference characters of the corresponding single-ended signals as they are defined in eq. (2.1) . The cyclic D/A-converter 30 basically comprises two operational amplifiers (OPAMPs) 31 and 32, capacitors CI, C2 and C3 , a switch arrangement 33 and a number of control switches. Furthermore, there is also a digital input terminal (not shown) for successively receiving the Gray code bits, one Gray code bit for each cycle of the cyclic D/A-converter. The operational amplifier 31 and the capacitors CI and C2 operate as a first sample-and- hold amplifier (SHA) under the control of appropriate control switches. The first SHA has a gain factor of 0.5 in its hold mode. The second operational amplifier 32 and the capacitors C3 operate as a second unity gain sample-and-hold amplifier (SHA) under the control of appropriate control switches. In addition to the control switches associated with the operation of the sample- and-hold amplifiers, there is also provided feedback switches S f and output switches S out . The cyclic D/A-converter 30 further comprises a clock signal generator (not shown) which generates a set of clock signals Φ ε , Φ λ and Φ 2 of predetermined timing and predetermined signal values. Fig. 6 is a timing diagram illustrating the clock signals Φ ε , Φ : and Φ 2 that are utilized in the D/A-converter realization of Fig. 5. The operation of the cyclic D/A-converter 30 is controlled by these clock signals in that the clock signals control the feedback switches S £ , the output switches S out and the control switches . The feedback switches S £ are controlled by Φ^Φ^ and the output switches S out are controlled by Φ ε . In the figures, a specific control switch is referred to by the reference character of its corresponding clock signal. In this realization example, a switch is turned on when the corresponding clock signal goes high, and turned off when the corresponding clock signal goes low. Referring to Fig. 5, each one of the OPAMPs 31, 32 has two input terminals and two output terminals, and operates with an internal common mode feedback function. The first OPAMP 31 has associated parallel capacitors CI, C2. There is a capacitor CI, and a capacitor C2 selectively connected, via control switches controlled by Φ 2 , in parallel over each pair of input-output ( + to -/- to +) terminals of the first OPAMP 31. The second OPAMP 32 has two associated front capacitors C3 , each of which is connected to a respective one of the input terminals. The switch arrangement 33 has two input terminals and two output terminals and comprises four switches that are controlled by the input Gray code bit b(i) , provided from the digital input terminal, and its logical inverse b(i) . The switch arrangement 33 is configured to selectively, depending on the input Gray code bit, invert the differential signal input thereto by interchanging the signal polarities thereof. All capacitors has the same capacitance. The capacitors CI are selectively connected, via control switches controlled by Φ ε , to ground, and, via feedback switches Sf, to the output terminals of the switch arrangement 33. The capacitors C2 are selectively connected, via switches controlled by Φ 17 to the inverse of the differential reference signal V r , preferably supplied from a conventional signal source (not explicitly shown) . In operation, when the first OPAMP 31 is in an amplify or hold phase, it will have a gain factor equal to 0.5. It should be understood that it is the first OPAMP 31 together with its associated capacitors CI and C2 , forming the first SHA, that give the arrangement the gain factor of 0.5. The first OPAMP 31 and the second OPAMP 32 have control switches controlled by Φ and- Φ 2 , respectively, connected in parallel over the corresponding OPAMP. When closed, the control switches controlled by Φ Λ and Φ 2 short-circuit or reset the first OPAMP 31 and the second OPAMP 32, respectively. This reset enables suppression of the DC-offset in the OPAMPs. In addition, control switches controlled by Φ λ are connected in parallel over the second OPAMP 32 and its associated front capacitors C3. It can be seen that the first SHA is selectively connected, via switches controlled by Φ 2 , to the second SHA, which in turn is directly connected to the switch arrangement 33. The output terminals of the switch arrangement 33 are connected to the output switches S out , and selectively, via the feedback switches S £ , in a feedback line to the capacitors CI of the first SHA. For a better understanding of the fully differential realization of the cyclic D/A-converter 30 shown in Fig. 5, the operation will now be explained in more detail at a number of consecutive clock phases, generally expressed in terms of high phases of the clock signals Φ s , Φ l and Φ 2 . Reference will be made to Figs. 7A-C which are reduced circuit diagrams of the fully differential realization of Fig. 5 at different clock phases. The circuit diagrams of Figs. 7A-C have been reduced to illustrate only those parts of the cyclic D/A-converter 30 that are pertinent at the considered clock phase . Open switches and unconnected elements are generally not illustrated. Fig. 7A illustrates the cyclic D/A-converter at the first clock phase, when Φ s and Φ 1 are high. A conversion starts on clock phase Φ s which coincides with clock phase Φ x . The circuit is initialized by connecting the input capacitors CI to ground such that a zero voltage is sampled onto capacitors CI, thus defining the initial analog signal V g (N+l) . At the same time, the inverse of the reference signal is sampled onto the capacitors C2. Notice that due to the fully differential configuration, the reference^ (not the inverse of the reference) is sample by the negative branch. The first OPAMP 31 in the first SHA is auto-zeroed, and the second SHA, with the second OPAMP 32 and its associated capacitors C3 , is in its hold mode. A Gray code input bit is applied to the switch arrangement 33 such that the voltage held by the second SHA is inverted or interchanged in dependence on the bit input. In the cyclic D/A-converter 30, a new D/A- conversion is initialized in the first clock phase. However, at the same time the most significant bit, referred to as MSB' in Fig. 6, of a previous digital input code is applied to the switch arrangement 33. Now, since Φ s is high, the output switches S out are closed and the selectively inverted output signal of the switch arrangement 33 is forwarded as the analog output signal V gou ' =V g ( 1 ) ' associated with the previous digital input code. The feedback from the output terminals of the switch arrangement 33 to the capacitors CI of the first SHA is cut off by opening the feedback switches S £ , in order to prevent the previous D/A- conversion from effecting the new initialized D/A-conversion. Fig. 7B illustrates the cyclic D/A-converter 30 at the second clock phase, when Φ 2 is high. The first SHA is in its hold mode. Remember that the inverse of the reference was previously sampled onto the capacitors C2. Now, the charge on the capacitors C2 is distributed equally between the parallel capacitors CI and C2 , thus dividing the reference voltage by two (the first SHA realizes an amplification by 0.5) . The output signal of the first SHA, i.e. the first OPAMP 31 and its associated capacitors CI and C2 , is sampled by the capacitors C3. Accordingly, the voltage 1 sampled onto capacitors C3 is equal to — - (-V r ) . The second OPAMP 32 in the second SHA is auto-zeroed and the output switches S out are now open. Fig. 7C illustrates the cyclic D/A-converter 30 during the next clock phase, when Φ 1 is high once again. As indicated in Fig. 6, the first Gray code input bit, the LSB, of the current digital input code, is applied to the circuit. Now, i=N. The second SHA is in its hold mode, and the signal held by the second SHA is passed to the switch arrangement 33 and selectively inverted thereby in dependence on the applied input bit b(N), the LSB. The output signal, also referred to as the intermediate analog signal V (N) , of the switch arrangement 33 is therefore equal to: 1 V g (N) = - • [- V r + ΔV(N)] • (-l) b(N) (3.1) where ΔV(N) represents the error voltage in generating the intermediate signal Vg(N) . The error voltage Δv(N) is assumed to represent all errors introduced to the signal during a conversion cycle, starting at V g (N+l)=0 and ending at V g (N) defined above. This error voltage is representative of a number of different types of errors . Control switches provided at high impedance nodes normally inject a small charge, a so called clock induced charge, which gives rise to a DC-offset error voltage. In a differential realization, these offset errors will ideally exclude each other. However, switch pairs that are asymmetric with regard to clock induced charge injection will generate a DC- offset. In general, there is also a DC-offset inherent in each OPAMP, although this offset voltage is minimized by resetting the OPAMPs. In the following, all errors together, including low- frequency noise as well, produced in a cycle generating the intermediate signal V g (i), are represented by the error voltage ΔV(i) . The output switches S out are still open, but now, the feedback switches S £ are closed such that the intermediate signal V g (N) from the switch arrangement 33 is sampled onto the capacitors CI . At the same time, the inverse of the reference signal is sampled onto the capacitors C2 , and the first OPAMP 31 in the first SHA is auto-zeroed. In the next clock phase, when Φ 2 is high (see Fig. 7B once again), the first SHA is in its hold mode. During the preceding clock phase (see Fig. 7C) the intermediate signal V (N) was sampled onto the capacitors CI and the inverse of the reference was sampled onto the capacitors C2. Now, the sum of the charges on the capacitors CI and C2 is distributed equally between capacitors CI and C2. In other words, the first SHA realizes an amplification by 0.5. The output signal of the first SHA, i.e. the first OPAMP 31 and its associated capacitors CI and C2 , is sampled by the capacitors C3. Accordingly, the voltage sampled 1 1 onto capacitors C3 is equal to — • V g (N) V The second OPAMP 2 2 32 in the second SHA is auto-zeroed, and the output switches S out are open. Next, on clock phase Φ ι; as indicated in Fig. 6, the second Gray code input bit, the 2-nd LSB, of the current digital input code, is applied to the circuit. Referring once again to Fig. 7C, with i=N-l, the second SHA is in its hold mode, and the signal held by the second SHA is passed to the switch arrangement 33 and selectively inverted thereby in dependence on the applied input bit b(N-l), the 2-nd LSB. The output signal, also referred to as the intermediate analog signal V g (N-l), of the switch arrangement 33 is therefore equal to: Vg(N - 1) = - 2 ■ (Vg(N) - V r r + ΔV(N - 1) ) • (-l) biN - λ) (3.2! where Δv(N-l) represents the error in generating the intermediate signal V g (N-l) . The output switches S out are still open, and the feedback switches S £ are closed such that the intermediate signal V g (N-l) from the switch arrangement 33 is sampled onto the capacitors CI . The inverse of the reference signal is sampled onto the capacitors C2. In addition, the first OPAMP 31 in the first SHA is auto-zeroed. In the next clock phase, when Φ 2 is high (see Fig. 7B) , the first SHA is in its hold mode. During the preceding clock phase, the intermediate signal V (N-l) was sampled onto the capacitors CI and the inverse of the reference was sampled onto the capacitors C2. Now, the sum of the charges on the capacitors Cl and C2 is distributed equally between capacitors Cl and C2 , and the output signal of the first SHA is sampled by the capacitors C3. Accordingly, the voltage sampled onto capacitors C3 is equal to 1 V g (N 1) V The second OPAMP 32 in the second SHA is 2 auto- zeroed, and the output switches S out are still open. The operation of the cyclic D/A-converter continues, alternating between the circuit configuration of Fig. 7C at clock phase Φ } and the circuit configuration of Fig. 7B at clock phase Φ 2 , until the MSB of the current digital input code is applied to the D/A- converter. The following relationship (identical to eq. 2.7) holds true in generating the intermediate signal V g (i) : V_(i) = - b(i) V g (i + l) V, + ΔV(i) -1) (3.3! 9 2 At the time when the MSB of the current input code is applied to the circuit, the reset clock signal Φ ε is active, coinciding with clock phase Φ, . The MSB input determines whether or not the switch arrangement 33 inverts the signal held by the second SHA. Now, the output switches are closed, forwarding the selectively inverted output signal of the switch arrangement 33 as the analog output signal V gout =V g (l) associated with the current digital input code. The analog output signal is defined as: Vgout = „(1) - H V q (2) V + ΔV(1) (-Db(l) • ΔV(i) (3.4! The last term of V gout represents the total accumulated error in the final analog output signal. The feedback from the switch arrangement 33 to the capacitors Cl of the first SHA is cut off by opening the feedback switches S £ , thus preventing the current D/A-conversion from effecting a following D/A-conversion. The fact that the control switches controlled by Φ 2 between the first SHA and the second SHA are open, makes it possible to initialize a further D/A-conversion at the same time as the current D/A- conversion is being completed. The initialization of the circuit is performed by connecting the input capacitors Cl to ground such that a zero voltage is sampled onto capacitors Cl . At the same time, the inverse of the reference signal is sampled onto the capacitors C2, and the first OPAMP 31 in the first SHA is auto- zeroed. A D/A-conversion using the N-bit cyclic D/A-converter according to Fig. 5, takes N clock cycles. It should be understood that the signal inversion executed in the switch arrangement 33 utilizes the digital information of the bit input, and decides whether or not the input signal to the switch arrangement 33 should be inverted based on this information. The signal inversion is preferably implemented as a digitally controlled polarity shift. In the fully differential realization of Fig. 5 the inversion is performed by interchanging the polarity of the differential signal by using the digitally controlled switch arrangement 33. In this way, the signal inversion is realized with very high accuracy. The high precision of the signal inversion further improves the accuracy of the cyclic D/A-converter according to the invention. In addition, since the signal inversion only requires very simple clock controlled switches, the hardware overhead is kept to a minimu . It is possible to modify the fully differential circuit realization described above in connection with Figs. 5, 6 and- 7A-C by changing the specific configuration of the switches and capacitors. The number of switches and capacitors may be altered. The sample-and-hold functionalities, the amplification by 0.5, as well as the inversion are also possible to realize in alternative forms. The clock signals that control the switches and circuits of the cyclic D/A-converter will of course be adjusted in accordance with these modifications of the circuit realization. It should also be understood that single-ended D/A-converter realizations based on the fully differential realization of Fig. 5 are easily obtained. Implementations of the inventive Gray code-to-analog algorithm into pipeline D/A-converters Fig. 8 is a schematic block diagram illustrating the basic principle of a pipeline D/A-converter according to the invention. The pipeline D/A-converter according to the invention is a discrete-time N-bit D/A-converter which comprises an integer number, N, of signal processing stages that are connected in cascade (in series) . Accordingly, the digital input signal comprises N Gray code input bits b g (i), where i goes from N to 1. Note that b g (N) designates the least significant bit (LSB) and b g (l) the most significant bit (MSB). For illustrative purposes, all stages are not shown explicitly. In general, each stage has an analog input terminal, an analog output terminal and a digital input terminal. The analog output terminal of a stage is connected to the analog input terminal of the following stage. The digital input terminal of each stage is responsive to a respective one of the input bits b g (i), also referred to as the i-th MSB, of the digital input signal. Furthermore, there is also provided a second analog input terminal that is responsive to a predetermined reference signal . The actual pipeline D/A-conversion starts by connecting stage N to ground, thus defining an initial analog signal V g (N+l) which is equal to zero. Next, the digital input code is applied to the. D/A-converter, and the input bits b g (i) of the code word are successively applied to the signal processing stages of the converter, one bit for each stage, in a discrete-time sequence, and an intermediate analog signal V g (i) is updated by the stages of the converter in a pipelined manner until a final analog output signal V g (l)=V gout is generated in the last stage. By definition, when the last stage has generated its analog output signal V g (l), the D/A-conversion is completed. The signal processing stages of the pipeline D/A-converter are typically controlled by non-overlapping clock signals, such as Φ λ and Φ 2 shown in Fig. 8, in combination with some sort of sample- and-hold circuitry provided in each stage. This ensures discrete- time operation of the converter. The input bits are preferably applied with a separation of half a clock cycle between successive bits. In other words, the operation of the stages of the pipeline D/A-converter are somewhat separated in time from each other, as well as temporarily electrically isolated from each other. If, as an example, stage i receives the i-th MSB to generate the intermediate analog signal V g (i) on clock phase Φ 2 , then stage (i-l) receives the (i-l) -th LSB to generate the intermediate analog signal V g (i-1) on clock phase Φ^ and so on. These clock signals are generated by a conventional clock signal generator (not shown) . In Fig. 8 there is also illustrated a more detailed representation of a single stage 40 of the inventive pipeline D/A-converter. The pipeline stage 40 of Fig. 8 basically comprises the following functional components: an adder/- subtractor 45, an inverter 46, a switch 47, an amplifier 48 with a gain factor equal to 0.5, and a sample/hold circuit 49. The pipeline stage 40 operates as follows-. The output terminal of the preceding stage is connected to the adder/subtractor 45 which receives, in a given clock phase, the intermediate analog signal V g (i+1) of the previous stage. The adder/subtractor 45 is also responsive to a reference signal Vr which is subtracted from the intermediate analog signal V g (i+1). The Gray code input bit, in this case b g (i), applied to the pipeline stage 40 determines whether the output signal of the adder/subtractor 45 or its inverse is fed forward. The signal inversion is carried out by the signal inverter 46. The switch 47 is controlled by the applied Gray code bit such that either the output signal of the adder/subtractor 45 or its inverse will be switched into connection with the amplifier 48. The amplifier 48 amplifies the forwarded signal by a factor of 0.5. The amplified signal is sampled and held by the sample/hold circuit 49. The sampled and held signal of the S/H-circuit 49 is defined as an intermediate analog signal V g (i) associated with the input bit b g (i). In the next clock phase, the intermediate signal V g (i) sampled and held by the sample/hold circuit 49, is released and passed to the following stage (stage i-l) . It should be understood that the pipeline D/A-converter of Fig. 8 is a direct realization of the inventive Gray code-to-analog algorithm defined above in eq. (2.1) . However, the amplifier 48 may alternatively be provided in front of the inverter 46 and the switch 47. In addition, the amplifier 48 and the S/H-circuit 49 may be integrated into a single unit such as a sample-and-hold amplifier. In order to fully utilize the high speed capacity of the pipeline D/A-converter according to the invention, the converter normally performs a number of D/A-conversions "simultaneously". Once a signal processing stage has updated the intermediate analog signal in response to the input bit of a first digital code value, and transferred the intermediate signal to the next stage, it is ready to receive an input bit of a second digital code value. In this way, the pipeline D/A-converter may simultaneously process input bits of different digital code values in different stages of the converter. This line of operation increases the throughput of the converter so that the pipeline DAC generates an analog output signal every clock cycle. Fig. 9 is a circuit diagram of a fully differential pipeline D/A- converter in accordance with a second preferred embodiment of the invention. The overall structure of the pipeline D/A-converter of Fig. 9 is very similar to that of Fig. 8. The pipeline D/A- converter of Fig. 9 comprises an integer number, N, of cascaded signal processing stages, in which the analog output terminal of one stage is connected to the analog input terminal of the following stage. The digital input signal comprises N Gray code input bits b g (i), where i goes from N to 1, and b g (N) designates the least significant bit (LSB) and b g (l) the most significant bit (MSB) . The actual pipeline D/A-conversion starts by connecting stage N to ground, thus defining an initial analog signal V g (N+l) which is equal to zero. Next, the digital input code is applied to the converter, and the input bits b g (i) of the digital input code are successively applied to the individual signal processing stages of the converter, one bit for each stage, in a discrete-time sequence, and an intermediate analog signal V g (i) is successively updated by the signal processing stages of the converter in a pipelined manner until a final analog output signal V g (l)=V gout is generated in the last stage. The pipeline D/A-converter of Fig. 9 also comprises a clock signal generator (not shown) for generating a set of clock signals Φ x and Φ 2 of predetermined timing and predetermined signal values. Fig. 10 is a timing diagram illustrating the clock signals Φ x and Φ 2 , which control the operation of the pipeline D/A-converter. In order to process the digital input code properly, there is provided a delay of half a clock cycle between successive input N-i bits, starting from the LSB. The notation z 2 indicates a delay N - i by clock cycles (N > i > 1) . Furthermore, the clock phases between successive stages should be "interchanged", i.e. if stage i generates the intermediate analog signal V g (i) on clock phase Φ 2 , then stage (i-l) generates the intermediate analog signal V (i-l) on clock phase Φ λ . In Fig. 9 there is also illustrated a more detailed representation of a single pipeline stage 50. The pipeline stage 50 is a fully differential realization. When dealing with fully differential realizations, differential signals are considered. The pipeline D/A-converter according to Fig. 9 is based on the Gray code-to-analog algorithm of eq. (2.1) with respect to differential signals. For reasons of simplicity, the differential signals will be referred to by the reference characters of the corresponding single-ended signals. The pipeline stage 50 of Fig. 9 will now be described in detail. It basically comprises the following functional components: an operational amplifier (OPAMP) 51, capacitors Cl and C2 , a switch arrangement 52, a number of control switches and output switches S out . The output switches S out are controlled by Φ 2 . The operational amplifier 51 and the capacitors Cl and C2 operate as a sample- and-hold amplifier (SHA) under the control of appropriate control switches. In the figures, a specific control switch is referred to by the reference character of its corresponding clock signal . In this realization example, a switch is turned on when the corresponding clock signal goes high, and turned off when the corresponding clock signal goes low. The OPAMP 51 has two input terminals and two output terminals, and operates with an internal common mode feedback function. Furthermore, the OPAMP 51 has associated parallel capacitors Cl and C2. There is a capacitor Cl, and a capacitor C2 selectively connected, via control switches controlled by Φ 2 , in parallel over each pair of input-output terminals of the OPAMP 51. In addition, the OPAMP 51 has control switches controlled by Φ j^ in parallel over the OPAMP. When closed, these control switches controlled by Φ short-circuit or reset the OPAMP 51. This reset enables suppression of the DC-offset in the OPAMP 51. All capacitors has the same capacitance . The capacitors Cl are selectively connected, via switches controlled by Φ ι; to the inverse of the differential reference signal V r . The reference signal is preferably supplied via a second analog input terminal from a conventional signal source. The capacitors C2 are selectively connected, via switches controlled by Φ 1# to the output terminals of the preceding stage, thus ready to receive the intermediate signal V g (i+1). In operation, when the SHA, i.e. the OPAMP 51 together with its associated capacitors Cl and C2 , is in its amplify or hold phase, it will have a gain factor equal to 0.5. The switch arrangement 52 has two input terminals and two output terminals and comprises four switches that are controlled by the input Gray code bit b(i) and its logical inverse b(i) . The switch arrangement 52 is configured to selectively, depending on the Gray code input bit, invert the differential signal that is input thereto by interchanging the signal polarities of this differential signal . The SHA is connected to receive the intermediate signal V g (i+l) from the preceding stage, and the inverse of the predetermined reference signal. In its hold phase, the SHA realizes an amplification by 0.5. The SHA is also connected directly to the switch arrangement 52 which selectively inverts the output signal of the SHA. The selectively inverted signal of the switch arrangement is passed as the intermediate signal V g (i) to the next stage . For a better understanding of the fully differential realization of Fig. 9, the operation of the pipeline stage 50 will now be explained at consecutive clock phases, generally expressed in terms of high phases of the clock signals Φ x and Φ 2 . Reference will now be made to Figs. 11A-B which are reduced circuit diagrams of the fully differential pipeline stage 50 of Fig. 9, at different clock phases. The circuit diagrams of Figs. 11A-B have been reduced to illustrate only those parts of the pipeline D/A-converter stage 50 that are pertinent at the considered clock phase. Open switches and unconnected elements are generally not illustrated. Fig. 11A illustrates the pipeline D/A-converter stage 50 at the clock phase when Φ λ is high. The input capacitors C2 are connected to the output terminals of the preceding stage such as to sample the intermediate signal V g (i+1). Also, the inverse of the reference signal V r is sampled onto the capacitors Cl . Notice that due to the fully differential configuration, the reference (not the inverse of the reference) is sample by the negative branch. The OPAMP 51 in the SHA is auto-zeroed. Fig. 11B illustrates the cyclic D/A-converter 30 at the clock phase when Φ 2 is high. Now, the sum of the charges on the capacitors Cl and C2 is distributed equally between capacitors Cl and C2 , thus dividing the sum of these charges by two. In other words, the SHA realizes an amplification by 0.5. The output signal of the SHA, i.e. the OPAMP 51 and its associated 1 capacitors Cl and C2 , is equal to V g (i + 1) - V r + ΔV(i) where ΔV(i) represents the error in generating the intermediate signal V g (i). For simplicity, it is assumed that this error voltage is introduced at the OPAMP 51. The error voltage ΔV(i) is representative of a number of different types of errors such as clock induced charge injections and other DC-offsets, as well as low-frequency noise. The error produced in a particular stage is not necessarily identical to that of the other stages. It is however assumed that part of the error is correlated and that part is ununcorrelated, such that Δv(i) = ΔV ε + ΔV r (i) , where ΔV S is a systematic error that is identical to all stages, and Δv r (i) is a random error that is individual for each stage. The systematic error ΔV ε may of course vary between different D/A- converters . The random error ΔV r (i) has an expectance value equal to zero. In the following, for reasons of simplicity, it is assumed that the effect of random errors on the D/A-conversion will be zero, and therefore ΔV(i) = Δv ε . The output signal of the SHA, including the systematic error Δv ε , is received by the switch arrangement 52. The Gray code input bit b(i) and its inverse b(i) are applied to the switch arrangement 52, and the switch arrangement 52 inverts or interchanges the differential signal held by the SHA, in dependence on the applied input bit as indicated in Fig. 11B. The output switches S out are closed and the selectively inverted output signal of the switch arrangement 52 is forwarded to the next stage as the intermediate signal V g (i) . The intermediate signal V g (i) is equal to: ) V„(i) = 1 + 1) V. Δv b(ι -l) [4.1) To realize a complete N-bit D/A-conversion, all N stages are utilized, and the output signal V g (l) of the last stage, i.e. stage 1, is given by: b(l) V g (l) = V g (2) v.. + Δv -1) As mentioned above, the output signal V g (l) of the last stage is defined as the final analog output signal associated with the digital input code. The last term in eq. (4.2) represents the total accumulated error in the final analog output signal . The total accumulated error for the fully differential N-bit pipeline D/A-converter of Fig. 9 is consistent with the total accumulated error for the fully differential N-bit cyclic D/A- converter of Fig. 5, and also with the accumulated error given by eq. (2.9) . Of course, single-ended pipeline D/A-converter realizations based on the fully differential pipeline realization described above in connection with Figs. 9, 10 and 11A-B, are easily obtained. It is important to understand that hybrids of cyclic and pipeline D/A-converters are possible. In an alternative embodiment of the present invention, k cyclic m-bit D/A-converters are connected in series to form a hybrid D/A-converter of k times m bits, where k and m are positive integers. By way of example, four 2-bit cyclic D/A-converters according to the invention are cascaded in a pipelined manner to form an 8-bit D/A-converter. Naturally, the digital input signal to a Gray code-to-analog D/A- converter according to the invention is in the form of Gray code. However, if the D/A-converter according to the invention is to be used in a system having equipment designed to work with regular binary code, it is necessary to convert the binary code signals into signals of Gray code. Consequently, in this case, the inventive D/A-converter further incorporates, as an input stage, means for digitally transforming or converting a signal of regular binary code into a Gray coded input signal. Fig. 12 is a schematic diagram illustrating an illustrative transformation of 4 bits of regular binary code into 4 bits of Gray code by using simple digital gates XOR-1, XOR-2, XOR-3. Bits, here denoted b b (i), of regular binary code are transformed into Gray code bits, here denoted b g (i), according to following relation which is identical to eq. (2.3) above: b g (D b b (l) ; 14.3! b g (i) b b (i) θ b b (i - 1) , (2 < i < N) where N is the number of bits of the code values, and θ denotes the exclusive OR operation. In the example of Fig. 12, N is equal to 4. The binary code MSB, b b (l), transforms into the Gray code MSB, b g (l), without any change. The remaining binary code bits are transformed into Gray code bits by using the corresponding digital XOR-gates. This digital transformation does not introduce any offset errors. Accordingly, by using the above digital binary code-to-Gray code transformation in combination with a Gray code- to-analog D/A-conversion according to the invention, it is possible to perform a D/A-conversion of an input signal initially given in binary code, and still obtain an analog output signal with a low level of accumulated of offset errors. Alternative implementation of a cyclic D/A-converter Fig. 13 is a circuit diagram of an illustrative fully differential switched-capacitor realization of a cyclic D/A- converter in accordance with an alternative embodiment of the invention. The circuit implementation of Fig. 13 realizes the Gray code-to-analog algorithm of eq. (2.1) with respect to differential signals. Just as the realization of Fig. 5, the realization of Fig. 13 is of switched-capacitor type with digitally controlled switches. In a D/A-conversion, a subtraction of the reference and an amplification by a factor of 0.5 are performed. It should also be understood that the Gray code bits of the digital signal determines whether or not the inverse function of the algorithm is realized. The cyclic D/A-converter 60 basically comprises a first operational amplifier (OPAMP) 61, a second operational amplifier 62, a switch arrangement 63, associated capacitors (C, 2C) , a number of control switches and a pair of output switches . Each one of the OPAMPs 61, 62 has two input terminals and two output terminals, and operates with an internal common mode feedback function. In Fig. 13, the sample-and-hold circuitry which comprises the operational amplifier 61, the associated capacitors C and 2C, the ground connection and the control switches Φ x and Φ 2 is defined as a sample-and-hold amplifier, encircled by dotted lines and indicated in the figure as SHA. The sample-and-hold amplifier (SHA) has a gain factor of 0.5 in its hold mode. Each one of the capacitors 2C (with a capacitance 2 times that of the capacitors C) is connected in parallel over a respective pair of input- output (of opposite signs) terminals of the first operational amplifier 61. Each one of the capacitors (C) is selectively connected, via a respective switch Φ2 , to a respective input terminal of said first operational amplifier 61, and the capacitors (C) are selectively responsive, via respective switches Φ2 , to the differential reference signal Vr and, via respective feedback switches Φl, to a differential feedback signal. There are switches Φl connected in parallel (in the same manner as the capacitors 2C) over the first operational amplifier (61) for selectively resetting it. The second OPAMP 62 with its capacitor (C) is configured as a sample-and-hold circuit (SHC) acting as a unity gain buffer. There are connections between each pair of input-output (+ to -/- to +) terminals, and the associated capacitor (C) is connected over the input terminals of the second operational amplifier 62. The sample-and-hold circuit SHC is selectively connected, via switches Φ2 , to the output terminals of said first operational amplifier 61 for sampling the amplified differential output signal of the sample-and-hold amplifier SHA. Furthermore, there is also a digital input terminal (not shown) for successively receiving the Gray code bits, one Gray code bit for each cycle of the cyclic D/A-converter. The switch arrangement 63 has two input terminals and two output terminals and comprises four switches that are controlled by the input Gray code bit b(i) , provided from the digital input terminal, and its logical inverse b(i) . The switch arrangement 63 is configured to selectively, depending on the input Gray code bit, invert the differential output signal of said sample-and- hold circuit SHC by interchanging the signal polarities of the signal . The selectively interchanged/inverted differential output signal of said switch arrangement (63) is selectively provided-r via the switches Φl, as the differential feedback signal to the input capacitors (C) of the SHA. The cyclic D/A-converter 60 further comprises a clock signal generator (not shown) which generates a set of clock signals Φ out , Φ s , Φ x and Φ 2 of predetermined timing and predetermined signal values . Fig. 14 is a timing diagram illustrating the clock signals Φ out , Φ ε , Φ x and Φ 2 that are utilized in the D/A-converter realization of Fig. 13. The operation of the cyclic D/A-converter 60 is controlled by these clock signals in that the clock signals control the output switches and the control switches. In the figures, a specific control switch is referred to by the reference character of its corresponding clock signal . In this realization example, a switch is turned on when the corresponding clock signal goes high, and turned off when the corresponding clock signal goes low. The operation of the cyclic D/A-converter 60 will now be briefly described. The D/A-conversion starts by resetting the capacitor C at the SHC input at clock phase Φ ε , thus defining the initial analog signal V σ (N+l)=0. This analog signal (feedback signal) is sampled onto the input capacitors C of the SHA through the feedback switches Φ x . At this clock phase, the input capacitors C are grounded on one side, and at the same time, the first OPAMP 61 is resetted. In the next clock phase Φ 2 , the subtraction of the reference V r and the amplification by 0.5 by the SHA are realized. The result is sampled by the SHC, and the LSB input bit determines whether or not the inversion is performed by the switch arrangement 63. Accordingly, the intermediate signal V g (N) is generated according to eq. (2.1) . During the next clock phase Φ x (the digital input is still active), V (N) is sampled onto the input capacitors C of the SHA " through the Φ -switches associated with the input capacitors C, and the first OPAMP 61 is resetted. During the next clock phase Φ 2 , the subtraction of the reference V and the amplification by 0.5 in the SHA are realized. In the same clock phase, the result is sampled by the SHC, and the signal inversion is selectively performed by the switch arrangement 63 in dependence on the 2-nd LSB. Accordingly, the intermediate signal V (N-l) is generated according to eq. (2.1). The operation continues according to eq. (2.1) until the MSB is inputted. The clock pulse Φ out controls the output switches of the cyclic D/A-converter 60, and when Φ out is high, the final analog output signal V gout =V g (l) is extracted from the circuit. Preferably, the extraction of the final analog output signal is performed just prior to starting a new D/A-conversion, as indicated in Fig. 14, where Φ out precedes the other clock signals. In summary, it has been shown that the proposed Gray code D/A- converters are superior to conventional D/A-converters . The new and inventive D/A-converter architectures based on the Gray code- to-analog conversion algorithm according to the invention are well suited for high-accuracy as well as for low-distortion applications . The embodiments described above are merely given as examples, and it should be understood that the invention is not limited thereto. It is of course possible to embody the invention in specific forms other than those described without departing from the spirit of the invention. Further modifications and improvements which retain the basic underlying principles disclosed and claimed herein are within the scope and spirit of the invention.

Claims: CLAIMS 1. A method for converting a digital input signal of a predetermined integer number, N, of bits b(i) into an analog output signal V out by using a predetermined reference signal V r , where i is an integer such that 1 < i < N, c h a r a c t e r i z e d in that the method comprises the steps of: providing the digital input signal in the form of Gray code; and generating the analog output signal according to a Gray code- to-analog algorithm defined by the following equations: V g (N + 1) = 0; V g (i) = v g (i b(i) + 1) - V, ■ ] ■ <- 1) i = N, N - 1, ... ,1; V out = V g (l) . 2. The method according to claim 1, wherein said providing step comprises the step of digitally converting a signal of regular binary code into said Gray coded digital input signal. 3. The method according to claim 1, c h a r a c t e r i z e d in that b (N) designates the least significant bit of the digital input signal, and b(l) designates the most significant bit of the digital input signal. 4. A method for converting a digital input signal of a predetermined integer number, N, of bits b(i) into an analog output signal V out according to a recursive digital-to-analog conversion algorithm, c h a r a c t e r i z e d in that said method comprises the steps Of: providing the digital input signal in the form of Gray code; successively applying the Gray code bits of the digital input signal in the recursive steps of the conversion algorithm, one " Gray code bit for each recursive step,- and generating the analog output signal V out by defining and recursively updating an intermediate signal according to the conversion algorithm, wherein each recursive step of the conversion algorithm comprises the step of selectively, in dependence on the Gray code bit applied in that recursive step, inverting the intermediate signal, and wherein the analog output signal V out is defined as the intermediate signal of the last recursive ste . 5. The method according to claim 4, c h a r a c t e r i z e d in that each recursive step of the conversion algorithm further comprises the step of subjecting the intermediate signal to a subtraction of a predetermined reference signal, to an amplification and to a sample-and-hold operation. 6. The method according to claim 5, wherein said subtraction is performed prior to said selective inversion, and said amplification . 7. The method according to claim 4, c h a r a c t e r i z e d in that the recursive steps of the algorithm are timewisely separated from each other, as well as temporarily electrically isolated from each other. 8. A digital-to-analog (D/A) converter for converting a Gray code digital input signal of a predetermined integer number, N, of bits b(i) into an analog output signal V out by using a predetermined reference signal V r , where i is an integer such that 1 < i < N, c h a r a c t e r i z e d in that said D/A-converter comprises: means for generating the analog output signal according to a Gray code-to-analog algorithm defined by the following equations: V g (N + 1) = 0; V g (i) = - • [v g (i + 1) - V r ] • (-l) b(i) , i = N, N - 1, ... ,1; V 0 ut = V g (l) . 9. The D/A-converter according to claim 8, further comprising means for digitally converting a signal of regular binary code into said Gray coded digital input signal . 10. The D/A-converter according to claim 8, c h a r a c t e r i z e d in that said D/A-converter is a cyclic D/A-converter. 11. The D/A-converter according to claim 8, c h a r a c t e r i z e d in that said D/A-converter is a pipeline D/A-converter. 12. A cyclic digital-to-analog (D/A) converter responsive to a Gray code digital input signal of a predetermined number of input bits for generating an analog output signal, c h a r a c t e r i z e d in that said cyclic D/A-converter (20; 30) comprises: a digital input terminal for successively receiving the Gray code bits,- means (24,25,26,27,28,29; 31, Cl, C2 , 32, C3 , 33) for generating the analog output signal by cyclically updating an intermediate signal, wherein said generating means comprises means (26, 27; 33) for selectively, in dependence on the Gray code bit currently received by the digital input terminal, inverting the intermediate signal. 13. The cyclic D/A-converter according to claim 12, c h a r a c t e r i z e d in that said generating means further comprises means (25,28,29; C2, 31, Cl, C2, 32, C3) for subjecting the intermediate signal to a subtraction of a predetermined reference signal, to an amplification by 0.5 and to a sample-and-hold operation. 14. A cyclic digital-to-analog (D/A) converter responsive to a Gray code digital input signal of a predetermined number of input bits for generating an analog output signal by using a predetermined reference signal, c h a r a c t e r i z e d in that said cyclic D/A-converter (30) comprises : a digital input terminal for successively receiving the Gray code input bits; a sample-and-hold amplifier (31,C1,C2) for selectively sampling a ground signal and the predetermined reference signal, and for holding the ground signal and the reference signal, said sample-and hold amplifier (31,C1,C2) having a gain factor of 0.5 in its hold mode,- and a sample-and-hold circuit (32, C3) for recurrently sampling and holding the output signal of said sample-and-hold amplifier (31,C1,C2) ; means (33) , connected to said digital input terminal, for selectively, in dependence on the Gray code input bit currently received by the digital input terminal, inverting the sampled and held signal of said sample-and-hold circuit (32, C3) ,- a feedback selectively connected from said inverting means (33) to the sample-and-hold amplifier (31,C1,C2) for feeding said selectively inverted signal to said sample-and-hold amplifier (31,C1,C2) which is configured for selectively sampling and holding said selectively inverted signal; and an output switch (S out ) for extracting the selectively inverted signal as the analog output signal when all Gray code input bits have been received and processed. 15. The cyclic D/A-converter according to claim 14, c h a r a c t e r i z e d in that it further comprises a signal generator for generating clock signals that control said sample- and-hold amplifier (31,C1,C2), said sample-and-hold circuit (32, C3), and said output switch (S out ) . _ 16. A cyclic digital-to-analog (D/A) converter for converting a Gray code digital input signal of a predetermined number of input bits into an analog output signal by using a predetermined reference signal, c h a r a c t e r i z e d in that the reference signal is a differential reference signal and said cyclic D/A-converter (30) is a fully differential converter which comprises: a digital input terminal for successively receiving the Gray code input bits; a sample-and-hold amplifier (31,C1,C2) with a gain factor of 0.5 in its hold mode, having a first operational amplifier (31) with two input terminals and two output terminals, first capacitors (Cl) each of which is selectively connected, via a respective switch (Φ2) , in parallel over a respective pair of input-output terminals of said first operational amplifier (31) , and second capacitors (C2) , each of which is selectively connected, via a respective switch (Φ2) , in parallel over a respective pair of input-output terminals of said first operational amplifier (31) , wherein the first capacitors (Cl) are selectively connected via respective switches (Φs) to ground, and the second capacitors (C2) are selectively connected, via respective switches (Φl) , to said differential reference signal for being charged in response thereto, said sample-and-hold amplifier (31,C1,C2) being in its hold mode when said first capacitors (Cl) and said second capacitors (C2) are connected in parallel over said first operational amplifier (31) ; a sample-and-hold circuit (C3,32) having a second operational amplifier (32) with two input terminals and two output terminals, and associated front capacitors (C3) connected to the input terminals of said second operational amplifier (32) , said front capacitors (C3) being selectively connected, via switches (Φ2) to the output terminals of said first operational amplifier (31) for sampling the amplified differential output signal of said sample-and-hold amplifier (31,C1,C2), and switches (ΦlJ_ connected in parallel over respective pairs of input-output terminals of said second operational amplifier (32) for configuring, when closed, the sample-and-hold circuit (32, C3) into a hold mode ; and a switch arrangement (33) connected to said digital input terminal and to the output terminals of said second operational amplifier (32) for selectively, depending on the Gray code input bit currently received by said digital input terminal, interchanging the differential signal held by said sample-and- hold circuit (32, C3); a feedback selectively connected, via respective feedback switches (S £ ) , from said switch arrangement (33) to said first capacitors (Cl) of said sample-and-hold-amplifier (31,C1,C2) for feeding the selectively interchanged differential signal to said first capacitors (Cl) so as to charge said first capacitors in response thereto; switches (Φl) connected in parallel over said first operational amplifier (31) for selectively resetting it; switches (Φ2) connected in parallel over said second operational amplifier (32) for selectively resetting it; output switches (S out ) for extracting the selectively interchanged signal as the analog output signal when all Gray code input bits have been received and processed; and a clock signal generator for generating a set of clock signals of predetermined timing and signal values, wherein said switches (Φl,Φ2,Φs), said feedback switches (S f ) and said output switches (S out ) are controlled by said clock signals. 17. A pipeline digital-to-analog (D/A) converter responsive to a Gray code digital input signal of a predetermined number of input bits for generating an analog output signal, said pipeline D/A- converter having a number of stages connected in cascade, each stage being responsive to an analog input signal and a respective one of the input bits, c h a r a c t e r i z e d in that said pipeline D/A-converter comprises -. means for providing a delay between successive Gray code " input bits; and in that each stage includes : means (45,46,47,48; 51,C1,C2,52) for generating an output signal of the stage in response to the respective Gray code input bit and the analog input signal to the stage, wherein said generating means includes means (46,47; 52) for selectively, in dependence on the respective Gray code input bit, inverting said analog input signal . 18. The pipeline D/A-converter according to claim 17, c h a r a c t e r i z e d in that said generating means further comprises means (45,48; C1,51,C1,C2) for subjecting the analog input signal to a subtraction of a predetermined reference signal, and to an amplification by 0.5. 19. A pipeline stage for a pipeline digital-to-analog (D/A) converter having a number of stages, said pipeline stage (40; 50) being responsive to the analog output signal of a preceding stage of said pipeline D/A-converter, to a predetermined reference signal, and to an input bit of a digital input signal, c h a r a c t e r i z e d in that said pipeline stage (40; 50) comprises : means (45,46,47,48; 51,C1,C2,52) for subjecting the analog output signal of the preceding stage to a subtraction of the predetermined reference signal, selectively, in response to said input bit, to a signal inversion, and to an amplification by 0.5 to generate an analog output signal of said pipeline stage. 20. A pipeline stage for a pipeline digital-to-analog (D/A) converter, said pipeline stage (50) being responsive to an analog input signal, a predetermined reference signal and an input bit of a digital input signal, c h a r a c t e r i z e d in that said pipeline stage (50 ) comprises : a sample-and-hold amplifier (51,C1,C2) for selectively sampling the predetermined reference signal, and the analog input. signal, and for holding the reference signal and the analog input signal, said sample-and-hold amplifier having a gain factor of 0.5 in its hold mode,- and means (52) for selectively, in dependence on said input bit, inverting the output signal of said sample-and-hold amplifier (51,C1,C2) to generate an analog output signal of said pipeline stage . 21. The pipeline stage according to claim 20, c h a r a c t e r i z e d in that it further comprises an output switch (S out ) connected to said inverting means (52) for switching said analog output signal out of the stage, and a signal generator for generating clock signals that control said sample- and-hold amplifier (51,C1,C2), and said output switch (S out ) . 22. A pipeline stage for a pipeline digital-to-analog (D/A) converter, said pipeline stage (50) being responsive to an analog input signal, a predetermined reference signal, and an input bit of a digital input signal, c h a r a c t e r i z e d in that said analog input signal and said reference signal are differential signals, and in that said pipeline stage (50) is a fully differential stage which comprises : a sample-and-hold amplifier (51,C1,C2) with a gain factor of 0.5 in its hold mode, having an operational amplifier (51) with two input terminals and two output terminals, first capacitors (Cl) each of which is selectively connected, via a respective switch (Φ2) , in parallel over a respective pair of input-output terminals of said operational amplifier (51) , and second capacitors (C2) , each of which is selectively connected, via a respective switch (Φ2) , in parallel over a respective pair of input-output terminals of said operational amplifier (51) , wherein the first capacitors (Cl) are selectively connected via respective switches (Φl) to the differential reference signal, and the second capacitors (C2) are selectively connected, via respective switches (Φl) , to the differential analog input " signal for being charged in response thereto, said sample-and- hold amplifier (51,C1,C2) being in its hold mode when said first capacitors (Cl) and said second capacitors (C2) are connected in parallel over said operational amplifier (51) ; a switch arrangement (52) connected to the output terminals of said operational amplifier (51) for selectively, depending on the input bit to the stage, interchanging the differential signal held and amplified by said sample-and-hold amplifier (51,C1,C2); switches (Φl) connected in parallel over said operational amplifier (51) for selectively resetting it; output switches (S out ) connected to said switch arrangement (52) for extracting the selectively interchanged signal as an analog output signal of the stage,- and a clock signal generator for generating a set of clock signals of predetermined timing and signal values, wherein said switches (Φl,Φ2,Φs) and said output switches (S out ) are controlled by said clock signals. 23. A cyclic digital-to-analog (D/A) converter responsive to a Gray code digital input signal of a predetermined number of input bits for generating an analog output signal by using a predetermined reference signal, c h a r a c t e r i z e d in that said cyclic D/A-converter (60) comprises : a digital input terminal for successively receiving the Gray code input bits; a sample-and-hold amplifier (6l,C,2C) for selectively sampling a feedback signal, initially being equal to zero, and the predetermined reference signal, and for holding said feedback signal and the reference signal, said sample-and hold amplifier (61,C,2C) having a gain factor of 0.5 in its hold mode; and a sample-and-hold circuit (62, C) for recurrently sampling and holding the output signal of said sample-and-hold amplifier (61,0,20 ; means (63), connected to said digital input terminal, for selectively, in dependence on the Gray code input bit currently- received by the digital input terminal , inverting the sampled and held signal of said sample-and-hold circuit (62, C) ; a feedback selectively connected from said inverting means (63) to the sample-and-hold amplifier (61,C,2C) for providing said selectively inverted signal as said feedback signal to said sample-and-hold amplifier (61,C,2C); and an output switch (Φ out ) for extracting the selectively inverted signal as the analog output signal when all Gray code input bits have been received and processed. 24. The cyclic D/A-converter according to claim 23, c h a r a c t e r i z e d in that it further comprises a signal generator for generating clock signals that control said sample- and-hold amplifier (61,C,2C), said sample-and-hold circuit (62, C), and said output switch (Φ out ) . 25. A cyclic digital-to-analog (D/A) converter for converting a Gray code digital input signal of a predetermined number of input bits into an analog output signal by using a predetermined reference signal, c h a r a c t e r i z e d in that the reference signal is a differential reference signal and said cyclic D/A-converter (60) is a fully differential D/A-converter which comprises: a digital input terminal for successively receiving the Gray code input bits; a sample-and-hold amplifier (61,C,2C) with a gain factor of 0.5, having a first operational amplifier (61) with two input terminals and two output terminals, first capacitors (2C) each of which is connected in parallel over a respective pair of input- output terminals of said first operational amplifier (61) , and second capacitors (C) , each of which is selectively connected, via a respective switch (Φ2) , to a respective input terminal of said first operational amplifier (61) , wherein the second capacitors (C) are selectively responsive, via respective switches (Φ2) , to said differential reference signal and, via respective feedback switches (Φl) , to a differential feedback signal which initially is equal to zero, for being charged in response thereto,- switches (Φl) connected in parallel over said first operational amplifier (61) for selectively resetting it; a sample-and-hold circuit (62, C) having a second operational amplifier (62) with two input terminals and two output terminals, connections between each pair of input-output terminals, and an associated capacitor (C) connected over the input terminals of said second operational amplifier (62) , said sample-and-hold circuit (62, C) being selectively connected, via switches (Φ2) , to the output terminals of said first operational amplifier (61) for sampling the amplified differential output signal of said sample-and-hold amplifier (61,C,2C); a switch arrangement (63) connected to said digital input terminal and to the output terminals of said second operational amplifier (62) for selectively, depending on the Gray code input bit currently received by said digital input terminal, interchanging the differential output signal of said sample-and- hold circuit (62,C), the selectively interchanged differential output signal of said switch arrangement (63) being selectively provided, via said feedback switches (Φl) , as said differential feedback signal to said second capacitors (C) of said sample-and- hold amplifier (61,C,2C); output switches (Φ out ) f° r extracting the selectively interchanged differential signal as the analog output signal when all Gray code input bits have been received and processed; and a clock signal generator for generating a set of clock signals of predetermined timing and signal values, wherein said switches (Φl, Φ2 ,Φs, Φ out ) are controlled by said clock signals.

Inventors: SIGNELL SVANTE, TAN NIANXIONG, SIGNELL, SVANTE, TAN, NIANXIONG
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON (PUBL)
Application year: 1997
Main classification: H03M1
IPC codes: H03M1