![](http://datasheet.mmic.net.cn/370000/GL652_datasheet_16691645/GL652_7.png)
7 08/18/00
GL652USB 7 PORT USB HUB CONTROLLER
Revision 1.2
SELF
GANG
: 0 - HUB is bus powered.
1 - HUB is self powered.
: 0 - HUB is in individual mode.
1 - HUB is in ganged mode.
EVTFLG
( offset 01, default = 00h )
R/W1C
C_LCPWR WAKEUP
R/W1C
R/W1C
SOF
R/W1C
R/W1C
SUSPD
R/W1C
EP1TX
R/W1C
EP0TX
R/W1C
EP0RX
USBRST
Interrupt event flag –
EP0RX
EP0TX
EP1TX
SUSPD
WAKEUP
SOF
C_LCPWR
USBRST
: a SETUP or OUT transaction to endpoint 0 is accepted
: USB host controller accepts data transmitted via endpoint 0.
: USB host controller accepts data transmitted via endpoint 1
: the controller goes into suspend state
: remote wakeup is detected when global suspended
: SOF detected or generated by HUB timer.
: POWER source change.
: End of USB reset
RXCTL0
( offset 02, default = 40h )
R/O
RXSETUP
RXOUT
Status of endpoint 0 receiving –
RXCNT3~0
: EP0 received data byte count.
RXSEQ
: 1 - The received data PID is DATA1
0 - The received data PID is DATA0
RXOUT
: 1 - The received token PID is OUT.
RXSETUP
: 1 - The received token PID is SETUP.
RXDIS
: 0 - Endpoint 0 FIFO is empty and ready for data-packet receiving.
1 - Endpoint 0 FIFO is filled with data and will reject the new-coming data
packet.
If RXDIS = 1, the device will not accept an OUT transaction addressed to it, and will respond
with a NAK to an error-free transaction. Hardware will automatically set RXDIS after a
successful receiving. After processing, the micro-controller should clear RXDIS to enable next
data-packet receiving or free FF0 for filling of the data to transmit. Note that a SETUP
transaction addressed to the device is always accepted even though RXDIS = 1.
( offset 03, default = 00h )
R/W
R/W
R/W
--
EP0STL
EP0OE
EP0SEQ
EP0CNT3
Endpoint 0 transmit setting –
EP0CNT3~0
: number of data bytes to transmit
EP0OE
: enable data transmit
1 – ready to transmit data packet
0 – not ready to transmit data packet (default)
EP0SEQ
: data packet type
0 –DATA0
1 –DATA1
EP0STL
: set endpoint 0 stall
1 – EP0 will respond to USB host controller with STALL packet
EP0STL will be automatically cleared when a setup transaction is accepted.
R/W
RXDIS
R/O
R/O
RXSEQ
R/O
R/O
R/O
R/O
RXCNT3
RXCNT2
RXCNT1
RXCNT0
TXCTL0
R/W
R/W
R/W
R/W
EP0CNT2
EP0CNT1
EP0CNT0