Windows IO IOT PWM Duty Cycle Default Value

Syed Ahmed 116 Reputation points
2021-04-01T05:07:49.033+00:00

Hi,
We are working on Windows 10 IOT in NXP board. We needs to set our PWM duty cycle to 100 as default. Currently it's booting with default duty cycle as 0.
How can I set my default duty cycle in windows 10 iot? Can we set them in Windows Driver. or we needs to change it in Firmware? Do we had any registy entries which can set default duty cycle value?

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
382 questions
{count} votes

Accepted answer
  1. Sean Liming 4,511 Reputation points
    2021-04-01T15:27:42.82+00:00

    The duty cycle is set up with the rest of the PWM parameters after connecting to the controller and before starting the PWM signal.

                    string aqs = PwmController.GetDeviceSelector("PWM");
                    :
                    :
                    :
                    myPWMcontroller.SetDesiredFrequency(30.0);
                    PwmPin myPWM = myPWMcontroller.OpenPin(0);
                    myPWM.SetActiveDutyCyclePercentage(0.4);
                    myPWM.Start();
    

    Is there a reason to have it set earlier?

    0 comments No comments

0 additional answers

Sort by: Most helpful