Difference between revisions of "ENC8J60"

From Wiki
Jump to: navigation, search
(Procedures)
(Resources)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=='''Introduction'''==
 +
[[File:MG 4764.png]]<br>
 +
The ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI™). It meets all of the IEEE 802.3 specifications. The controller is designed to serve as an Ethernet network interface for any controller equipped with SPI and the chip of an embedded system to connect to the Ethernet. Featured with a built-in 25MHz clock, it also supports full and half-duplex modes and contains an SPI port with a maximum speed of 10Mb/s. The chip integrates the physical layer inside, so the 8K dual-port RAM in the chip is capable of free allocation.
  
[[File:Enc1.jpg]]
+
In application, the ENC28J60 module is suitable for small-sized embedded system due to its simple connection, easy development and low cost. Apart from the basic functions of MAC management and drive, it also boasts being perfectly suitable for MCU-based embedded application with its small package, low power consumption and SPI bus. Also the module outperforms other devices in web servers such as communication convertor and instrument, transaction terminal, IP telephone, and other Ethernet applications.  
  
 
=='''Features'''==
 
=='''Features'''==
 
*ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI™)
 
*ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI™)
  
*Control chip:ENC28J60-I/SO; built-in 25MHz clock; Supports full and half-duplex modes
+
*Control chip: ENC28J60-I/SO; Built-in 25MHz clock; Supports full and half-duplex modes
  
*contains an SPI port with a maximum speed of 10Mb/s
+
*Contains an SPI port with a maximum speed of 10Mb/s
  
 
*Uses the HR911105A as the board for network interface  
 
*Uses the HR911105A as the board for network interface  
  
*Working voltage:3.3V; Board size: 56 x 34 mm(2.20inch x 1.34inch
+
*Working voltage: 3.3V; Board size: 56 x 34 mm(2.20 x 1.34 inch)
 
+
=='''Introduction'''==
+
The ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI™). It meets all of the IEEE 802.3 specifications. The controller is designed to serve as an Ethernet network interface for any controller equipped with SPI and the chip of an embedded system to connect to the Ethernet. Featured with a built-in 25MHz clock, it also supports full and half-duplex modes and contains an SPI port with a maximum speed of 10Mb/s. The chip integrates the physical layer inside, so the 8K dual-port RAM in the chip is capable of free allocation.
+
 
+
In application, the ENC28J60 module is suitable for small-sized embedded system due to its simple connection, easy development and low cost. Apart from the basic functions of MAC management and drive, it also boasts being perfectly suitable for MCU-based embedded application with its small package, low power consumption and SPI bus. Also the module outperforms other devices in web servers such as communication convertor and instrument, transaction terminal, IP telephone, and other Ethernet applications.
+
  
 
=='''Schematic Diagram'''==
 
=='''Schematic Diagram'''==
  
