How to get interrupt after specified number of microseconds?
My idea was simple. Set TIM to have 1MHz after prescaler. Then set ARR to the number of microseconds. So - I toggle GPIO pin each period elapsed and I can measure the time on oscilloscope.And here come troubles: for set 1us i get 2us. For 2us I get 2...