In SX Microcontrollers, SX/B Compiler and SX-Key Tool, samsam wrote: This is a routine in P Basic What would this routine be in SX cntr_P = cntr_P + 1 * Chg_P ' This line is to check if state of pin 9 IF (cntr_P = 6 ) THEN GOSUB P_resetData ' The ReSet button has to be press to clear Data ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=394263#m397590 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)