I am using S32K312 with RTD 2.0.0 D2203 and trying to implement a edge counter with the Input Capture Unit driver for Emios1_Ch23.
I have modified the Emios_Icu_Ip_BlinkLed_S32K312 with edge detection for Emios1_Ch23 succesful and then changed the measurement mode to ICU_MODE_EDGE_COUNTER. But when I read using Emios_Icu_Ip_GetEdgeNumbers I always read 0 as well in the peripheral registers.
The only change I made from the edge detection is the IcuMeasurementMode and calling
Emios_Icu_Ip_EnableEdgeCount(1,23)
instead of
Emios_Icu_Ip_EnableEdgeDetection(1,23) and Emios_Icu_Ip_EnableNotification(1,23).
I have attached the project.
Best regards,
Oskar
Solved! Go to Solution.