Fixed pulse application [Pulse output of STM32]
![](https://en.depfields.com/wp-content/uploads/2020/06/pulse.jpg)
This application program uses the timer of the STM32 MCU to generate a fixed frequency pulse only when an input switch is pressed.
![](https://en.depfields.com/wp-content/uploads/2020/06/tim-application-nucleo_en.jpg)
Setting Specification:
Pin used:PB8 Alternate output(Timer output)
Peripheral used:TIM4_CH3 Counter CLK 1kHz
![](https://en.depfields.com/wp-content/uploads/2020/05/instructor.jpg)
This application uses CH3 of TIM4. The pin used is TIM4, the default alternate function of PB8.
![](https://en.depfields.com/wp-content/uploads/2020/05/instructor.jpg)
The TIM4 setting sets the timer count clock to 1 kHz and counts 500 to generate a 1 Hz pulse from CH3.