Figure 36-22. Fault Qualification in RAMP2 Operation with Inverted Polarity
COUNT
MAX
TOP
ZERO
Fault Input A
CC0
-
-
-
Fault A Input Qual
-
-
Fault B Input Qual
-
Fault Input B
Cycle
CC1
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
"match"
"clear" update
"Fault input enabled"
-
"Fault input disabled"
x
"Fault discarded"
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.
Keep
Action
This is enabled by writing the Fault n Keeper bit in the Recoverable Fault n Configuration
register (FCTRLn.KEEP) to '1'. When enabled, the corresponding channel output will be
clamped to zero as long as 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, see next Figure.
Figure 36-23. Waveform Generation with Fault Qualification and Keep Action
KEEP
KEEP
COUNT
MAX
TOP
ZERO
Fault Input A
CC0
-
-
-
-
Fault A Input Qual
x
x
x
x
-
WO[0]
"match"
"clear" update
"Fault input enabled"
-
"Fault input disabled"
x
"Fault discarded"
Restart
Action
This is enabled by writing the Fault n Restart bit in Recoverable Fault n Configuration register
(FCTRLn.RESTART) to '1'. When enabled, the timer/counter will be restarted as soon as the
corresponding fault condition is present. The ongoing cycle is stopped and the timer/counter
starts a new cycle, see
. In Ramp 1 mode, when the new cycle starts, the
compare outputs will be clamped to inactive level as long as the fault condition is present.
Note:
For RAMP2 operation, when a new timer/counter cycle starts the cycle index will
change automatically, see
. Fault A and Fault B are qualified only during the
cycle A and cycle B respectively: Fault A is disabled during cycle B, and Fault B is disabled
during cycle A.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
817