ADC Code PTB1/ADC0_SE9 (MK22FN256VLH12)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC Code PTB1/ADC0_SE9 (MK22FN256VLH12)

386 Views
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

Labels (1)
0 Kudos
1 Reply

295 Views
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 Kudos