In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: Hello Bean, At the moment I don't have any single arrays that cross banks. I do however have quite a few variable which are scattered across several banks. That and i've been using the ISR based serial code that JonnyMac had posted to these forums. So far I've resolved quite a few issues (relating to the SX48 timers) but there seems to be one last bug to track down. It appears that some of my variables are getting overwritten and i'm trying to see if perhaps it might be that the RX_BYTE routine changes the BANK to it's own array and then when done explicitly sets it back to BANK 0. I can receive characters ok now (and can send them to 8 LED's for diagnostic) but afterwards get some odd behavior in my program. I'm going to try and walk through it with the debugger but at the moment suspect that the RX_BYTE setting the BANK 0 may be part of the issue if the compiler isn't keeping track that an assembly routine that is being called may have changed the current bank. Does that sound possible or am I way off here? I suppose the debugger will help tell for sure. Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=253103#m253126 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)