Rewrote the clock frequency divider calculation when configuring channels