23.6.5 Recoverable Fault Control x
| Name: | FCTRLx |
| Offset: | 0x0C + x*0x04 [x=0..1] |
| Reset: | 0x00000000 |
| Property: | PAC Write-Protection, Enable-Protected |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| FILTERVAL[3:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 | |||||
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| BLANKVAL[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| BLANKPRESC | CAPTURE[2:0] | CHSEL[1:0] | HALT[1:0] | ||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| RESTART | BLANK[1:0] | QUAL | KEEP | SRC[1:0] | |||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
Bits 27:24 – FILTERVAL[3:0] Recoverable Fault Filter Value
This bit field defines the filter value applied to the MCEn (n = 0,1) event input line. The value must be set to zero when the MCEn event is used as a synchronous event.
Bits 23:16 – BLANKVAL[7:0] Recoverable Fault Blanking Value
This bit field determines the duration of the blanking of the fault input source. Activation and edge selection of the blank filtering are controlled 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 Blanking Value Prescaler
This bit enables a prescaler that multiplies the Blanking Value (BLANKVAL) by a factor of 64.
| Value | Description |
|---|---|
| 0 | Blank time is BLANKVAL * prescaled GCLK_TCCn. |
| 1 | Blank time is BLANKVAL * 64 * prescaled GCLK_TCCn. |
Bits 14:12 – CAPTURE[2:0] Recoverable Fault Capture Action
This bit field selects the capture and Fault n interrupt/event conditions.
| Value | Name | Description |
|---|---|---|
| 0x0 | DISABLE | Capture on valid recoverable Fault is disabled |
| 0x1 | CAPT | On the rising edge of a
valid recoverable fault, the counter value is captured on the channel
selected by CHSEL[1:0] The INTFLAG.FAULTn flag is set on each new captured value. |
| 0x2 | CAPTMIN | On the rising edge of a
valid recoverable fault, the counter value is captured on the channel
selected by CHSEL[1:0] if the COUNT value is lower than the last stored
capture value (CC). The INTFLAG.FAULTn flag is set on each local minimum detection. |
| 0x3 | CAPTMAX | On the rising edge of a
valid recoverable fault, the counter value is captured on the channel
selected by CHSEL[1:0] if the COUNT value is higher than the last stored
capture value (CC). The INTFLAG.FAULTn flag is set on each local maximun detection. |
| 0x4 | LOCMIN | On the rising edge of a
valid recoverable fault, the counter value is captured on the channel
selected by CHSEL[1:0]. The INTFLAG.FAULTn flag is set on each local minimum value detection. |
| 0x5 | LOCMAX | On the rising edge of a
valid recoverable fault, the counter value is captured on the channel
selected by CHSEL[1:0]. The INTFLAG.FAULTn flag is set on each local maximun detection. |
| 0x6 | DERIV0 | On the rising edge of a
valid recoverable fault, the counter value is captured on the channel
selected by CHSEL[1:0]. The INTFLAG.FAULTn flag is set on each local maximun or minimum detection. |
| 0x7 | CAPTMARK | Capture with the ramp index as the MSB value |
Bits 11:10 – CHSEL[1:0] Recoverable Fault Capture Channel
This bit field selects the channel for the capture operation triggered by a recoverable fault.
| Value | Name | Description |
|---|---|---|
| 0x0 | CC0 | The captured value stored in CC0 |
| 0x1 | CC1 | The captured value stored in CC1 |
| 0x2 | CC2 | The captured value stored in CC2 |
| 0x3 | CC3 | The captured value stored in CC3 |
Bits 9:8 – HALT[1:0] Recoverable Fault Halt Operation
This bit field selects the halt action for a recoverable fault.
| Value | Name | Description |
|---|---|---|
| 0x0 | DISABLE | Halt action disabled |
| 0x1 | HW | Hardware halt action |
| 0x2 | SW | Software halt action |
| 0x3 | NR | Non-recoverable fault |
Bit 7 – RESTART Recoverable Fault Restart
Setting this bit enables restart action for Fault.
| Value | Description |
|---|---|
| 0 | The restart action for fault n is disabled |
| 1 | The restart action for fault n is enabled |
Bits 6:5 – BLANK[1:0] Recoverable Fault Blanking Operation
This bit field selects the blanking start point for a recoverable fault.
| Value | Name | Description |
|---|---|---|
| 0x0 | START | Blanking is applied from the start of the ramp period |
| 0x1 | RISE | Blanking is applied from the rising edge of the waveform output |
| 0x2 | FALL | Blanking is applied from the falling edge of the waveform output |
| 0x3 | BOTH | Blanking is applied from each toggle of the waveform output |
Bit 4 – QUAL Recoverable Fault Qualification
Setting this bit enables the recoverable Fault input qualification.
| Value | Description |
|---|---|
| 0 | The recoverable Fault n input is not disabled by the CMPn value condition |
| 1 | The recoverable Fault n input is disabled when the output signal is at the inactive level (CMPn = 0) |
Bit 3 – KEEP Recoverable Fault Keep
Setting this bit enables the fault keep action.
| Value | Description |
|---|---|
| 0 | The fault state is released as soon as the recoverable Fault n is cleared |
| 1 | The fault state is released at the end of the TCC cycle |
Bits 1:0 – SRC[1:0] Recoverable Fault Source
This bit field selects the TCC event input for a recoverable fault.
When used as a recoverable fault input, the event system channel connected to the MCEn event input, must be configured to route the event asynchronously.
| Value | Name | Description |
|---|---|---|
| 0x0 | DISABLE | Fault input disabled |
| 0x1 | ENABLE | MCEn (n = 0,1) event input |
| 0x2 | INVERT | Inverted MCEn (n = 0,1) event input |
| 0x3 | ALTFAULT | Alternate fault (A or B) state at the end of the previous period. |
