You just vary the duty from 0 to 100%. The output from the pic will be 5V of which 3V will be dropped by the resistor and the other 2V by the LED. The current through the LED will be (V/R) 3/220 amps = 13.5mA.
You just vary the duty from 0 to 100%. The output from the pic will be 5V of which 3V will be dropped by the resistor and the other 2V by the LED. The current through the LED will be (V/R) 3/220 amps = 13.5mA.
No, the duty cycle will start from 1. The PWM is not converted to DC (I hope) but instead flashes the LED at full brightness. It the duty cycle is 10% then the LED will be at full brightness for 10% of the time and so you see it as dull.
No, the duty cycle will start from 1. The PWM is not converted to DC (I hope) but instead flashes the LED at full brightness. It the duty cycle is 10% then the LED will be at full brightness for 10% of the time and so you see it as dull.
Thanks for verifying.That means what ever the value is write to the duty cycle register it will turn on the LED with full brightness for the specific time written to the register.