Welcome to the Parallax Discussion Forums, sign-up to participate.

lardom
Posts: **1,601**

I was trying to think of ways that a multiple, or a fraction, of a sine wave could be generated digitally. Let's say I wanted to generate a 100Hz sine wave from a 1KHz sine wave. If the 1KHz sine wave was sampled every millisecond, the output would be a DC equivalent related to the duty cycle. If, on the other hand, every sample period was incrementally advanced 36° couldn't you plot the equivalent of a 100Hz sine wave?

Is there a way to increment the sample-period with counters?

EDIT: The DC voltage would be related to the phase.

Is there a way to increment the sample-period with counters?

EDIT: The DC voltage would be related to the phase.

## Comments

8,5951,6016,9391,601Thank you!