Documente Academic
Documente Profesional
Documente Cultură
com
Document: Datasheet
Date: 1-Oct-12
Model #: 1130
Features
Microchip ENC28J60 Ethernet Chip supporting Microchips 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 U1 ENC28J60 4 5 10 6 7 8 9 8 7 6 5 4 3 2 1 RESET CS SCK SI SO 5V C2 3 1 14 + INT WOL RESET SO SI SCK CS VSSRX VSSPLL VSSTX VSSOSC VSS CLKOUT VCAP RBIAS 19 20 15 25 28 R4 C1 U2 RJ45 TPOUT+ TPOUTTPIN+ TPINLEDA LEDB OSC1 OSC2 17 16 13 12 27 26 R8 23 24 R10 Y1 C4 C3 R14 U3 LM1117 VIN GND 3 C7 + C8 VOUT TAB 2 4 C6 3V3 C5 + C9 R15 1 2 3 6 7 8 9 10 11 12 TD+ TDTD-CT RD-CT RD+ RDRA RC LC LA
CN1 SIP8
R11
11 21 18 22 2
Sunrom Technologies
Title Ethernet Module Code 1130 Date: Wednesday , September 16, 2009
http://www.sunrom.com
Sheet 1 Rev of 1 1
Sunrom Technologies
Visit us at www.sunrom.com
PC or LAN Network
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) Microchips TCP/IP Download Resources
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2505¶m=en535724
Sunrom Technologies
Visit us at www.sunrom.com