2 ms·
Trivial, but very useful - phase accumulator / numerically controlled oscillator. With two unsigned integers, freq and phase, you get amazingly fine control ov
by mikewarot 4y ago
Trivial, but very useful - phase accumulator / numerically controlled oscillator.
With two unsigned integers, freq and phase, you get amazingly fine control over timing. You only use the top N bits of phase for output. It's saved my bacon in embedded systems more than once.