ENC28J60/SP Microchip Technology Inc., ENC28J60/SP Datasheet - Page 36
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
ENC28J60/SP
Manufacturer Part Number
ENC28J60/SP
Description
28 PIN, 8 KB RAM, MAC&PHY, ETHERNET CONTROLLER
Manufacturer
Microchip Technology Inc.
Type
Controllerr
Datasheet
1.ENC28J60SP.pdf
(96 pages)
Specifications of ENC28J60/SP
Package Type
28-pin SSOP
Voltage, Supply
3.14-3.45 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
ENC28J60
6.5
Several of the MAC registers require configuration
during initialization. This only needs to be done once;
the order of programming is unimportant.
1.
2.
3.
REGISTER 6-1:
DS39662B-page 34
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-5
bit 4
bit 3
bit 2
bit 1
bit 0
Set the MARXEN bit in MACON1 to enable the
MAC to receive frames. If using full duplex, most
applications should also set TXPAUS and
RXPAUS to allow IEEE defined flow control to
function.
Configure
FULDPX bits of MACON3. Most applications
should enable automatic padding to at least
60 bytes and always append a valid CRC. For
convenience, many applications may wish to set
the FRMLNEN bit as well to enable frame length
status reporting. The FULDPX bit should be set
if the application will be connected to a
full-duplex configured remote node; otherwise, it
should be left clear.
Configure the bits in MACON4. For conform-
ance to the IEEE 802.3 standard, set the
DEFER bit.
U-0
—
MAC Initialization Settings
Unimplemented: Read as ‘0’
Reserved: Maintain as ‘0’
TXPAUS: Pause Control Frame Transmission Enable bit
1 = Allow the MAC to transmit pause control frames (needed for flow control in full duplex)
0 = Disallow pause frame transmissions
RXPAUS: Pause Control Frame Reception Enable bit
1 = Inhibit transmissions when pause control frames are received (normal operation)
0 = Ignore pause control frames which are received
PASSALL: Pass All Received Frames Enable bit
1 = Control frames received by the MAC will be written into the receive buffer if not filtered out
0 = Control frames will be discarded after being processed by the MAC (normal operation)
MARXEN: MAC Receive Enable bit
1 = Enable packets to be received by the MAC
0 = Disable packet reception
the
U-0
—
PADCFG,
MACON1: MAC CONTROL REGISTER 1
W = Writable bit
‘1’ = Bit is set
TXCRCEN
U-0
—
and
R-0
Preliminary
r
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
TXPAUS
R/W-0
4.
5.
6.
7.
8.
9.
Program the MAMXFL registers with the maxi-
mum frame length to be permitted to be received
or transmitted. Normal network nodes are
designed to handle packets that are 1518 bytes
or less.
Configure the Back-to-Back Inter-Packet Gap
register, MABBIPG. Most applications will pro-
gram this register with 15h when Full-Duplex
mode is used and 12h when Half-Duplex mode
is used.
Configure the Non-Back-to-Back Inter-Packet
Gap register low byte, MAIPGL. Most applications
will program this register with 12h.
If half duplex is used, the Non-Back-to-Back
Inter-Packet Gap register high byte, MAIPGH,
should be programmed. Most applications will
program this register to 0Ch.
If Half-Duplex mode is used, program the
Retransmission and Collision Window registers,
MACLCON1 and MACLCON2. Most applications
will not need to change the default Reset values.
If the network is spread over exceptionally long
cables, the default value of MACLCON2 may
need to be increased.
Program the local MAC address into the
MAADR1:MAADR6 registers.
RXPAUS
R/W-0
© 2006 Microchip Technology Inc.
x = Bit is unknown
PASSALL
R/W-0
MARXEN
R/W-0
bit 0