using a phase accumulator for controlling the counter or frequency divider