You are on page 1of 7

ENC28J60 ETHERNET MODULE

ENC28J60 ETHERNET MODULE NOV 2010

NEX Robotics Pvt. Ltd. www.nex-robotics.com

ENC28J60 ETHERNET MODULE

Fig.1 ENC28J60 Ethernet Module

Introduction
ENC28J60 Ethernet Module is based on Microchips ENC28J60 stand-alone 10BaseT Ethernet controller. The ENC28J60 is a stand-alone Ethernet controller with an industry standard Serial Peripheral Interface (SPI). It is designed to serve as an Ethernet network interface for any controller equipped with SPI. The ENC28J60 meets all of the IEEE 802.3 specifications. It also provides an internal DMA module for fast data throughput and hardware assisted checksum calculation, which is used in various network protocols. Communication with the host controller is implemented via an interrupt pin, if required, and the SPI, with clock rates of up to 20 MHz. It has dedicated pins for LED link and network activity indication. The module includes RJ45 Ethernet connector with built-in magnetic and link indicator LEDs. The onboard low drop voltage regulator supplies stable voltage to the Ethernet controller. It is an ideal device for applications involving Home/Office Automation, Remote Diagnostics systems, Industrial equipments, Security Systems and Robotics as well.

Specifications
Operating Supply: 5V-9V DC On board 3.3V low drop voltage regulator for Ethernet controller On board RJ45 Ethernet 10/100B Magjack Connector with Indicator LEDs Requires Host microcontroller with integrated SPI Direct Host to module connection via 9 pin berg strip connector (lengthy wires are not recommended for SPI interface) Board Dimension: 53(L) X 35(W) mm Two layer PTH PCB for giving extra strength to the connectors

ENC28J60 Features
Supply: 3.3V, 5V Tolerant Inputs IEEE 802.3. Compatible Ethernet Controller Fully Compatible with 10/100/1000Base-T Networks Integrated MAC and 10Base-T PHY Supports One 10Base-T Port with Automatic Polarity Detection and Correction Supports Full and Half-Duplex modes Programmable Automatic Retransmit on Collision
2

NEX Robotics Pvt. Ltd. www.nex-robotics.com

ENC28J60 ETHERNET MODULE

Programmable Padding and CRC Generation Programmable Automatic Rejection of Erroneous Packets SPI Interface with Clock Speeds Up to 20 MHz 8-Kbyte Transmit/Receive Packet Dual Port SRAM Internal DMA for Fast Data Movement Supports Unicast, Multicast and Broadcast Packets

Supports Unicast, Multicast and Broadcast Packets Six Interrupt Sources and One Interrupt Output Pin 25 MHz Clock Input Requirement Clock Out Pin with Programmable Prescaler Operating Voltage of 3.1V to 3.6V (3.3V typical)

Applications
Home/Office Automation Remote Diagnostics Systems Industrial Automation Security Systems Industrial Equipments Data Acquisition Systems Robotics

Application Example

Fig.2 Application Example Note: For interfacing ENC28J60 based Ethernet module with the host microcontroller requires fair amount of expertise. Microchip has developed a free, configurable TCP/IP stack for its own microcontroller portfolio. It also has a lot of application notes related to stack which can be accessed through Microchip website. For any further information on using the Microchip stack please contact microchip technical support. All the Ethernet modules are carefully tested for the performance. Nex Robotics will not be able to extend its support beyond sales and any kind of product defect.

NEX Robotics Pvt. Ltd. www.nex-robotics.com

ENC28J60 ETHERNET MODULE

Getting Started
As ENC28J60 is just an Ethernet controller with SPI interface it requires a HOST device to initiate the communication. Microchip has developed a TCP/IP Stack for its own microcontrollers and it is completely free. The stack handles most of the interaction required between the physical network port and your application. It includes modules for several commonly used application layers, including HTTP for serving web pages, SMTP for sending e-mails, SNMP for providing status and control, Telnet, TFTP, Serial-toEthernet and much more. In addition, the stack includes light-weight and highperformance implementations of the TCP and UDP transport layers, as well as other supporting modules such as IP, ICMP, DHCP, ARP, and DNS. The latest version of stack is available for download from the microchip website. Hardware Setup: The first step is to select the host microcontroller that will be used to initiate the communication with the Ethernet controller. The host should be able to fulfil the memory requirements as desired by the TCPIP stack. To identify memory requirements refer the help file associated with the version of the stack. The minimum memory requirements for any embedded web server based applications shall be, RAM -- 4KB Flash -- 64KB to store WebPages in the internal memory Software Setup: Download and install the latest version of the stack from microchip website and locate the TCPIP Stack help file in the installation folder. This file provides all the information about configuring the stack.

Recommended Reading
ENC28J60 Datasheet* AN833 - Microchip TCP/IP Stack Application Note* TCPIP Stack Documentation**

Note: 1. * These documents are available for download on ENC28J60 Ethernet module product page at Nex Robotics website. 2. ** This document is the part of TCPIP Stack software and it can be found in the TCPIP Stack installation directory.

NEX Robotics Pvt. Ltd. www.nex-robotics.com

ENC28J60 ETHERNET MODULE

Using Microchip TCPIP Stack


1. Download and install Microchip TCPIP stack from the link available on Nex Robotics website. The stack should be installed into the default installation directory i.e. C:\Microchip Solutions v2010-08-04
Note: Please check Microchip website for latest version of stack.

2. Since the TCPIP stack is a part of Microchips application library, it will also install other libraries in the same directory. 3. To run the stack it requires Microchip MPLAB IDE and a C compiler. The C compiler is dependent on the class of microcontroller that will be used. Download and install the appropriate software from Microchip website. 4. Open Microchip TCPIP Stack.chm help file from C:\Microchip Solutions v2010-0804\Microchip\Help folder. This file contains detailed information on how to use the stack.

NEX Robotics Pvt. Ltd. www.nex-robotics.com

ENC28J60 ETHERNET MODULE

Schema atic

NEX Robo otics Pvt. Ltd. www.nex-r robotics.com

ENC28J60 ETHERNET MODULE M

Referenc ces Website: www.micro ochip.com E ENC28J60 Datasheet D T TCPIP Stack v5.25 Docu umentation Notice tents of this manual are e subject to change with hout notice. All efforts have The cont been mad de to ensure e the accurac cy of conten nts in this manual. m How wever, should d any errors be e detected, NEX N Robotic cs welcomes s your correc ctions. You can send us s your queries / suggestions at x-robotics.co om info@nex

o this manu ual is released under the Creative Commence cc by-nc-sa license. Content of For legal l information n refer to: http://cre eativecommo ons.org/licen nses/by-nc-sa a/3.0/legalco ode

Products ele P ectronics is static sensit tive. Use the e product in n static free en nvironment t. R Read the use er manuals completely y before star rt using this s product

ng: Recyclin Almost all a the part of this prod duct are recy yclable. Please send thi is product to t the recycling g plant after r its operatio onal life. By y recycling we w can cont tribute to cleaner and healt thier environ nment for the e future gene erations.

NEX Robo otics Pvt. Ltd. www.nex-r robotics.com