got PWM read/write working