In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Terrabyte wrote: Hi folks. Here is my program project. I wanted some input as to whether my program framework made sense enough to pursue coding it(described below): I want to program my SX-48 as a triple-split 16-bit stopwatch measuring HI signals arriving at three different pins at three arbitrary times within a 65535 count loop. My program will scan three pre-designated PINs for HI signals in the loop. As each HI signal is successively detected, a status variable is incremented by one, the 16 bit split value is stored, and the pin that detected a HI is set to output. The program will ignore scanning a PIN set to output to avoid duplicate times. The loop will terminate when the status variable is binary 3 or 65535 is exceeded. It is possible, however improbable, that 2 or 3 of the times will arrive at the same time. But that does not matter too much to me at the moment. I also realize that a HI signal may occur while other program instructions are being executed, which may or may not be a significant source of error. :jumpin: DSRO ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=97971 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)