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.
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.