a digital to analog converter including a first capacitor , a second capacitor , an operational amplifier , and a switch is disclosed . during a first period , the first capacitor stores a first voltage and the second capacitor stores a second voltage . the operational amplifier comprises an input and an output . the switch parallels the first and the second capacitors with the operational amplifier at the input and output according to a digital signal during a second period .