<?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: anyone used WizEthernet with W5200 on SPI1?</title>
		<link>http://forums.leaflabs.com/topic.php?id=2242</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:21:53 +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=2242" rel="self" type="application/rss+xml" />

		<item>
			<title>shark2600 on "anyone used WizEthernet with W5200 on SPI1?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2242#post-11952</link>
			<pubDate>Mon, 23 Jul 2012 21:46:10 +0000</pubDate>
			<dc:creator>shark2600</dc:creator>
			<guid isPermaLink="false">11952@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok, answer my own question:&#60;/p&#62;
&#60;p&#62;The following is from &#34;HardwareSPI&#34; reference : &#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwarespi.html#lang-hardwarespi&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/hardwarespi.html#lang-hardwarespi&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;”Note : Due to hardware issues, you can’t use the frequency SPI_140_625KHz with SPI port 1.&#34;&#60;/p&#62;
&#60;p&#62;So, I changed SPI speed to 4.5MHz in init_mac() function wiz820io.cpp:&#60;br /&#62;
this-&#38;gt;spi-&#38;gt;begin(SPI_4_5MHZ, MSBFIRST, SPI_MODE_0); &#60;/p&#62;
&#60;p&#62;Everything is working now. Suggestion, we may want update wizethernet.zip, with above changes, so that it will work with both SPI1 and SPI2 connections.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shark2600 on "anyone used WizEthernet with W5200 on SPI1?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2242#post-11925</link>
			<pubDate>Sun, 22 Jul 2012 23:21:04 +0000</pubDate>
			<dc:creator>shark2600</dc:creator>
			<guid isPermaLink="false">11925@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I did some search on this forum, seems nobody had this problem.&#60;br /&#62;
I'm currently using Maple R5 with W5200 shield from EKitsZone I got from ebay(search w5200 EKitsZone). It is working, well, only with SPI2. I'm using  Maple IDE 0.0.12.&#60;/p&#62;
&#60;p&#62;To get this shield working, I did some modifications.&#60;br /&#62;
a). Removed the 6 pin stackable ISP header, and put a 6 pin header on the top layer. This shield connects W5200 SPI pins to ISP header.&#60;/p&#62;
&#60;p&#62;b). This shield uses 5V only, (the one next to 3.3v pin), which Maple does not provide. This shield has it's own internal DC-DC switch. So, I jump-wired a 5v from the '5V USB' power selection from maple to the W5200 board. To permanently fix the power issue, you will need to remove LM1117-33 from the board, connect pad 2 of the removed LM1117-33 position to 3.3v pin input (the one next to reset).&#60;/p&#62;
&#60;p&#62;c). Closed nINT and PWRDN jumpers from the W5200 shield.&#60;/p&#62;
&#60;p&#62;Here are my pin connections, all pins are 0 based:&#60;/p&#62;
&#60;p&#62;Power:&#60;br /&#62;
W5200-------------------------------maple&#60;br /&#62;
J1(5V) pin..........................5v usb selection jumper header.&#60;br /&#62;
ISP6(GND)...........................GND&#60;/p&#62;
&#60;p&#62;SPI2 connections:&#60;/p&#62;
&#60;p&#62;W5200-------------------------------maple&#60;br /&#62;
ISP1(MISO)..........................33 (SPI2-MISO)&#60;br /&#62;
ISP2(NC)............................N/C (Not connected)&#60;br /&#62;
ISP3(SCK)...........................32 (SPI2-SCK)&#60;br /&#62;
ISP4(MOSI)..........................34 (SPI2-MOSI)&#60;br /&#62;
ISP5(nReset)........................7 (defined as reset pin in source code in WizEthernet code, for testing, I also changed it to maple 6 )&#60;/p&#62;
&#60;p&#62;control pin connections:&#60;br /&#62;
W5200-------------------------------maple&#60;br /&#62;
ditial 10...........................31 (SPI2 nss)&#60;br /&#62;
ditial 5(PWRDN).....................8( I saw this is defined in WizEthernet code)&#60;br /&#62;
ditial 2(nINT)......................9( I saw this is defined in WizEthernet code)&#60;/p&#62;
&#60;p&#62;serial3 output for debugging:&#60;br /&#62;
USB to Serial ---------------------- maple&#60;br /&#62;
GND..................................GND&#60;br /&#62;
RXD                                  29 (serial 3)&#60;/p&#62;
&#60;p&#62;With the above configuration, I'm able to run telnetserver, webserver on this board. &#60;/p&#62;
&#60;p&#62;However, when I switched SPI from #2 to #1, the samples stopped working. I only did the following changes:&#60;br /&#62;
1) Correctly connected, NSS -&#38;gt; 10, and 11,12,13 from maple to ISP head on W5200 shield.&#60;br /&#62;
2) Changed source code from using spi2 to spi1.&#60;/p&#62;
&#60;p&#62;The console output stopped at &#34;Initializing the MAC and PHY layer&#34; from serial3 console, and nothing else after. LNK, SPD, FDX leds were blinking if I use SPI2, but not SPI1, this probably mean, the W5200 initialization didn't get a chance to finish yet. &#60;/p&#62;
&#60;p&#62;FYI: I did realized in HardwareSPI.cpp, there is a  &#34;pinMode(10, OUTPUT);&#34; line AFTER spi.begin(). I assume, that fixed the NSS output mode issue. reported here&#60;br /&#62;
&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1020#post-6202&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1020#post-6202&#60;/a&#62;&#60;br /&#62;
and&#60;br /&#62;
&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1440#post-8555&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1440#post-8555&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I don't know how to post an image on this forum, so I put it on my picasa space. It shows the above configuration with nReset connected to Pin 6( Source code also changed)&#60;br /&#62;
&#60;a href=&#34;https://lh4.googleusercontent.com/-HrNe-8_1LgI/UAzUld7uCmI/AAAAAAAAFeg/tEHq-qSwmqY/s912/2012_%207_23_%200_35.jpg&#34; rel=&#34;nofollow&#34;&#62;https://lh4.googleusercontent.com/-HrNe-8_1LgI/UAzUld7uCmI/AAAAAAAAFeg/tEHq-qSwmqY/s912/2012_%207_23_%200_35.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This is a link that shows Maple mini connecting to Wiz820io to SPI2. It is in Korean. But the page is very simple, I have no problem reading it, just skipped the description.&#60;br /&#62;
&#60;a href=&#34;http://liketheocean.tistory.com/182&#34; rel=&#34;nofollow&#34;&#62;http://liketheocean.tistory.com/182&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So, my question is has anyone used wiz820io or W8200 on SPI1 at all?&#60;/p&#62;
&#60;p&#62;If you have any question on how to connect this shield to maple, to get it working on SPI2, please ask me.&#60;/p&#62;
&#60;p&#62;Thanks, appreciated for any help.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
