Yes, we do this on a client's board with 5 PWM outputs. If you don't have the software time/space, you could look at a PAK-V or PAK-VIII to do the PWM externally. Anyone on the list working with CPLDs or FPGAs? I have a PWM function in a CPLD that you could replicate some obscene number of times on any modern CPLD. I can't remember if it is in Verilog or Altera schematic entry, but if anyone wants it (maybe in EDIF?) let me know - wish there was a good list like this for programmable logic devices.... Al Williams AWC * 8 channels of PWM http://www.al-williams.com/awce/pak5.htm > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Olin Lathrop > Sent: Sunday, March 17, 2002 9:10 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]:Dual USART PIC > > > > I haven't encountered a situation where I needed an extra > USART but I > > often wish I could have more than two PWMs; three, four or > even five > > would be nice. > > Fortunately PWMs are a lot easier to do in firmware than > UARTs, unless you need the high bandwidth. A 20MHz PIC can > easily take an interrupt every 100uS (500 instructions) and > update as many PWM outputs as you like. At 1% resolution you > get 10Hz PWM frequency, which can be useful for many > mechanical control applications. I'm sure you already know > this, Dave, but I'm pointing this out for others on the list. > > > ******************************************************************** > Olin Lathrop, embedded systems consultant in Littleton Massachusetts > (978) 742-9014, olin@embedinc.com, http://www.embedinc.com > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu