Using a DAC to convert digital to analog current