Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

varying frequency PWM

Not open for further replies.


Advanced Member level 2
Jul 5, 2009
Reaction score
Trophy points
Activity points
hI HAVE anyone an idea on how to vary the frequency that i obtain from a microcontroller, by a resistor or something like this ?

I assume, that you understand, that changing the PWM frequency mainly involves timer programming and also scaling of output values. You can basically make the PWM frequency (respectively period) depend on a variable value in your application. If you manage it, then it's easy to use e.g. an analog input to control it, and connect a variable resistor or potentiometer as a control.

The said additional calculations needed in set-point scaling may however reduce the performance of your PWM. A very basic method to tune the PWM frequency would be in using an external RC oscillator for the processor and tune it by a resistor. The processor will be rather slow in this case, and all processor frequency based timing and baud rates will be varied as well.

have you please a schematic that can help me ?? do i use a simple Resistor and capacitor ?

For the RC oscillator option, refer to the uP datasheet. Or use a standard 555 oscillator circuit.

so i can replace the quartz with a standard 555 oscillator ?

If it fits the intended frequency range. You can also operate the PWM timer from a separate clock input. But you didn't tell about specific processors or clock frequencies.

Not open for further replies.

Part and Inventory Search

Welcome to