pub struct DacStepOnCmp2;
Expand description
The trigger is generated on compare 2 event repeatedly
The compare 2 has a particular operating mode when using OnCmp2
. The active
comparison value is automatically updated as soon as a compare match
has occurred, so that the trigger can be repeated periodically with a period
equal to the CMP2 value.
NOTE:
The dual channel DAC trigger with OnCmp2
must not be
used simultaneously with modes using CMP2 (triple / quad interleaved
and triggered-half modes).
Example: Let’s consider a counter period = 8192. Dividing 8192 by 6 yields 1365.33. – Round down value: 1365: 7 triggers are generated, the 6th and 7th being very close (respectively for counter = 8190 and 8192) – Round up value:1366: 6 triggers are generated. The 6th trigger on dac_step_trg (for counter = 8192) is aborted by the counter roll-over from 8192 to 0.