Principle
Pulse-width modulation uses a rectangular pulse wave whose pulse width is modulated resulting in the variation of the average value of the waveform. If we consider a pulse waveform with a low value, a high value and a duty cycle D (see figure 1), the average value of the waveform is given by:
As is a pulse wave, its value is for and for . The above expression then becomes:
This latter expression can be fairly simplified in many cases where as . From this, it is obvious that the average value of the signal is directly dependent on the duty cycle D.
The simplest way to generate a PWM signal is the intersective method, which requires only a sawtooth or a triangle waveform (easily generated using a simple oscillator) and a comparator. When the value of the reference signal (the red sine wave in figure 2) is more than the modulation waveform (blue), the PWM signal (magenta) is in the high state, otherwise it is in the low state.
Read more about this topic: Pulse-width Modulation
Famous quotes containing the word principle:
“We rail at trade, but the historian of the world will see that it was the principle of liberty; that it settled America, and destroyed feudalism, and made peace and keeps peace; that it will abolish slavery.”
—Ralph Waldo Emerson (18031882)
“To invent without scruple a new principle to every new phenomenon, instead of adapting it to the old; to overload our hypothesis with a variety of this kind, are certain proofs that none of these principles is the just one, and that we only desire, by a number of falsehoods, to cover our ignorance of the truth.”
—David Hume (17111776)
“On principle I dislike an oath which requires a man to swear he has not done wrong. It rejects the Christian principle of forgiveness on terms of repentance. I think it is enough if the man does no wrong hereafter.”
—Abraham Lincoln (18091865)