40.7.6 Recoverable Fault B Configuration

Table 40-14. 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: FCTRLB
Offset: 0x10
Reset: 0x00000000
Property: RW

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

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

These bits define the filter value applied on FAULT B (MCE1) event input line. An 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. The value must be set to zero when this event is used as synchronous event.

Bits 23:16 – BLANKVAL[7:0] Fault B Blanking Time

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 (FCTRLB.BLANK(FCTRLB<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 Fault B Blanking 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] Fault B Capture Action

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

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

INTFLAG.FAULTB (INTFLAG<13>) flag rises on each new captured value.

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

INTFLAG.FAULTB (INTFLAG<13>) flag rises on each local minimum detection.

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

INTFLAG.FAULTB (INTFLAG<13>) flag rises on each local maximun detection.

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

INTFLAG.FAULTB (INTFLAG<13>) flag rises on each local minimum value detection.

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

INTFLAG.FAULTB (INTFLAG<13>) flag rises on each local maximun detection.

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

INTFLAG.FAULTB (INTFLAG<13>) flag rises on each local maximun or minimum detection.

0x7CAPTMARKCapture with Ramp index as MSB value.
ValueNameDescription
0DISABLENo capture
1CAPTCapture on fault
2CAPTMINMinimum capture
3CAPTMAXMaximum capture
4LOCMINMinimum local detection
5LOCMAXMaximum local detection
6DERIV0Minimum and maximum local detection
7CAPTMARKCapture with ramp index as MSB value

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

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

ValueNameDescription
0CC0Capture value stored in channel 0
1CC1Capture value stored in channel 1
2CC2Capture value stored in channel 2
3CC3Capture value stored in channel 3

Bits 9:8 – HALT[1:0] Fault B Halt Mode

These bits select the halt action for recoverable Fault B.

ValueNameDescription
0DISABLEHalt action disabled
1HWHardware halt action
2SWSoftware halt action
3NRNon-recoverable fault

Bit 7 – RESTART Fault B Restart

Setting this bit enables restart action for Fault B.

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

Bits 6:5 – BLANK[1:0] Fault B Blanking Mode

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

ValueNameDescription
0STARTBlanking applied from start of the ramp
1RISEBlanking applied from rising edge of the output waveform
2FALLBlanking applied from falling edge of the output waveform
3BOTHBlanking applied from each toggle of the output waveform

Bit 4 – QUAL Fault B Qualification

Setting this bit enables the recoverable Fault B input qualification.

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

Bit 3 – KEEP Fault B Keeper

Setting this bit enables the Fault B keep action.

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

Bits 1:0 – SRC[1:0] Fault B Source

These bits select the TCC Fault B mode.

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

ValueNameDescription
0DISABLEFault input disabled
1ENABLEMCEx (x=0,1) event input
2INVERTInverted MCEx (x=0,1) event input
3ALTFAULTAlternate fault (A or B) state at the end of the previous period