One apparatus includes an array of current sources, a digital memory, and a calibration circuit. The digital memory is configured to store one set of digital calibration values for each of the current sources and to apply each stored set of digital calibration values to the corresponding current source to set the output current of the corresponding output current source. The calibration circuit is configured to update each set of digital calibration values in the memory in a manner that reduces mismatches between output currents of different ones of the current sources.