In SX Microcontrollers, SX/B Compiler and SX-Key Tool, basicstampede wrote: Hello. I have a program that reads temperature. Then I want to display it on a serial LCD, but I get junk. SUB Get_Temperature HIGH resetpetp SHIFTOUT DQ, Clock, LSBFIRST, RdTmp SHIFTIN DQ, Clock, LSBPRE, tempIn SHIFTIN DQ, Clock, LSBPRE, tempInS\1 LOW resetpetp RETURN The temp I want to show is in tempIn which is Byte. Then I convert the tempIn to two numbers and send to LCD as follows. temp10 = tempIn / 10 temp1 = tempIn // 10 LCDdata = ClearLCD SER_OUT LCDdata = temp10 SER_OUT LCDdata = temp1 SER_OUT Subprogram to show on LCD is tested and working when sending characters. Do I need to convert it to ASCII character before sending it to serial LCD? How do you do that in SX/B? Thanks. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=298374 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)