question

SyedAhmed-3578 avatar image
0 Votes"
SyedAhmed-3578 asked Sean-Liming commented

Windows IO IOT PWM Duty Cycle Default Value

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-iot-10core
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you still having trouble with this issue?

Did the answer help? If so, please mark it as an answer. Thank you.

0 Votes 0 ·

1 Answer

Sean-Liming avatar image
0 Votes"
Sean-Liming answered

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?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.