S32K3 Pulse Edge count using Input Capture Unit (ICU)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K3 Pulse Edge count using Input Capture Unit (ICU)

跳至解决方案
2,432 次查看
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 项奖励
回复
1 解答
2,406 次查看
Senlent
NXP TechSupport
NXP TechSupport
0 项奖励
回复
1 回复
2,407 次查看
Senlent
NXP TechSupport
NXP TechSupport
0 项奖励
回复