Page 1 of 1

Missing pulse detection with Timer

Posted: Fri Jan 05, 2018 10:27 pm
by wastman86
Hi!

First time here :-)

I want to realize a pulse missing detector with the ESP 32. I did it before wiht a Atmel.

So i did setup a timer already and when the pulse comes in I usually just set the counter to 0 again. So as long as the pulse comes in in time the counter will always be reset to 0 and the timer interrupt will never come as long as the counter gets set again to 0. By the time a pulse is missing the counter reaches the alarm value and creates an interrupt.

On page 412 of the reference manual it is stated that the 2 counter register are read only ( after writing to the update register ).

So how can i manipulate on the register level the counter to 0?

I am happy and thankful for any help :-)

Have a great day and still all the best for 2018!