In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Originator99, I'm don't use SX/B, but it looks to me like you're not sending a string, but rather sending an integer to the PC. You have this code: [code] TX_STR temperature ' send inline string to PC ??????????????????????? TX_STR CrLf ' send stored z-string [/code] The problem is that the definition of "temperature" is this: [code]temperature VAR Word ' Holds temperature in 0.1°C units (250 = 25.0°C) [/code] That is just an integer, and not a string. Furthermore, temperature is whittled away to crate a string for the LCD, so when it's done, it has nothing or junk in it. It makes sense that you get junk on the PC side because I am assuming you're using a terminal program to read it. If so, then the terminal program takes whatever is receives and tries to interpret it as ASCII when it's not - it's a raw integer. You comment mentions "inline string" but there is no inline string that I see. Instead, the code creates an equivalent of the temperature and sends it a character at a time to the LCD as it creates it. I think that if you follow each call of: [code] LCDSend temp [/code] with something like: [code] temp = temp or $30 'Convert number to ASCII equivalent TX_STR temp, 1 'Send to PC[/code] You should get the results you're looking for. Bear in mind, I have no idea what hardware you're using. I'm not sure what LCD you have attached, and if it is working or not. I also don't know if you have verified that you are able to send [b]any[/b] string data to the PC over a serial port. If not, then get that working first, and then figure out how to integrate that knowledge into this code you're working on. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155619#m155695 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)