Arduino DUE Timer Counter - Programming - Arduino Forum
Depending on the frequency you are measuring, you can use an Timer Interrupt (correct well below 1 MHz), or by polling TC_SR of the timer that receives the PWM (up to 20 Mhz). Here is an example sketch with an interrupt. One timer counter generates a PWM signal while the other Timer Counter, actually TC1, measure frequency and duty cycle of the . . .
more
|