<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arduino 和 LM75 的 I2C 总线通讯</title>
	<atom:link href="http://www.davidrobot.com/2009/08/arduino-lm75-i2c.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidrobot.com/2009/08/arduino-lm75-i2c.html</link>
	<description>walking and thinking</description>
	<lastBuildDate>Thu, 19 Jan 2012 10:44:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: LT</title>
		<link>http://www.davidrobot.com/2009/08/arduino-lm75-i2c.html/comment-page-1#comment-489</link>
		<dc:creator>LT</dc:creator>
		<pubDate>Sat, 05 Jun 2010 13:19:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrobot.com/?p=722#comment-489</guid>
		<description>&lt;a href=&quot;#comment-483&quot; rel=&quot;nofollow&quot;&gt;@Tom Dupont &lt;/a&gt; 
Thanks for your codes !</description>
		<content:encoded><![CDATA[<p><a href="#comment-483" rel="nofollow">@Tom Dupont </a><br />
Thanks for your codes !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Dupont</title>
		<link>http://www.davidrobot.com/2009/08/arduino-lm75-i2c.html/comment-page-1#comment-483</link>
		<dc:creator>Tom Dupont</dc:creator>
		<pubDate>Fri, 23 Apr 2010 10:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrobot.com/?p=722#comment-483</guid>
		<description>I tested your code to read the temperature.  I have noticed that sometimes the arduino gets stuck and does not read the temperature.  After looking for the problem.  I noticed that it is recommended to read 2 octets at a time.  
This is your code slightly modified

#include 

void setup()
{
  Wire.begin();        // join i2c bus (address optional for master)
  Serial.begin(9600);  // start serial for output
  Serial.println(&quot;Let&#039;s measure the Temperature.&quot;);
}

void loop()
{

Wire.requestFrom(B1001000, 2);   // request 2 byte from address 1001000


  while(Wire.available())
  {
    int temp = Wire.receive();  // Read the first octet
    int lsb = Wire.receive();	// Read the second octet
    Serial.print(&quot;temperature = &quot;);
    Serial.println(temp);
  }

  delay(500);
}



Best regards</description>
		<content:encoded><![CDATA[<p>I tested your code to read the temperature.  I have noticed that sometimes the arduino gets stuck and does not read the temperature.  After looking for the problem.  I noticed that it is recommended to read 2 octets at a time.<br />
This is your code slightly modified</p>
<p>#include </p>
<p>void setup()<br />
{<br />
  Wire.begin();        // join i2c bus (address optional for master)<br />
  Serial.begin(9600);  // start serial for output<br />
  Serial.println(&#8220;Let&#8217;s measure the Temperature.&#8221;);<br />
}</p>
<p>void loop()<br />
{</p>
<p>Wire.requestFrom(B1001000, 2);   // request 2 byte from address 1001000</p>
<p>  while(Wire.available())<br />
  {<br />
    int temp = Wire.receive();  // Read the first octet<br />
    int lsb = Wire.receive();	// Read the second octet<br />
    Serial.print(&#8220;temperature = &#8220;);<br />
    Serial.println(temp);<br />
  }</p>
<p>  delay(500);<br />
}</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LT</title>
		<link>http://www.davidrobot.com/2009/08/arduino-lm75-i2c.html/comment-page-1#comment-353</link>
		<dc:creator>LT</dc:creator>
		<pubDate>Fri, 21 Aug 2009 04:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrobot.com/?p=722#comment-353</guid>
		<description>&lt;a href=&quot;#comment-352&quot; rel=&quot;nofollow&quot;&gt;@XDash &lt;/a&gt; 
picasa 被墙了，要改hosts解决，参看 http://www.davidrobot.com/2009/07/picasa-pic-blocked.html</description>
		<content:encoded><![CDATA[<p><a href="#comment-352" rel="nofollow">@XDash </a><br />
picasa 被墙了，要改hosts解决，参看 <a href="http://www.davidrobot.com/2009/07/picasa-pic-blocked.html" rel="nofollow">http://www.davidrobot.com/2009/07/picasa-pic-blocked.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XDash</title>
		<link>http://www.davidrobot.com/2009/08/arduino-lm75-i2c.html/comment-page-1#comment-352</link>
		<dc:creator>XDash</dc:creator>
		<pubDate>Fri, 21 Aug 2009 04:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrobot.com/?p=722#comment-352</guid>
		<description>写的很诱人，图片看不到～！</description>
		<content:encoded><![CDATA[<p>写的很诱人，图片看不到～！</p>
]]></content:encoded>
	</item>
</channel>
</rss>