[https://www.sunfounder.com/wiki/index.php?title=File:ENC28J60_Schematic_Diagram.zip ENC28J60_Schematic_Diagram][[File:ZIP.jpg]]<br>
+
[http://wiki.sunfounder.cc/images/8/87/ENC28J60_Schematic.pdf ENC28J60_Schematic][[File:PDF.jpg]]
 
+
[[File:ENC2.jpg]]
+
  
 
=='''Test'''==
 
=='''Test'''==
Line 29: Line 25:
 
=='''Accessories'''==
 
=='''Accessories'''==
  
1.Arduino UNO  
+
Arduino UNO  
  
2.Accessible net cable with crystal head
+
Network cable with a crystal head
  
3.Computer
+
Computer
  
4.ENC28J60 module
+
ENC28J60 module
  
 
=='''Procedures'''==
 
=='''Procedures'''==
1.Connect the net cable to ENC28J60 module, and connect the Arduino to computer. Connect the ENC28J60 and the Arduino as shown in the form:
+
1.Connect the network cable to the ENC28J60 module, and the Arduino Uno to the computer. Connect the ENC28J60 and the Arduino as shown below:
  
::::::::::ENC28J60 ———————————— Arduino UNO
+
::::::::::ENC28J60 ———————————— Arduino UNO/nano
  
 
::::::::::: (SCK)  ——————————————    13
 
::::::::::: (SCK)  ——————————————    13
Line 49: Line 45:
 
::::::::::: (VCC)  ——————————————  3.3V
 
::::::::::: (VCC)  ——————————————  3.3V
  
2.Find the ethercard-master in the Appendix(at the bottom of the page), and copy it into the libraries folder of Arduino UNO.
+
2.Find the ethercard package at the bottom of the page, and copy it to the libraries folder of the Arduino.
  
3.Start the Arduino software, and find the ethercard-master in sample directory. Run the pings program as shown below:
+
3.Open the Arduino IDE, and find the ethercard in the sample directory. Run the pings program as shown below:
  
 
[[File:ENC3.jpg]]
 
[[File:ENC3.jpg]]
  
4.Open the sample pings.ino file, use DNS to locate the IP address of the website.
+
4.Open the pings.ino file, use DNS to get the IP address of the website.
  
 
[[File:ENC4.jpg]]
 
[[File:ENC4.jpg]]
  
Download the sample code to Arduino UNO board. Open the serial monitor, set the baud rate to 57600, and it will show the practical IP address whose SRV is google’s IP, like the picture below:
+
5.Upload the sketch to the Arduino Uno board. Open the serial monitor, set the baud rate to 57600, and it will show your IP address, and SRV which is the IP of the Google website, as shown below:
  
 
[[File:ENC5.jpg]]
 
[[File:ENC5.jpg]]
Line 66: Line 62:
  
 
=='''Resources'''==
 
=='''Resources'''==
[https://www.sunfounder.com/wiki/index.php?title=File:Ethercard-master.zip Ethercard-master][[File:ZIP.jpg]]<br>
+
[http://wiki.sunfounder.cc/images/0/0e/Ethercard.rar Ethercard][[File:ZIP.jpg]]<br>
[https://www.sunfounder.com/wiki/index.php?title=File:ENC28J60-Datasheet.pdf ENC28J60-Datasheet][[File:PDF.jpg]]<br>
+
[http://wiki.sunfounder.cc/images/2/24/ENC28J60-Datasheet.pdf ENC28J60-Datasheet][[File:PDF.jpg]]<br>

Latest revision as of 07:09, 20 March 2017

Introduction

MG 4764.png
The ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI™). It meets all of the IEEE 802.3 specifications. The controller is designed to serve as an Ethernet network interface for any controller equipped with SPI and the chip of an embedded system to connect to the Ethernet. Featured with a built-in 25MHz clock, it also supports full and half-duplex modes and contains an SPI port with a maximum speed of 10Mb/s. The chip integrates the physical layer inside, so the 8K dual-port RAM in the chip is capable of free allocation.

In application, the ENC28J60 module is suitable for small-sized embedded system due to its simple connection, easy development and low cost. Apart from the basic functions of MAC management and drive, it also boasts being perfectly suitable for MCU-based embedded application with its small package, low power consumption and SPI bus. Also the module outperforms other devices in web servers such as communication convertor and instrument, transaction terminal, IP telephone, and other Ethernet applications.

Features

  • ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI™)
  • Control chip: ENC28J60-I/SO; Built-in 25MHz clock; Supports full and half-duplex modes
  • Contains an SPI port with a maximum speed of 10Mb/s
  • Uses the HR911105A as the board for network interface
  • Working voltage: 3.3V; Board size: 56 x 34 mm(2.20 x 1.34 inch)

Schematic Diagram

ENC28J60_SchematicPDF.jpg

Test

We will do a simple test to check the function of ENC28J60 module.

Accessories

Arduino UNO

Network cable with a crystal head

Computer

ENC28J60 module

Procedures

1.Connect the network cable to the ENC28J60 module, and the Arduino Uno to the computer. Connect the ENC28J60 and the Arduino as shown below:

ENC28J60 ———————————— Arduino UNO/nano
(SCK) —————————————— 13
(MOSI) —————————————— 11
(MISO) —————————————— 12
(CS) —————————————— 8
(GND) —————————————— GND
(VCC) —————————————— 3.3V

2.Find the ethercard package at the bottom of the page, and copy it to the libraries folder of the Arduino.

3.Open the Arduino IDE, and find the ethercard in the sample directory. Run the pings program as shown below:

ENC3.jpg

4.Open the pings.ino file, use DNS to get the IP address of the website.

ENC4.jpg

5.Upload the sketch to the Arduino Uno board. Open the serial monitor, set the baud rate to 57600, and it will show your IP address, and SRV which is the IP of the Google website, as shown below:

ENC5.jpg

Then the test is OK.

Resources

EthercardZIP.jpg
ENC28J60-DatasheetPDF.jpg