carry out setPwm to timer interrupt Issue #22
#13