2015-08-25 04:46 AM
2015-08-25 05:34 AM
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);