enc28j60 Microchip Technology Inc., enc28j60 Datasheet - Page 70

no-image

enc28j60

Manufacturer Part Number
enc28j60
Description
Stand-alone Ethernet Controller With Spi Interface
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
enc28j60-H
Manufacturer:
Olimex Ltd.
Quantity:
135
Part Number:
enc28j60-I/ML
Manufacturer:
MICROCHIP
Quantity:
3 100
Part Number:
enc28j60-I/ML
Manufacturer:
MICROCHI
Quantity:
20 000
Company:
Part Number:
enc28j60-I/ML
Quantity:
3
Part Number:
enc28j60-I/SO
Manufacturer:
MICROCHIP
Quantity:
7 780
Part Number:
enc28j60-I/SO
Manufacturer:
MICROCHIP
Quantity:
50
Part Number:
enc28j60-I/SO
Manufacturer:
MICROCHIP
Quantity:
50
Part Number:
enc28j60-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
enc28j60-I/SO
0
Company:
Part Number:
enc28j60-I/SO
Quantity:
10
Part Number:
enc28j60-I/SP
Manufacturer:
MICROCHIP
Quantity:
6 500
Part Number:
enc28j60-I/SP
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
enc28j60-I/SP
Manufacturer:
MICROCHIP
Quantity:
5 000
Company:
Part Number:
enc28j60-I/SP
Quantity:
1 150
Part Number:
enc28j60-I/SS
Manufacturer:
MURATA
Quantity:
30 000
Part Number:
enc28j60-I/SS
0
Part Number:
enc28j60/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
enc28j60/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
ENC28J60
12.1.2
The Receive Error Interrupt Flag (RXERIF) is used to
indicate a receive buffer overflow condition. Alternately,
this interrupt may indicate that too many packets are in
the receive buffer and more cannot be stored without
overflowing the EPKTCNT register.
When a packet is being received and the receive buffer
runs completely out of space, or EPKTCNT is 255 and
cannot be incremented, the packet being received will
be aborted (permanently lost) and the EIR.RXERIF bit
will be set to ‘1’. Once set, RXERIF can only be cleared
by the host controller or by a Reset condition. If the
receive error interrupt and INT interrupt are enabled
(EIE.RXERIE = 1 and EIE.INTIE = 1), an interrupt is
generated by driving the INT pin low. If the receive error
interrupt is not enabled (EIE.RXERIE = 0 or EIE.INTIE
= 0), the host controller may poll the ENC28J60 for the
RXERIF and take appropriate action.
Normally, upon the receive error condition, the host
controller would process any packets pending from the
receive buffer and then make additional room for future
packets by advancing the ERXRDPT registers (low
byte first) and decrementing the EPKTCNT register.
See Section 7.2.4 “Freeing Receive Buffer Space”
for more information on processing packets. Once
processed, the host controller should use the BFC
command to clear the EIR.RXERIF bit.
12.1.3
The Transmit Error Interrupt Flag (TXERIF) is used to
indicate that a transmit abort has occurred. An abort
can occur because of any of the following:
1.
2.
3.
4.
5.
DS39662B-page 68
Excessive collisions occurred as defined by the
Retransmission Maximum (RETMAX) bits in the
MACLCON1 register.
A late collision occurred as defined by the
Collision
MACLCON2 register.
A collision after transmitting 64 bytes occurred
(ESTAT.LATECOL set).
The transmission was unable to gain an
opportunity to transmit the packet because the
medium was constantly occupied for too long.
The deferral limit (2.4287 ms) was reached and
the MACON4.DEFER bit was clear.
An attempt to transmit a packet larger than the
maximum frame length defined by the MAMXFL
registers
MACON3.HFRMEN
POVERRIDE and PHUGEEN bits.
RECEIVE ERROR INTERRUPT
FLAG (RXERIF)
TRANSMIT ERROR INTERRUPT
FLAG (TXERIF)
Window
was
made
(COLWIN)
bit
without
or
bits
per
setting
in
packet
the
the
Preliminary
controller or by a Reset condition. If the transmit error
Upon any of these conditions, the EIR.TXERIF flag is set
to ‘1’. Once set, it can only be cleared by the host
interrupt is enabled (EIE.TXERIE = 1 and EIE.INTIE = 1),
an interrupt is generated by driving the INT pin low for
one OSC1 period. If the transmit error interrupt is not
enabled (EIE.TXERIE = 0 or EIE.INTIE = 0), the host
controller may poll the ENC28J60 for the TXERIF and
take appropriate action. Once the interrupt is processed,
the host controller should use the BFC command to clear
the EIR.TXERIF bit.
After a transmit abort, the TXRTS bit will be cleared, the
ESTAT.TXABRT bit will be set and the transmit status
vector will be written at ETXND + 1. The MAC will not
automatically attempt to retransmit the packet. The
host controller may wish to read the transmit status
vector and LATECOL bit to determine the cause of the
abort. After determining the problem and solution, the
host controller should clear the LATECOL (if set) and
TXABRT bits so that future aborts can be detected
accurately.
In Full-Duplex mode, condition 5 is the only one that
should cause this interrupt. Collisions and other prob-
lems related to sharing the network are not possible on
full-duplex networks. The conditions which cause the
transmit error interrupt meet the requirements of the
transmit interrupt. As a result, when this interrupt
occurs, TXIF will also be simultaneously set.
12.1.4
The Transmit Interrupt Flag (TXIF) is used to indicate
that the requested packet transmission has ended
(ECON1.TXRTS has transitioned from ‘1’ to ‘0’). Upon
transmission completion, abort or transmission cancella-
tion by the host controller, the EIR.TXIF flag will be set to
‘1’. If the host controller did not clear the TXRTS bit and
the ESTAT.TXABRT bit is not set, then the packet was
successfully transmitted. Once TXIF is set, it can only be
cleared by the host controller or by a Reset condition. If
the transmit interrupt is enabled (EIE.TXIE = 1 and
EIE.INTIE = 1), an interrupt is generated by driving the
INT pin low. If the transmit interrupt is not enabled
(EIE.TXIE = 0 or EIE.INTIE = 0), the host controller may
poll the ENC28J60 for the TXIF bit and take appropriate
action. Once processed, the host controller should use
the BFC command to clear the EIR.TXIF bit.
TRANSMIT INTERRUPT
FLAG (TXIF)
© 2006 Microchip Technology Inc.

Related parts for enc28j60