Thanks for the reply Jan-Erik. I found the problem, it was that my PR2=20 register was getting over written by a small number on an errant bank switc= h=20 and most of the duty cycles I was giving it were greater than PR2.=20 James On 7/15/05, Jan-Erik Soderholm wrote:=20 >=20 > James Humes wrote : >=20 > > I'm using a 16F913 and having > > some trouble > with > > the PWM output on RC5. I had set it up and had it working, > > > but since then > > have added a lot of code and somewhere along the way > the PWM > > broke without > > me noticing it. >=20 > Restore one of the backups > of the "working" code ? :-) >=20 > > I'll be more than happy to post code, > but I don't want to > > bog this message > > down with it until I see > that I get on the list and someone > > is curious. >=20 > I don't think a > short PWM example would > be to much. Do not post your whole code, just > a > short PWM test-case that shows your "problem". >=20 > There is a good chance > that you will find the problem > while preparing the test-case ! :-) >=20 >=20 > Jan-Erik. >=20 >=20 >=20 > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist