In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Jim, This is one of thoses cases where "what's best for the basic stamp is not best of the SX". The stamp must use this method because of the delay it takes to load and decode the next line of the program would cause it to miss the next pulse. The SX is easily capable of making a measurement in a loop then decide if the bit is a startbit, one bit, or zero bit act accordingly. Actually the "best" way to read IR is with an interrupt. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=139808#m139814 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)