Datasheet

Table Of Contents
39
XMEGA E5 [DATASHEET]
Atmel-8153J–AVR-ATxmega8E5-ATxmega16E5-ATxmega32E5_Datasheet–11/2014
20. Fault Extension
20.1 Features
Connected to timer/counter output and waveform extension input
Event controlled fault protection for instant and predictable fault triggering
Fast, synchronous and asynchronous fault triggering
Flexible configuration with multiple fault sources
Recoverable fault modes
Restart or halt the timer/counter on fault condition
Timer/counter input capture on fault condition
Waveform output active time reduction on fault condition
Non-recoverable faults
Waveform output is forced to a pre-configured safe state on fault condition
Optional fuse output value configuration defining the output state during system reset
Flexible fault filter selections
Digital filter to prevent false triggers from I/O pin glitches
Fault blanking to prevent false triggers during commutation
Fault input qualification to filter the fault input during the inactive output compare states
20.2 Overview
The fault extension enables event controlled fault protection by acting directly on the generated waveforms from
timer/counter compare outputs. It can be used to trigger two types of faults with the following actions:
Recoverable faults: the timer/counter can be restarted or halted as long as the fault condition is preset. The
compare output pulse active time can be reduced as long as the fault condition is preset. This is typically used for
current sensing regulation, zero crossing re-triggering, demagnetization re-triggering, and so on.
Non-recoverable faults: the compare outputs are forced to a safe and pre-configured values that are safe for the
application. This is typically used for instant and predictable shut down and to disable the high current or voltage
drivers.
Events are used to trigger a fault condition. One or several simultaneous events are supported, both synchronously or
asynchronously. By default, the fault extension supports asynchronous event operation, ensuring predictable and instant
fault reaction, including system power modes where the system clock is stopped.
By using the input blanking, the fault input qualification or digital filter option in event system, the fault sources can be
filtered to avoid false faults detection.
There are two fault extensions, one for each of the timer/counter 4 and timer/counter 5 on PORTC. The notation of these
are FAULTC4 and FAULTC5, respectively.