In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: Rob, As Chris pointed out, you will need to call TX_Byte twice since a byte is expected for serial transmission and you want to transmit the double-byte value that is held in a word variable. Something like the following should work:[CODE] TX_BYTE Result__MSB TX_BYTE Result__LSB[/CODE] The "__MSB" and "__LSB" suffixes are automatic aliases SX/B creates for word variables so that the individual bytes that comprise the variable can be addressed separately. Pretty cool, eh? As Chris also noted, you may need to switch the order of the statements if your BS2 is expecting the Least Significant Byte to be sent first. Also, depending upon the capabilities of the terminal program you are using, you may not be able to visually recognize the correct values. Your terminal program will likely attempt to display each byte as a character or interpret it as a control code of some kind. - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=188681#m188697 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)