---- START NEW MESSAGE --- Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-8.05) id A9FEA0A022E; Wed, 28 Jan 2004 03:16:14 -0800 Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <16.00CC0BCA@cherry.ease.lsoft.com>; Wed, 28 Jan 2004 6:16:04 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8e) with spool id 6482 for PICLIST@MITVMA.MIT.EDU; Wed, 28 Jan 2004 06:15:57 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 7144; Wed, 28 Jan 2004 06:14:29 -0500 Received: from fep02.tuttopmi.it [212.131.248.101] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with SMTP ; Wed, 28 Jan 2004 06:14:28 EST X-Warning: mitvma.mit.edu: Host fep02.tuttopmi.it claimed to be fep02-svc.flexmail.it Received: from vanzo.it ([82.88.124.42]) by fep02-svc.flexmail.it with ESMTP id <20040128105314.BZSY20425.fep02-svc.flexmail.it@vanzo.it> for ; Wed, 28 Jan 2004 11:53:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Wed, 28 Jan 2004 11:53:20 +0100 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Stefano Vanzo Subject: Re: [PIC:] Vref+, VDD and PWM on PIC16f818 To: PICLIST@MITVMA.MIT.EDU In-Reply-To: <37FB7AA6F5F9814FB634A7BF4C35A6F5640CE5@ESEALNT442.al.sw.ericsson.se> Precedence: list X-RCPT-TO: Status: U X-UIDL: 371856074 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 list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics .