22.5.6 Event Control x
Name: | EVCTRL |
Offset: | 0x08 + n*0x01 [n=0..1] |
Reset: | 0x00 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
CFG[1:0] | EDGE | ACTION | TRIGEI | ||||||
Access | R/W | R/W | R/W | R/W | R/W | ||||
Reset | 0 | 0 | 0 | 0 | 0 |
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.
Value | Name | Description |
---|---|---|
0x0 | NEITHER | Neither Filter nor Asynchronous Event is enabled. |
0x1 | FILTERON | Input Capture Noise Cancellation Filter enabled. |
0x2 | ASYNCON | Asynchronous 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.
Value | Name | Description |
---|---|---|
0 | FALL_LOW | The falling edge or low level of the Event input generates Retrigger or Fault action. |
1 | RISE_HIGH | The rising edge or high level of the Event input generates Retrigger or Fault action. |
Bit 2 – ACTION Event Action
Value | Name | Description |
---|---|---|
0 | FAULT | Event triggers a Fault. |
1 | CAPTURE | Event triggers a Fault and Capture. |
Bit 0 – TRIGEI Trigger Event Input Enable
Writing this bit to '1' enables Event as trigger for input A.