22.5.9 Event Control

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

Bit 76543210 
 EVACTB[2:0]CNTBEIEVACTA[2:0]CNTAEI 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 7:5 – EVACTB[2:0] Event Action B

These bits define what action the counter will take upon certain event conditions.

ValueNameDescription
0x0 NONE No action
0x1 - Reserved
0x2 - Reserved
0x3 UPDOWN Counts the prescaled clock cycles or counts the matching events according to the setting for event input A. The event signal controls the count direction, up when low and down when high. The direction is latched when the counter counts.
0x4 RESTART_POSEDGE Restart counter on positive event edge
0x5 RESTART_ANYEDGE Restart counter on any event edge
0x6 RESTART_HIGHLVL Restart counter while the event signal is high
Other - Reserved

Bit 4 – CNTBEI Enable Counter Event Input B

ValueDescription
0 Counter Event input B is disabled
1 Counter Event input B is enabled according to EVACTB bit field

Bits 3:1 – EVACTA[2:0] Event Action A

These bits define what action the counter will take upon certain event conditions.

ValueNameDescription
0x0 CNT_POSEDGE Count on positive event edge
0x1 CNT_ANYEDGE Count on any event edge
0x2 CNT_HIGHLVL Count prescaled clock cycles while the event signal is high
0x3 UPDOWN Count prescaled clock cycles. The event signal controls the count direction, up when low and down when high. The direction is latched when the counter counts.
Other Reserved

Bit 0 – CNTAEI Enable Counter Event Input A

ValueDescription
0 Counter Event input A is disabled
1 Counter Event input A is enabled according to EVACTA bit field