In SX Microcontrollers, SX/B Compiler and SX-Key Tool, joegrand wrote: Hi guys- I've been struggling with this problem all weekend. I'm working on a project that requires a number of Word variables (let's say 16 for now). Clearly the SX28 has enough RAM to handle that, but I'm running into the good old "VARIABLE EXCEED AVAILABLE RAM" error message. I understand how to define and work with byte arrays, but all the examples I could find (on this forum, Jon's N&V articles, and The Zen of SX/B Programming, http://jcouture.net/sx/section.asp?sec=arrays) are only working with single bytes. I've tried to do things like defining a Word with Byte(2) or defining a large byte array (e.g., ByteArray(32)) and then defining my words as: TmpW1 VAR ByteArray(0) ' this is a Word TmpW2 VAR ByteArray(2) ' this is a Word But get the "UNKNOWN COMMAND 'LET"" when I actually try to treat the variable as a Word, which tells me the compiler is thinking it's still working with a Byte. I've also tried to poke around with using _LSB and _MSB, but that doesn't work either (since that seems to define the actual variable as that name and not just TmpW1): TmpW1_LSB VAR ByteArray(0) TmpW1_MSB VAR ByteArray(1) So, my question is: Is there a way to define a set of Word variables in such a way that I'll be able to use them normally throughout my code and not run into the error messages? Thanks :) Joe ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=257850 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)