cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 i want my timer to work with 10msec max limit(10msec ON and 10msec OFF)

adhi
Associate
Posted on August 25, 2015 at 13:46

STM32 i want my timer to work with 10msec max limit(10msec ON and 10msec OFF)

1 REPLY 1
Posted on August 25, 2015 at 14:34

I'd probably use 48-1 for the prescaler, not 65536-1, as that would be very slow.

Then you need to observe a difference of 10000 (us) in the TIM counter value, ie get a starting value and then read the current, so while((current - start) < 10000);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..