\n

OTG

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x14 byte (0x0)
mem_usage : registers
protection : not protected

Registers

OTG_CTL (CTL)

OTG_STATUS (STATUS)

OTG_PHYCTL (PHYCTL)

OTG_INTEN (INTEN)

OTG_INTSTS (INTSTS)


OTG_CTL (CTL)

OTG Control Register
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OTG_CTL OTG_CTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VBUSDROP BUSREQ HNPREQEN OTGEN PDEVCKON WKEN

VBUSDROP : Drop The VUSB Bus\nIf user application running on this OTG A-device wants to conserve power consumption, set this bit to high When set this bit to TRUE, BUSREQ shall be cleared as well.\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Did Not drop the VBUS and keep going on USB data transfers

#1 : 1

Drop the VBUS to conserve power consumption

End of enumeration elements list.

BUSREQ : OTG A-Device Bus Request\nIf user application of an OTG A-device wants to do data transfers via USB bus, set this bit to high Otherwise if user application won't use the bus any more, set this bit low. This bit will be automatically cleared if VBUSDROP bit is set to TRUE.
bits : 1 - 1 (1 bit)
access : read-write

HNPREQEN : OTG B-Device HNP Enable/Request\nSet this bit to TRUE after the OTG A-device successfully sends a SetFeature(b_hnp_enable) command to the OTG B-device This bit will be cleared automatically when a bus reset or SESS_VLD goes from TRUE to FALSE.
bits : 2 - 2 (1 bit)
access : read-write

OTGEN : OTG Function Enable Bit\nIf USB is configured as OTG device, this bit must set high.\n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

OTG function Disabled

#1 : 1

OTG function Enabled

End of enumeration elements list.

PDEVCKON : Force OTG PHY Output Clock To USB Device\nIf software configures OTG controller as OTG device and OTG device as A-device, OTG controller will output OTG PHY clock (30 MHz) to USB device only when OTG device as A-peripheral. If software needs to configure USB device before role change (from A-Host to A-Peripheral), software can set this bit high to output OTG PHY clock to USB device.\n
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

USB device clock is available only when OTG device as a peripheral

#1 : 1

Force output OTG PHY clock to USB device

End of enumeration elements list.

WKEN : OTG Wake-Up Enable Bit\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

OTG ID pin status change wake-up Disabled

#1 : 1

OTG ID pin status change wake-up Enabled

End of enumeration elements list.


OTG_STATUS (STATUS)

Functional Status Register
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

OTG_STATUS OTG_STATUS read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 OVERCUR IDSTS SESSEND BVLD AVLD VBUSVLD

OVERCUR : Overcurrent Condition\nThe voltage on VBUS cannot reach a minimum VBUS valid threshold, 4.4V minimum, within a maximum time of 100ms after OTG A device starting to drive\n
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

OTG A-device drives VBUS successfully

#1 : 1

Overcurrent condition occurred

End of enumeration elements list.

IDSTS : ID Pin State Of Mini-B/Micro-Plug\n
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

#0 : 0

Mini-A/Micro-A plug is attached

#1 : 1

Mini-B/Micro-B plug is attached

End of enumeration elements list.

SESSEND : Session End Status \n
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

#0 : 0

VBUS 0.8V

#1 : 1

VBUS 0.2V

End of enumeration elements list.

BVLD : B-Device Session Valid Status\n
bits : 3 - 3 (1 bit)
access : read-only

Enumeration:

#0 : 0

VBUS 0.8V

#1 : 1

VBUS 4V

End of enumeration elements list.

AVLD : A-Device Session Valid Status\n
bits : 4 - 4 (1 bit)
access : read-only

Enumeration:

#0 : 0

VBUS 0.8V

#1 : 1

VBUS 2V

End of enumeration elements list.

VBUSVLD : VBUS Valid Status\n
bits : 5 - 5 (1 bit)
access : read-only

Enumeration:

#0 : 0

VBUS 4.4V

#1 : 1

VBUS 4.75V

End of enumeration elements list.


OTG_PHYCTL (PHYCTL)

OTG PHY Control Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OTG_PHYCTL OTG_PHYCTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SWPDEN DPPDEN DMPDEN VBSTSPOL VBENPOL IDDETEN PHYCLK OTGPHYEN

