Problem is solved. I moved the Checking part to the calling routine. > -----Oorspronkelijk bericht----- > Van: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] > Namens Jan-Erik Soderholm > Verzonden: woensdag 5 augustus 2009 14:20 > Aan: Microcontroller discussion list - Public. > Onderwerp: Re: [PIC] PWM wont set output bits, why? > > Where and how are your symbols defined ? > Where and how are the analog pins setup ? > > > Harry H. Arends wrote: > > I have made some code to produce two pwm's to let two led's fade in > > and fade out. > > It looks to work but the outputs are never been set. Am i missing > > somethin? > > The PIC used is a 16F685 and i am using MPLAB IDE 8.30 as > development > > tool. > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist