25.2.5.2 Recoverable Faults
- *Halt* action: The recoverable faults can halt the TCC timer/counter, so that the final output wave is kept at a defined state. When the fault state is removed it is possible to recover the counter and waveform generation. The halt action is defined as:
Table 25-5. TCC Module Recoverable Fault Halt Actions Action
Description
TCC_FAULT_HALT_ACTION_DISABLE
Halt action is disabled
TCC_FAULT_HALT_ACTION_HW_HALT
The timer/counter is halted as long as the corresponding fault is present
TCC_FAULT_HALT_ACTION_SW_HALT
The timer/counter is halted until the corresponding fault is removed and fault state cleared by software
TCC_FAULT_HALT_ACTION_NON_RECOVERABLE
Force all the TCC output pins to a pre-defined level, as what Non-Recoverable Fault do
*Restart* action: When enabled, the recoverable faults can restart the TCC timer/counter.
*Keep* action: When enabled, the recoverable faults can keep the corresponding channel output to zero when the fault condition is present.
- *Capture* action: When the recoverable fault occurs, the capture action can time stamps the corresponding fault. The following capture mode is supported:
Table 25-6. TCC Module Recoverable Fault Capture Actions Action
Description
TCC_FAULT_CAPTURE_DISABLE
Capture action is disabled
TCC_FAULT_CAPTURE_EACH
Equivalent to standard capture operation, on each fault occurrence the time stamp is captured
TCC_FAULT_CAPTURE_MINIMUM
Get the minimum time stamped value in all time stamps
TCC_FAULT_CAPTURE_MAXIMUM
Get the maximum time stamped value in all time stamps
TCC_FAULT_CAPTURE_SMALLER
Time stamp the fault input if the value is smaller than last one
TCC_FAULT_CAPTURE_BIGGER
Time stamp the fault input if the value is bigger than last one
TCC_FAULT_CAPTURE_CHANGE
Time stamp the fault input if the time stamps changes its increment direction
In TCC module, only the first two compare channels (CC0 and CC1) can work with recoverable fault inputs. The corresponding event inputs (TCCx MC0 and TCCx MC1) are then used as fault inputs respectively. The faults are called Fault A and Fault B.
The recoverable fault can be filtered or effected by corresponding channel output. On fault condition there are many other settings that can be chosen. Refer to data sheet for more details about the recoverable fault operations.