Ethernet.begin() NG

I use "Arduino MEGA" & "Arduino ETHERNET Shield".

Mac address and Ip was setting.
byte mac[] = { 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX };
byte ip[] = { 192, 168, 0, X };

I called Ethernet.begin(mac, ip), but no response.
Why cannot Ethernet.begin() be done?

digitalWrite( LED_RED7, HIGH ); <---- OK
Ethernet.begin(mac, ip);
delay( 200 );
digitalWrite( LED_RED7, LOW ); <---- NG

If...
digitalWrite( LED_RED7, HIGH ); <---- OK
//Ethernet.begin(mac, ip);
delay( 200 );
digitalWrite( LED_RED7, LOW ); <---- OK

The result of ping is "Request timed out".

The arduino mega's SPI interface is on a different set of pins; it is not compatible with the Ethernet shield.

-j

Hi, kg4wsv!

The arduino mega's SPI interface is on a different set of pins
Sorry, i do not understand. :cry:

The Ethernet shield is designed for a standard Arduino, and the interface between the boards uses SPI on pins 10, 11, 12, 13.

On a Mega, SPI is on pins 50, 51, 52, 53.

Hi, Groove.

Thank you. I understand.it.
I changed it into Arduino Duemilanove.
I try it.