Data Sheet
674
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
Figure 30-26.Waveform Generation in RAMP1 Mode with Restart Action
Figure 30-27.Waveform Generation in RAMP2 Mode with Restart Action
z Capture action: Several capture actions can be selected using Faultn Capture Action bits in Faultn Control
register (FCTRLn.CAPTURE). When one of the capture operations (FCTRLn.CAPTURE) is selected, the
counter value is captured when the fault occurs. Several capture operations are available:
z CAPT is equivalent to a standard capture operation, for further details refer to “Capture Operations”
on page 666
z CAPTMIN allows to get the minimum time stamped value, with notification through event or interrupt
on each new local minimum captured value detection.
z CAPTMAX allows to get the maximum time stamped value, with notification through event or IT on
each new local maximum captured value, as shown in Figure 30-28.
z LOCMIN notifies through event or IT a local minimum captured value is detected.
z LOCMAX notifies through event or IT a local maximum captured value is detected.
z DERIV0 notifies through event or IT when a local extremum captured value is detected, as shown in
Figure 30-29.
In CAPT mode, on each filtered faultn, dedicated CCx channel capture counter value and an interrupt is generated. In
other mode interrupt is only generated on a extremum captured value.
COUNT
MAX
TOP
"match"
ZERO
"clear" update
Fault Input A
CC0
CC1
Restart
Restart
WO[0]
WO[1]
COUNT
MAX
TOP
Period (T)
"match"
ZERO
CCx=ZERO
CC0/CC1
CCx=TOP
"clear" update
A B B
Fault Input A
Cycle
A
Restart
No fault A action
in cycle B
WO[1]
WO[0]