Hi
I got a power supply working in hysteresis mode with a not very precise ref erence
So I am wrapping a digital loop with a microcontroller around it using a DA C output to tune the reference and thus the output to a precise value
Right now I have it working with a very simple P regulator, so if the value measured by the ADC is off target, I just move the DAC control one LSB to move the output back to the target value
It works, but it will have a small ripple around the target value since tha t is the way it functions
So I was thinking about predictive control. I have a model of the plant, so I know how much to modify the DAC to get it back on track from an error vo ltage. So I could just measure how much I am off target, and program the DA C with the correct correction including the model information
This would let the output swing back to target very fast and very precise. I should then add logic so the DAC is not moved if the measured output is i nside a certain error band. That would stop the ripple around the target va lue
Any opinions on this? Stability issues?
Thanks
Klaus