Hi, I have been adjusting my duty cycle manually in my code. What I would like to do is is connect a potentiometer to PTB1/ADC0_SE9 and send the result to my variable DutyCycle. I'm using Kinetis Design Studio 3.2.0.
Can someone direct me where there's a resource and/or help be get started?
Thanks,
Brian
Hi Brian,
Please try to use these two function: PWM1_SetRatio16 or PWM1_SetDutyUS
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------