I'm using the S32K148 EVM.
I configured the pin PTB8 for FTM3_0 function.
After the DeInitPWM was executed, the pin states went to Low state.
My application needs to call InitPwm() and DeInitPwm() repeatedly. At this time, After DeInitPwm, the pin state need to keep the high state.
Is it possible to set the Default pin state to High state after DeInitPWM() in the PWM configuration settings?
Hi,
Thank you so much for your interest in our products and for using our community.
Yes! You can test it using the Ftm_Pwm_Ip_Example_S32K148 of RTD S32K1 2.0.0 with the following modifications:
When debugging and after Ftm_Pwm_Ip_DeInit() function you will see the output HIGH.
On the other hand, you can set duty cycle as 100% without call Ftm_Pwm_Ip_DeInit().
Hope it helps you.
Have a nice day!