SWPDEN : Software Control Pull-Down On Data Lines Enable Bit\nNote: Software must set this bit high before controlling DPPDEN and DMPDEN.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Pull-down resistors on data lines is controlled by OTG control logic

#1 : 1

Pull-down resistors on data lines is controlled by software

End of enumeration elements list.

DPPDEN : None
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#1 : 1

15 k resistor pull-down on D+ pin Enabled

End of enumeration elements list.

DMPDEN : None
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#1 : 1

15 k resistor pull-down on D- pin Enabled

End of enumeration elements list.

VBSTSPOL : Off-Chip USB VBUS Power Status Polarity\nThe polarity of off-chip USB VBUS LDO valid depends on the selected component. This bit provides the inversed option of off-chip USB VBUS LDO valid.\n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

The polarity of off-chip USB VBUS LDO valid not inversed

#1 : 1

The polarity of off-chip USB VBUS LDO valid inversed

End of enumeration elements list.

VBENPOL : Off-Chip USB VBUS Power Enable Polarity\nThe OTG controller will enable off-chip USB VBUS LDO to provide VBUS power when need. The polarity of enabling off-chip BSU VBUS LDO (high active or low active) depends on the selected component. This bit provides the inverse option of off-chip USB VBUS LDO enable. \n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

The polarity of enabling off-chip USB VBUS LDO from the OTG controller not inversed

#1 : 1

The polarity of enabling off-chip USB VBUS LDO from the OTG controller inversed

End of enumeration elements list.

IDDETEN : ID Detection Enable\n
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Sampling on ID pin Enabled

#1 : 1

Sampling on ID pin Disabled

End of enumeration elements list.

PHYCLK : PHY Input Clock Selection\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

PHY input clock is12 MHz

#1 : 1

PHY input clock is 24 MHz

End of enumeration elements list.

OTGPHYEN : OTG PHY Enable Control when Device Configured as OTG-Device\nWhen device is configured as OTG-device, hardware will not enable OTG PHY automatically. Software can set OTG_EN to enable OTG PHY.\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

OTG PHY Disabled

#1 : 1

OTG PHY Enabled

End of enumeration elements list.


OTG_INTEN (INTEN)

OTG Interrupt Enable Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OTG_INTEN OTG_INTEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ROLECHGIEN VBEIEN SRPFIEN HNPFIEN GOIDLEIEN IDCHGIEN PDEVIEN HOSTIEN BVLDCHGIEN AVLDCHGIEN VBCHGIEN SECHGIEN SRPDETIEN

ROLECHGIEN : Role(Host Or Peripheral) Changed Interrupt Enable Bit\n
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

VBEIEN : VBUS Error Interrupt Enable Bit\nNote: VBUS error means going to a_vbus_err state. Please refer to A-device state diagram in OTG spec.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

SRPFIEN : SRP Fail Interrupt Enable Bit\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

HNPFIEN : HNP Fail Interrupt Enable Bit\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

GOIDLEIEN : OTG Device Goes IDLE State Interrupt Enable Bit\nNote: Going to idle state means going to a_idle or b_idle state. Please refer to A-device state diagram and B-device state diagram in OTG spec.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

IDCHGIEN : IDSTS Changed Interrupt Enable \n
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

PDEVIEN : Act As Peripheral Interrupt Enable Bit\n
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

This device as a peripheral interrupt Disabled

#1 : 1

This device as a peripheral interrupt Enabled

End of enumeration elements list.

HOSTIEN : Act As Host Interrupt Enable Bit\n
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

This device as a host interrupt Disabled

#1 : 1

This device as a host interrupt Enabled

End of enumeration elements list.

BVLDCHGIEN : B-Device Session Valid Status Change (From High To Low Or From Low To High) Interrupt Enable Bit\n
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

AVLDCHGIEN : A-Device Session Valid Status Change (From High To Low Or From Low To High) Interrupt Enable Bit\n
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

VBCHGIEN : VBVALID Status Changed Interrupt Enable Bit\n
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

SECHGIEN : SESSEND Status Changed Interrupt Enable Bit \n
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

SRPDETIEN : SRP Detected Interrupt Enable Bit\n
bits : 13 - 13 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.


