Download GPL162002A/162003A Programming Guide

Transcript
GPL162002A/162003A Programming Guide
Bit
Function Type
1
E0OPE
Description
Condition
R/W EP0 Out Packet Enable
Write 1= Enable
Writing “1” to this bit will enable the incoming
packet
for
OUT
data.
This
bit
is
automatically cleared after the packet is
loaded to endpoint0 FIFO (E0OPR is set to
“1”).
Write “1” to P_USBD_EPEvntClear [0]
will clear this bit.
0
E0SPR
R/W EP0 Setup Packet Ready
Read 1= Occurred
y
l
n
O
This bit is set if a non-standard setup Read 0= Not occurred
command or a get/set descriptor command is Write 1= Clear
l
a
i e
t
n s
e
U
d
i
f
n 司
o
C 公
s
限
u 有
l
p 份
l
a
r
e 股
n
e 技
G 科
格
普
loaded into the endpoint0 FIFO. Write 1 to Write 0= No effect
clear the bit.
P_USBD_GLOINT
Bit
15
Function
Default
Bit
14
13
12
11
USB Global Interrupt Register
10
9
8
7
-
-
-
-
-
-
-
-
-
0
0
0
0
0
0
0
0
0
Function
[15:7]
0x7B38
Type
6
5
4
3
2
DMA STANDARD POWER INT BO
0
0
0
Description
0
0
1
0
BI
EP0
0
0
Condition
Reserved
6
DMA
R
DMA Interrupt
Read 1= Occurred
This bit is set if one of DMA interrupts happens. Read 0= Not occurred
Writing 1 to clear the specific interrupt would
also clear this bit.
5
STANDARD
R
Standard Command Interrupt
Read 1= Occurred
This bit is set if one of standard command Read 0= Not occurred
interrupts happens, except GET/SET Descriptor.
Writing 1 to clear the specific interrupt would
also clear this bit.
4
POWER
R
Power Management Interrupt
Read 1= Occurred
This bit is set if one of power management Read 0= Not occurred
r
o
F
3
interrupts happens.
Writing 1 to clear the
specific interrupt would also clear this bit.
INT
R
Interrupt In interrupt
Read 1= Occurred
This bit is set if one of INTERRUPT_IN interrupts Read 0= Not occurred
happens.
Writing 1 to clear the specific
interrupt would also clear this bit.
2
BO
R
Bulk Out Interrupt
Read 1= Occurred
This bit is set if one of BULK_OUT interrupts Read 0= Not occurred
happens.
Writing 1 to clear the specific
interrupt would also clear this bit.
© Generalplus Technology Inc.
PAGE 190
V1.0 – Dec. 20, 2006