TI1 control two timer starts

  1. Main mode trigger output (TIMx_CR2 MMS):
    choose what output signal as a trigger *** *** for the configuration TRGO
    Here Insert Picture Description
    2. Select from the mode input pin (TIMx_SMCR)
    for receiving a pin TI *** trigger input ***
    Here Insert Picture Description

  2. Choose from a mode

Here Insert Picture Description

4. By writing MSM = 1 (TIMx_SMCR register) a timer configured as a master / slave mode

The timer trigger input pin selection 2 (TS TIM2_SMCR register = 000)
Here Insert Picture Description
to select one of the pin and TRGO timer 1 is connected to specific internal connection as follows:
Here Insert Picture Description
6. 2 configured to trigger the timer mode (TIM2_SMCR register SMS = 110).

At this point, you can simultaneously control two timer started simultaneously by TI pin For the corresponding need to stop timer CEN cleared.

Flowchart:
TI1-> 1 from the timer mode (Trigger) - (trigger)> From the Timer Mode 2 -> 1 master timer mode (enabled) -> TGRO-> Timer 2 (ITR0)

Released nine original articles · won praise 0 · Views 200

Guess you like

Origin blog.csdn.net/weixin_43527214/article/details/104431852
Recommended