<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Does this means it is overflow?</title>
		<link>http://forums.leaflabs.com/topic.php?id=1070</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:24:14 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1070" rel="self" type="application/rss+xml" />

		<item>
			<title>gulu2065 on "Does this means it is overflow?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1070#post-6577</link>
			<pubDate>Sun, 25 Sep 2011 00:48:29 +0000</pubDate>
			<dc:creator>gulu2065</dc:creator>
			<guid isPermaLink="false">6577@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I use arduino Mega 2560 to work as Master and Maple as slave to test whether my maple can read data correctly. Mega 2560 generate data at the speed of 2Mhz.&#60;br /&#62;
I alternately generate 00000000 and 00001001.&#60;br /&#62;
Here is the code for arduino to generate data&#60;br /&#62;
#include &#38;lt;SPI.h&#38;gt;&#60;br /&#62;
int i=0;&#60;br /&#62;
void setup() {&#60;br /&#62;
  pinMode (50, OUTPUT);&#60;br /&#62;
  pinMode (52, OUTPUT);&#60;br /&#62;
SPI.begin();&#60;br /&#62;
SPI.setBitOrder(MSBFIRST);&#60;br /&#62;
SPI.setClockDivider(SPI_CLOCK_DIV2);&#60;br /&#62;
SPI.setDataMode(SPI_MODE1);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;br /&#62;
    SPI.transfer(9);&#60;br /&#62;
      SPI.transfer(0);&#60;br /&#62;
}&#60;br /&#62;
And this is the code for Maple to read data&#60;br /&#62;
HardwareSPI spi(1);&#60;br /&#62;
int i;&#60;br /&#62;
void setup() {&#60;br /&#62;
spi.beginSlave(MSBFIRST, 1);&#60;br /&#62;
}&#60;br /&#62;
void loop() {&#60;br /&#62;
   byte response = spi.read();&#60;br /&#62;
   SerialUSB.println(response, BIN);&#60;br /&#62;
}&#60;br /&#62;
I find that the the data read by Maple is not 00000000 and 00001001 show up  alternately, it seems, several 00000000 and then several 00001001 or something.&#60;br /&#62;
Does this means my maple is overflow and lost some data?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
