22.4.3.4 Maximum Capture
Maximum capture is enabled by selecting the CAPTMAX mode in the Channel n Capture Mode bits in the Control A register (CTRLA.CAPTMODEn = CAPTMAX).
CC[n] Content:
In CAPTMAX operations, CC[n] register stores the Maximum captured values. Before enabling this capture mode, the user must initialize the corresponding CC[n] register value to a value other than TOP. If the initial value of CC[n] register is TOP, no captures will be performed on the corresponding channel.
MCn Behaviour:
In CAPTMAX operation, a capture is performed only if, at the time of capture event time, the counter value is greater than the last captured value. The MCn interrupt flag is set only if, at the time of capture event time, the counter value is lower or equal to the value captured on the previous event. So interrupt flag is set when a new absolute maximum value is detected.
