
5Mbps ARCNET (ANSI 878.1) Controller with 2K x 8 On-Chip RAM
SMSC COM20020I 3.3V Rev.E Page 39 Revision 09-11-06
DATASHEET
occur.
The first possibility is if a free buffer is available at the destination node, in which case it responds with an
ACKnowledgement. At this point, the C OM20020I 3V fetches the dat a from the T ran smit Buf fer and perfo rms the transmit
seq uenc e. If a s ucc essfu l transmit s equence is complet ed, the TMA bit and the TA bit are s et to logic "1". If th e packet
was not transmitted successfully, TMA will not be set. A successful transmission occurs when the receiving node
responds t o the packet with an ACK. An unsucce ssful transmi ssion occurs when the receiving node does not respond
to the packet.
The second possibility is if the destination node responds to the Free Buffer Enquiry with a Negative AcKnowledgement.
A NAK occurs when the RI bit of the destination node is a logic "1". In this case, the token is passed on from the
transmitting node to the next node. The next time the transmitter receives the token, it will again transmit a FREE
BUFFER E N QUIRY. If a NAK is aga in r ece ived , the to ken is agai n passe d onto the next node. The Exce ssive NAK bit
of the Diagnostic Status Register is used to prevent an endless sending of FBE's and NAK's. If no limit of FBE-NAK
sequences existed, the transmitting node would continue issuing a Free Buffer Enquiry, even though it would
continuously receive a NAK as a response. The EXCNAK bit generates an interrupt (if enabled) in order to tell the
microcontroller to disable the transmitter via the "Disable Transmitter" command. This causes the transmission to be
abandoned and the TA bit to be set to a logic "1" when the node next receives the token, while the TMA bit remains at a
logic "0". Please refe r to the Imp roved Diag no stics section fo r furthe r det ai l on the EXCNAK bi t.
The third possibility which may occur after a FREE BUFFER ENQUIRY is issued is if the destination node does not
respond at all. In this case, the TA bit is set to a logic "1", while the TMA bit remains at a logic "0". The user should
determine whether th e node should try to reissue the tran smit command .
The fourth pos sibility is if a non-traditio nal response is receiv ed (some pattern othe r than ACK or NAK, su ch as noise).
In this case, the token i s not passed onto the next node, which causes the Lost Token T imer of the nex t node to time out,
thus generating a network reconfiguration.
The "Disable Transmitter" command may be used to cancel any pending transmit command when the COM20020I 3V
next receives the token. Normally, in an active network, this command will set the TA status bit to a logic "1" when the
token is received. If the "Disable Transmitter" command does not cause the TA bit to be set in the time it takes the token
to make a round trip through the network, one of three situations exists. Either the node is disconnected from the
network, or the re are no o ther nodes o n th e netw ork, or th e ex ternal receive circuitry ha s fai led. These situa tions can be
determined by either using the improved diagnostic features of the COM20020I 3V or using another software timeout
which is greater than the worst case time for a round trip token pass, which occurs when all nodes transmit a maximum
length me ssage.
Receive Sequence
A receive sequence begins with the RI status bit becoming a logic "1", which indicates that a previous reception has
concluded. The microcontroller will be interrupted if the corresponding bit in the Interrup t Mask Register is set to logic "1".
Otherwise, the microcontroller must periodically check the Status Register. Once the microcontroller is alerted to the
fact that the previous reception has co ncluded, it may issue the "En able Receive to Page fn n" command, which reset s the
RI bit to logic "0" and selects a new page in the RAM buffer. Again, the appropriate buffer size is specified in the "Define
Configu ration" comman d. Typically, the page which just received the data packet will be read by the microcontroller at
this point. Once the "Enable Receive to Page fnn" command is issued, the microcontroller attends to other duties.
There is no way of knowing how long the new reception will take, since another node may transmit a packet at any time.
When another node does transmit a packet to this node, and if the "Define Configuration" command has enabled the
reception of long packets, the COM20020I 3V interprets the packet as either a long or short packet, depending on
whether the co ntent of t he buffer loc ation 2 is zer o or non-z er o. The format of the buffer is shown in Figure 1 0. Addr ess
0 contains the Source Identifier (SID), Address 1 contains the Destination Identifier (DID), and Address 2 contains, for
short packets, the value 256-N, where N represents the message length, or for long packets, the value 0, indicating that it
is indeed a lon g p acket. In the latte r case , Address 3 contains the value 512-N, where N rep resent s the message len gth.
Note that on reception, the COM20020I 3V deposits packets into th e RAM buff er in the same format that the transm itting
node arranges them, which allows for a message to be received and then retransmitted without rearranging any bytes in
the RAM buffer other than the SID and DID. Once the packet is received and stored correctly in the selected buffer, the
COM20020I 3V se t s the R I bit to logic "1" to sign al the microcontro lle r tha t the re ception is co mple te .