<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Joe,</div><div><br></div><div>My thinking is to use the interrupt for the trigger, as that is simpler, and you may want to be able to use coded pulses ("who shot me?") in the future, which I think would be easier to do in the main loop. Since interrupts should be off while handling an interrupt, whatever you do in the handling needs to be quick and done before the next interrupt comes along. </div><div><br></div><div>Others, feel free to correct me, as my enthusiasm sometimes surpasses my knowledge. <br><br><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Jeff :)</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div></div><div><br>On Jul 26, 2014, at 16:09, Joe Fair <<a href="mailto:joe@fairanswers.com">joe@fairanswers.com</a>> wrote:<br><br></div><blockquote type="cite"><div><p>Ok.  I'm pretty close on getting my home made laser tag with at tiny 85s going, but now i have a question about design.</p>
<p>The loop I'm using detects a trigger pull, then a hit on the sensors.  however, The pulse in function I'm using to sense IR ha a timeout of 1 second.  If there is no inbound signal it is only checking got a trigger pull once a second.</p>

<p>So i need to use an interrupt, but does it matter if i use one on the trigger pull or the ir sensor? </p>
<p>Joe<br>
</p>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Triangle, NC Embedded Computing mailing list</span><br><span><a href="mailto:TriEmbed@triembed.org">TriEmbed@triembed.org</a></span><br><span><a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a></span><br><span>TriEmbed web site: <a href="http://TriEmbed.org">http://TriEmbed.org</a></span><br></div></blockquote></body></html>