I see that the MPC5676R decimator has an integrator block. I am trying to figure out how the device works. In my example assume unsigned a numbers from an ADC. I need to average a number of samples over a period. I plan to have the eTPU trigger the ZSEL field, the rising edge of a pulse. I am assuming that the integrator works in the following way.
ADC values are forwarded to the Integrator. The integrator will maintain an running average over some time period defined by the first trigger of the ZSEL to the second trigger of the ZSEL.
When the ZSEL is triggered two data points are given. The number data samples accumulated over the period and the average for the samples.