In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Gustavo wrote: Bean, You are right, but the weird behaviour still continue. In the ShiftOut subroutine we have the line mov DQ,c ;Move carry bit to input of DS1620 Generates: sc clrb RA.2 snc setb RA.2 After the first jump/again, it doesn't set the bit RA.2 when it has to, I don't know why. So the DS1620 doesn't receive the "order" to read the temperature value This is the first time I try to write a program in assembler, and this is beyond my knowledge ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=188431#m188874 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)