35.8.4. Event Control
Name:
EVCTRL
Offset:
0x06
Reset:
0x0000
Property:
PAC Write-Protection, Enable-Protected
Bit
15
14
13
12
11
10
9
8
MCEO1
MCEO0
OVFEO
Access
R/W
R/W
R/W
Reset
0
0
0
Bit
7
6
5
4
3
2
1
0
TCEI
TCINV
EVACT[2:0]
Access
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
Bit 8 – OVFEO: Overflow/Underflow Event Output Enable
This bit enables the Overflow/Underflow event. When enabled, an event will be generated when the
counter overflows/underflows.
Value
Description
0
Overflow/Underflow event is disabled and will not be generated.
1
Overflow/Underflow event is enabled and will be generated for every counter overflow/
underflow.
Bit 5 – TCEI: TC Event Enable
This bit is used to enable asynchronous input events to the TC.
Value
Description
0
Incoming events are disabled.
1
Incoming events are enabled.
Bit 4 – TCINV: TC Inverted Event Input Polarity
This bit inverts the asynchronous input event source.
Value
Description
0
Input event source is not inverted.
1
Input event source is inverted.
Bits 2:0 – EVACT[2:0]: Event Action
These bits define the event action the TC will perform on an event.
Value
Name
Description
0x0
OFF
Event action disabled
0x1
RETRIGGER
Start, restart or retrigger TC on event
0x2
COUNT
Count on event
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
773