ENC28J60
followed by a 5-bit argument that specifies either a
register address or a data constant. Write and bit field
instructions are also followed by one or more bytes of
data.
4.2
SPI Instruction Set
The operation of the ENC28J60 depends entirely on
commands given by an external host controller over the
SPI interface. These commands take the form of
instructions, of one or more bytes, which are used to
access the control memory and Ethernet buffer spaces.
At the least, instructions consist of a 3-bit opcode,
A total of seven instructions are implemented on the
ENC28J60. Table 4-1 shows the command codes for
all operations.
TABLE 4-1:
SPI INSTRUCTION SET FOR THE ENC28J60
Byte 0
Argument
Byte 1 and Following
Instruction
Name and Mnemonic
Opcode
Data
Read Control Register
(RCR)
0
0
0
1
1
0
0
1
0
a
1
a
1
a
a
1
a
1
a
1
a
a
1
a
0
a
0
a
a
1
a
1
a
1
a
a
1
a
0
a
0
a
a
1
N/A
Read Buffer Memory
(RBM)
0
0
0
1
1
1
1
0
1
0
1
1
N/A
Write Control Register
(WCR)
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
d
Write Buffer Memory
(WBM)
Bit Field Set
(BFS)
Bit Field Clear
(BFC)
System Reset Command (Soft Reset)
(SRC)
N/A
Legend: a= control register address, d= data payload.
DS39662B-page 26
Preliminary
© 2006 Microchip Technology Inc.