Datasheet
SPI ETHERNET LIBRARY
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 incorporates a number
of packet filtering schemes to limit incoming packets. It also provides an internal
DMA module for fast data throughput and hardware assisted IP checksum calcula-
tions. Communication with the host controller is implemented via two interrupt pins
and the SPI, with data rates of up to 10 Mb/s. Two dedicated pins are used for LED
link and network activity indication.
This library is designed to simplify handling of the underlying hardware (
ENC28J60).
It works with any AVR MCU with integrated SPI and more than 4 Kb ROM memory.
SPI Ethernet library supports: 
- IPv4 protocol. 
- ARP requests. 
- ICMP echo requests. 
- UDP requests. 
- TCP requests (no stack, no packet reconstruction). 
- packet fragmentation is NOT supported. 
Note: For advanced users there are header files (
"eth_enc28j60LibDef.h" and
"eth_enc28j60LibPrivate.h") in Uses folder of the compiler with description of all rou-
tines and global variables, relevant to the user, implemented in the SPI Ethernet Library. 
Note: The appropriate hardware SPI module must be initialized before using any of
the SPI Ethernet library routines. Refer to SPI Library.
Note: The appropriate hardware SPI module must be initialized before using any of
the SPI Ethernet library routines. Refer to SPI Library.
431
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6










