21.5.3 Event Control

Name: EVCTRL
Offset: 0x04
Reset: 0x00
Property: -

Bit 76543210 
  FILTER EDGE   CAPTEI 
Access R/WR/WR/W 
Reset 000 

Bit 6 – FILTER Input Capture Noise Cancellation Filter

Writing this bit to '1' enables the input capture noise cancellation unit.

Bit 4 – EDGE Event Edge

This bit is used to select the Event edge. The effect of this bit is dependent on the selected Count Mode (CNTMODE) in TCB.CTRLB.

Count Mode EDGE Positive Edge Negative Edge
Periodic Interrupt Mode 0 Not Applicable Not Applicable
1 Not Applicable Not Applicable
Timeout Check Mode 0 Start counter Stop counter
1 Stop counter Start counter
Input Capture on Event Mode 0 Input capture frequency and pulse width measurement mode Not Applicable
1 Not Applicable Capture = count
Input Capture Frequency Measurement Mode 0 Capture = count, initialize, interrupt Not Applicable
1 Not Applicable Capture = count, initialize, interrupt
Input Capture Pulse Width Measurement Mode 0 Initialize Capture = count, interrupt
1 Capture = count, interrupt Initialize
Input Capture Frequency and Pulse Width Measurement Mode 0

On 1st Positive: initialize

On following Negative: capture

2nd Positive: stop, interrupt

1

On 1st Negative: initialize

On following Positive: capture

2nd Negative: stop, interrupt

Single Shot Mode 0 Start counter Not Applicable
1 Start counter Start counter
8-bit PWM Mode 0 Not Applicable Not Applicable
1 Not Applicable Not Applicable

Bit 0 – CAPTEI Capture Event Input Enable

Writing this bit to '1' enables the event input capture.