created generic clock divider and instantiated in pwm module