Datasheet

Table Of Contents
Figure 48-15. Time-Stamp
MAX
ZERO
COUNT
TOP
"capture"
"overflow"
Capture Events
CCx Value
COUNT COUNTTOP MAXCOUNT
48.6.3.3 Minimum Capture
The minimum capture is enabled by writing the CAPTMIN mode in the Channel n Capture Mode bits in
the Control A register (CTRLA.CAPTMODEn = CAPTMIN).
CCx Content:
In CAPTMIN operations, CCx keeps the Minimum captured values. Before enabling this mode of capture,
the user must initialize the corresponding CCx register value to a value different from zero. If the CCx
register initial value is zero, no captures will be performed using the corresponding channel.
MCx Behaviour:
In CAPTMIN operation, capture is performed only when on capture event time, the counter value is lower
than the last captured value. The MCx interrupt flag is set only when on capture event time, the counter
value is upper or equal to the value captured on the previous event. So interrupt flag is set when a new
absolute local Minimum value has been detected.
48.6.3.4 Maximum Capture
The maximum capture is enabled by writing the CAPTMAX mode in the Channel n Capture Mode bits in
the Control A register (CTRLA.CAPTMODEn = CAPTMAX).
CCx Content:
In CAPTMAX operations, CCx keeps the Maximum captured values. Before enabling this mode of
capture, the user must initialize the corresponding CCx register value to a value different from TOP. If the
CCx register initial value is TOP, no captures will be performed using the corresponding channel.
MCx Behaviour:
In CAPTMAX operation, capture is performed only when on capture event time, the counter value is
upper than the last captured value. The MCx interrupt flag is set only when on 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 local Maximum value has been detected.
SAM D5x/E5x Family Data Sheet
TC – Timer/Counter
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1726