Riva:
Maybe something like the attached will help as a starting point.
Yes, thanks, with that i can detect the change of flank, the problem is that micros() function can be too slow to read the duty cicle with high accuracy.
Riva:
Maybe something like the attached will help as a starting point.
Yes, thanks, with that i can detect the change of flank, the problem is that micros() function can be too slow to read the duty cicle with high accuracy.