Fast PWM
Fast PWM
Fast PWM
SUMARY: In the following writing is presented or Pre-scaler 10 bits (allows to divide the
described how to work in a timer0 FAST PWM mode by frequency).
introducing timer0 and an example in the AVR and Two sources of interruption: overflow and
PROTEUS software where the brightness control of a equality in comparison (TOV0 and OCF0).
led is made and the speed of a motor applying FAST
PWM for this example. The registers that intervene for the configuration of timer
0 are:
KEY-WORDS: Converter, signals, PWM, timer0.
TCCR0: This record is in charge of setting the
1 INTRODUCTION timer.
1
FAST PWM MODE
.
2
FAST PWM MODE
.
Bucle_Interno:
NOP
NOP
NOP
NOP
NOP
DEC R24
BRNE Bucle_Interno
DEC R25
BRNE Bucle_Externo
RET
Figure 9.- Duty Cycle greater than 50%
EXAMPLE PROTEUS
3 CONCLUSIONS