PWM and interrupts on oscilloscope