s32k oc_pal question

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

s32k oc_pal question

跳至解决方案
2,032 次查看
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,018 次查看
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,019 次查看
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,013 次查看
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,007 次查看
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 项奖励
回复