46.7.4 Event Control

Table 46-5. 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: 0x06
Reset: 0x0000
Property: Enable-Protected, PAC Write-Protection

Bit 15141312111098 
   MCEO1MCEO0VLCEODIREOERREOOVFEO 
Access RWRWRWRWRWRW 
Reset 000000 
Bit 76543210 
 EVEI[2:0]EVINV[2:0]EVACT[1:0] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 

Bits 12, 13 – MCEOx Match Channel x Event Output Enable [x = 1..0]

These bits control whether event match on channel x is enabled or not and generated for every match.

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

Bit 11 – VLCEO Velocity Output Event Enable

This bit is used to enable the velocity event. When enabled, an event level will be generated for each change on the qualified PDEC phases.

This bit has no effect when COUNTER operation mode is selected.

ValueDescription
0VLC output event is disabled and will not be generated.
1VLC output is enabled and will be generated for every valid velocity condition.

Bit 10 – DIREO Direction Output Event Enable

This bit is used to enable the Direction event. When enabled, an event level output is generated to report the rotation direction.

ValueDescription
0DIR output event is disabled and will not be generated.
1DIR output is enabled and changes the level when the rotation direction changes.

Bit 9 – ERREO Error Output Event Enable

This bit enables the output of the Error event (ERR).
ValueDescription
0ERR Event output is disabled.
1ERR Event output is enabled.

Bit 8 – OVFEO Overflow/Underflow Output Event Enable

This bit is used to enable the Overflow/Underflow event. When enabled, an event will be generated when the Counter overflows/underflows.

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

Bits 7:5 – EVEI[2:0] Event Input Enable

This bit is used to enable asynchronous input event to the counter. The bit position in the EVEI[2:0] bitfield corresponds to the PDEC channel number.

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

Bits 4:2 – EVINV[2:0] Inverted Event Input Enable

This bit inverts the asynchronous input event to the counter. The bit position in the EVINV[2:0] bitfield corresponds to the PDEC channel number.

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

Bits 1:0 – EVACT[1:0] Event Action

These bits have an effect only when COUNTER operation mode is selected, and ignored in all other operation modes.

These bits define the event action the counter will perform on an event.

ValueNameDescription
0OFFEvent action disabled
1ReservedReserved
2COUNTCount on event