36.8.5 Fault Control A and B

Name: FCTRLx
Offset: 0x0C + x*0x04 [x=0..1]
Reset: 0x00000000
Property: PAC Write-Protection, Enable-Protected

Bit 3130292827262524 
     FILTERVAL[3:0] 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 2322212019181716 
 BLANKVAL[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 BLANKPRESCCAPTURE[2:0]CHSEL[1:0]HALT[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 RESTARTBLANK[1:0]QUALKEEP SRC[1:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bits 27:24 – FILTERVAL[3:0] Recoverable Fault n Filter Value

These bits define the filter value applied on MCEx (x=0,1) event input line. The value must be set to zero when MCEx event is used as synchronous event.

Bits 23:16 – BLANKVAL[7:0] Recoverable Fault n Blanking Value

These bits determine the duration of the blanking of the fault input source. Activation and edge selection of the blank filtering are done by the BLANK bits (FCTRLn.BLANK).

When enabled, the fault input source is internally disabled for BLANKVAL* prescaled GCLK_TCC periods after the detection of the waveform edge.

Bit 15 – BLANKPRESC Recoverable Fault n Blanking Value Prescaler

This bit enables a factor 64 prescaler factor on used as base frequency of the BLANKVAL value.

ValueDescription
0Blank time is BLANKVAL* prescaled GCLK_TCC.
1Blank time is BLANKVAL* 64 * prescaled GCLK_TCC.

Bits 14:12 – CAPTURE[2:0] Recoverable Fault n Capture Action

These bits select the capture and Fault n interrupt/event conditions.

Table 36-8. Fault n Capture Action
ValueNameDescription
0x0DISABLECapture on valid recoverable Fault n is disabled
0x1CAPTOn rising edge of a valid recoverable Fault n, capture counter value on channel selected by CHSEL[1:0].

INTFLAG.FAULTn flag rises on each new captured value.

0x2CAPTMINOn rising edge of a valid recoverable Fault n, capture counter value on channel selected by CHSEL[1:0], if COUNT value is lower than the last stored capture value (CC).

INTFLAG.FAULTn flag rises on each local minimum detection.

0x3CAPTMAXOn rising edge of a valid recoverable Fault n, capture counter value on channel selected by CHSEL[1:0], if COUNT value is higher than the last stored capture value (CC).

INTFLAG.FAULTn flag rises on each local maximun detection.

0x4LOCMINOn rising edge of a valid recoverable Fault n, capture counter value on channel selected by CHSEL[1:0].

INTFLAG.FAULTn flag rises on each local minimum value detection.

0x5LOCMAXOn rising edge of a valid recoverable Fault n, capture counter value on channel selected by CHSEL[1:0].

INTFLAG.FAULTn flag rises on each local maximun detection.

0x6DERIV0On rising edge of a valid recoverable Fault n, capture counter value on channel selected by CHSEL[1:0].

INTFLAG.FAULTn flag rises on each local maximun or minimum detection.

Bits 11:10 – CHSEL[1:0] Recoverable Fault n Capture Channel

These bits select the channel for capture operation triggered by recoverable Fault n.

ValueNameDescription
0x0CC0Capture value stored into CC0
0x1CC1Capture value stored into CC1
0x2CC2Capture value stored into CC2
0x3CC3Capture value stored into CC3

Bits 9:8 – HALT[1:0] Recoverable Fault n Halt Operation

These bits select the halt action for recoverable Fault n.

ValueNameDescription
0x0DISABLEHalt action disabled
0x1HWHardware halt action
0x2SWSoftware halt action
0x3NRNon-recoverable fault

Bit 7 – RESTART Recoverable Fault n Restart

Setting this bit enables restart action for Fault n.

ValueDescription
0Fault n restart action is disabled.
1Fault n restart action is enabled.

Bits 6:5 – BLANK[1:0] Recoverable Fault n Blanking Operation

These bits, select the blanking start point for recoverable Fault n.

ValueNameDescription
0x0STARTBlanking applied from start of the Ramp period
0x1RISEBlanking applied from rising edge of the waveform output
0x2FALLBlanking applied from falling edge of the waveform output
0x3BOTHBlanking applied from each toggle of the waveform output

Bit 4 – QUAL Recoverable Fault n Qualification

Setting this bit enables the recoverable Fault n input qualification.

ValueDescription
0The recoverable Fault n input is not disabled on CMPx value condition.
1The recoverable Fault n input is disabled when output signal is at inactive level (CMPx == 0).

Bit 3 – KEEP Recoverable Fault n Keep

Setting this bit enables the Fault n keep action.

ValueDescription
0The Fault n state is released as soon as the recoverable Fault n is released.
1The Fault n state is released at the end of TCC cycle.

Bits 1:0 – SRC[1:0] Recoverable Fault n Source

These bits select the TCC event input for recoverable Fault n.

Event system channel connected to MCEx event input, must be configured to route the event asynchronously, when used as a recoverable Fault n input.

ValueNameDescription
0x0DISABLEFault input disabled
0x1ENABLEMCEx (x=0,1) event input
0x2INVERTInverted MCEx (x=0,1) event input
0x3ALTFAULTAlternate fault (A or B) state at the end of the previous period.