24.3.3 Pattern Generation
The Pattern Generator mode can be used to produce a synchronized bit pattern across the pins the WEX connects to. If configuring the input matrix (the INMX bit field in the WEXCTRLA register) to CWCMA mode, the same waveform will be output on all channels. Enabling Dead Time will cause all high sides to be equal and all low sides to be equal.
These features are primarily intended for handling the commutation sequence in brushless DC motor (BLDC) and stepper motor applications. Figure 24-6 shows a block diagram of the Pattern Generator. For each port pin where the corresponding Pattern Generation Override (WEXn.PGMOVR) bit is set, a fixed level is generated as configured by the Pattern Generation Output (WEXn.PGMOUT) register.