PWM Interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JoBa_287526
Level 1
Level 1

I am trying to use the PWM interrupt out to generate an interrupt on both the tc and compare 1 events.  I only get what appears to be an interrupt on the tc event no matter what interrupt source box is checked (tc, compare 1, or both).

   

The PWM is configured as:  8 bit, one output, period = 49, compare1 = 25, 2-256 deadband = 19, implementation = UBD, enable mode = software only, run mode = continuous, trigger mode = none, kill mode = disabled, capture mode = none, Interrupt on Terminal Count is checked, Interrupt on Compare 1 is checked, all other sources are grayed out.

   

I have an isr function tied to the interrupt out terminal on the PWM.

   

Thanks!

0 Likes
0 Replies