Yes Jan-Erik, Thats rigth I sould have wrote CCP1CON bits 4 - 5 set and CCPR1L to FF -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Jan-Erik Soderholm XA (TN/PAC) Sent: Wednesday, January 28, 2004 9:33 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] Vref+, VDD and PWM on PIC16f818 Stefano Vanzo wrote : > I am starting with PWM and have 2 questions > about this project: > 1 analog input with 4.096 Volt ref+ > 1 PWM > 3 digital pins for digital byte output of the analog value > > First question, if i use PWM with FFFF output will it give me > 4.096 volts, 5 volts or will it be unknown What do you meen with "FFFF output" more specificaly ? Are you setting some register ? If so, which ? ANd the Vref has nothing to do with the PWM. > Second question after I started PWM does it keep on going by > it's own... Yes. Jan-Erik. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.