Hello,
I'm using the DEVKIT-MPC5748G, S32Design and processor expert.
I'd like to measure the period of a square wave, then I configured EMIOS_IC component and it is working.
The problem happens when the period is too big, in my case I set the max counter value to 65535 and the clock frequency to 62500 (using prescalers) consequently I can measure periods up to 1.05 sec, when the period is higher than that I got the wrong measurement.
For example if the period is 1.5 sec then I'd need 93750 counter ticks, but the number I got from EMIOS_DRV_IC_GetLastMeasurement is 28215 what looks like to be 93750 - 65535.
What should I do to solve this problem, the EMIOS_DRV_IC_GetLastMeasurement is not returning STATUS_EMIOS_CNT_BUS_OVERFLOW... If I knew when happend the conter overflow I could handle this in my code.
Thanks in advance,
Regards
João Paulo