
88 CHAPTER 5. PERIODIC SIGNAL GENERATION
0 0.5 1 1.5 2 2.5 3 3.5 4
0
5
10
15
20
25
30
phase (radians)
time (ms)
phase accumulator’s value without the modulus operation
phase accumulator’s maximum value of 2π
continuous
sampled
Figure 5.6: Accumulated phase for a 1000 Hz sinusoid with modulus 2π applied.
two samples per period are required. This limit requires that φ
inc
≤ π. Finally, Figure 5.6
demonstrates the effect of the modulus operation on the phase accumulator’s value.
Special Cases
If the characteristics (frequency and phase) of the signal that you need to generate will not
change with time, then you may not need a phase accumulator at all. A few special