11 years, 1 month ago.

mini2440 pwm duty

Hi everyone, I want to change pwm duty cycle for dc motor speed control on mini2440.But ı don't know how to do this? Can you help me please Have a nice day.

1 Answer

11 years, 1 month ago.

On the LPC1768, it's like this:

PwmOut R(p22);
R = 0.25;

This would set the p22 pin to 25 percent output. This is for an LED, but it works the same for a motor.