electronicsman
Full Member level 5
- Joined
- May 4, 2012
- Messages
- 291
- Helped
- 11
- Reputation
- 22
- Reaction score
- 12
- Trophy points
- 1,298
- Activity points
- 3,737
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.