Forums - Configuring PWM pin

5 posts / 0 new
Last post
Configuring PWM pin
mmad
Join Date: 7 Jul 16
Posts: 13
Posted: Fri, 2018-04-13 09:26

Hello,

I cannot manage pin configuration used as PWM output.

I am able to change parameters (like open drain and current strength) for the same pin used as GPIO output, even in few different ways (tunable, qcom_gpio_add_alternate_configurations or qcom_gpio_pin_pad), but nothing works for PWM.

I found following sentence “Please check 80-ya116-4 document for PWM specification.”, but I am not able to find this document.

Please provide information how to configure PWM pin to open drain with maximum current.

Best regards

  • Up0
  • Down0
jbhanu Moderator
Join Date: 6 Feb 17
Posts: 76
Posted: Mon, 2018-04-16 18:24

Hi , 

Have you checked qcom_pwm_port_set API in sdk demo code? Is that not helpful?

Please kindly let me know?

 

Best Regards

  • Up0
  • Down0
mmad
Join Date: 7 Jul 16
Posts: 13
Posted: Tue, 2018-04-17 22:36

Hi,

my question was how to configure electrical parameters of the pin used with PWM, not the PWM itself,

the function qcom_pwm_port_set configures PWM and of course I am using it,

Best regards

  • Up0
  • Down0
svegesna Moderator
Join Date: 7 Jun 17
Posts: 20
Posted: Sun, 2018-04-29 23:25

Hi,

Please refer the below API's in SDK demo code.

qcom_pwm_control
qcom_pwm_sdm_set
qcom_pwm_port_set 

To configure PWM pin to open drain with maximum current, need to change GPIO configuration in tunable file.

Thanks,

  • Up0
  • Down0
mmad
Join Date: 7 Jul 16
Posts: 13
Posted: Mon, 2018-04-30 01:02

Hello

could you give please sample tunable lines?

I tried to alter the file, but I didn't notice any change, may be I was making an error.

Best regards

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.