About
- how to use an advanced timer (TIM1 for F401) to generate N pulses output when receiving a trigger, and
- How to generate PWM using TIMs
There are more snap shots from CubeMX
- Set Mode: Channel? PWM Generation
- Counter setting: Prescaler/Counter Period = ?
- PWM Generation Channel ? > Pulse = ?
HAL_TIM_PWM_Start(&htim?, TIM_CHANNEL_?)
- BE CAREFUL WITH
GPIO max speed
- Slave Mode: Trigger Mode
- Trigger Source: TI1FP1: TI1(Timer input 1) after FP(filter and polarity selection)
- Channel 2: PWM Generation CH2
- One Pulse Mode: Enable
- Counter Setting > Prescaler/Counter Period = ?
- Counter Setting > Repeatition Counter = N pulse
- Trigger > Polarity/Filter
- PWM Generation Channel 2 > Pulse = ?
HAL_TIM_PWM_Start(&htim?, TIM_CHANNEL_?)
- BE CAREFUL WITH
GPIO max speed
Datasheet stm32f401re.pdf
F401 resources reference manual dm00096844...
Cortex M4 Programming Manual dm00046982...