> > 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 Sorry to miss the obvious and go off on the wrong track. Every PIC's (except the 10F) timer(s) have an associated IF and IE. IF can be polled by s/w or used to generate an interrupt. In this case you reload just one 16-bit timer with alternating values. If the values are adjusted proportionate to each other the frequency can also be changed eg 6,000 + 14,000 = 30% duty at 50Hz 5,000 + 11,667 = 30% duty at 60Hz -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist