23.5.10 Event Control
Name: | EVCTRL |
Offset: | 0x09 |
Reset: | 0x00 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
EVACTB[2:0] | CNTBEI | EVACTA[2:0] | CNTAEI | ||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bits 7:5 – EVACTB[2:0] Event Action B
Value | Name | Description |
---|---|---|
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:
|
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
Value | Description |
---|---|
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.
Value | Name | Description |
---|---|---|
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:
|
0x4 - 0x7 | - | Reserved |
Bit 0 – CNTAEI Enable Counter Event Input A
Value | Description |
---|---|
0 | Counter Event input A is disabled |
1 | Counter Event input A is enabled according to EVACTA bit field |