pwm input variables that are used by the main loop and the interrupts are declared volatile