22.5.6 Event Control x

Name: EVCTRL
Offset: 0x08 + n*0x01 [n=0..1]
Reset: 0x00
Property: -

Bit 76543210 
 CFG[1:0] EDGE ACTION TRIGEI 
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bits 7:6 – CFG[1:0] Event Configuration

When the input capture noise canceler is activated (FILTERON), the event input is filtered. The filter function requires four successive equal valued samples of the retrigger pin for changing its output. The input capture is therefore delayed by four clock cycles when the noise canceler is enabled.

When the Asynchronous Event is enabled (ASYNCON), the event input will qualify the output directly.

ValueNameDescription
0x0NEITHERNeither filter nor asynchronous event is enabled.
0x1FILTERONInput capture noise cancellation filter enabled.
0x2ASYNCONAsynchronous event output qualification enabled.
other-Reserved.

Bit 4 – EDGE Edge Selection

This bit is used to select the active edge or level for the event input.

ValueNameDescription
0FALL_LOWThe falling edge or low level of the event input generates retrigger or fault action.
1RISE_HIGHThe rising edge or high level of the event input generates retrigger or fault action.

Bit 2 – ACTION Event Action

This bit enables capture on event input. By default, the input will trigger a fault, depending on the Input x register Input mode (INPUTx). It is also possible to trigger a capture on the event input.
ValueNameDescription
0FAULTEvent triggers a fault.
1CAPTUREEvent triggers a fault and capture.

Bit 0 – TRIGEI Trigger Event Input Enable

Writing this bit to '1' enables event as trigger for input A.