I want to vary the duty cycle in the run time. So that I can observe the pwm signal. And also want to change the LED brightness using potentiometer. Is it possible to do in the s32ds using s32k144 board?
解決済! 解決策の投稿を見る。
Hi @Shrini
Yes, it is possible to change the duty cycle of a PWM. You need to change the value of the CnV register
FTM_->CONTROLS[channel].CnV= value;
I suggest you look at the included examples on the SDK/RTD or in the S32K1xx Series Cookbook.
B.R.
VaneB