John, I think there is a misunderstanding here. The OP *doesn't have* and analogue PID current regulator! He wants to do it in s/w with the PIC. The only analogue regulator in his setup is for the voltage. He has
*one* DAC to provide the voltage set point to the analogue voltage regulator, and reads the current through an ADC. He wants to use that ADC's reading to limit the current digitally by modifying the voltage set point of the analogue voltage regulator using a PID algorithm in s/w. I hope this is now clearer.