Und gleich 8 mal: Flackerlicht, ein komplettes Programm für den PIC:
http://www.domnick-elektronik.de/picpwm.htm