The Angular Timer Peripheral offers both Capture and Compare feature. These can be used to check the status of the angular timer registers or to react to a specific phase angle. The angular timer contains multiple built-in capture/compare modules that can be used. The Capture/Compare options are enabled and setup by their respective ATxCCONy registers.
The CCyMODE bit of the ATxCCONy register controls whether each particular module is in Capture or Compare mode. The polarity of each module's respective output signal is controlled by the CCyPOL bit of the ATxCCONy. Both modes use an edge detect that is synced to the input clock of the angular-timer module.
In Capture Mode the software has the ability to retrieve the status of the phase counter. For example, this can be used to determine the angle of the input signal for further calculation in the main algorithm.
The Compare Mode can trigger an output signal and interrupt, if enabled, when the phase counter matches a preset value. This can be helpful, for example, when an event needs to occur at a specific phase angle.