Patent ID: 6995592

Claim:
An improved method for generating variable frequency cyclic waveforms using Pulse Width Modulation (PWM) for providing adjustable precision frequency and enhanced resolution, comprising the steps of: (a) providing one or more sets of sinewave frequencies, each set having a first constant, a second constant and a third constant, (b) generating a PWM waveform, (c) selecting one of said sets having duty cycle values, wherein each duty cycle value has an associated number of samples, (d) obtaining the duty cycle value for each cycle of said PWM waveform from the selected set of duty cycles, (e) maintaining the duty cycle for a specified number of PWM cycles, (f) obtaining next duty cycle from said selected set at the end of said specified number of PWM cycles, (g) repeating steps (d), (e) & (f) for the number of samples corresponding to said selected set, (h) repeating step (g) to generate multiple waveform cycles, (i) selecting a different combination of said first constant and/or said second constant and/or said third constant to achieve a different desired waveform frequency whenever required, and (j) filtering the waveform cycles to get a desired output waveform.