In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Capt. Quirk wrote: Dan there isn't a Debug function like the BS2 on the SX. Debug is possible with the BS2 series, because it has an eeprom that controls the pic or sx chip on a BS2 and thats also the reason the BS2 is so much slower than the SX. We use the SX-Key to to real-time debuging and SX-Sim to measure the time a routine takes and how many cycles it consumes. Unfortunatly the sx-key only allows 1 "BREAK" statement to be used at a time, so we get around it by calling a subroutine that contains the "BREAK" statement. You declare it like this: BREAK_NOW Sub 0 When you call the Subroutine, just add the line BREAK_NOW, without a GOSUB. [1](then the sub routine is)[/1] BREAK_NOW: BREAK RETURN Then use as many WATCH statements you need to follow any of the variables like this: (I add them before the subroutine declerations) WATCH Var, #of Bits, UDEC (unsigned decimal) look under help Also, there is more code examples within the SX-Key directory, inside the Examples folder and then under SXB. I wasted a lot of time trying to create some sort of SX-Debug. Just learn how to use the SX-Key Debug feature and SX-Sim and you will be able to do more than the BS2 Debug can. Bill ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=188464#m188493 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)