![](http://datasheet.mmic.net.cn/280000/HMS30C7202N_datasheet_16073790/HMS30C7202N_96.png)
HMS30C7202N
2004 MagnaChip Semiconductor Ltd. All Rights Reserved. Version 1.1
- 91 -
E1RCV
E1NK
E1ST
E1En
E0TXB
E0NK
E0ST
E0TR
E0En
Bits
20
19
18
17~
16
15
Type
R/W
R/W
R/W
R/W
Function
Clear Endpoint2 FIFO Pointer(Auto cleared by Hardware).
Clear Endpoint1 FIFO Pointer(Auto cleared by Hardware).
Clear Endpoint0 FIFO Pointer(Auto cleared by Hardware).
USB Can Transmit NON Maximum sized Packet. This Field contains the residue byte which
should be transmitted.
This Bit enables NON Maximum sized Packet transfer. After NON maximum sized packet
transfer, this bit is auto cleared and return to Maximum Packet size transfer mode.
When This Bit is Set, and Endpoint2 is not enabled, USB should send NAK Handshake
When This Bit is Set, and Endpoint2 is not enabled, USB should send STALL Handshake
Enable Endpoint2 as IN Endpoint
This bit must be zero. So only maximum packet size RX transfer mode is supported. This
means RX (HOST OUT) data packet size is fixed to 32 bytes only.
When This Bit is Set, and Endpoint1 is not enabled, USB should send NAK Handshake
When This Bit is Set, and Endpoint1 is not enabled, USB should send STALL Handshake
Enable Endpoint1 as OUT Endpoint
This Bit Stores the Byte Count which should be transmitted to HOST when IN token is
received (Exception :: When This bit is 0, 8 Byte are transferred)
When This Bit is Set, and Endpoint0 is not enabled, USB should send NAK Handshake
When This Bit is Set, and Endpoint0 is not enabled, USB should send STALL Handshake
When this Bit1, Endpoint0 is configured to IN endpoint. (others OUT endpoint)
Enable Endpoint0
R/W
14
13
12
11
R/W
R/W
R/W
R/W
10
9
8
7~4
R/W
R/W
R/W
R/W
3
2
1
0
R/W
R/W
R/W
R/W
9.5.5.3
INTMASK
0x8005.1008
0
E0FU
SET
31 10
Reserved
9
E0STL
8
SUS
7
RESET
6
E2EM
5
E1OV
4
E1FU
3
E0EM
2
E0OV
1
Bits
9
8
7
6
5
4
3
2
1
0
Type
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Function
Mask Endpoint0 Stall Interrupt
Mask SUSPEND Interrupt
Mask USB Cable RESET Interrupt
Mask Endpoint2 Empty Interrupt
Mask Endpoint1 Overrun Interrupt (May not be used)
Mask Endpoint1 Full Interrupt
Mask Endpoint0 Empty Interrupt
Mask Endpoint0 Overrun Interrupt (May not be used)
Mask Endpoint0 Full Interrupt
Mask Endpoint0 Setup Token Received Interrupt
9.5.5.4
INTSTAT
0x8005.100C
31 20
Reserved
9
E0STL
19 14
EP1RXBYTE
6
E2EM
13 0
EP0RXBYTE
3
2
E0EM
E0OV
8
SUS
7
RESET
5
E1OV
4
E1FU
1
E0FU
0
SET
Bits
19~
14
13~
10
9
8
7
6
Type
R/W
Function
Currently Remained Byte In Endpoint1 Receive FIFO which should be read by HOST
R/W
Currently Remained Byte in Endpoint0 Receive FIFO which should be read by HOST
R/W
R/W
R/W
R/W
Endpoint0 Stall Interrupt
SUSPEND Interrupt
USB Cable RESET Interrupt
Endpoint2 Empty Interrupt