S32K3 Pulse Edge count using Input Capture Unit (ICU)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K3 Pulse Edge count using Input Capture Unit (ICU)

Jump to solution
1,318 Views
oskarjohansson
Contributor I

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

0 Kudos
Reply
1 Solution
1,292 Views
Senlent
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
1 Reply
1,293 Views
Senlent
NXP TechSupport
NXP TechSupport
0 Kudos
Reply