Você está na página 1de 3

Email: info@sunrom.com or sunrom@gmail.

com

Visit us at http://www.sunrom.com

Document: Datasheet Date: 16-Sep-09 Model #: 1130 Product’s Page: www.sunrom.com/p-799.html

Ethernet Module based on ENC28J60


This board utilizes the new Microchip ENC28J60
Stand-Alone Ethernet Controller IC featuring a
host of features to handle most of the network
protocol requirements. The board connects
directly to most microcontrollers with a standard
SPI interface with a transfer speed of up to 20
MHz. This module contains what you need to
enable ethernet on your next microcontroller
project. It includes a ENC28J60 ethernet
controller, an RJ45 socket with link/activity lights
and integrated transformer. This ethernet module
enables you to connect a particular Embedded
device (equipped with SPI support) on to a
network. By using this Ethernet module (along
with a microcontroller running a small TCP/IP stack) applications like Embedded Web server can be
easily developed.

Use this module to enable Ethernet interface for your product. It works with any microcontroller
operating at 3.3V or 5V. This module works at 5V and is compatible with 5V interface lines. Use SPI
process to interface with it. Host web server, ping the module or add it to home automation via
internet. Heart of this module is ENC28J60 Ethernet controller from Microchip. This board is
assembled with all components as shown in the picture.

The circuit board includes all required components for the ethernet controller, plus a 3.3V Voltage
Regulator and a RJ-45 jack with integrated transformer and built-in Link and Activity LEDs for
connection to an Ethernet Local Area Network.
Features
• Microchip ENC28J60 Ethernet Chip supporting Microchip’s TCP/IP protocol stack, with IPv4,
UDP, TCP, DHCP, ICMP, FTP, and HTTP support
• On board voltage regulator for 3V
• Compatible with all controllers having an SPI interface, SPI interface takes only few pins to
add Ethernet interface to your microcontroller project
• Suitable for Either 5V or 3.3V Interface
• LAN connector with build in transformer
• Link and Activity LED's on Ethernet connector
• 8 pin standard interface connector with spacing of 0.1” (2.54 mm) row pins
• IEEE 802.3 Compatible with Integrated MAC and 10Base-T PHY
• Fully Compatible with 10/100/1000Base-T Networks
• Supports One 10Base-T Port with Automatic Polarity Detection and Correction
• Supports Full and Half-Duplex modes
• Programmable Automatic Retransmit on Collision
• Programmable Padding and CRC Generation
• Programmable SPI Interface with Clock Speeds Up to 20 MHz
Applications
• Remote control and monitoring
• Data capture and logging
• Industrial Automation
• Building Automation
• Appliance remote management
• Robotics
• Microcontroller Research and Development
• TCP/IP Research and Development

Specification
• Board Size: 2.3” x 0.94” (60x24mm)
• Operating Voltage: +5V DC
• Current Consumption: 160mA
• Pin Spacing: 0.1" (2.54mm)
• Output wire length: 12”(304mm)

Board Schematic
L1

3V3
R3 R4 C1

U1 U2
19
20
15
25
28

ENC28J60 RJ45
4 17 1
VDDRX

VDDTX
VDDPLL

VDDOSC
VDD

5 INT TPOUT+ 16 2 TD+


10 WOL TPOUT- 3 TD-
RESET 13 TD-CT
6 TPIN+ 12 6
7 SO TPIN- 7 RD-CT
8 SI 27 8 RD+
CN1 9 SCK LEDA 26 RD-
SIP8 CS LEDB R8 9
VSSOSC

RESET RA
VSSPLL

8 3 23 10
VSSRX

VSSTX

7 CS 1 CLKOUT OSC1 24 11 RC
VSS

6 14 VCAP OSC2 R10 12 LC


5 SCK RBIAS LA
4 SI
11
21
18
22
2

3 SO + R11 Y1
2 5V C4
1 C2 C3
R14 R15

U3 3V3
LM1117
3 2 C5
GND

VIN VOUT 4
C7 + C8 TAB +
C6 C9
1

Sunrom Technologies http://w ww.sunrom.com


Title Ethernet Module
Code 1130 Rev 1
Date: Wednesday , September 16, 2009 Sheet 1 of 1

2 Sunrom Technologies Your Source for Embedded Systems Visit us at www.sunrom.com


Typical Application Setup

Microcontroller Ethernet LAN Cable (Cross over)


PC or LAN
with SPI SPI Lines Module Network
Interface #1130

Software
Microchip's TCP-IP stack full featured TCP-IP stack, very easy to configure and use with PIC
microcontrollers. Microchip provides a driver for the ENC28J60 and a TCP/IP stack including an
HTTP web server. Web pages are stored in external or internal eeprom. This firmware is written in
C (Compatible with Microchip C18 compiler).

Download link for TCP/IP Stack


http://ww1.microchip.com/downloads/en/DeviceDoc/MCHPStackENC8722v302.zip

After downloading TCP/IP Stack use instructions below

• With MPLAB, choose mpnicpg.mcp project to use the internal memory


• Select your device( for example PIC 18F4620) in the MPLAB Configure Menu,
• Change the specified Linker Scripts for your device
• Eventually adjust the pin assignment in enc28j60.c (in the DEFINITIONS section), don't
forget to change TRIS settings too
• Eventually modify builds options to remove dhcp and then remove dhcp.c from the project
and set the IP configuration in stack_task.h
• Change the MPU frequency in the file compiler.h
• Eventually change the SYSTEM LED port in MainDemo.c
• Modify web pages in the webpages directory. Generate the mpfs C file with the mpfs utility
(MPFS directory MPFSImg.c /c )
• It's easy to handle Input/Output microcontroller pins with functions HTTPExecCmd and
HTTPGetVar in MainDemo.c

Further Details
1) ENC28J60 Datasheet, TCP/IP Application Notes on Microchip site
http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en022889
2) AVR based Ethernet Project
http://www.tuxgraphics.org/electronics/200606/article06061.shtml
3) Microchip’s TCP/IP Download Resources
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2505&param=en535724

3 Sunrom Technologies Your Source for Embedded Systems Visit us at www.sunrom.com

Você também pode gostar