In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jdemeyer wrote: Here is my snippet. I took this from an SX-28 example. When I toggled the Rst line, I would receive all three values: temperature, counter, and slope. [code] INIT_1620: Rst = 1 ' select device SHIFTOUT DQ, Clock, LSBFIRST, WrCfg ' write to config register SHIFTOUT DQ, Clock, LSBFIRST, %00000010 ' with CPU; free-run Rst = 0 ' deselect device PAUSE 10 ' allow DS1620 EE to write Rst = 1 ' reselect SHIFTOUT DQ, Clock, LSBFIRST, StartC ' start conversion Rst = 0 ' deselect RETURN RD_1620: Rst = 1 ' select device SHIFTOUT DQ, Clock, LSBFIRST, RdTmp ' send read temp command SHIFTIN DQ, Clock, LSBPRE, tmpB1 ' get temp (C x 0.5) SHIFTIN DQ, Clock, LSBPRE, tSign1\1 ' get sign bit Rst = 0 Rst = 1 ' select device SHIFTOUT DQ, Clock, LSBFIRST, RdCounter SHIFTIN DQ, Clock, LSBPRE, tmpB2 ' SHIFTIN DQ, Clock, LSBPRE, tSign2\1 ' Rst = 0 Rst = 1 ' select device SHIFTOUT DQ, Clock, LSBFIRST, RdSlope SHIFTIN DQ, Clock, LSBPRE, tmpB3 ' SHIFTIN DQ, Clock, LSBPRE, tSign3\1 ' Rst = 0 ' deselect device RETURN [/code] I haven't evaluated chip temperature and ambient temperature. Joe ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=145582#m156077 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)