Universal Serial Bus Device LH79524/LH79525 User’s Guide
17-30 Version 1.0
17.2.3.9 Count 0 Register (OUTCOUNT0)
OUTCOUNT0 is a read-only register that indicates the number of received data bytes in
the Endpoint 0 FIFO. The value returned is valid while CSR0:OUT_PKT_RDY is 1.
17.2.3.10 Count 1 Register (OUTCOUNT1)
The OUTCOUNT1 is a read-only register that holds the lower 8 bits of the number of
received data bytes in the packet in the FIFO associated with the currently-selected OUT
endpoint. The value returned is valid while OUTCSR1:OUT_PKT_RDY is 1.
Table 17-40. OUTCOUNT0 Register
BIT 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
FIELD ///
RESET 0000000000000000
RW RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
BIT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
FIELD /// OUTCOUNT0
RESET 0000000000000000
TYPE RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
ADDR
0xFFFF5000 + 0x058
(with the INDEX register set to 0)
Table 17-41. OUTCOUNT0 Fields
BITS NAME FUNCTION
31:7
/// Reserved Reading returns 0. Write the reset value.
6:0 OUTCOUNT0
Count of OUT EP0 Packet Bytes Number of bytes in the packet
ready to be unloaded by software.
Table 17-42. OUTCOUNT1 Register
BIT 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
FIELD ///
RESET 0000000000000000
RW RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
BIT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
FIELD /// OUTCOUNT1
RESET 0000000000000000
TYPE RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
ADDR
0xFFFF5000 + 0x058
(with the INDEX register set to 1 or 2)
Table 17-43. OUTCOUNT1 Fields
BITS NAME FUNCTION
31:8
/// Reserved Reading returns 0. Write the reset value.
7:0 OUTCOUNT1
Count of OUT EP1 or EP2 Packet Bytes This contains the lower 8 bits
of the number of bytes in the packet ready to be unloaded by software.