There is lots of good info in that link, but does anyone have an example of "finished" / "working" ASM code that dims the backlight? (or even just sets the duty cycle of the PWM output) Joe M. ivp wrote: >> I'm using the PIC18F4520. > > Joe, this example is for the 16F877 but PWM set-up is very similar > for the 18F4520 > > http://www.piclist.com/techref/microchip/16F877/pwm.htm > > If you read the PWM section in the datasheet you'll see -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist