
28
Agere Systems Inc.
Data Sheet, Rev. 4
June 2001
USB Device Controller
USS-820D
Register Interface
(continued)
Table 25. Transmit FIFO Flag Register (TXFLG)—Address: 04H; Default: 0000 1000B
These flags indicate the status of data packets in the transmit FIFO specified by EPINDEX. This register is
endpoint indexed.
Bit 7
TXFIF1
Bit 6
TXFIF0
Bit 5
Bit 4
Bit 3
TXEMP
Bit 2
TXFULL
Bit 1
TXURF
Bit 0
TXOVF
—
—
R
R
R/W
Bit
7:6
Symbol
TXFIF[1:0]
Transmit FIFO Index Flags (Read Only).
These flags indicate which data sets are
present in the transmit FIFO (see below).
Data Sets Present
TXFIF[1:0]
ds1
ds0
00
No
No
01
No
Yes
10
Yes
No
11
Yes
Yes
Function/Description
Status
Empty
1 set
1 set
2 sets
The TXFIF bits are set in sequence after each write to TXCNT to reflect the addition of a
data set. Likewise, the TXFIF1 and TFIF0 are cleared in sequence after each advance of
the read marker to indicate that the set is effectively discarded. The bit is cleared whether
the read marker is advanced by firmware (setting ADVRM) or automatically by hardware
(ATM = 1). The next-state table for the TXFIF bits is shown below:
TXFIF[1:0]
00
01
10
11
00
01
11
10
XX
Operation
Write TXCNT
Write TXCNT
Write TXCNT
Write TXCNT
Advance Read Marker
Advance Read Marker
Advance Read Marker
Advance Read Marker
Reverse Read Pointer
Next TXFIF[1:0]
01
11
11
11 (TXOVF = 1)
00
00
10/01
00
Unchanged
In isochronous mode, TXOVF, TXURF, and TXFIF are handled using the following rule:
firmware events cause status change immediately, while USB events cause status change
only at SOF. TXFIF is incremented by firmware and decremented by the USB. Therefore,
writes to TXCNT increment TXFIF immediately. However, a successful USB transaction
any time within a frame decrements TXFIF only at SOF.
The TXFIF flags must be checked before and after writes to the transmit FIFO and TXCNT
for traceability. See the TXFLUSH bit in TXSTAT.
If MCSR.FEAT = 0:
TXFIF bits are immediately visible to the host after a firmware write—the device will
send the indicated data set(s) to the host in response to an IN.