1. A digital-to-analog converter comprising: a finite state machine configured to generate at least a first digital code and a second digital code based on a digital input word and to make state transitions upon detecting a wrap-around condition in the second digital code; a first decoder configured to map the first digital code into a first group of binary data; a second decoder configured to map the second digital code into a second group of binary data; a first switched-circuit array configured to generate a first analog output in response to the first group of binary data; and a second switched-circuit array configured to generate a second analog output in response to the second group of binary data, wherein a combination of the first analog output and the second analog output results in an analog output signal corresponding to the digital input word.