cyclic waveforms using pulse width modulation to provide adjustable precision frequency and enhanced resolution is disclosed the technique includes a plurality of sets of duty cycle values each set corresponding to the desired waveform profile at a given frequency coupled with a mechanism for applying a selected duty cycle for a variable number of pwm cycles to achieve an adjustable fine resolution of the waveform frequency application_number US 70421003 A description fig1 shows a block diagram of an 8 bit microcontroller 1 1 for generating a waveform in accordance with the present invention the microcontroller has a pwm generator 1 2 that receives the required duty cycle values from a set of look up tables 1 3 the generated pwm output is filtered by rc filtering element 1 4 which filters out the undesired high frequency elements from the generated waveform the microcontroller uses on chip component and therefore does not require external hardware to get an output waveform of the desired frequency to compute the frequency of the waveform the pwm generator 1 2 provides a pwm cycle counter and a sample counter as control variables for adjusting the frequency the output frequency is calculated using formula given below f gen f pwm total no of counts in the counter u00d7 total number of samples 1 f pwm is the frequency computed according to relation 1 to generate the required waveform a look up table is selected the counter is set to a known value and.