I am referring to capture event action section of a TC for SAMD21.
I can see settings in TC_EVCTRL_EVACT:
Which one of these will capture the event timestamp?
Basically I need to do the following:
As an EXTIN pin goes up, I need to raise that interrupt and then disable it, then in this routine I also start the timer off.
The timer keeps running, then pin goes down, this falling edge passes an event to trigger the timer. Here I wish to get a time stamp when the event occured. Then pin goes up, again this should even trigger the timer, so I need to get another timestamp from timer and so on the whole process repeats......I have a pulse train and I need to get widths of each. no PPW and PWP will not work here as the number of ups may not equal downs.
Event Capture Action (page 543 of latest datasheet, section: 188.8.131.52) is the right fit and I see no way of setting this.