<?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; User Favorites: superprp</title>
		<link><a href='http://forums.leaflabs.com/profile.php?id=6611'>6611</a></link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:04:00 +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?profile=6611" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "SPI maple master - arduino slave"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10392#post-22944</link>
			<pubDate>Thu, 14 Mar 2013 20:13:27 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">22944@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;superprp - it doesn't really matter what clock rate the two processors are running at. &#60;/p&#62;
&#60;p&#62;Only one MCU provides the SPI clock, and the other is a slave, and hence the slave simply receives the master's clock.&#60;/p&#62;
&#60;p&#62;So, the clock from the master must be slow enough for the slave, then the slave will clock data in and out of its shift register using the masters clock signal.&#60;/p&#62;
&#60;p&#62;Also, you can get the communication working at slow speed, and then speed it up when everything is working.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>superprp on "SPI maple master - arduino slave"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10392#post-22942</link>
			<pubDate>Thu, 14 Mar 2013 17:15:20 +0000</pubDate>
			<dc:creator>superprp</dc:creator>
			<guid isPermaLink="false">22942@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;I am trying to comunicate a maple with arduino throught SPI (due to I cant comunicate in I2C with maple as slave) and I have one doubt.&#60;br /&#62;
How it works if frecuency in MAPLE is 72Mhz and in arduino is 16Mhz? Could I modify this to use the 8Mhz clock in MAPLE x 2 to get 16Mhz? Because if not, following documentation it is like this:&#60;/p&#62;
&#60;p&#62;MAPLE:&#60;/p&#62;
&#60;p&#62;Values:&#60;/p&#62;
&#60;p&#62;    SPI_18MHZ = 0 -&#60;/p&#62;
&#60;p&#62;    18 MHz&#60;br /&#62;
    SPI_9MHZ = 1 -&#60;/p&#62;
&#60;p&#62;    9 MHz&#60;br /&#62;
    SPI_4_5MHZ = 2 -&#60;/p&#62;
&#60;p&#62;    4.5 MHz&#60;br /&#62;
    SPI_2_25MHZ = 3 -&#60;/p&#62;
&#60;p&#62;    2.25 MHz&#60;br /&#62;
    SPI_1_125MHZ = 4 -&#60;/p&#62;
&#60;p&#62;    1.125 MHz&#60;br /&#62;
    SPI_562_500KHZ = 5 -&#60;/p&#62;
&#60;p&#62;    562.500 KHz&#60;br /&#62;
    SPI_281_250KHZ = 6 -&#60;/p&#62;
&#60;p&#62;    281.250 KHz&#60;br /&#62;
    SPI_140_625KHZ = 7 -&#60;/p&#62;
&#60;p&#62;    140.625 KHz&#60;/p&#62;
&#60;p&#62;ARDUINO:&#60;/p&#62;
&#60;p&#62;    SPI_CLOCK_DIV2 = 8Mhz&#60;br /&#62;
    SPI_CLOCK_DIV4 = 4Mhz&#60;br /&#62;
    SPI_CLOCK_DIV8 = 2Mhz&#60;br /&#62;
    SPI_CLOCK_DIV16 = 1Mhz&#60;br /&#62;
    SPI_CLOCK_DIV32 = 500khz&#60;br /&#62;
    SPI_CLOCK_DIV64 = 250KHz&#60;br /&#62;
    SPI_CLOCK_DIV128 = 125Khz
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
