<?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"
	>
<channel>
	<title>Comments on: Arduino Ethernet Shield MEGA hack</title>
	<atom:link href="http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/</link>
	<description>NKC Electronics Tutorials</description>
	<pubDate>Tue, 07 Sep 2010 00:02:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: daveosx</title>
		<link>http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/#comment-17922</link>
		<dc:creator>daveosx</dc:creator>
		<pubDate>Fri, 16 Apr 2010 05:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://mcukits.com/?p=55#comment-17922</guid>
		<description>Thank you works great!</description>
		<content:encoded><![CDATA[<p>Thank you works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toffe82</title>
		<link>http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/#comment-4058</link>
		<dc:creator>toffe82</dc:creator>
		<pubDate>Tue, 09 Jun 2009 21:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://mcukits.com/?p=55#comment-4058</guid>
		<description>I finally made it works.
It was so obvious that I should have see it before ( 2 days to find out :-) )
BIT0 is the original SS signal on the Arduino Mega but on the Duemilnove, it is BIT2.
My configuration is SS on pin8 (bending the pin 10 of the ethernet shield and making a jumper between 8 and 10 on the ethernet shield), the other pins don't move.
The code is :
#define SPI0_SS_BIT BIT0
...
#define SPI0_SCLK_BIT BIT5
...
#define SPI0_MOSI_BIT BIT3
...
#define SPI0_MISO_BIT BIT4
...
#define IINCHIP_CS_BIT BIT0
...
PORTB &#124;= SPI0_SS_BIT &#124; BIT2; PORTB &#38;= ~(SPI0_SCLK_BIT&#124;SPI0_MOSI_BIT);\</description>
		<content:encoded><![CDATA[<p>I finally made it works.<br />
It was so obvious that I should have see it before ( 2 days to find out <img src='http://mcukits.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )<br />
BIT0 is the original SS signal on the Arduino Mega but on the Duemilnove, it is BIT2.<br />
My configuration is SS on pin8 (bending the pin 10 of the ethernet shield and making a jumper between 8 and 10 on the ethernet shield), the other pins don&#8217;t move.<br />
The code is :<br />
#define SPI0_SS_BIT BIT0<br />
&#8230;<br />
#define SPI0_SCLK_BIT BIT5<br />
&#8230;<br />
#define SPI0_MOSI_BIT BIT3<br />
&#8230;<br />
#define SPI0_MISO_BIT BIT4<br />
&#8230;<br />
#define IINCHIP_CS_BIT BIT0<br />
&#8230;<br />
PORTB |= SPI0_SS_BIT | BIT2; PORTB &amp;= ~(SPI0_SCLK_BIT|SPI0_MOSI_BIT);\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toffe82</title>
		<link>http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/#comment-3993</link>
		<dc:creator>toffe82</dc:creator>
		<pubDate>Mon, 08 Jun 2009 05:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://mcukits.com/?p=55#comment-3993</guid>
		<description>It is what I have done, when using pin9 I used bit 1 portB for SPI0_SS_BIT and IINCHIP_CS_BIT and I also put bit0 in PORTB &#124;= SPI0_SS_BIT &#124; BIT0 and it doesn't work. The 3 other pins are standard connection of the etherent shield on the duemilnove.
I use the webserver example from the ethernet library (it is working in normal configuration) but in this case it pass server.begin() and stop there.
Perhaps I miss something or there is a difference between the mega and the duemilnove and I can't use pin 8 or 9 ??</description>
		<content:encoded><![CDATA[<p>It is what I have done, when using pin9 I used bit 1 portB for SPI0_SS_BIT and IINCHIP_CS_BIT and I also put bit0 in PORTB |= SPI0_SS_BIT | BIT0 and it doesn&#8217;t work. The 3 other pins are standard connection of the etherent shield on the duemilnove.<br />
I use the webserver example from the ethernet library (it is working in normal configuration) but in this case it pass server.begin() and stop there.<br />
Perhaps I miss something or there is a difference between the mega and the duemilnove and I can&#8217;t use pin 8 or 9 ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/#comment-3925</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 05 Jun 2009 21:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://mcukits.com/?p=55#comment-3925</guid>
		<description>When you move SS to another pin, you need to follow the software hack at the end of the post, the BIT0 hack... and it is better to keep it within PORTB, as changing PORT can require more changes to the code</description>
		<content:encoded><![CDATA[<p>When you move SS to another pin, you need to follow the software hack at the end of the post, the BIT0 hack&#8230; and it is better to keep it within PORTB, as changing PORT can require more changes to the code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toffe82</title>
		<link>http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/#comment-3924</link>
		<dc:creator>toffe82</dc:creator>
		<pubDate>Fri, 05 Jun 2009 21:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://mcukits.com/?p=55#comment-3924</guid>
		<description>I need this kind of hack on the duemilnove because I want to use the pin 10 pwm but I couldn't make it work.
I move the ss on pin 9 and change the code accordingly(BIT1 instead of BIT2)and it doens't work, any idea ? 
I try also pin 8.</description>
		<content:encoded><![CDATA[<p>I need this kind of hack on the duemilnove because I want to use the pin 10 pwm but I couldn&#8217;t make it work.<br />
I move the ss on pin 9 and change the code accordingly(BIT1 instead of BIT2)and it doens&#8217;t work, any idea ?<br />
I try also pin 8.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
