aversive_10-03-12/modules/hardware/pwm/timers_synch.c File Reference
this code synchronizes the timers in order to optain synchronous PWMs
More...
#include <avr/io.h>
#include <pwm.h>
#include <timers_synch.h>
Go to the source code of this file.
Detailed Description
this code synchronizes the timers in order to optain synchronous PWMs
- Todo:
- Test this function on various uC
- Todo:
- modify if there exists other prescaler configurations
- Test:
- This feature is not 100% shure for the moment, but has been tested on M32 and M128
this code synchronizes the timers in order to optain synchronous PWMs, such a feature can be used for driving 3-phase motors with PWMS from different timers
to synch PWMs you need to enshure that the timers have same prescales, and the same PWM mode
There is one little side effect : if there are common prescalers in your controller they will all be reset
- Todo:
- Test this function on various uC
- Todo:
- modify if there exists other prescaler configurations
- Test:
- This feature is not 100% shure for the moment, but has been tested on M32 and M128
this code synchronizes the timers in order to optain synchronous PWMs, such a feature can be used for driving 3-phase motors with PWMS from different timers
to synch PWMs you need to enshure that the timers have same prescales, and the same PWM mode
There is one little side effect : if there are common prescalers in your controller they will all be reset
Definition in file timers_synch.c.