Event Control B

Name:
EVCTRLB
Offset:
0x09
Reset:
0x00
Access:
-
Bit76543210
CFG[1:0]EDGEACTIONTRIGEI
AccessR/WR/WR/WR/WR/W
Reset00000

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

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 trigger pin to change its output. Therefore, the input capture is delayed by four clock cycles when the noise canceler is enabled (FILTERON).

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

ValueNameDescription
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

Edge Selection

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

ValueNameDescription
0 FALL_LOW The falling edge or low level of the event input triggers a Capture or Fault action
1 RISE_HIGH The rising edge or high level of the event input triggers a Capture or Fault action

Bit 2 – ACTION: Event Action

Event Action

This bit enables capturing on the event input. By default, the input will trigger a Fault, depending on the Input Control register’s Input mode. It is also possible to trigger a capture on the event input.
ValueNameDescription
0 FAULT Event triggers a Fault
1 CAPTURE Event triggers a Fault and capture

Bit 0 – TRIGEI: Trigger Event Input Enable

Trigger Event Input Enable

Writing this bit to ‘1’ enables event as a trigger for input B.