
MB86965
27
Table 18. Collision Count
COLLISION
COUNT
16 COL
DLCR0<1>
COL CTR3
DLCR4<7>
COL CTR2
DLCR4<6>
COL CTR1
DLCR4<5>
COL CTR0
DLCR4<4>
COL DLCR0<2>
0
1
0
1
2
0
1
0
1
3
0
1
4
0
1
0
1
5
0
1
0
1
6
0
1
0
1
7
0
1
8
0
1
0
1
9
0
1
0
1
10
0
1
0
1
0
1
11
0
1
0
1
12
0
1
0
1
13
0
1
0
1
14
0
1
0
1
15
0
1
16
1
0
1
Table 18 shows details on collision counting.
Receive Mode Register
As shown in Table 19, this register contains six bits that
control receiver function, and one Receive Buffer status
bit. Status bit RX BUF EMPTY, DLCR5<6>, is
necessary to the software routine, which reads receive
packets from the buffer. It tells the host routine whether
there are any packets in the Receive Buffer that are
complete and ready-to-read. In a multitasking system,
this indicator would be used in conjunction with an
interrupt when RX PKT asserts, which means a packet
has arrived in memory. The interrupt would be used to
start the routine that reads packets from the buffer.
As this routine begins, the interrupt on RX PKT can be
disabled to prevent unneeded interrupts. After the first
packet is read from the buffer, the RX BUF EMPTY bit
would be read, to see if more packets have come in
(packets may, at times, arrive in bursts). If the buffer is not
empty, another packet would be read out, and this
procedure repeated until the buffer is empty. After
emptying the buffer, the host clears RX PKT, then
re-enables interrupts on RX PKT, checks the buffer status
one more time (because a packet can arrive at any time),
then exits to do other tasks. Note that the packet header
can reflect acceptance of a short packet (bytes 3 to 59).
Two of the control bits allow reception of packets with
certain types of errors. The ACPT BAD PKTS bit, when
set, causes the Receiver to retain and store in the buffer
packets with CRC, alignment or short-length errors,
provided that there was no indication of collision during
reception. Likewise, the ACPT SHORT PKTS bit, when
set, allows the retention of short packets down to and
including only six bytes in length, excluding Preamble
and CRC, provided that there was no indication of
collision during reception and no alignment or CRC
error.
Under normal operation, packets with less than 60 bytes,
the IEEE 802.3 lower limit, would be discarded. These
functions are provided for diagnostic purposes. Packets
are accepted only if both the address filter and error filter
are passed. Packets with no content errors, i.e., short,
alignment or CRC, are accepted without regard to
collision indications. Normally Node ID is six bytes,
except if RX SHORT ADDR bit DLCR5<4> is set high,
in which case only the first five bytes of the Node ID are
checked.