S32K3 Pulse Edge count using Input Capture Unit (ICU)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K3 Pulse Edge count using Input Capture Unit (ICU)

ソリューションへジャンプ
2,438件の閲覧回数
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,412件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
1 返信
2,413件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信