On 4/26/07, Jinx wrote: > > Timer1 is first loaded with 6,000, and the output pin set high. At > the IRQ, the pin is set low and Timer1 is loaded with 14,000. At > the IRQ, pin set high, load with 6,000 and so on. The result will > be a wave that is 6ms high, 14ms low Ok, this is starting to make a lot more sense. I didn't actually know timers with events existed in this form on the PIC. I think I must have just been thinking of this totally wrong up till now. I've thought of the frequency and PWN as two separate entities, and was totally confused on once you set one, what happened to the other one. So you're basically saying that my frequency is set automatically to 50Hz as long as my timer values add up to 20,000, and alternating the timer values adjusts my PWM without touching the frequency. Correct? I don't know why that took me so long to grasp. :\ In your opinion, would this be easy enough for a beginner to do in assembly, or should I just stick with one of the C variants? It *sounds* easy, but easy is relative... > > >... If anyone can help me out, I'd be in your debt. :) > > > > > > Send money, women, to...... > > > > let's see... I've got three nickels and a paper clip. will that be enough? > This paper clip - good looker ? Flexible ? I read this on the bus this morning and died laughing. I wonder what the people around me were thinking... -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist