Datasheet

ENC28J60
DS39662E-page 8 . 2006-2012 Microchip Technology Inc.
2.5 I/O Levels
The ENC28J60 is a 3.3V part; however, it was
designed to be easily integrated into 5V systems. The
SPI CS
, SCK and SI inputs, as well as the RESET pin,
are all 5V tolerant. On the other hand, if the host
controller is operated at 5V, it quite likely will not be
within specifications when its SPI and interrupt inputs
are driven by the 3.3V CMOS outputs on the
ENC28J60. A unidirectional level translator would be
necessary.
An economical 74HCT08 (quad AND gate), 74ACT125
(quad 3-state buffer) or many other 5V CMOS chips
with TTL level input buffers may be used to provide the
necessary level shifting. The use of 3-state buffers
permits easy integration into systems which share the
SPI bus with other devices. Figure 2-5 and Figure 2-6
show example translation schemes.
FIGURE 2-5: LEVEL SHIFTING USING
AND GATES
FIGURE 2-6: LEVEL SHIFTING USING
3-STATE BUFFERS
2.6 LED Configuration
The LEDA and LEDB pins support automatic polarity
detection on Reset. The LEDs can be connected such
that the pin must source current to turn the LED on, or
alternately connected such that the pin must sink cur-
rent to turn the LED on. Upon system Reset, the
ENC28J60 will detect how the LED is connected and
begin driving the LED to the default state configured by
the PHLCON register. If the LED polarity is changed
while the ENC28J60 is operating, the new polarity will
not be detected until the next system Reset occurs.
LEDB is unique in that the connection of the LED is
automatically read on Reset and determines how to
initialize the PHCON1.PDPXMD bit. If the pin sources
current to illuminate the LED, the bit is cleared on
Reset and the PHY defaults to half-duplex operation. If
the pin sinks current to illuminate the LED, the bit is set
on Reset and the PHY defaults to full-duplex operation.
Figure 2-7 shows the two available options. If no LED
is attached to the LEDB pin, the PDPXMD bit will reset
to an indeterminate value.
FIGURE 2-7: LEDB POLARITY AND
RESET CONFIGURATION
OPTIONS
The LEDs can also be configured separately to control
their operating polarity (on or off when active), blink rate
and blink stretch interval. The options are controlled by
the LACFG<3:0> and LBCFG<3:0> bits. Typical values
for blink stretch are listed in Tab le 2- 1.
TABLE 2-1: LED BLINK STRETCH LENGTH
I/O
SCK
SO
SI
INT0
MCU
CS
SCK
SI
SO
INT
ENC28J60
CLKOUT
OSC1
I/O
SCK
SO
SI
INT0
MCU
CS
SCK
SI
SO
INT
ENC28J60
CLKOUT
OSC1
Stretch Length Typical Stretch (ms)
T
NSTRCH (normal) 40
T
MSTRCH (medium) 70
TLSTRCH (long) 140
LEDB
+3.3VFull-Duplex Operation:
PDPXMD = 1
LEDB
Half-Duplex Operation:
PDPXMD = 0