On Wed, 27 Feb 2002, Michael Rigby-Jones wrote: > Neil, > > Check the recent thread "Ultra fast low res PWM". There are several code > examples for minimal software PWM routines that take only a few cycles. > or if you haven't enough patience for that, try software pwm in Jal for 16F84, or hardware pwm for 16F87x. include 16f84_4 include jpic include jdelay var bit led is pin_b7 pin_b7_direction = output var byte pulse = 1 forever loop delay_100us ( pulse ) led = high pulse = pulse + 1 delay_100us ( 255 - pulse ) led = low end loop -- 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