In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: I just looked at the code for the XGameStation. He does exactly what you are proposing. I guess the trick is to make sure that RTCC is less than 159 before you start looping. Then as soon as it hits 159 the loop will end. The clock count could be off my as much as 6 cycles since that's how many cycles the loop takes. Are you writing a game for the xgamestation ? Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=112331#m112411 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)