On 7/27/07, Andre Abelian wrote: > I did the same as you did. if you look at the code you will see it. > Apparently not. You wrote: > if (!input(trigger)) // wait for ttlinput pressed active low (was B2) > { > while(!input(trigger)){} // wait for release Dario wrote: > I don't like all of that time spent in ISR, i.e. sending bytes, doing > other things ecc. > ... > Usually my method is to set a flag in the ISR routine, and the main loop > checks this flag on a regular basis, and performs transmission etc. as > needed. Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist