PWM for LPC175x
Posted: Sat Mar 14, 2015 9:21 pm
>frim help line
I need some more help. The Csample.c program has
case 5:
printf("Ramp thru PWM on LED\n");
for (i=0; i<256; i++) PWM (10,255-i,200);
break;
but P0.10 is not pwm type, and the LED is P2.10. All the pwm type pins on a LPC1751 are on ports other than 0.
How can I use the PWM(pin,cycle,ms) command on a LPC1751
I need some more help. The Csample.c program has
case 5:
printf("Ramp thru PWM on LED\n");
for (i=0; i<256; i++) PWM (10,255-i,200);
break;
but P0.10 is not pwm type, and the LED is P2.10. All the pwm type pins on a LPC1751 are on ports other than 0.
How can I use the PWM(pin,cycle,ms) command on a LPC1751