USB97C201-MN SMSC [SMSC Corporation], USB97C201-MN Datasheet - Page 34

no-image

USB97C201-MN

Manufacturer Part Number
USB97C201-MN
Description
USB 2.0 ATA/ ATAPI Controller
Manufacturer
SMSC [SMSC Corporation]
Datasheet
Notes:
Note: This register is updated at the end of a transfer and is actually the least significant bits of the ending address
in the SRAM buffer.
SMSC DS – USB97C201
If the DIR bit is changed, then the RAMWR_TOGGLE bit must be written by the user to assure that the proper
buffer is selected. The user can NOT rely on reading the value of this bit to determine which buffer is active
immediately after changing the DIR bit.
Bit 2, above, will set the STALL condition for both TX and RX directions of EP2. If the host clears the stall in
either direction, then both direction’s STALL condition will be cleared. Bit 3 above will be reserved and always
read a “0”.
BIT
[5:0]
BIT
4
3
2
1
0
7
6
(0xB4 - RESET=0x00)
(0xB5 - RESET=0x00)
TOGVALID
STALL_TX
RAMRD_
TOGGLE
RAMRD_
ENABLE
Reserved
STALL_
64BYTE
COUNT
NAME
NAME
EP0RX_BC
RX
EP2_CTL
Table 36 – Endpoint 0 Receive Byte Count Register
R/W
R/W
R/W
R/W
R/W
W
R
R
R
R
R
PRELIMINARY
Writing a “0” to this bit will begin the output of the 512 byte
SRAM A buffer to either the SIE or the ATA interface,
depending on the value of the DIR bit in this register, while
writing a “1” will begin outputing of SRAM B buffer. See
Sections 6.4, 6.5, and 6.9 for more information. The
RAMRDBC_A and RAMRDBC_B Registers determine how
many bytes will be output from either the A or B SRAM
buffer, respectively. Writing this bit to a “1” will clear the
RAMRD_B bit in the ISR_0 register, while writing it to “0” will
clear the RAMRD_A bit in that register.
Upon reads, this bit will reflect the current or last buffer
being read (1=B, 0=A).
When set to a “1”, EP2 RX will respond with the STALL
handshake to all tokens. . Either the internal SIE or the user
may set this bit. This bit is only cleared when a SET
FEATURE
CONFIGURATION command is received on EP0 from the
host, or by a USB reset.
When set to a “1”, EP2 TX will respond with the STALL
handshake to all tokens. . Either the internal SIE or the user
may set this bit. This bit is only cleared when a SET
FEATURE
CONFIGURATION command is received on EP0 from the
host, or by a USB reset.
This bit always reads “0”. If this bit is set to a “1” when
writes to this register occur, then the value of bit 4 written to
this register will have effect. If cleared, then the values of bit
4, when this register is written, is ignored.
Reads “1” if EP2 is enabled by the SIE in either direction.
This bit always reads “0”.
1 = Indicates that 64 Bytes were received.
Indicates the byte count of the packet received on EP0 and
stored in SRAM beginning at address 0x0000.
ENDPOINT 0 RECEIVE BYTE COUNT REGISTER
Page 34
ENDPOINT 2 CONTROL REGISTER
ENDPOINT
ENDPOINT
DESCRIPTION
DESCRIPTION
2RX
2TX
CLEAR
CLEAR
or
or
Rev. 03/25/2002
SET
SET

Related parts for USB97C201-MN