On Sun, 27 Feb 2005, Jason Graham wrote: > I was wondering if anyone knows if both PWM's on a PIC 18f452 can be used > simultaneously? Yes. > I know that the frequency and period have to be the same, Correct. > i need to vary the duty cycles on each. That is, one (CCP1) is controlling > the variable speed of a DC drive motor (varying duty cycles), whereas the > other (CCP2) needs to control a DC motor that also needs a varying duty > cycle. Both at the same time. I have been trying to get it to work but it > seems to only control one at a time. Show how you've set up the CCPxCON and CCPRx registers. -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist