23.5.10 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 Count on the prescaled clock or according to the setting for event input A. The event controls the count direction:
  • up-counting when the event line is 0
  • down-counting when the event line is 1
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
0x7 - 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 on the prescaled clock. The event controls the count direction:
  • up-counting when the event line is 0
  • down-counting when the event line is 1
0x4 - 0x7 - 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