In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Yes, I just found out about __RAM. The following compiles, SUB mtI2CwritePage mtVARaddress_LSB = __PARAM1 mtVARaddress_MSB = __PARAM2 mtVARrdata = __PARAM3 mtI2C_START mtI2C_SEND mtVARi2cid mtI2C_SEND mtVARaddress_LSB mtI2C_SEND mtVARaddress_MSB for mtVARwdata=0 to __PARAM4 __PARAM3 = mtVARrdata+mtVARwdata mtI2C_SEND __RAM(__PARAM3) next mtI2C_STOP return Is this the easiest way when using sx48? regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=159819#m159823 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)