cancel
Showing results for 
Search instead for 
Did you mean: 

Hello We use an advanced timer with an internal clock of 16 MHz in input capture mode We give a pwm signal to tim1 We want Measure the D.Cycle of each pulse Question: What is the maximum frequency that can be given to the input?

MGhob.1
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions

Not a STM8​ user but presume it would depend on the resolution/granularity you expect in the results.

For useful duty cycle measurements, perhaps a few hundred KHz.

If servicing interrupts, likely bound by those saturating too.​

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

View solution in original post

1 REPLY 1

Not a STM8​ user but presume it would depend on the resolution/granularity you expect in the results.

For useful duty cycle measurements, perhaps a few hundred KHz.

If servicing interrupts, likely bound by those saturating too.​

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