Rewrote pwm_op_inv.S functionality in pwm_service_inv.xc