AWeX Fault Protection Restore is Not Done Correctly in Pattern Generation Mode

When a fault is detected, the OUTOVEN register is cleared, and when the fault condition is cleared, OUTOVEN is restored according to the corresponding enabled DTI channels. For Common Waveform Channel Mode (CWCM), this has no effect as the OUTOVEN is correct after restoring from fault. For Pattern Generation Mode (PGM), OUTOVEN should instead have been restored according to the DTLSBUF register.

Workaround
For CWCM, no workaround is required.

For PGM in latched mode, disable the DTI channels before returning from the fault condition. Then, set the correct OUTOVEN value and enable the DTI channels, before the direction (DIR) register is written to enable the correct outputs again.

Affected Silicon Revisions

ATxmega16A4U
Rev. A - D Rev. E
* X
ATxmega32A4U
Rev. A - D Rev. E
* X
ATxmega64A4U
Rev. A-B Rev. C Rev. D
* X -
ATxmega128A4U
Rev. A
-