s32k oc_pal question

cancel
Showing results for 
Search instead for 
Did you mean: 

s32k oc_pal question

Jump to solution
156 Views
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
142 Views
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
143 Views
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
137 Views
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
131 Views
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