ENC28J60 Ethernet To SPI Module
Ethernet has become a ubiquitous communication standard that is used to interface with devices as diverse as computers, oscilloscopes, and bench multimeters. Its versatility and high speed make it the preferred method of information transfer between devices. The ENC28J60 Ethernet module brings the advantages of ethernet to any microcontroller with an SPI peripheral.
ENC28J60 Module Pinout Description
1 |
CLKOUT |
Programmable clock output |
2 |
ENC-WOL |
Wake on LAN |
3 |
MOSI |
SPI data input |
4 |
CS |
SPI chip select |
5 |
VCC |
Module supply voltage |
6 |
GND |
Module ground reference |
7 |
RESET |
Active low reset input |
8 |
SCK |
SPI clock |
9 |
MISO |
SPI data output |
10 |
ENC-INT |
Active low interrupt output pin |
Features
- IEEE 802.3 compatible
- 20MHz SPI clock
- 5V tolerant inputs
- TX and RX LED outputs
- 10/100/100Base-T network compatibility
Note: More technical details can be found in the ENC28J60 Datasheet linked at the bottom of this page.
How To Use ENC28J60 Ethernet Module
Ethernet has become the communication backbone of the world, finding applications in networking and internet hardware. It is even used in laboratory test equipment like oscilloscopes and bench multimeters. Some of the selling points of ethernet include high speed and long-distance data transfer. This is accomplished using differential signaling. There is also the possibility of having ethernet signals isolated using a signal transformer. This requires special driving circuitry on the transmitter and signal conditioning on the receiving end.
The end result is that having an ethernet peripheral directly on a microcontroller is impractical. The ENC28J60 IC from microchip solves that problem by handling the ethernet protocol while communicating with a microcontroller using a high-speed serial interface. The module accepts a supply voltage of between 3.1V and 3.6V, a 3.3V supply is ideal. The inputs, however, are 5V tolerant so a 5V microcontroller can be used.
Connecting the ENC28J60 module to a microcontroller involves only the MISO, MOSI, SCK, and CS, apart from VDD and GND. Any microcontroller with a high-speed SPI interface can be used to talk to this IC. For example, on an Arduino Uno, CS, MOSI, MISO and SCK are connected to pins 10, 11, 12, and 13 respectively. Libraries are available to use with the Arduino IDE to communicate with this module using functions.
Applications
- Ethernet to SPI converter
- Remote web server
- IoT projects