SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
In TIMA only, there are internal and external fault inputs which can be used to control the generation of PWM signals. The intended use of these inputs is as a mechanism for internal or external circuitry to indicate a fault in the system. This allows the hardware to react quickly to the external fault while optionally signaling an interrupt for software correction and leaving the output signals in a safe state.
It is important to consider the following basic properties of faults in a system, such as:
Fault conditions are synchronously detected using TIMCLK or asynchronously detected. Synchronous faults have a configurable glitch filter and can generate a latched fault event. Asynchronous faults cannot be latched and do not generate a fault event, with a latency of 1-2 TIMCLK cycles to detect the fault and perform a configured action. The CCP output can be configured for either type of fault upon entry and exit conditions.
The fault handler logic diagrams are split into three parts: asynchronous faults, synchronous faults, and fault output generation.
Figure 15-34 shows the asynchronous fault handler logic connections.
Figure 15-35 shows the synchronous fault handler logic connections.
Figure 15-36 shows the fault output generation logic connections.
Key registers for configuring the fault handler are:
TIMA.CCACT_xy[0/1]: this register controls the actions of the signal generator of the capture-compare portion based on fault events.