dc42:
Alternatively, use a diode and capacitor to turn your current sense op amp circuit into a peak or average current detector, then you can modify the PWM amount according to the current, and use a supersonic switching frequency.
Hi dc42!
Thanks again for your reply.
I did not understand what do you mean by using a diode and a capacitor to switch on the op amp. Can your draw a quick scheme or just explain a little bit more ?