s32k oc_pal question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,076件の閲覧回数
hyunyong1125
Contributor I

Hello. I am a newbie who started using S32K for the first time.


While using the OC_pal function, there is something strange, so I write.

I want the timer interrupt to happen per second. So, I set Disable Output as shown in the picture below.

캡처.PNG

However, I am having a problem with DEV_ASSERT in the OC_InitFtm function.

If the function is OC_DISABLE_OUTPUT, it falls into an infinite loop.

캡처2.PNG

Is there a problem with the SDK? Or maybe I shouldn't use the DISABLE_OUTPUT setting?

 

ラベル(1)
0 件の賞賛
返信
1 解決策
2,062件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hyunyong1125,

There are only three types of Output Compare mode. Disable Output seems not included in Output Compare mode.

Table 47-5. Channel Modes Selection.png

If you don't need pin output, LPTMR and LPIT module is more suitable than FTM.

periodic_interrupt.png

Best Regards,
Robin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,063件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hyunyong1125,

There are only three types of Output Compare mode. Disable Output seems not included in Output Compare mode.

Table 47-5. Channel Modes Selection.png

If you don't need pin output, LPTMR and LPIT module is more suitable than FTM.

periodic_interrupt.png

Best Regards,
Robin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
2,057件の閲覧回数
hyunyong1125
Contributor I

Hi Robin_Shen

Thank you so much for your clear answer.

Additional Question.

1. There are only 3 functions of output compare. Why are there 4 menus?

2. Do you have any documentation comparing the functions of FTM, LPIT, and LPTMR?

0 件の賞賛
返信
2,051件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

1. There are only 3 functions of output compare. Why are there 4 menus?
A1: I will report it to internal team.

2. Do you have any documentation comparing the functions of FTM, LPIT, and LPTMR?
A2: I did not find such documentation, maybe you have to read the "Introduction" of each module in S32K1xx MCU Family - Reference Manual to compare the difference.

0 件の賞賛
返信