ADC Code PTB1/ADC0_SE9 (MK22FN256VLH12)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ADC Code PTB1/ADC0_SE9 (MK22FN256VLH12)

393件の閲覧回数
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 返信

302件の閲覧回数
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 件の賞賛