\section{aversive\_\-10-03-12/modules/hardware/pwm/timers\_\-synch.c File Reference}
\label{timers__synch_8c}\index{aversive\_\-10-03-12/modules/hardware/pwm/timers\_\-synch.c@{aversive\_\-10-03-12/modules/hardware/pwm/timers\_\-synch.c}}
this code synchronizes the timers in order to optain synchronous PWMs 

{\tt \#include $<$avr/io.h$>$}\par
{\tt \#include $<$pwm.h$>$}\par
{\tt \#include $<$timers\_\-synch.h$>$}\par


\subsection{Detailed Description}
this code synchronizes the timers in order to optain synchronous PWMs 

\begin{Desc}
\item[{\bf Todo}]Test this function on various uC \end{Desc}
\begin{Desc}
\item[{\bf Todo}]modify if there exists other prescaler configurations\end{Desc}
\begin{Desc}
\item[{\bf Test}]This feature is not 100\% shure for the moment, but has been tested on M32 and M128\end{Desc}
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

\begin{Desc}
\item[{\bf Todo}]Test this function on various uC \end{Desc}
\begin{Desc}
\item[{\bf Todo}]modify if there exists other prescaler configurations\end{Desc}
\begin{Desc}
\item[{\bf Test}]This feature is not 100\% shure for the moment, but has been tested on M32 and M128\end{Desc}
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 {\bf timers\_\-synch.c}.