Hello,
I am using DSPIC33EP16GS502 with CCS software for controlling my SMPS circuit.
My code consist a MPPT algorithm. So far I have managed to set ADC and PWM module and run the system. However, I would like to arrange the ADC channel so that it will start the conversion at the half of the PWM pulse.
I have tried to clear what i mean in the picture below.
I think i will use PWM interrupt to trigger ADC but i could not figure out how to do.
Any help would be appreciated.
Thanks.