PWM interrupt flag not clearing, I have read the datasheet and code looks fine | Cypress Semiconductor
PWM interrupt flag not clearing, I have read the datasheet and code looks fine
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..