8 Replies Latest reply on Nov 24, 2013 3:43 PM by user_1377889

    PWM interrupt flag not clearing, I have read the datasheet and code looks fine

    user_322064261

      So I am trying to recreate the code in this application note (I can't find the link to the actual project)

         
         

      I have read through all the PWM datasheet and I think I have everything setup right.. I am reading the status register as it says but when I step through my code it just never leaves the interrupt.. it goes off to read the status register and then just loops infinitely in the ISR routine..

         
         

      I have attached my code if someone could help me make sense of where I am going wrong..