Hi,
For ADC I want to implement code as it measures max voltage instead of average voltage, how can I implement.
Pls support
Thank You,
What does it mean that you want to measure the maximum voltage instead of the average voltage?
for S32K, ADC support hardware average features, but I don't quiet understand what you mean that you
want to measure the maximum voltage.
Hi,
If I have a wave with straight line with amplitude of 1v the raw value count from ADC wil be around 183
But if I give wave with 50% duty cycle with same 1v I will get 89 as raw count,
Now I need to measure the raw count with 50% duty cycle and I m expecting it should be 183 only
Pls support
Thank You
If the waveform is a PWM wave generated by the FTM module, then the problem will be easy.
you can try to use FTM->PDB->ADC to achieve this.
but If this is a disordered waveform, then by the sampling theorem you need to sample at a frequency that is 2 times the highest frequency of the waveform。The maximum value of sampling is the result you want.