Hi,
According to the data sheet it must be possible to create the following:
Set up a timer to capture mode at rising and falling edges of an input. (Goal is to measure pulse length.) And to have an interrupt routine to calculate and store the last pulse length. Is there some code as a template, where I could find some information? While I am quite sure, that this must be possible, I am a bit overwhelmed by all the possibilities of the timers....
I only need about 30ms of resolution, but an edge must not be totally missed.
Thanks for some hints
According to the data sheet it must be possible to create the following:
Set up a timer to capture mode at rising and falling edges of an input. (Goal is to measure pulse length.) And to have an interrupt routine to calculate and store the last pulse length. Is there some code as a template, where I could find some information? While I am quite sure, that this must be possible, I am a bit overwhelmed by all the possibilities of the timers....
I only need about 30ms of resolution, but an edge must not be totally missed.
Thanks for some hints