ADC Code PTB1/ADC0_SE9 (MK22FN256VLH12)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ADC Code PTB1/ADC0_SE9 (MK22FN256VLH12)

539 次查看
briancavanagh
Contributor III

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

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

448 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Brian,

Please try to use these two function:  PWM1_SetRatio16 or PWM1_SetDutyUS

PWM1_SetRatio16 PWM1_SetDutyUS.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复