Data Sheet
673
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
Figure 30-24.Fault Qualification in RAMP2 Operation with Inverted Polarity
Fault Actions
Different fault actions can be configured individually for Fault A and Fault B. Most fault actions are not mutually exclusive;
hence two or more actions can be enabled at the same time to achieve a result that is a combination of fault actions.
z Keep action can be enabled using Faultn Keeper bit in Recoverable Faultn Configuration register
(FCTRLn.KEEP). When the keep action (FCTRLn.KEEP) is enabled, the corresponding channel output will
be clamped to zero when the fault condition is present. The clamp will be released on the start of the first
cycle after the fault condition is no longer present, as shown in Figure 30-25.
Figure 30-25.Waveform Generation with Fault Qualification and Keep Action
z Restart action can be enabled using Faultn Restart bit in Recoverable Faultn Configuration register
(FCTRLn.RESTART). When the restart action (FCTRLn.RESTART) is enabled, the timer/counter will be
restarted when the corresponding fault condition is present. The ongoing cycle is stopped and the
timer/counter starts a new cycle, as shown in Figure 30-26. When the new cycle starts, the compare outputs
will be clamped to inactive level as long as the fault condition is present. Note that in RAMP2 operation,
when a new timer/counter cycle starts, the cycle index will change automatically, as shown in Figure 30-27.
Fault A and Fault B are qualified only during the cycle A and cycle B respectively, i.e. the faultA and faultB is
disabled during cycle B or cycle A respectively.
COUNT
MAX
TOP
ZERO
Fault Input A
CC0
- 9 9 9- -Fault A Input Qual
-
9 9
-
Fault B Input Qual
-
Fault Input B
A
B A BCycle
CC1
xxx
xxx
xxxxxx
xxxxxxxxxxxxxxx
"match"
"clear" update
9
"Fault input enabled"
-
"Fault input disabled"
x
"Fault discarded"
KEEP
KEEP
COUNT
MAX
TOP
ZERO
Fault Input A
CC0
9 - 9 9 9 9- - -Fault A Input Qual
xxx x
-
WO[0]
"match"
"clear" update
9
"Fault input enabled"
-
"Fault input disabled"
x
"Fault discarded"