Receive Command X Register (Rxc1, Rxc2, Rxc3) - NS USBN9603 Manual

Universal serial bus full speed node controller with enhanced dma support
Table of Contents

Advertisement

7.0 Register Set
(Continued)
For ISO operation, this bit reflects the LSB of the frame number (FNL0) after a packet was successfully received for this
endpoint.
This bit is reset to 0 by reading the RXSx register.
SETUP
This bit indicates that the setup packet has been received. It is cleared when this register is read.
RX_ERR
Receive Error. When set, this bit indicates a media error, such as bit-stuffing or CRC. If this bit is set, the firmware must flush
the respective FIFO.

7.2.25 Receive Command X Register (RXC1, RXC2, RXC3)

Each of the receive endpoints (2, 4 and 6) has one Receive Command register with the bits defined below.
bit 7
Reserved
-
-
RX_EN
Receive Enable. OUT packet cannot be received after every data packet is received, or when a STALL handshake is re-
turned in response to an OUT token. This bit must be written with a 1 to re-enable data reception. SETUP packets can always
be received. In the case of back-to-back SETUP packets (for a given endpoint) where a valid SETUP packet has been re-
ceived with no other intervening non-SETUP tokens, the receive state machine discards the new SETUP packet and returns
an ACK handshake. If, for any other reason, the receive state machine cannot accept the SETUP packet, no HANDSHAKE
should be generated.
IGN_SETUP
Ignore SETUP Tokens. When this bit is set, the endpoint ignores any SETUP tokens directed to its configured address.
FLUSH
Writing a 1 to this bit flushes all data from the corresponding receive FIFO, resets the endpoint to Idle state, and resets both
the FIFO read and write pointers. If the MAC is currently using the FIFO to receive data, flushing is delayed until after re-
ceiving is completed.
RFWL1-0
Receive FIFO Warning Limit. These bits specify how many more bytes can be received to the respective FIFO before an
overrun condition occurs. If the number of empty bytes remaining in the FIFO is equal to or less than the selected warning
limit, the RXWARN bit in the FWEV register is set.
bit 6
bit 5
bit 4
RFWL1-0
Reserved
0
0
-
r/w
-
Table 9. Set Receive FIFO Warning Limit
RFWL Bits
1
0
0
0
0
1
1
0
1
1
bit 3
bit 2
FLUSH
IGN_SETUP
0
0
r/w
r/w
Bytes Remaining in FIFO
RFWL disabled
≤ 4
≤ 8
≤ 16
49
bit 1
bit 0
Reserved
RX_EN
-
0
-
r/w
www.national.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Usbn9604

Table of Contents