timers and pulse width modulation with mcus

44

Upload: mustafa-alghali

Post on 18-Jul-2015

126 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Timers and  pulse width modulation with MCUs
Page 2: Timers and  pulse width modulation with MCUs
Page 3: Timers and  pulse width modulation with MCUs
Page 4: Timers and  pulse width modulation with MCUs
Page 5: Timers and  pulse width modulation with MCUs
Page 6: Timers and  pulse width modulation with MCUs
Page 7: Timers and  pulse width modulation with MCUs

internal clock source external clock source

default √ X

Advantages Provide the fastest operation Unlimited designs of pulses.

Disadvantages Limited by four types of pulses four modes PRESCALAR.

Requires constructing external circuit to generate pulses such (oscillator , RC circuit)

Page 8: Timers and  pulse width modulation with MCUs

`

Try different CPU frequencies

Page 9: Timers and  pulse width modulation with MCUs
Page 10: Timers and  pulse width modulation with MCUs
Page 11: Timers and  pulse width modulation with MCUs
Page 12: Timers and  pulse width modulation with MCUs
Page 13: Timers and  pulse width modulation with MCUs
Page 14: Timers and  pulse width modulation with MCUs
Page 15: Timers and  pulse width modulation with MCUs
Page 16: Timers and  pulse width modulation with MCUs
Page 17: Timers and  pulse width modulation with MCUs

(for example between 0-12 volts). The trick is to vary the duty cycle between 0 to 100% and get same percentage of input voltage to output. Consider the following examples: Here the duty cycle is 75%. Here the duty cycle is 12.5% So the equivalent analog So the analog voltage voltage output is 3.75V. output is 0.625V

Page 18: Timers and  pulse width modulation with MCUs
Page 19: Timers and  pulse width modulation with MCUs
Page 20: Timers and  pulse width modulation with MCUs
Page 21: Timers and  pulse width modulation with MCUs
Page 22: Timers and  pulse width modulation with MCUs
Page 23: Timers and  pulse width modulation with MCUs
Page 24: Timers and  pulse width modulation with MCUs
Page 25: Timers and  pulse width modulation with MCUs
Page 26: Timers and  pulse width modulation with MCUs
Page 27: Timers and  pulse width modulation with MCUs
Page 28: Timers and  pulse width modulation with MCUs
Page 29: Timers and  pulse width modulation with MCUs
Page 30: Timers and  pulse width modulation with MCUs
Page 31: Timers and  pulse width modulation with MCUs
Page 32: Timers and  pulse width modulation with MCUs
Page 33: Timers and  pulse width modulation with MCUs
Page 34: Timers and  pulse width modulation with MCUs
Page 35: Timers and  pulse width modulation with MCUs
Page 36: Timers and  pulse width modulation with MCUs
Page 37: Timers and  pulse width modulation with MCUs
Page 38: Timers and  pulse width modulation with MCUs
Page 39: Timers and  pulse width modulation with MCUs
Page 40: Timers and  pulse width modulation with MCUs
Page 41: Timers and  pulse width modulation with MCUs
Page 42: Timers and  pulse width modulation with MCUs
Page 43: Timers and  pulse width modulation with MCUs
Page 44: Timers and  pulse width modulation with MCUs