44.7.10 Event Control

Table 44-19. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: EVCTRL
Offset: 0x20
Reset: 0x00000000
Property: PAC Write-Protection, Enable-Protected

Bit 3130292827262524 
 MCEO7MCEO6MCEO5MCEO4MCEO3MCEO2MCEO1MCEO0 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 MCEI7MCEI6MCEI5MCEI4MCEI3MCEI2MCEI1MCEI0 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 TCEI1TCEI0TCINV1TCINV0 CNTEOTRGEOOVFEO 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 76543210 
 CNTSEL[1:0]EVACT1[2:0]EVACT0[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 24, 25, 26, 27, 28, 29, 30, 31 – MCEOy Match or Capture Channel y Event Output Enable

These bits control if the Match/capture event on channel y is enabled and will be generated for every match or capture.

ValueDescription
0Match/capture y event is disabled and will not be generated.
1Match/capture y event is enabled and will be generated for every compare/capture on channel y.

Bits 16, 17, 18, 19, 20, 21, 22, 23 – MCEIy Fault A/B or Capture Channel y Event Input Enable

These bits indicate if the Match/capture y incoming event is enabled

These bits are used to enable Fault A/B or capture input events to the CCy channel of TCCC.

ValueDescription
0Incoming events are disabled.
1Incoming events are enabled.

Bits 14, 15 – TCEIn Timer/Counter Event Input n Enable

This bit is used to enable input event n to the TCC.

ValueDescription
0Incoming event n is disabled.
1Incoming event n is enabled.

Bits 12, 13 – TCINVn Timer/Counter Event n Invert Enable

This bit inverts the event n input.

ValueDescription
0Input event source n is not inverted.
1Input event source n is inverted.

Bit 10 – CNTEO Timer/Counter Event Output Enable

This bit is used to enable the counter cycle event. When enabled, an event will be generated on begin or end of counter cycle depending of on EVCTRL.CNTSEL(EVCTRL<7:6>) settings.

ValueDescription
0Counter cycle output event is disabled and will not be generated.
1Counter cycle output event is enabled and will be generated depending on EVCTRL.CNTSEL(EVCTRL<7:6>) value.

Bit 9 – TRGEO Retrigger Event Output Enable

This bit is used to enable the counter retrigger event. When enabled, an event will be generated when the counter retriggers operation.

ValueDescription
0Counter retrigger event is disabled and will not be generated.
1Counter retrigger event is enabled and will be generated for every counter retrigger.

Bit 8 – OVFEO Overflow/Underflow Event Output Enable

This bit is used to enable the overflow/underflow event. When enabled an event will be generated when the counter reaches the TOP or the ZERO value.

ValueDescription
0Overflow/underflow counter event is disabled and will not be generated.
1Overflow/underflow counter event is enabled and will be generated for every counter overflow/underflow.

Bits 7:6 – CNTSEL[1:0] Timer/Counter Interrupt and Event Output Selection

These bits define on which part of the counter cycle the counter event output is generated.

ValueNameDescription
0x0STARTAn interrupt/event is generated at begin of each counter cycle
0x1ENDAn interrupt/event is generated at end of each counter cycle
0x2-Reserved
0x3BOUNDARYAn interrupt/event is generated at begin of first counter cycle, and end of last counter cycle.

Bits 5:3 – EVACT1[2:0] Timer/Counter Event Input 1 Action

These bits define the action the TCC will perform on TCE1 event input.

ValueNameDescription
0x0OFFEvent action disabled.
0x1RETRIGGERStart, restart or re-trigger TCC on event
0x2DIR (asynch)Direction control
0x3STOPStop TCC on event
0x4DECDecrement TCC on event
0x5-Reserved
0x6PWPPeriod captured into CC1 Pulse Width on CC0
0x7FAULTNon-recoverable Fault

Bits 2:0 – EVACT0[2:0] Timer/Counter Event Input 0 Action

These bits define the action the TCC will perform on TCE0 event input 0.

ValueNameDescription
0x0OFFEvent action disabled.
0x1RETRIGGERStart, restart or re-trigger TCC on event
0x2COUNTEVCount on event.
0x3STARTStart TCC on event
0x4INCIncrement TCC on EVENT
0x5COUNT (async)Count on active state of asynchronous event
0x6STAMPCapture overflow times (Max value)
0x7FAULTNon-recoverable Fault