James Humes wrote: > I know first.. The first thing is that I set the PWM period like this > .... PR2 is 254, Tosc = 2.5e^(-7) (4MHz clk), TMR2prescale = 16.. from > the formula in the datasheet that gives: > PWMperiod = 255*4*2.5e^(-7)*16 = .00408, so the PWM frequency should be > 1/.00408 = 245.1 Hz. When I measure the frequency on that pin though, I > get around 9KHz. Are T3CON, PR3, and CCP1CON all still correct after you see this symptom? Your code may be setting them correctly initially, but then they get clobbered by a bug. The PWM period is only goverened by a few things, so this should be easy to track down. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist