Datasheet

SAM3X / SAM3A [DATASHEET]
Atmel-11057C-ATARM-SAM3X-SAM3A-Datasheet_23-Mar-15
1088
39.6.1 USB General Registers
39.6.1.1 General Control Register
Name: UOTGHS_CTRL
Address: 0x400AC800
Access: Read-write
UIMOD: UOTGHS Mode
This bit has no effect when UIDE is one (UOTGID input pin activated).
0 (Host): The module is in USB host mode.
1 (Device): The module is in USB device mode.
This bit can be written even if USBE is zero or FRZCLK is one. Disabling the UOTGHS (by writing a zero to the USBE bit)
does not reset this bit.
UIDE: UOTGID Pin Enable
0 (UIMOD): The USB mode (device/host) is selected from the UIMOD bit.
1 (UOTGID): The USB mode (device/host) is selected from the UOTGID input pin.
This bit can be written even if USBE is zero or FRZCLK is one. Disabling the UOTGHS (by writing a zero to the USBE bit)
does not reset this bit.
UNLOCK: Timer Access Unlock
0: The TIMPAGE and TIMVALUE fields are locked.
1: The TIMPAGE and TIMVALUE fields are unlocked.
The TIMPAGE and TIMVALUE fields can always be read, whatever the value of UNLOCK.
TIMPAGE: Timer Page
This field contains the page value to access a special timer register.
TIMVALUE: Timer Value
This field selects the timer value that is written to the special time register selected by TIMPAGE. See Section 39.5.1.8 for
details.
USBE: UOTGHS Enable
Writing a zero to this bit will reset the UOTGHS, disable the USB transceiver, and disable the UOTGHS clock inputs.
Unless explicitly stated, all registers will then become read-only and will be reset.
0: The UOTGHS is disabled.
1: The UOTGHS is enabled.
This bit can be written even if FRZCLK is one.
31 30 29 28 27 26 25 24
––––––UIMODUIDE
23 22 21 20 19 18 17 16
UNLOCK TIMPAGE TIMVALUE
15 14 13 12 11 10 9 8
USBE FRZCLK VBUSPO OTGPADE HNPREQ SRPREQ SRPSEL VBUSHWC
76543210
STOE HNPERRE ROLEEXE BCERRE VBERRE SRPE VBUSTE IDTE