English
Language : 

ENC624J600-I Datasheet, PDF (41/168 Pages) Microchip Technology – Stand-Alone 10/100 Ethernet Controller with SPI or Parallel Interface
ENC424J600/624J600
4.0 SERIAL PERIPHERAL
INTERFACE (SPI)
ENC424J600/624J600 devices implement an optional
SPI I/O port for applications where a parallel micro-
controller interface is not available or is undesirable. An
SPI port is commonly available on many micro-
controllers, and can be simulated in software on regular
I/O pins where it is not implemented. This makes the
SPI port ideal for using ENC424J600/624J600 devices
with the widest possible range of host controllers.
4.1 Physical Implementation
The SPI port on ENC424J600/624J600 devices
operates as a slave port only. The host controller must
be configured as an SPI master that generates the
Serial Clock (SCK) signal.
This implementation supports SPI Mode 0,0, which
requires:
• SCK is Idle at a logic low state
• Data is clocked in on rising clock edges and
changes on falling clock edges
Other SPI modes that use inverted clock polarity and/or
phase are not supported.
Commands and data are sent to the device on the SI
pin. Data is driven out on the SO line on the falling edge
of SCK. The CS pin must be held low while any
operation is performed, and returned to logic high when
finished.
When CS is in the inactive (logic high) state, the SO pin
is set to a high-impedance state and becomes 5V toler-
ant. This allows the ENCX24J600 to be connected to a
single SPI bus shared by multiple SPI slave devices
that also go to a high-impedance state when inactive.
For details on the physical connections to the interface,
see Section 2.7 “Host Interface Pins”.
4.2 SPI Instruction Set
The SPI interface supports a unique instruction set,
consisting of 47 distinct opcodes. These include a large
number of optimized opcodes that perform a wide
range of frequently performed operations with a mini-
mum of SPI protocol overhead. Complete Ethernet
functionality can be achieved with as few as six N-byte
opcodes. The use of the other 41 is optional; however,
doing so will generally improve overall system
performance.
The SPI opcodes are divided into four families:
• Single Byte: Direct opcode instructions; designed
for task-oriented SFR operations with no data
returned
• Two-Byte: Direct opcode instruction; designed for
SFR operation with byte data returned
• Three-Byte: Opcode with word length argument;
includes read and write operations, designed for
pointer manipulation with word length data
returned
• N-Byte: Opcode with one or more bytes of
argument; includes read and write operations
designed for general memory space access with
one or more bytes of data returned
A complete summary of all opcodes is provided in
Table 4-1. A detailed explanation of each opcode family
follows.
 2010 Microchip Technology Inc.
DS39935C-page 39