Loading...

You have no items in your shopping cart.

 
 
 
×

Registration

Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

ENC28J60 Ethernet Shield Go With Arduino Libraries

Now we have a IE shield which use the ENC28J60 Ethernet chip instead of the W5100 Ethernet chip. And there is a SD slot on board , which use the same hardware SPI interface of Arduino Duemilanove/Uno, but just the different chip select pin.

In this article we will suggest you some arduino library to play with this shield.

There is two arduino library now available for ENC28J60 chip, one is the Open-source TCP/IP stack ,and the other one is Ethernet_ENC28J60 Library.

There is a jumper switch on the IE shield, and you can use it to select the CS pin connection.

If you put a jumper with D10 and CSn, then it means you connect the D10 pin of Arduino Duemilanove/Uno which is the chip select pin of hardware SPI interface to control the ENC28J60 CS signal,then you don’t need to change anything of the library but just use them. But with this setting, you just can use the Ethernet function only and can not with the SD function at the same time.

If you need to make the Ethernet and SD function with Arduino Duemilanove/Uno at the same time, then put the jumper with CSn and D8. Now the D10 hardware SPI CS of ATMega328/168 is not connect with any CS pin for either ENC28J60 or SD card. And now the D8 pins of Arduino Duemilanove/Uno connect to the CS of ENC28J60 chip and the D9 connect to CS of SD card.

So this hardware setting will not compatible with the library again, so we need to make a small change of the SPI drive code in  library (Open-source TCP/IP stack) :

#define CSACTIVE digitalWrite(ENC28J60_CONTROL_CS, LOW); digitalWrite(8, LOW);
#define CSPASSIVE digitalWrite(ENC28J60_CONTROL_CS, HIGH); digitalWrite(8, HIGH);

Now the Open-source TCP/IP stack library  can be used with the IE shield. But we didn’t test the Ethernet_ENC28J60 library, so we don’t sure if this modify will work with it.

For the SD function, we also suggest two library for you. One is the File logger library, it just can use for logging data into the specific file in SD card. It’s very small and practical. And the other one is TinyFAT, it’s more powerful than former, it’s a tiny file system and support many read/write function of SD card operation.

If you want to use these libraries with IE shield SD slot, you need to make the same change on the library :

#define SPI_SS_HIGH()  PORTB |= _BV(SS); digitalWrite(9,HIGH);
#define SPI_SS_LOW()   PORTB &= ~_BV(SS); digitalWrite(9,LOW);

We don’t provide the modified version of these two library here, but we have tested them by this modify, both can work on the Arduino with IE shield.

Later we will follow up with more introduction of the POE function and all the interface breakouts. Stay tuned : )