Please correct my understanding.
I understand that in peak current control mode, the slow outer voltage control loop generates a current command to the faster inner current loop. This current command places a limit on how much current can flow through the inductor. The switch is turned off as soon as the sensed inductor current hits the ceiling. Any swing in line voltage is thus accounted for in real quick time rather than detecting it via changes in Vout which can take time to manifest.
What exactly is average current control? Is this as simple as generating a current command which is representative of the desired average inductor current rather than the peak current? And as in the above case, as soon as the inductor current hits the average current reference, the switch is turned off. Is this correct?
Why would one choose average current control over peak current control? Kindly explain without without algebra. I regret to say that all literature available on this topic is simply not for the layman.
As am interested in doing this the digital way, I would like to utilize the available ADC, DAC and Analog comparators on my microcontroller. What can be a good algorithm here?