29.5.2 Interleaving Samples Over Multiple Cycles

Figure 29-11 shows the waveforms of an application where the power in a system needs to be accurately measured when the current load is highly dependent on temperature, voltage and user application. The current waveforms vary widely per usage, but over a few PWM cycles, the waveforms are relatively stable.

The goal of this example is to collect many current and voltage readings over several PWM cycles in an interleaved manner. The data are stored in the memory during acquisition and later processed (integrated) to yield an accurate power value.

This example shows a situation where it would not be practical or possible for software to accurately schedule the ADC samples.

Figure 29-11. Example Application – Average Power Calculation
Note: The trigger delay value is modified to make the subsequent sample triggers shift in time, thereby enabling the interleaving of the samples.