From PICLIST@MITVMA.MIT.EDU Thu Nov 14 16:13:51 2002 Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-7.13) id AC3F8C3009C; Thu, 14 Nov 2002 16:13:51 -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 <3.007DA217@cherry.ease.lsoft.com>; Thu, 14 Nov 2002 18:59:51 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8d) with spool id 4620 for PICLIST@MITVMA.MIT.EDU; Thu, 14 Nov 2002 18:59:33 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 5660; Thu, 14 Nov 2002 18:59:31 -0500 Received: from smtp1.clear.net.nz [203.97.33.27] by mitvma.mit.edu (IBM VM SMTP Level 320) via TCP with ESMTP ; Thu, 14 Nov 2002 18:59:30 EST X-Comment: mitvma.mit.edu: Mail was sent by smtp1.clear.net.nz Received: from brent-s-desktop (203-167-157-200.dialup.clear.net.nz [203.167.157.200]) by smtp1.clear.net.nz (CLEAR Net Mail) with ESMTP id <0H5L00LT3BYZ85@smtp1.clear.net.nz> for PICLIST@MITVMA.MIT.EDU; Fri, 15 Nov 2002 12:59:24 +1300 (NZDT) MIME-version: 1.0 X-Mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Priority: normal Message-ID: <3DD4EEEF.10975.545C9B4@localhost> Date: Fri, 15 Nov 2002 12:56:15 +1300 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Brent Brown Organization: Electronic Design Solutions Subject: Re: [PIC]: Many channels of PWM To: PICLIST@MITVMA.MIT.EDU In-Reply-To: <3DD44074.89668214@3mtmp.com> X-RCPT-TO: Status: R X-UIDL: 277600543 X-Evolution-Source: pop://mailinglist%40farcite.net@mail.farcite.net/ X-Evolution: 00000702-0000 It may not be quite what you want, but for interest sake if nothing else.... I have 12 LEDs (well actually 12 banks of LEDs), each switched by an N-channel MOSFET. Each gate connects to the single PWM output of a PIC16F627 through a resistor. Each gate also connects directly to an individual port line on the PIC16F627. To turn an LED off, output a '0' on the port. To turn an LED on (100%), ouput a '1' on the port. To turn an LED on (xxx%), set PWM, set the port to input. Doesn't give you the ability to select any PWM value for any LED, but does give you three different intensities to choose from. Can be applied to almost any number of LEDs. Happy pulsing! -- Brent Brown, Electronic Design Solutions 16 English Street, Hamilton, New Zealand Ph/fax: +64 7 849 0069 Mobile/txt: 025 334 069 eMail: brent.brown@clear.net.nz -- 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