User manual

...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 354
www.energymicro.com
15.6.7 USB_ROUTE - I/O Routing Register
Offset Bit Position
0x018
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
0
0
Access
RW
RW
RW
Name
DMPUPEN
VBUSENPEN
PHYPEN
Bit Name Reset Access Description
31:3 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
2 DMPUPEN 0 RW DMPU Pin Enable
When set, the USB_DMPU pin is enabled.
1 VBUSENPEN 0 RW VBUSEN Pin Enable
When set, the USB_VBUSEN pin is enabled.
0 PHYPEN 0 RW USB PHY Pin Enable
When set, the USB PHY and USB pins are enabled. The USB_DP and USB_DM are changed from regular GPIO pins to USB pins.
15.6.8 USB_GOTGCTL - OTG Control and Status Register
The OTG Control and Status register controls the behavior and reflects the status of the OTG function
of the core.
Offset Bit Position
0x3C000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
Access
RW
R
R
R
R
RW
RW
RW
R
RW
RW
RW
RW
RW
RW
RW
R
Name
OTGVER
BSESVLD
ASESVLD
DBNCTIME
CONIDSTS
DEVHNPEN
HSTSETHNPEN
HNPREQ
HSTNEGSCS
AVALIDOVVAL
AVALIDOVEN
BVALIDOVVAL
BVALIDOVEN
VBVALIDOVVAL
VBVALIDOVEN
SESREQ
SESREQSCS
Bit Name Reset Access Description
31:21 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
20 OTGVER 0 RW OTG Version
Indicates the OTG revision.
Value Mode Description
0 OTG13 OTG Version 1.3. In this version the core supports data line pulsing and VBus pulsing
for SRP.
1 OTG20 OTG Version 2.0. In this version the core supports only data line pulsing for SRP.
19 BSESVLD 0 R B-Session Valid (device only)
Indicates the Device mode transceiver status for B-session valid. In OTG mode, you can use this bit to determine if the device is
connected or disconnected.
18 ASESVLD 0 R A-Session Valid (host only)
Indicates the Host mode transceiver status for A-session valid.