AT32F425
Series Reference Manual
2022.03.30
Page 385
Ver 2.01
OTGFS_DOEPCTL2
0xB40
0x0000 0000
OTGFS_DOEPINT2
0xB48
0x0000 0080
OTGFS_DOEPTSIZ2
0xB50
0x0000 0000
OTGFS_DOEPCTL3
0xB60
0x0000 0000
OTGFS_DOEPINT3
0xB68
0x0000 0080
OTGFS_DOEPTSIZ3
0xB70
0x0000 0000
OTGFS_DOEPCTL4
0xB80
0x0000 0000
OTGFS_DOEPINT4
0xB88
0x0000 0080
OTGFS_DOEPTSIZ4
0xB90
0x0000 0000
OTGFS_DOEPCTL5
0xBA0
0x0000 0000
OTGFS_DOEPINT5
0xBA8
0x0000 0080
OTGFS_DOEPTSIZ5
0xBB0
0x0000 0000
OTGFS_DOEPCTL6
0xBC0
0x0000 0000
OTGFS_DOEPINT6
0xBC8
0x0000 0080
OTGFS_DOEPTSIZ6
0xBD0
0x0000 0000
OTGFS_DOEPCTL7
0xBE0
0x0000 0000
OTGFS_DOEPINT7
0xBE8
0x0000 0080
OTGFS_DOEPTSIZ7
0xBF0
0x0000 0000
OTGFS_PCGCCTL
0xE00
0x0000 0000
20.6.3 OTGFS global registers
These registers are available in both host and device modes, and do not need to be reprogrammed
when switching between two modes.
20.6.3.1 OTGFS status and control register (OTGFS_GOTGCTL)
This register controls the OTG function and reflects its status.
Bit
Register
Reset value
Type
Description
Bit 31: 22 Reserved
0x0000
resd
Kept at its default value.
Bit 21
CURMOD
0x0
ro
Current Mode of Operation
Accesible in both host and device modes
This bit indicates the current operation mode.
0: Device mode
1: Host mode
Bit 20: 17 Reserved
0x0000
resd
Kept at its default value.
Bit 16
CONIDSTS
0x1
ro
Accesible in both host and device modes
Connector ID status
This bit indicates the connecter ID status.
0: OTGFS controller is in A-device mode
1: OTGFS controller is in B-device mode
Bit 15: 0
Reserved
0x0000
resd
Kept at its default value.
20.6.3.2 OTGFS interrupt status control register ( OTGFS_GOTGINT)
The application reads this register to know about which kind of OTG interrupt is generated, and writes
this register to clear the OTG interrupt.
Bit
Register
Reset value
Type
Description
Bit 31: 3
Reserved
0x0000
resd
Kept at its default value.
Bit 2
SESENDDET
0x0
rw1c
Available in both host and device modes
Session end detected
The controller sets this bit when a Bvalid (Vbus) signal is
disconnected. This register can only be set by hardware.
Writing 1 by software clears this bit.
Bit 1: 0
Reserved
0x0000
resd
Kept at its default value.