s32k oc_pal question

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

s32k oc_pal question

Jump to solution
1,112 Views
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?

 

Labels (1)
0 Kudos
1 Solution
1,098 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
1,099 Views
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 Kudos
1,093 Views
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 Kudos
1,087 Views
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 Kudos