In SX Microcontrollers, SX/B Compiler and SX-Key Tool, transmon wrote: How would you convert this to sxb? there is no dedug command how would you see the time and days? David ' {$STAMP BS2p} ' {$PBASIC 2.5} days VAR Word hrs VAR Word mns VAR Word sec VAR Word START: PAUSE 1 '968 ' Adjust this to 'tune' the clock. DEBUG HOME, "mns = ", DEC2 mns , "hrs = ", DEC2 hrs , "days = ", DEC3 days' , "days = ", DEC3 days sec = sec + 5 * 500 IF sec < 60 THEN START sec = 0 mns = mns + 1 IF mns < 60 THEN START mns = 0 hrs = hrs + 1 IF hrs < 24 THEN START hrs = 0 days = days + 1 IF days < 365 THEN START days = 0 ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155483 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)