Figure 36-24. Waveform Generation in RAMP1 mode with Restart Action
COUNT
MAX
TOP
"match"
ZERO
"clear" update
Fault Input A
CC0
CC1
Restart
Restart
WO[0]
WO[1]
Figure 36-25. Waveform Generation in RAMP2 mode with Restart Action
COUNT
MAX
TOP
"match"
ZERO
CCx=ZERO
CC0/CC1
CCx=TOP
"clear" update
Fault Input A
Cycle
Restart
No fault A action
in cycle B
WO[1]
WO[0]
Capture
Action
Several capture actions can be selected by writing the Fault n Capture Action bits in the
Fault n Control register (FCTRLn.CAPTURE). When one of the capture operations is
selected, the counter value is captured when the fault occurs. These capture operations are
available:
•
CAPT - the equivalent to a standard capture operation, for further details refer to
•
CAPTMIN - gets the minimum time stamped value: on each new local minimum
captured value, an event or interrupt is issued.
•
CAPTMAX - gets the maximum time stamped value: on each new local maximum
captured value, an event or interrupt (IT) is issued, see
•
LOCMIN - notifies by event or interrupt when a local minimum captured value is
detected.
•
LOCMAX - notifies by event or interrupt when a local maximum captured value is
detected.
•
DERIV0 - notifies by event or interrupt when a local extreme captured value is
detected, see
.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
818