I'm doing something rather curious. Has anybody use the PIC PWM to generate variable-length periods? I need to hold the line low for fixed times (1640 instructions), but change the high time from 240 instructions to 9680 instructions and _normally_ be in the high state (when PWM is "inactive"). Any ideas? Thanks. Andy \-----------------/ \ /---\ / \ | | / Andy Kunz \ /---\ / Montana Design /---------+ +---------\ http://www.montanadesign.com | / |----|___|----| \ | \/___| * |___\/ Go fast, turn right, and keep the wet side down!