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.
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.
Is there a problem with the SDK? Or maybe I shouldn't use the DISABLE_OUTPUT setting?
Solved! Go to Solution.
Hi hyunyong1125,
There are only three types of Output Compare mode. Disable Output seems not included in Output Compare mode.
If you don't need pin output, LPTMR and LPIT module is more suitable than FTM.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi hyunyong1125,
There are only three types of Output Compare mode. Disable Output seems not included in Output Compare mode.
If you don't need pin output, LPTMR and LPIT module is more suitable than FTM.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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?
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.