Software › Timer Blink (TIM2)
Timer Blink (TIM2)
demo Open · freely redistributable
An original CC0 bare-metal STM32F411RE program. It enables GPIOA and TIM2 in RCC, configures PA5 as an output, programs the TIM2 prescaler (PSC) and auto-reload (ARR), forces an update event (EGR.UG) and starts the counter (CR1.CEN), then polls the update flag (SR.UIF) and toggles the LED once per timer period. Exercises the real TIM2 counter/prescaler/auto-reload path.
Format: STM32F411RE flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)