Datasheet

Table Of Contents
36
XMEGA E5 [DATASHEET]
Atmel-8153J–AVR-ATxmega8E5-ATxmega16E5-ATxmega32E5_Datasheet–11/2014
18. WeX – Waveform Extension
18.1 Features
Module for more customized and advanced waveform generation
Optimized for various type of motor, ballast, and power stage control
Output matrix for timer/counter waveform output distribution
Configurable distribution of compare channel output across port pins
Redistribution of dead-time insertion resource between TC4 and TC5
Four dead-time insertion (DTI) units, each with
Complementary high and low side with non overlapping outputs
Separate dead-time setting for high and low side
8-bit resolution
Four swap (SWAP) units
Separate port pair or low high side drivers swap
Double buffered swap feature
Pattern generation creating synchronized bit pattern across the port pins
Double buffered pattern generation
18.2 Overview
The waveform extension (WEX) provides extra functions to the timer/counter in waveform generation (WG) modes. It is
primarily intended for motor control, ballast, LED, H-bridge, power converters, and other types of power control
applications. The WEX consist of five independent and successive units, as shown in Figure 18-1.
Figure 18-1. Waveform Extension and Closely Related Peripherals
The output matrix (OTMX) can distribute and route out the waveform outputs from timer/counter 4 and 5 across the port
pins in different configurations, each optimized for different application types. The dead time insertion (DTI) unit splits the
four lower OTMX outputs into a two non-overlapping signals, the non-inverted low side (LS) and inverted high side (HS)
of the waveform output with optional dead-time insertion between LS and HS switching.
The swap (SWAP) unit can swap the LS and HS pin position. This can be used for fast decay motor control. The pattern
generation unit generates synchronized output waveform with constant logic level. This can be used for easy stepper
motor and full bridge control.
SWAP1DTI1
SWAP1DTI1
SWAP1DTI1
SWAP1DTI1
Pattern Generator
Output Matrix
WEX
Px7
Px6
Px5
Px4
Px3
Px2
Px1
Px0
Fault
Unit 5
Fault
Unit 4
T/C4
T/C5
OUTOVDIS
HIRES