Figure 62 : OPWMB mode with duty cycle going from 100% to 0% (R.M. Rev8 – Fig. 24-42)
OPWMT: Output Pulse Width Modulation with Trigger
The Output Pulse Width Modulation with Trigger mode (MODE[0:6]=0100110) works in a
similar way to OPWMB but with some important differences:
The register A1 is no longer buffered, so changing it could result on a loss of a coherent
pulse.
The register A2 is now an independent (and non-buffered) that triggers flags on match.
This mode should be used for generating fixed period PWM with a fixed leading edge precisely
positioned in reference to a time base which is a counter in MC up(starting from 0) or MCB
up(starting from 1) mode, a variable trailing edge controlled by the B register (buffered) that is
updated on every leading edges and a fixed triggering moment in the period.
This mode is better suited for applications needing multiple PWM signals with the same time
base (multiple channels configured on OPWMT clocked by the same counter bus) and where
regular triggering events are needed, for ADC conversion, for instance.
Figure 63 : OPWMT example (R.M. Rev8 – Fig. 24-47)
For modifying A2, the user will need to use Alternative A register in the eMIOS module.