> > > > movf pwmtick,W > > subwf pwm5,W > > rlf inttemp,F > > It's possible to reduce this to just a two instruction sequence: > > http://www.dattalo.com/technical/software/pic/pwm8.asm > > Scott Very slick, but setting the current PWM level from task level will require disabling interrupts and several instructions. Bob Ammerman RAm Systems -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics