In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Gustavo, Have you used the debugging features of the SX-Key IDE? You can set a breakpoint and see the value of variables using the WATCH directive. You have the tools to find the problem. As a test, I would force a value into the variable that holds the temperature from the DS1620. Right after the comment line that says: [code]; (*) Note that the DS1620 can only perform one conversion per second[/code] do something like this: [code] mov DSdata, #100[/code] This way, no matter you get the DS1620, you'll display the value "100" on your LCD. Do this to see if the problem is communication with the DS1620. You could also move your label called "again" to be above this line: [code] ; DS1620 configured as a thermometer sensor[/code] This will force your code to do all the DS1620 initializations again. This will help you figure out if the problem is that the DS1620 is not getting the right command to do a temperature conversion. Also, there is no need to keep initializing the LCD in the main loop. Do it once at the start of your program right after you clear the SX memory. Then, just use the cursor commands to put the cursor where you need it before you write to the LCD. Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=188431#m188676 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)