a current source is used to pre - charge a capacitor to a known value . the capacitor can then be connected to a unity gain buffer to provide a low cost dac . the dac can include a self - calibration stage to improve accuracy . the dac can include two or more circuit branches , each including a current source and a capacitor , where each branch can be calibrated and operated separately to reduce mismatch and to provide a continuous analog voltage output .