OTG_INTSTS (INTSTS)

OTG Interrupt Status Register
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OTG_INTSTS OTG_INTSTS read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ROLECHGIF VBEIF SRPFIF HNPFIF GOIDLEIF IDCHGIF PDEVIF HOSTIF BVLDCHGIF AVLDCHGIF VBCHGIF SECHGIF SRPDETIF

ROLECHGIF : OTG Role Change Interrupt Status\nThis flag is set when the role of an OTG device changed from a host to a peripheral, or changed from a peripheral to a host\nNote: Write 1 to clear this flag.
bits : 0 - 0 (1 bit)
access : read-write

VBEIF : VBUS Error Interrupt Status\nThis flag will be set in one of two conditions \nOne case is that voltage on VBUS cannot reach a minimum valid threshold 4.4V within a maximum time of 100ms after OTG A device starting to drive. \nThe other case is that the supplied VBUS drops below a minimum valid threshold due to the overcurrent condition.\nNote: Write 1 to clear this flag and recover from the VBUS error state.
bits : 1 - 1 (1 bit)
access : read-write

SRPFIF : SRP Fail Interrupt Status\nAfter initiating SRP, an OTG B-device will wait at least TB_SRP_FAIL min, defined in OTG specification, for the OTG A-device respond This flag is set when the OTG B-device didn't get the response from the remote A-device to turn VBUS on and generate a bus reset.\nNote: Write 1 to clear this flag.
bits : 2 - 2 (1 bit)
access : read-write

HNPFIF : HNP Fail Interrupt Status\nWhen A-device has granted B-device to be host and USB bus in SE0 state, this bit will be set in specified interval (b_ase0_brst_tmr, defined in OTG spec. specification), A-device does not signal connect signal.\nNote: Write 1 to clear this flag.
bits : 3 - 3 (1 bit)
access : read-write

GOIDLEIF : OTG Device Goes IDLE Interrupt Status\nFlag is set if the OTG device transfers from non-idle state to idle state. The OTG device will be neither a host nor a peripheral.\nNote: Write 1 to clear this flag.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

OTG device does not go back to idle state(a_idle or b_idle)

#1 : 1

OTG device go back to idle state(a_idle or b_idle)

End of enumeration elements list.

IDCHGIF : ID State Change Interrupt Status\nNote1: BUSREQ (OTG_CTL[1]) will be cleared when IDDIG is high.\nNote2: Write 1 to clear this flag.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

IDSTS not toggled

#1 : 1

IDSTS from high to low or from low to high

End of enumeration elements list.

PDEVIF : Act As Peripheral Interrupt Status\nNote: Write 1 to clear this flag.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

This device does not act as a peripheral

#1 : 1

This device acts as a peripheral

End of enumeration elements list.

HOSTIF : Act As Host Interrupt Status\nNote: Write 1 to clear this flag.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

This device does not act as a host

#1 : 1

This device acts as a host

End of enumeration elements list.

BVLDCHGIF : B-Device Session Valid State Change Interrupt Status\nNote: Write 1 to clear this status.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

BVLD not toggled

#1 : 1

BVLD from high to low or low to high

End of enumeration elements list.

AVLDCHGIF : A-Device Session Valid State Change Interrupt Status\nNote: Write 1 to clear this flag.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

AVLD not toggled

#1 : 1

AVLD from high to low or low to high

End of enumeration elements list.

VBCHGIF : VBVALID State Change Interrupt Status\nNote: Write 1 to clear this flag.
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

VBUS_VLD not toggled

#1 : 1

VBUS_VLD from high to low or from low to high

End of enumeration elements list.

SECHGIF : SESSEND State Change Interrupt Status\nNote: Write 1 to clear this flag.
bits : 11 - 11 (1 bit)
access : read-write

Enumeration:

#0 : 0

Session end not toggled

#1 : 1

SESSEND from high to low or from low to high

End of enumeration elements list.

SRPDETIF : SRP Detected Interrupt Status\nNote: Write 1 to clear this status.
bits : 13 - 13 (1 bit)
access : read-write

Enumeration:

#0 : 0

SRP not detected

#1 : 1

SRP detected

End of enumeration elements list.



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.