VTK-51  
  home     thefroemmings.net 

AT89LP Pulse Width Modulation Calculator
with Prescaler

Device 
Frequency   
Requested PWM Rate   Hz
Requested Duty Cycle   %
Prescaler 
 
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.