In SX Microcontrollers, SX/B Compiler and SX-Key Tool, user01 wrote: I solved the problem by putting this code in the initialization: ldx #REGBLK bset DDRD,x %00111000 bclr PortD,x SCLK bset PortD,x RSTTEMP ldaa #$EE ldab #8 ZS1: bclr PortD,x I_O lsra bcc NS1 bset PortD,x I_O NS: bset PortD,x SCLK nop nop nop bclr PortD,x SCLK decb bne ZS1 When I done this I begin to get different readings such as 3=, 2> and so on. So I put this code for the convertion from BCD to degrees, showing on LCD: clra ldx #10 idiv orab #$30 stab str2+10 xgdx ldx #10 idiv orab #$30 stab str2+9 When I put it I begin to get from 40oC to 65-70oC, but without any marks or unknown symbols. I'm surprised of this reading, because the temperature on the corpus of the device is not more than 25-27oC, even colder. Is there an error in the code for the conversion? Can somebody tell me better method, because I don't know other? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=385864#m386463 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)