27.1.6.6 Gated Window Measurement Mode

This mode measures the duty cycle of the SMT_signal input over a known input window. It does so by incrementing the SMTxTMR register on each rising edge of the SMTx clock signal when the SMT_signal input is high. The accumulated SMTxTMR register value is written to the SMTxCPR register, and the SMTxTMR register is reset on every rising edge of the window input after the first. Refer to the figures below.

Figure 27-12. Gated Windowed Measurement Mode, Repeat Acquisition Timing Diagram
Figure 27-13. Gated Windowed Measurement Mode, Single Acquisition Timing Diagram