Download GPL162002A/162003A Programming Guide

Transcript
GPL162002A/162003A Programming Guide
Bit
Function Type
Description
Condition
SOF timer by software.
2
SOFTR
R/W SOF Timer
0= Disable SOF timer
Write “1” to enable SOF timer.
1
0
1= Enable SOF timer
Reserved
HOSTEN
R/W Host Enable
0= Host is disabled
Write “1” to this bit to enable host.
1= Host is enabled (Device is
disabled)
P_USBH_TimeConfig
Bit
Function
Default
Bit
[15:6]
5
0x7B01
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 科
格
普
15
14
13
12
11
10
9
8
7
6
-
-
-
-
-
-
-
-
-
-
0
0
0
0
0
0
0
0
0
0
Function
y
l
n
O
USB Host Timing Configuration Register
Type
5
4
3
SAU PAC
0
0
2
TC
0
Description
0
1
0
IPD
0
0
Condition
Reserved
SAU
R/W
Storage 1/2 Auto Mode
If this bit is set to 1, setting P_USBH_StorageRST
after each transaction in non-DMA mode is not
necessary.
4
PAC
R/W
Pointer Auto Clear
Always set to 1
If the bit is set 1, READ/WRITE pointer is
automatically reset to 0 after any transaction.
However, this mode is automatically disabled in
DMA mode.
The DMA mode is activated by configuring
P_USBH_AutoTrans [0] or P_USBH_AutoTrans
[1].
[3:2]
TC
R/W
TimeOut Criteria
00= 16T
01= 18T
10= 20T
r
o
F
[1:0]
11= 22T
IPD
R/W
00= 2T
01= 4T
10= 6T
11= 8T
P_USBH_Data
Bit
Inter Packet Delay
15
0x7B02
14
13
12
11
USB Host Data Register
10
9
8
Function
-
-
-
-
-
-
-
-
Default
0
0
0
0
0
0
0
0
© Generalplus Technology Inc.
PAGE 204
7
6
5
4
0
0
0
0
3
2
1
0
0
0
0
HDATA
0
V1.0 – Dec. 20, 2006