----- Original Message ----- From: "Balthasar Indermuehle" To: Sent: Tuesday, January 23, 2007 8:37 AM Subject: [PIC] fading a LED with 16F917 > Hi all, > > I just received my PicKit2 today featuring a 16F917, and despite never > having programmed a PIC before I made rapid progress switching LED's on and > off (I've been practising with a simulator for the past few days). I then > searched the archives for information on how to fade in/out those LED's, but > unfortunately I do not understand how that is supposed to work. > > Can someone explain to me in hardware newbie terms, how I can use the pulse > width modulation method on the LED's connected to PORTD (TRISD)? Some sample > code would be of great help, too. > > Thanks! > > - Balt > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > I, too, am really new to PICs. However, if you haven't already downloaded the reference guide, maybe this will help. Section 14 of the PICmicroT Mid-Range MCU Family Reference Manual (DS33023A) addresses Compare/Capture/PWM in some detail. This reference is available for download from the Microchip site. Also, Googling pic pwm resulted in lots of info. Good luck. Richard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist