timerclockstm32f7clock-synchronization

STM32F7-Is there a way to synchronize the output of two different timers in output compare mode?


My processor is an STM32F746ZGT6 and I wish to use TCD132DG, so I need to generate two synchronous clock pulses with different frequencies (One of them is 2 MHz and the other one is 500 KHz) so I used two different timers in output compare mode. The problem is that these two pulses have phase shift. In the Datasheet of TCD132DG the maximum allowed time shift is 60ns while the pulses have 240ns time shift.

Thanks, Amir Reza


Solution

  • Set up the timers in a master-slave configuration so that enabling one timer starts the other. For example,