Re: Using 2 Interrupts
What microcontroller are you using?
If the uC has a compare/ PWM generation unit, it can generate the PWM with a duty cycle determined by the value in the compare unit registers. In this case, you don't need interrupts for the PWM generation, you need only to set the compare/PWM value in your program.
But if you generate PWM in software you may need some interrupt. To set a priority, you can globaly disable the interrupts in the service routine that has priority.