VTK-51
home
thefroemmings.net
AT89LP Pulse Width Modulation Calculator
with Prescaler
Device
AT89LP213
AT89LP216
Frequency
MHz
kHz
Hz
Requested PWM Rate
Hz
Requested Duty Cycle
%
Prescaler
0 - f/1
1 - f/2
2 - f/3
3 - f/4
4 - f/5
5 - f/6
6 - f/7
7 - f/8
8 - f/9
9 - f/10
A - f/11
B - f/12
C - f/13
D - f/14
E - f/15
F - f/16
Timer 0/1
Max. Rate
Hz
Min. Rate
Hz
Reload
Actual Rate
Hz
Error
%
Duty Value
Actual Duty Cycle
%
Error
%
Note: Use
this calculator
if you do not need the Timer Prescaler (TPS) or if you want the calculator to choose TPS for you.
Note: PWM Mode 2 will generate a 50% duty cycle at the specified reload value. Use the Mode 2 duty cycle pair to define the high/low portions of the output to achieve the requested duty cycle at the specified frequency.