<?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: Using SPI on an AVR (3)</title>
	<atom:link href="http://www.rocketnumbernine.com/2009/07/03/using-spi-on-an-avr-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rocketnumbernine.com/2009/07/03/using-spi-on-an-avr-3/</link>
	<description>Andrew&#039;s Project Blog - hardware, software, things</description>
	<lastBuildDate>Tue, 31 Aug 2010 07:51:52 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Iggy</title>
		<link>http://www.rocketnumbernine.com/2009/07/03/using-spi-on-an-avr-3/comment-page-1/#comment-133</link>
		<dc:creator>Iggy</dc:creator>
		<pubDate>Tue, 06 Apr 2010 01:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.rocketnumbernine.com/?p=284#comment-133</guid>
		<description>This is terrific.  With your three blog posts and the avr SPI library you posted @ google code I was able to get a nice dual avr setup w/ SPI between a 328 and a 644p.</description>
		<content:encoded><![CDATA[<p>This is terrific.  With your three blog posts and the avr SPI library you posted @ google code I was able to get a nice dual avr setup w/ SPI between a 328 and a 644p.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://www.rocketnumbernine.com/2009/07/03/using-spi-on-an-avr-3/comment-page-1/#comment-72</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Wed, 09 Dec 2009 07:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.rocketnumbernine.com/?p=284#comment-72</guid>
		<description>If the controllers are on the same board or near I doubt if you need to add check sums - although it won&#039;t do any harm and would save you from the occasional sunspot
In http://www.rocketnumbernine.com/2009/05/12/using-spi-on-an-avr-2/ I tested communicating with a chip that could send multiple bytes in one &#039;session&#039; with no issues.
If all the spi slave handler is doing is to save the bytes received in a buffer until all received there should be no problem as long as the SPI clock rate is not too high.
Good luck
Andrew</description>
		<content:encoded><![CDATA[<p>If the controllers are on the same board or near I doubt if you need to add check sums &#8211; although it won&#8217;t do any harm and would save you from the occasional sunspot<br />
In <a href="http://www.rocketnumbernine.com/2009/05/12/using-spi-on-an-avr-2/" rel="nofollow">http://www.rocketnumbernine.com/2009/05/12/using-spi-on-an-avr-2/</a> I tested communicating with a chip that could send multiple bytes in one &#8217;session&#8217; with no issues.<br />
If all the spi slave handler is doing is to save the bytes received in a buffer until all received there should be no problem as long as the SPI clock rate is not too high.<br />
Good luck<br />
Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://www.rocketnumbernine.com/2009/07/03/using-spi-on-an-avr-3/comment-page-1/#comment-71</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Wed, 09 Dec 2009 05:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.rocketnumbernine.com/?p=284#comment-71</guid>
		<description>Andrew, 
     Thanks!  I&#039;ve been looking for an example of using SPI interrupt to handle receiving messages in an arduino slave.  I&#039;m concerned that if I just polled to look for new data available, would miss bytes.
        
     Would you have any advice on how long to make messages, whether it&#039;s required to do checksums on them?   if doing a checksum on the message would you do that probably in the parsing of the message, not the handler which shifts into buffer.  or would you add each byte as received, and have checksum already done at end.

     I have approximately 15 float variables to pass between controllers, is 60 bytes too much all at once?  probably could/should reduce them to 2 byte variables instead.  that&#039;s still 30 bytes.</description>
		<content:encoded><![CDATA[<p>Andrew,<br />
     Thanks!  I&#8217;ve been looking for an example of using SPI interrupt to handle receiving messages in an arduino slave.  I&#8217;m concerned that if I just polled to look for new data available, would miss bytes.</p>
<p>     Would you have any advice on how long to make messages, whether it&#8217;s required to do checksums on them?   if doing a checksum on the message would you do that probably in the parsing of the message, not the handler which shifts into buffer.  or would you add each byte as received, and have checksum already done at end.</p>
<p>     I have approximately 15 float variables to pass between controllers, is 60 bytes too much all at once?  probably could/should reduce them to 2 byte variables instead.  that&#8217;s still 30 bytes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
