1. A method for converting a digital value into an analog value comprising: receiving an M-bit data word representing a numeric value between 0 and 2 M −1; generating a control signal representing two data weighted averaging (DWA) loops, each DWA loop to separately control output elements of a digital-to-analog converter (DAC) to output the M-bit data word in analog form, each DWA loop to control 2 M output elements, the control signal having a number of ones representing the numeric value, wherein generating the control signal includes generating in a first DWA loop a number of bits representing one half the number of ones to activate one half of the number of ones in the output elements controlled by the first DWA loop; and generating in the second DWA loop a number of bits representing one half the number of ones to activate one half of the number of ones in the output elements controlled by the second DWA loop.