23.6.9 Event Control

Name: EVCTRL
Offset: 0x20
Reset: 0x00000000
Property: PAC Write-Protection, Enable-Protected

Bit 3130292827262524 
     MCEO3MCEO2MCEO1MCEO0 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 2322212019181716 
     MCEI3MCEI2MCEI1MCEI0 
Access R/WR/WR/WR/W 
Reset 0000 
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 – MCEOn Match or Capture Channel n Event Output Enable

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

ValueDescription
0The match/capture x event is disabled and will not be generated
1The match/capture x event is enabled and will be generated for every compare or capture on channel n

Bits 16, 17, 18, 19 – MCEIn Match or Capture Channel n Event Input Enable

These bits indicate whether the match/capture n incoming event is enabled.

These bits are used to enable match or capture input events to the CCn channel of the TCC and to enable recoverable Faults A and B.

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 at the beginning or end of the counter cycle depending on the CNTSEL[1:0] settings.

ValueDescription
0The Counter cycle output event is disabled and will not be generated
1The Counter cycle output event is enabled and will be generated depending on the CNTSEL[1:0] 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.

ValueDescription
0The counter retrigger event is disabled and will not be generated
1The counter 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 ZERO value.

ValueDescription
0The overflow/underflow counter event is disabled and will not be generated
1The overflow/underflow counter event is enabled and will be generated for every counter overflow or 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 the beginning of each counter cycle
0x1ENDAn interrupt/event is generated at the end of each counter cycle
0x3BOUNDARYAn interrupt/event is generated at the beginning of the first counter cycle, and at the end of last counter cycle
Other Reserved

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

This bit field defines the action the TCC will perform on the TCEI1 event input.

ValueNameDescription
0x0OFFEvent action disabled
0x1RETRIGGERRestart or retrigger TCC on event
0x2DIRDirection control
0x3STOPStop TCC on event
0x4DECDecrement TCC on event
0x6PWPPeriod captured into CC1 Pulse Width on CC0
0x7FAULTNon-recoverable fault
Other Reserved

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

This bit field defines the action the TCC will perform on the TCEI0 event input 0.

ValueNameDescription
0x0OFFEvent action disabled
0x1RETRIGGERRestart or retrigger TCC on event
0x2COUNTEVCount on event
0x3STARTStart TCC on event
0x4INCIncrement TCC on event
0x5COUNTCount on the active state of an asynchronous event
0x6 STAMP Capture Time-stamp (overflow)
0x7FAULTNon-recoverable fault
Other Reserved