The first reply you gave was great info, but way more than I needed. For example, it was figuring out the exact period in microseconds (or some higher math such as that). I really don't care what the period or duty cycle is for my purposes, as it's just cycling an LED. My duty cycle is programmable from (5) to 255 (well, ignoring the two LSBs). On the other hand, I don't think that page made mention of what registers to set and this and that for the basic PWM setup. As another example, I don't need to worry about the prescaler or postscaler. Maybe I will for the counter, but I think changing those will not break my PWM code if I need to use them for the counter (and perhaps a prescaler of 2 or 4 might be useful for counting the fan pulses correctly). Regardless, the PWM matter is water under the bridge now. But, I thank everyone for the replies. Joe M. ivp wrote: > >> I was thinking/making PWM much more difficult than it is. But, >> when you don't know squat about it, even the simple things help > > I know, they really do. It's so much easier when you have something > that works which you can experiment with -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist