At 09:33 AM 13/07/02 -0500, you wrote: >Thanks for your reply. Sorry, I guess I missed the post with the answer. It >says that PICs with a CCP module allow two PWM outputs with the same >frequency, but different duty cycles. I've look at the data sheet and I >can't figure out how this could be done. I've checked application notes for >the CCP and from what I understand that only works on PICs with two CCP >modules. I got contradicting replies to my post and I'm confused. Am I >missing something here? >Thanks! Richard I am the wrong one to ask. Other than just looking at it and finding out that it will do two pwm streams with hardware, I can't help you. A couple of the guys who responded to my question did post some code on how to do it. That was only a couple days ago. I think there was also a link to an example of code for two streams. From what I recall both pwm 's are generated off of timer 2. So the total pulse time is the same but you can vary each pwm stream as to the pulse width. So each pulse cycle is say 100ms in length but you can have one running at 10% and the other at 100% etc. Dave -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.