Phillip wrote: > 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. There are a few things to watch for when you update the timer values (to minimize jitter), but I think it's better to look for that when you have this working :) > 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? I'd say work with whatever you feel more comfortable and/or want to work with in the future. If you work with C, I suggest you make sure you understand the generated assembly code (make your compiler output list files and read them). Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist