<?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: SPI changing speed problems</title>
		<link>http://forums.leaflabs.com/topic.php?id=1161</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:27:52 +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=1161" rel="self" type="application/rss+xml" />

		<item>
			<title>joegtp on "SPI changing speed problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1161#post-7124</link>
			<pubDate>Wed, 09 Nov 2011 10:42:39 +0000</pubDate>
			<dc:creator>joegtp</dc:creator>
			<guid isPermaLink="false">7124@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'm trying to talk to a VS1053 chip (&#60;a href=&#34;http://www.sparkfun.com/products/9943&#34; rel=&#34;nofollow&#34;&#62;http://www.sparkfun.com/products/9943&#60;/a&#62;) and I'm having problems changing the speed of the SPI port after I issue a couple commands to change the clock multiplier. Here is an example of what I'm doing...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;myspi.begin(SPI_281_250KHZ, MSBFIRST, SPI_MODE_0);
// setup the clock multiplier to allow faster communications
myspi.transfer(...);

myspi.begin(SPI_2_25MHZ, MSBFIRST, SPI_MODE_0);
myspi.transfer(...); // &#38;lt;-- this line fails to bring back meaningful data&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I was thinking that I just wasn't configuring the clock multiplier correctly but then I tried calling begin with the same slower clock (SPI_281_250KHZ) and it still fails. If I comment out the second begin it works fine. I also tried calling &#34;end&#34; before the second &#34;begin&#34; and that didn't work either.&#60;/p&#62;
&#60;p&#62;So I left the line commented out (in a working state). I then started to work on my SDCard code which uses a different SPI port and ran across the same problem. I start the SPI bus at one speed, do some initialization and then try to increase the speed. Same behavior as before. If I comment out the second &#34;begin&#34; it works.&#60;/p&#62;
&#60;p&#62;The problem I'm having now is that I really need to increase the speed of the SPI because it's not keeping up with the MP3s I'm trying to send it.&#60;/p&#62;
&#60;p&#62;What is &#34;begin&#34; doing to the SPI bus? Is there something special I need to do when changing the SPI clock speed?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
