>-----Original Message----- >From: Robert B. [mailto:piclist@NERDULATOR.NET] >Sent: 23 April 2004 03:23 >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: [PIC:] Slow PWM signal in hardware > > >Thanks for the suggestions. I wound up just doing it in >software with (as >usual) a crude hack that works pretty well. It was way less >painful than I thought it would be, actually! Is there a >reason Microchip doesn't make this a little easier? It seems >it would be a fairly common task at least. > > Microchip optimised the CCP to give as high frequency as possible whilst still maintainging good resolution, which is generaly more usefull for the majority of applications that would use the PWM as an analog output. However, adding an extra few stategs on the pre-scaler would certainly have increased it's usefulness for this type of application. BTW, I tried my suggestion using the simulator and couldn't get it to work. Microchips documentation isn't overly clear, but it looks like if you configure both CCP's for compare mode, they will both use the special trigger mode which clears Timer1. That or my test program was complete rubbish and I'm not ruling that out! Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.