electronicsman
Full Member level 5
I have configured pwm interrupt for every 30 micro sec. The clock frequency is 20mhz for microchip dspic family. I want to execute a logic at 30 micro sec hence i configured pwm and the algorithm involves lot of mathematical calculations. My problem is if i am toggling some port in the main it does not execute. But if i toggle in the pwm interrupt it toggles. What shall i conclude whether it is ok to proceed like this with checking the functionality or there is fundamentally some mistake in code not executing main. Please suggest.