47.7.5 Fault Control A

Table 47-12. 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: FCTRLA
Offset: 0x0C
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 A Filter Value

These bits define the filter value applied on the Fault A (MCE0) event input line. Input signal with pulse width shorter than (FILTERVAL) * GCLK_TCCx is filtered. An Input signal with pulse width larger than (FILTERVAL+1) * GCLK_TCCx is passed to the TCC. The value must be set to zero when this event is used as synchronous event.

Bits 23:16 – BLANKVAL[7:0] Recoverable Fault A 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 (FCTRLA.BLANK(FCTRLA<6:5>)).

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

Bit 15 – BLANKPRESC Recoverable Fault A 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_TCCx.
1Blank time is BLANKVAL* 64 * prescaled GCLK_TCCx.

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

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

Table 47-13. Fault A Capture Action
ValueNameDescription
0x0DISABLECapture on valid recoverable Fault A is disabled
0x1CAPTOn rising edge of a valid recoverable Fault A, capture counter value on channel selected by FCTRLA.CHSEL bits (FCTRLA <11:10>) .

INTFLAG.FAULTA (INTFLAG<12>) flag rises on each new captured value.

0x2CAPTMINOn rising edge of a valid recoverable Fault A, capture counter value on channel selected by FCTRLA.CHSEL bits (FCTRLA <11:10>) , if COUNT value is lower than the last stored capture value (CC).

INTFLAG.FAULTA (INTFLAG<12>) flag rises on each local minimum detection.

0x3CAPTMAXOn rising edge of a valid recoverable Fault A, capture counter value on channel selected by FCTRLA.CHSEL bits (FCTRLA <11:10>) , if COUNT value is higher than the last stored capture value (CC).

INTFLAG.FAULTA (INTFLAG<12>)flag rises on each local maximum detection.

0x4LOCMINOn rising edge of a valid recoverable Fault A, capture counter value on channel selected by FCTRLA.CHSEL bits (FCTRLA <11:10>) .

INTFLAG.FAULTA (INTFLAG<12>) flag rises on each local minimum value detection.

0x5LOCMAXOn rising edge of a valid recoverable Fault A, capture counter value on channel selected by FCTRLA.CHSEL bits (FCTRLA <11:10>) .

INTFLAG.FAULTA (INTFLAG<12>) flag rises on each local maximum detection.

0x6DERIV0On rising edge of a valid recoverable Fault A, capture counter value on channel selected by FCTRLA.CHSEL bits (FCTRLA <11:10>) .

INTFLAG.FAULTA (INTFLAG<12>) flag rises on each local maximum or minimum detection.

0x7CAPTMARKCapture with Ramp index as MSB value.

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

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

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 A Halt Operation

These bits select the halt action for recoverable Fault A.

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

Bit 7 – RESTART Recoverable Fault A Restart

Setting this bit enables restart action for Fault A.

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

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

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

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 A Qualification

Setting this bit enables the recoverable Fault A input qualification.

ValueDescription
0The recoverable Fault A input is not disabled on CMPy value condition.
1The recoverable Fault A input is disabled when channel output is at inactive level (CMPy = 0).

Bit 3 – KEEP Recoverable Fault A Keep

Setting this bit enables the Fault A keep action.

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

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

These bits select the TCC Fault A mode.

Event system channel connected to Match or Capture Channel 0 (MCE0) event input, must be configured to route the event asynchronously, when used as a recoverable Fault A input.

ValueNameDescription
0x0DISABLEFault input disabled
0x1ENABLEFault A (MCE0) event input
0x2INVERTEnable Fault A (inverted) (MCE0) event input
0x3ALTFAULTAlternate fault (A or B) state at the end of the previous period.