DESC RIPTION
A DIGITAL TO ANALOGU E CONVERTER
TECH NICAL FIELD
The present invention relates to a digital/ analogue converter, in particular to a digital / analogue converter capable of directly driving a load capacitance without the need to provide a buffer amplifier between the converter and the load . Such a converter is known as a "bufferless" converter. Such a converter may be used, for example, for driving matrix columns of a liquid crystal display. A particular application of such a converter is in small display panels for portable applications where it is particularly desirable to minimise power consumption . The invention also" relates to a converter arrangement including such a digital / analogue converter, to a display driver including such a digital / analogue converter, and to a display including such a driver.
BACKGROU ND ART
Figure 1 of the accompanying drawings illustrates a known type of switched capacitor digital/ analogue converter (DAC) for converting an n-bit digital word (or n-bit digital "code") to a corresponding analogue output. The DAC
comprises n-capacitors C 1 , ... , Cn. The DAC further comprises a terminating capacitor CTERM connected between the input of a unity gain buffer 1 and ground . The first electrodes of the capacitors C i , ... , Cn are connected together and to the first terminal of the terminating capacitor CTERM .
The second electrode of each of the capacitors C i , ... , Cn is connected to a respective switch, such as 2 , which selectively connects the second electrode to a first or second reference voltage input Vi or V2 in accordance with the state or value of a corresponding bit of the digital word . The output of the buffer 1 drives a capacitive load CLOAD , for example in the form of a data line or column electrode of an active matrix of a liquid crystal device.
The DAC has two phases of operation, namely a resetting or "zeroing" phase and a converting or "decoding" phase, controlled by timing signals which are not illustrated in Figure 1 . During the zeroing phase , the first and second electrodes of the capacitors C 1 , ... , Cn and the first electrode of the terminating capacitor CTERM are connected together by an electronic switch 3 and to the first reference voltage input
V 1. The capacitors C i , ... , Cn are therefore discharged so that the total charge stored in the DAC is equal to V 1 CTERM .
During the decoding phase, the second electrode of each capacitor Ci is connected to the first reference voltage input Vi or to the second reference voltage input V2 according to the
value of the ith bit of the digital input word. The charge stored in the DAC is given by:
Q = ∑ b.C,(VDAC - V2) + X (1 - Ia1)C1 (VDAC - V1) + VDACCTERM
(1)
where bi is the ith bit of the input digital word and VDAC is the voltage at the first electrodes of the capacitors C1, ..., Cn and CTERM- The output voltage is therefore given by:
VDAC = VOUT = ^^ (V2 - V1) + V1 (2)
In general, Ci = 2'1"1) C1 and C1 = CTERM. This results in a set of output voltages which are linearly related to the input digital word.
In order to isolate the load capacitance from the DAC and to prevent it from affecting the conversion process, the unity gain buffer 1 is provided. However, such buffers are a substantial source of power consumption. If the buffer 1 were to be omitted, the terminating capacitance would be increased by the addition of the load capacitance so that the maximum output voltage from the DAC would be given by:
VoUT(MAXI - w; -* (V2 - V1I + V, (3)
ZJ C , + CTERM + C LOAD
The effect of this may be reduced by increasing the value of the switched capacitors . H owever, this increases the power consumption of and the area of an integrated circuit occupied by the DAC . In order to achieve voltage s near to the higher reference voltage , such as that supplied to the reference voltage input V2, the capacitances must be increased substantially.
Another technique for compensating for this effect is to increase the higher reference voltage supplied to the input V2.
However, this also increases the power consumption of the
DAC and may also require more complex or powerful circuitry to generate the higher reference voltage .
In some applications , DAC s are required to generate an output voltage as a non-linear function of the input digital word. For example, Figure 2 illustrates the required transfer function of output voltage against the input digital code when a DAC is used as part of a driving arrangement for a liquid crystal display and Figure 3 of the accompanying drawing illustrate s how such a transfer function is modified in order to provide gamma correction .
DI SCLOSURE OF I NVENTION
A first aspect of the present invention provides a digital / analogue converter for converting an input n-bit digital code , where n is an integer greater than one, the digital/ analogue converter having an n-bit digital input and an output for connection to a load, and comprising: an array of (n- 1 ) switched capacitors; and a switching arrangement; wherein the switching arrangement is adapted , in a zeroing phase of operation, to connect a first reference voltage to the first plate of at least one capacitor of the array and to connect a second plate of the at least one capacitor to a voltage that, for at least one value of the input digital code , is different from the first reference voltage and is further adapted, in a decoding phase of operation , to enable , dependent on the value of the input digital code , inj ection of charge into the at least one capacitor. For example, the switching arrangement may be arranged such that, in the zeroing phase, the second plate of the ith capacitor is, for at least one combination of the most significant bit of the input code and the ith bit of the input code , connected to a voltage that is different from the first reference voltage.
In general charge will be injected into at least one capacitor during the decoding phase . However, the converter may be arranged so that the first reference voltage is the output voltage of the DAC for one or more values of the input code - in which case, no charge would be injected into any of
the capacitors in the decoding phase when the input code has these values .
The converter may further comprise a first reference voltage input connectable to the first plate of each capacitor of the array; and second and third reference voltage inputs connectable to the second plate of each capacitor of the array; and the switching arrangement may be adapted , in the zeroing phase of operation , to connect the first, second and third reference voltage inputs to receive a respective one of first, second and third reference voltages, the second reference voltage being different from the third reference voltage , and is adapted to connect the second plate of each capacitor of the array to a respective one of the second and third reference voltage inputs . The converter may comprise a plurality of switches, each switch connecting the second plate of an associated capacitor of the array to the second reference voltage input or to the third reference voltage input.
The switching arrangement may be adapted, in the decoding phase of operation , to isolate the first plate of each capacitor of the array from the first reference voltage and to connect the second plate of at least one capacitor of the array to the other of the second and third reference voltage inputs to which it was connected in the zeroing phase thereby to enable inj ection of charge into the capacitor.
The switching arrangement may be adapted to provide the first reference voltage as the output voltage for a pre-determined input code. The predetermined input code may be the mid-scale input code. The first reference voltage is the mid-scale output voltage, since the same DAC capacitors are used for upward movement of the output voltage during decoding as are used for downward movement of the output voltage during decoding. The first reference voltage is not, however, required to be the mean of the second reference voltage and third reference voltage (and the first reference voltage may not be between the second reference voltage and third reference voltage) .
The switching arrangement may be adapted to connect, during the zeroing phase, the second plate of at least one capacitor to the second reference voltage input if the input code takes a first value or to the third reference voltage input if the input code takes a second value different from the first value. For example, the switching arrangement may be arranged such that, in the zeroing phase, the second plate of the ith capacitor is connected to the second reference voltage input for a first combination of the most significant bit of the input code and the ith bit of the input code, or is connected to the third reference voltage input for a second combination, different from the first combination, of the most significant bit of the input code and the ith bit of the input code.
The switching arrangement may be arranged to connect the second plate of the ith capacitor to one of the second and third reference voltages during the zeroing phase and to the other of the second and third reference voltages during the decoding phase if the ith bit of the input code takes the same value as the most significant bit of the input code thereby to inj ect charge into the ith capacitor.
The switching arrangement may be arranged to connect the second plate of the ith capacitor to one of the second and third reference voltages during the zeroing phase and to the same one of the second and third reference voltages during the decoding phase if the ith bit of the input code does not take the same value as the most significant bit of the input code . The capacitance Ci of the ith capacitor of the array may be given by: Ci = a*'" 1 ) C 1. The coefficient a may be a = 2.
The sum of the capacitances of the capacitors of the array may be equal to the load capacitance .
One of the second and third reference voltages may be the minimum output voltage of the converter and the other of the second and third reference voltages may be the maximum output voltage of the converter.
One of the second and third reference voltages may be zero . The converter may be a bufferless converter, and the
output of the converter may be for direct connection to a capacitive load .
Alternatively, the output of the converter may be connectable via a buffer amplifier to a load . In this case, the load is not limited to a capacitive load but may be, for example , a resistive load .
A second aspect of the present invention provides a digital / analogue converter arrangement comprising: a digital / analogue converter of the first aspect; and a look-up table for converting an input m-bit digital code to an n-bit digital code and supplying the n-bit digital code to the digital / analogue converter.
A third aspect of the present invention provides a display driver comprising a converter of the first aspect. A fourth aspect of the present invention provides a display driver comprising a converter arrangement of the second aspect.
A fifth aspect of the invention provides a display comprising a driver of the third or fourth aspect. The display may comprise a liquid crystal device .
BRIEF DESCRIPTION OF DRAWI NGS
The invention will be further described , by way of example , with reference to the accompanying drawings, in which :
Figure 1 is a simplified circuit diagram of a known DAC ;
Figure 2 is a graph of DAC output voltage against input digital code illustrating a required transfer characteristic for driving a typical liquid crystal display; Figure 3 is similar to Figure 2 but illustrates the use of gamma correction with a gamma value of 2.2 ;
Figure 4 is a simplified circuit diagram of another known DAC ;
Figure 5 is a graph similar to Figure 2 but illustrating the rotational symmetry of the transfer function of the DAC of
Figure 4 ;
Figure 6 is a circuit diagram of a further known DAC;
Figures 7 and 8 are graphs similar to Figure 2 illustrating typical transfer functions of the DAC of Figure 6 ; Figure 9 is a block circuit diagram of a known bi-directional DAC ;
Figure 10 is a simplified circuit diagram of part of the DAC of Figure 9 ;
Figure 1 1 is a graph illustrating the output range of the DAC of Figure 9 ;
Figure 12 is a block circuit diagram of a DAC according to an embodiment of the invention ;
Figure 13 is a block circuit diagram of part of the DAC of Figure 12 ; Figure 14 is a graph illustrating the output range of the
DAC of Figure 12 ;
Figure 15 is a block circuit diagram of a DAC according to a second embodiment of the invention;
Figure 16 is a block circuit diagram of part of the DAC of Figure 15 ;
Figure 17 is a block circuit diagram of a DAC arrangement according to a further embodiment of the invention; and
Figure 18 is a block circuit diagram of a DAC arrangement according to a further embodiment of the invention .
BEST MODE FOR CARRYING OUT THE I NVENTION
Figure 12 is a block circuit diagram of a digital / analogue converter 10 according to a first embodiment of the present invention . The DAC of figure 12 is for converting an input n-bit digital code into an output voltage . In this embodiment the DAC is a "bufferless" DAC , and the output is suitable for connection direct to a load capacitance , shown in figure 12 as Cterm . By the term "bufferless DAC" as used herein is meant a DAC in which the output buffer 1 having unity gain of figure 1 is not required to be present.
If the DAC of figure 1 2 is incorporated in a display driver for driving a display device the load capacitance may, for example , comprise a data line of an active matrix liquid
crystal device .
The n-bit DAC of figure 12 comprises an array of (n- 1 ) capacitors C i , C2... Cn- i , each capacitor being connected to a respective switch 1 1 controlled by two timing signals φ i , φ2 and the ith bit bi and the most significant bit bn of an n-bit input digital code b.
One plate of each capacitor Ci of the DAC (for consistency with figure 12 this plate will be referred to as the "upper plate" , although this wording is used purely for convenience and does not limit the DAC to any specific orientation in use) is connected to a first reference voltage input 1 2. The first reference voltage input 12 may be connected to a first reference voltage source V 1 by means of a switch 13 controlled by the first timing signal φi . The other ("lower") plate of each capacitor Ci of the DAC is cόnnectable by a respective one of the switches 1 1 to either a second reference voltage input 14 or a third reference voltage input 15. The second and third reference voltage inputs 14 , 15 are connectable , in use , to sources of second and third reference voltages V2 , V3 respectively. The second reference voltage V2 is different from the third reference voltage V3.
The switches 1 1 associated with the lower plates of the capacitors Ci are controlled by the outputs from respective logic circuits L1 , L2... Ln- I - Each logic circuit Li receives as
inputs the two timing signals φi , φ2, and the ith bit bi and the most significant bit bn of the n- bit input digital code . That is, although the array of capacitors in the DAC has only (n- 1 ) capacitors C 1 , C2... Cn- I the DAC has an n-bit input, since the most significant bit bn of the input code is input to each logic circuit Li.
The DAC of figure 12 operates in a zeroing phase followed by a decoding phase . In the zeroing phase , the switch 13 is closed by the first timing signal φ i , so that the upper plate of each capacitor Ci of the DAC , and the upper plate of the load capacitor Cterm are held at the potential of the first reference voltage V 1 . Since the top plates of the DAC capacitors Ci and of the load capacitor Cterm are charged to the first reference voltage V 1 , the output voltage of the DAC , VDAC , is charged to the first reference voltage V 1.
In the decoding phase , the switch 13 is opened by the first timing signal Cp 1 , so that the first reference voltage input
12 is isolated from the first reference voltage source V1. The output voltage VDAC floats to a voltage that is dependent upon the input code .
The connection of the lower plate of each capacitor Ci of the DAC 10 during the zeroing phases and the decoding phase is dependent on the re spective bit b; of the input data code , and on the most significant bit (MSB) , bn, of the input data code . There are essentially two possibilities for the
connection of the lower plate of each capacitor Ci - either (a) the voltage applied to the lower plate of the capacitor Ci during the decoding phase is different from the voltage that was applied to the lower plate of the capacitor Ci during the zeroing phase , so that charge is inj ected across the ith capacitor Ci in the decoding phase or (b) the voltage applied to the lower plate of the capacitor Ci during the decoding phase is the same as the voltage that was applied to the lower plate of the capacitor Ci during the zeroing phase , so that no charge is injected across the ith capacitor Ci in the decoding phase .
If charge is injected across the ith capacitor Ci, the sign of the inj ected charge is preferably determined by the most significant bit bn of the input data code . In the embodiment of figure 12 , in which the lower plate of the ith capacitor Ci may be connected to either the second reference voltage V2 or to the third reference voltage V3, option (a) above may be implemented by controlling the switch 1 1 associated with the ith capacitor Ci to connect the lower plate to the second reference voltage V2 in the zeroing phase and to the third reference voltage V3 in the decoding phase , or by controlling the switch 1 1 associated with the ith capacitor Ci to connect the lower plate to the third reference voltage V3 in the zeroing phase and to the second reference voltage V2 in the decoding phase . Option (b) may be implemented by
connecting the lower plate of the ith capacitor Ci to the second reference voltage V2 for the duration of both the zeroing and decoding phases or by connecting the lower plate of the ith capacitor d to the third reference voltage V3 for the duration of both the zeroing and decoding phases .
In a preferred embodiment, the switching arrangement of the DAC of figure 12 operates as follows :
If the most significant bit (M SB) and the ith bit of the input code are both logic zero (bn = 0, bi = 0) , the switch 1 1 connects the lower plate of the capacitor Ci to the third reference voltage V3 in the zeroing phase , and connects the lower plate of the capacitor Ci to the second reference voltage V2 in the decoding phase . The voltage applied to the lower plate of the capacitor Ci thus changes between the zeroing phase (V3) and the decoding phase (V2) so that charge is injected across the capacitor Ci. The inj ected charge is given
If the MSB and the ith bit of the input code are both logic one (bn = 1 , bi = 1 ) , the switch 1 1 connects the lower plate of the capacitor Ci to the second reference voltage V2 in the zeroing phase , and connects the lower plate of the capacitor Ci to the third reference voltage V3 in the decoding phase . Charge is again injected across the capacitor Ci, and the inj ected charge is given by Qi = (Vs-V2) Ci. It will be seen that the sign of charge injected across the
ith capacitor when bn = 1 , bi = 1 is opposite to the sign of charge inj ected when bn = 0 , bi = 0.
If the MSB of the input code has a different logic state to the ith bit of the input code (bn ≠ bi) , the connection of the lower plate of the capacitor Ci remains unchanged between the zeroing phase and the decoding phase . No charge is therefore injected across the capacitor Ci. If the lower plate was connected to the second reference voltage source during the zeroing phase it remains connected to the second reference voltage source during the decoding phase and, similarly, if the lower plate is connected to the third reference voltage source during the zeroing phase it remains connected to the third reference voltage source during the decoding phase . (Whether the lower plate is connected to the second reference voltage V2 or to the third reference voltage V3 is a matter of design choice , and will be determined by the particular form of the logic circuits Li and the switches 1 1 .)
In the following description it will be assumed , for the purpose of explanation, that the second reference voltage V2 is less than the third reference voltage V3.
At the end of the zeroing phase, the DAC output voltage was charged to V1 , as explained above . In the decoding phase , the upper plates of the capacitors Ci and the load capacitor Cterm are disconnected from the first reference voltage source , and charge is injected across at least some of
the DAC capacitors as described above (with the exception that if the input code is 100...00 or Oil...11 no charge is injected since bn ≠ bi for all values of i ≠ n). As a result of the injection of charge, the DAC output voltage floats to a voltage that is determined by the input digital code, as follows:
Figure 14 shows the output characteristic of the DAC of figure 12. Input codes of 011...Ill and 100...00 each produce an output voltage of V1, since no charge is injected in the decoding phase for either of these input codes. As the input code increases above 100...00 the DAC output voltage increases from V1 to a maximum output voltage VH. Similarly, as the input code decreases from 011... Ill, the DAC output voltage decreases from V1 to a minimum output
voltage VL. If the sum of the DAC capacitances is equal to the load capacitance (that is , if ΣCi = CTERM) , the maximum and minimum voltages are given by VH = V 1 + V^ (V3 - V2) , and the minimum output voltage is given by VL = V 1 - 1A (Vs - V2) . The output characteristic of figure 14 again contains two
"arms" . However, the two arms start at the mid level of the output voltage , and move away from the mid-level voltage . This is in contrast to the prior art output characteristic of figure 1 1 , in which the two arms of the characteristic converge at a common point.
As a result, the output characteristic of the present invention does not suffer from a mis-match at the point where the two arms meet in the event that the load capacitance is not correctly matched to the internal capacitance of the DAC . Any errors in the output characteristic arising as the result of a" mis-match between the load capacitance and the internal capacitance of the DAC will occur at the ends of the arms, for output voltages close to the minimum output voltage VL or for output voltages close to the maximum output voltage VH . In the case where the DAC is driving pixels of a display, this means that errors in the output characteristic will affect the near-black and near-white tones - and , as mentioned above , the human eye is less sensitive to errors at the black or white ends of the grey-scale . The output characteristic of figure 14 ensures good matching of the two arms where they meet at
the midpoint of the characteristic so that, when a DAC of the invention is used to drive pixels in a display, the mid-grey tones will be correctly reproduced leading to improved display quality. The required accuracy of the matching between the internal DAC capacitance and the load capacitance is therefore reduced .
A further example is that the DAC does not have to dominate the load capacitance . This means that the area occupied by the DAC , and the power consumed by the DAC, may both be reduced . At the same time , the speed of operation of the DAC is increased . In the prior art DAC of figure 1 , in contrast, the lowest DAC capacitor typically has a capacitance that is equal to the load capacitance and higher DAC capacitors have capacitances that are much higher than the "load capacitance . This makes it hard to reduce the area of the prior art DAC .
The DAC of the present invention also shares many of the advantages of the DAC of figure 9. The DAC of the invention can be used without an output buffer amplifier.
This allows a DAC of the invention to have a low power consumption , since the buffer amplifier is a major source of power consumption in the DAC of figure 1 .
A DAC of the invention can be arranged to have a linear output or a non-linear output. A DAC with a linear output
can be used to model any desired output, by using a DAC of higher resolution in connection with a look-up table , as described in relation to the prior art DAC of figure 1 above.
The output voltage range of a DAC of the invention is, as can be seen from equations (5) and (6) above , given by
Output Voltage Range F
3 - F
2 I (
7)
In a simple implementation , ΣCi = Cioad and V2 and V3 then correspond to the minimum and maximum output voltage s - so that any desired minimum and maximum output voltages can be obtained by appropriate choice of V2 and V3.
In this implementation, the second and third reference voltage s V2 and V3 are as simple as possible to generate, and the power consumed in generating the second and third reference voltages V2 , V3 is reduced compared to the power required to generate reference voltages in the prior art bufferless converter of figure 4.
In this implementation , the reference voltages V2 , V3 can also be used to give a simple three-output DAC , for example for use in a low-power mode where the DAC is disabled .
In an alternative implementation , the absolute difference between V3 and V2 , I V3-V2 I , may be made greater than the
required output voltage range . As shown by equation (7) , this makes it possible to reduce ΣCi below Cioad, and this makes possible a further reduction in the size of the DAC .
In a preferred embodiment, one of the second and third reference voltages V2 , V3 may be set to zero , and this further simplifies generation of the reference voltages .
As with the DAC of figure 9 , the internal capacitance of a DAC of the invention may be "tuned" during the design and manufacturing process to suit a particular intended use of the DAC . The DAC may also be "re-tuned" after manufacture to allow it to operate with a variety of load capacitance s, for example in the manner described in co-pending UK patent application No 0423397.9 (although this would require comparing the output of one or more DACs with a reference voltage rather than comparing the outputs of one DAC with the" output of another DAC as described in UK patent application No 0423397.9.
Figure 14 shows the output voltage characteristic of the
DAC of figure 12 for the case where the second and third reference voltages V2 , V3 are set to the upper and lower limits of the required output voltage range . That is, the second reference voltage V2 = VL, and the third reference voltage V3 =
VH , where VL and VH are the upper and lower required voltage limits of the voltage characteristic . In this case , as explained above , the DAC capacitance s are arranged such
that ΣCi = Cioad .
In a preferred embodiment, the DAC capacitors may be weighted , so that Ci = af'- ^C i . In a particularly preferred embodiment a = 2 so that the DAC capacitors are binary weighted. In this case , the output voltage characteristic of the DAC is linear, as shown in figure 14.
Figure 13 shows one possible implementation of a logic circuit Li of the DAC of figure 12. In this embodiment of the logic circuit Li, the most significant bit of an input data code bn and the ith bit of the input data code , bi, are input to an
AND gate 16. The MSB and the ith bit, bn and bi, are also input via inverters 17 , 17 ' to a second AND gate 18. The outputs of the two AND gates are passed to the output 2 1 of the logic circuit Li, via respective switches 19 , 20. The switch 20 that selects the output of the second AND gate 18 is controlled by the first timing signal φi . This takes a logic one value in the zeroing phase , and a logic zero value in the decoding phase, so that the switch 20 is closed in the zeroing phase and is open in the decoding phase . The switch 19 that selects the output of the first AND gate 16 is controlled by a second timing signal φ2 which takes a logic zero value during the zeroing phase and takes a logic one value in the decoding phase . Thus, in the zeroing phase the output from the second AND gate 18 is selected and in the decoding phase the output from the first AN D gate 16 is
selected.
The output from the logic circuit Lin controls the switch 1 1 that connects the lower plate of the capacitor C; to either the second reference voltage V2 or the third reference voltage V3. In figure 13 , during the zeroing phase the switch 1 1 is controlled by the value of (! bi • I bn) , and during the decoding phase, the switch 1 1 is controlled by the value of (bi • bn) . Thus , if bi = bn, the logic circuit Li of figure 13 is effective to connect the lower plate of the capacitor Ci to one of the second and third reference voltages V2, V3 during the zeroing phase and to the other of the second and third reference voltages V2 , V3 during the decoding phase . If bi ≠ bn, each AND gate 16, 18 will always give a logic zero output, so that the lower plate of the capacitor Ci will be connected to the same one of the second and third reference voltages V2 , V3 in both the zeroing phase and the decoding phase , so that no charge is inj ected across the capacitor Ci .
I n the embodiment of figure 12 , it is assumed that the switch 1 1 connects the lower plate of the capacitor Ci to the second reference voltage V2 if the logic circuit Li outputs logic value 0 , and connects the lower plate of the capacitor Ci to the third reference voltage V3 if the logic circuit Li outputs a logic value 1 .
Figure 15 shows a DAC 22 according to a second embodiment of the present invention . The DAC 22 of figure
15 corresponds generally to the DAC 10 of figure 1 2 , and the description of features common to both embodiments will not be repeated . The DAC 22 of figure 15 differs from the DAC 10 of figure 12 essentially in the form of the logic circuits Li. As shown in figure 15 , the logic circuits Li of figure 1 5 are controlled by only one of the timing signals .
The logic circuit Li of the DAC 22 of figure 1 5 is shown in figure 16. As shown in figure 16 , the input to the logic circuit Li are the MSB (bn) of the input data code , the ith bit of the input data code (bi) , and the second timing signal <j>2
(which is logic zero during the zeroing phase and logic one during the decoding phase) . The MSB of the input data code, the ith bit of the input data code , and the second timing signal Φ2 are input to a first AND gate 23 , and are also input via inverters 24 to a second AND gate 25. The outputs of the first and second AND gates 23 , 25 are input to an OR gate 26. The switch 1 1 is controlled by the output from the OR gate 26.
It can be seen that if the input data code has bn = bi = 1 , the logic circuit Li will produce an output of logic zero in the zeroing phase , since the input bits to the logic circuit Li will be ( 1 , 1 , 0) so that both AND gates will give an output of logic zero . In the decoding phase, however, the timing signal φ2 will have a value of logic one , so that the input bits to the logic circuit Li will be ( 1 , 1 , 1 ) and the first AND gate 23 will
provide an output of logic 1 . The logic circuit Li will thus produce an output of logic one in the decoding phase .
Conversely, if the input data code has bn = bi = 0 , the second AND gate 25 will produce an output of logic one in the zeroing phase , and both AN D gates 23 , 25 will produce an output of logic zero in the decoding phase . The logic circuit Li will thus produce an output of logic one in the zeroing phase and logic zero in the decoding phase . In both the cases bn = bi = 1 and bn = bi = 0, therefore , the switch 1 1 connects the capacitor Ci to one of the second and third voltage sources in the zeroing phase and to the other of the second and third reference voltages V2 , V3 in the decoding phase . (In the embodiment of figures 1 5 and 16 the switch 1 1 is controlled to connect the lower plate of the capacitor Ci to the second reference voltage V2 if the output from the OR gate" 26 is logic zero , and to connect the lower plate of the capacitor Ci to the third reference voltage V3 if the output of the OR gate 26 is logic one . )
For any bit of the input data code for which bi ≠ bn, the logic circuit Li will output logic zero in both the zeroing and decoding phases . No charge will therefore be injected across the capacitor Ci.
More formally, the output of the logic circuit Li of figure
16 is given by (bi ^ bn * Φ2) + (! bi • I bn • ! Φ2) . In the embodiment of figure 15 the switch 1 1 connects the lower
plate of the ith capacitor to the second reference voltage V2 if (bi • bn • Φ2) + ( ! bi • I bn • ! Φ2) = 0 and connects the lower plate of the ith capacitor to the third reference voltage V3 if the output of the logic circuit Li is logic one . The logic circuits Li of a DAC of the present invention are not limited to the two examples shown in figures 13 and 16. In principle , any logic circuit that satisfied the following requirements may be used : if bi = bn = 1 : output logic zero (or logic one) in the zeroing phase and logic one (or logic zero) in the decoding phase ; if bi = bn = 0 : output logic one (or logic zero) in the zeroing phase and logic zero (or logic one) in the decoding phase; and if bi ≠ bn, output the same logic value in both the zeroing phase and the decoding phase .
As explained above, the second and third reference voltages V2 , V3 in the embodiments of figures 12 or 15 are not required to be the upper and lower limits of the required output voltage range of the DAC (that is, VL and VH) . AS an example , one of the second and third reference voltages V2 , V3 may be set as the ground (zero) voltage, thereby simplifying the circuits required to provide the reference voltages .
As a further alternative, the second and third reference voltages V2 , V3 may be set either further apart or closer
together, so that I V3-V2 I may be greater than or less than VH -VL. The required voltage output range is then obtained by choosing the sum of the DAC capacitances (∑Ci) accordingly, according to equation (3) . For example , if the second and third reference voltages V2 , V3 are set further apart, the sum of the DAC capacitances may be reduced, thereby reducing the area required for the DAC . Alternatively, if the second and third reference voltages V2 , V3 are set close together, the power consumption of the DAC will be reduced (in order to provide a specified output voltage range, the sum of the DAC capacitances must be increased , the power stored in a capacitor is proportional to CV2, but in a DAC the capacitance C is proportional to V 1) .
As mentioned above , the capacitors Ci of the DAC may be binary-weighted, or weighted according to C1 = al'- 'IC i . The invention is not, however, limited to this , and the DAC capacitors may have any suitable weighting. For example, the DAC capacitors may be weighted such that the capacitances of the DAC capacitors are not uniform multiples of one another, or such that all DAC capacitors have the same capacitance (known as "thermometer coding") .
Figure 17 shows a DAC arrangement 27 that incorporates a bi-directional DAC of the present invention . The DAC arrangement 27 comprises a look-up table 28 having an m-bit input and an n-bit output; the output from the
look-up tables 28 is input to an n-bit bi-directional DAC 29 of the present invention . The DAC 29 of figure 17 may be , for example, the DAC 10 of figure 12 or the DAC 22 of figure 15. The look-up table 28 maps an m-bit digital input code to an n-bit code which is input to the n-bit DAC 29. The DAC arrangement 27 of figure 17 may be implemented in one of three ways : m < n . This would allow a selection from the range of possible output voltages of the DAC 29 to be used . This would commonly be used in order to obtain a non-linear output voltage characteristic from a linear DAC . m = n . In this case , the look-up table would re-order and/ or combine some input codes . m > n . In this case, use of the look-up table would allow the use of a low resolution DAC in a higher resolution system (although with a loss of resolution) .
The invention has been described above on the assumption that the first, second and third reference voltages are all different from one another, i. e . on the assumption that V 1 ≠ V2 , V2 ≠ V3 and V1 ≠ V3. This is not necessary, however, and it is possible for the first reference voltage V 1 to be equal to one of the second and third reference voltages V2 , V3.
Making the first reference voltage V1 equal to one of the second and third reference voltages V2 , V3 simplifies generation of the reference voltages , as only two non-zero
reference voltages must be generated . Moreover, making the first reference voltage V1 and one of the second or third reference voltages V2 , V3 equal to zero (ground) further simplifies generation of the reference voltages since it is required to generate only one non-zero reference voltage .
A DAC required to output a voltage that could be either positive or negative may have the first reference voltage V 1 and one of the second or third reference voltages V2, V3 set to zero (ground) . As an example, consider the preferred embodiment described above for operation of the DAC of figure 12 with the first and second reference voltages V1 , V2 set to zero, V 1 = V2 = 0 , and the third reference voltage V3 set to a positive voltage . In this case , if the MSB bn and the ith bit bi of the input code were both equal to logic one (bn = bi = 1 ) , the upper and lower plates of the ith capacitor would both be connected to zero potential during the zeroing phase, as both the first reference voltage V 1 (applied to the upper plate) and the second reference voltage V2 (applied to the lower plate) are zero , so that the same voltage would applied to both plates of the ith capacitor. However, if the MSB bn and the ith bit bi of the input code were both equal to logic zero (bn = bi = 0) , during the zeroing phase , the upper plate of the ith capacitor would be connected to zero potential and the lower plate of the ith capacitor would be connected to the third reference voltage V3 - so that the two plates of the ith
capacitor would be connected to different voltages during the zeroing phase . The change in potential of the lower plate of the ith capacitor would be as previously described, and the output voltages would be as given by equations (5) and (6) but with V 1 = V2 = 0.
The embodiments of figures 12 to 17 relate to a digital / analogue converter comprising a bufferless switched capacitor digital / analogue converter having an output for direct connection to a capacitive load . The invention is not however limited to this and may in principle be applied to a digital/ analogue converter in which the output is connected to a load via a buffer amplifier; in such an embodiment the load is not limited to a capacitive load , and the load may be , for example , a resistive load . Figure 18 is a block circuit diagram of a digital / analogue converter 10' according to a further embodiment of the present invention . The DAC 10' of figure 18 is for converting an input n- bit digital code into an output voltage . The output 30 of the DAC 10' is connected to the input of a unity gain buffer amplifier 1 . A terminating capacitor CTERM is connected between the input of the buffer 1 and ground . The output of the buffer 1 drives a load. In figure 18 the load is shown as a mixed capacitive and resistive load with a capacitive component CLOAD and a resistive component RLOA D . However, the load may
alternatively be a purely resistive load or a purely capacitive load .
The DAC 10 ' of figure 18 corresponds to the DAC 10 of figure 12 , and its de scription will not be repeated . Other digital / analogue converters of the present invention may also be used to drive a load via a buffer in the manner shown in figure 18.
INDUSTRIAL APPLICABILITY A converter or converter arrangement of the invention may be incorporated in a display driver for driving a display device, for example in a display driver for driving a data line of an active matrix liquid crystal device .