> I have a routine for the user to set the value of CCPR1L Another little exercise would be to set the brightness with an LDR connected to an ADC input > 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 > but my PWM output may make the counting a challenge if the timers > are interdependent Wouldn't be a problem in the h/w as all timers are distinct. *your* management of the events is something else. The art is knowing exactly what will and could happen. For example, what priority do I put on various events ? Can this one wait ? Do I need to change the duty cycle urgently ? wbr -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist