On Sat, 2006-01-07 at 19:10 -0800, Robertino Benis wrote: > > > Perhaps you're triggering again once the ISR exits. > > That may be possible. So, if the pin stays up high long enough, after the > interrupt service routine exits - interrupt is triggered again, and > service routine is reentered. That would explain why sometimes I see the > LED not changing flashing frequency... > > So basically: how long that pin can stay high depends on how long it takes > for the interrupt service routine to finish. > > What is the best way to just send a "short" pulse to INT0 (caused by the > push switch)? I think you'd be solving the wrong problem. The problem is switches are "noisey", and push button switches are the worst. Depending one what you've got, the easiest is to debounce the switch with hardware. Try google for that. Debouncing can be done in software, but it can get tricky. TTYL ----------------------------- Herbert's PIC Stuff: http://repatch.dyndns.org:8383/pic_stuff/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist