Software › Timer Blink (TIM2)
Timer Blink (TIM2)
demo Open · freely redistributable
An original CC0 bare-metal STM32F103 program. It enables GPIOC and TIM2 in RCC, configures PC13 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: STM32F103 flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)