Hi @Robin_Shen,
I am trying to measure the input frequency on PTE25 (eMIOS1 Channel 5). I am applying a 10 Hz signal from a DSO, and I have verified that the input signal is stable. However, the measured frequency value is unstable and fluctuates around 900–1200, even though the input is only 10 Hz. To debug this, I changed the IcuSignalMeasurementProperty to ICU_PERIOD_TIME and updated the IRQ handler as shown below:
void EMIOS1_4_IRQ_Customized(void)
{
Emios_Icu_Ip_IrqHandler(1, 5);
period_time = Emios_Icu_Ip_GetTimeElapsed(1, 5);
if (period_time)
{
uint64_t emios_freq = 48000000ULL; // hardcoded
signal_frequency = emios_freq / period_time; captured = 1;
}
}
Even after these changes, the frequency value remains unstable.
Could you please help me understand why the measured frequency is incorrect and unstable for a low-frequency input, and what configuration changes are required to correctly measure a 10 Hz signal using eMIOS/ICU?

