AT32F425
Series Reference Manual
2022.03.30
Page 381
Ver 2.01
The OTGFS control and status registers contain OTGFS global register, host mode register, device
mode register, data FIFO register, power and clock control register.
1. OTGFS global registers: They are active in both host and device modes. The register acronym is
G.
2. Host-mode registers: They must be programmed every time the controller changes to
host mode, The register acronym is H.
3. Device-mode registers: They must be programmed every time t he controller changes to
device mode, The register acronym is D.
4. Data FIFO access registers: These registers are valid in both in host and device modes, and are
used to read or write the FIFO for a specific endpoint or channel in a given direction. If a host
channel is of type IN, the FIFO can only be read. Similarily, if a host channel is of type OUT, the
FIFO can only be written.
5. Power and clock control register: There is only one regiser for power and clock control. It is valid in
both host and device modes.
20.6.2 OTGFS register address map
shows the USB OTG register map and their reset values.
These peripheral registers must be accessed by words (32-bit)
Table 20-4 OTGFS register map and reset values
Register name
Offset
Reset value
OTGFS_GOTGCTL
0x000
0x0001 0000
OTGFS_GOTGINT
0x004
0x0000 0000
OTGFS_GAHBCFG
0x008
0x0000 0000
OTGFS_GUSBCFG
0x00C
0x0000 1400
OTGFS_GRSTCTL
0x010
0x2000 0000
OTGFS_GINTSTS
0x014
0x0400 0020
OTGFS_GINTMSK
0x018
0x0000 0000
OTGFS_GRXSTSR
0x01C
0x0000 0000
OTGFS_GRXSTSP
0x020
0x0000 0000
OTGFS_GRXFSIZ
0x024
0x0000 0200
OTGFS_GNPTXFSIZ
0x028
0x0000 0200
OTGFS_GNPTXSTS
0x02C
0x0008 0200
OTGFS_GCCFG
0x038
0x0000 0000
OTGFS_GUID
0x03C
0x0000 1000
OTGFS_HPTXFSIZ
0x100
0x0200 0600
OTGFS_DIEPTXF1
0x104
0x0200 0400
OTGFS_DIEPTXF2
0x108
0x0200 0400
OTGFS_DIEPTXF3
0x10C
0x0200 0400
OTGFS_DIEPTXF4
0x110
0x0200 0400
OTGFS_DIEPTXF5
0x114
0x0200 0400
OTGFS_DIEPTXF6
0x118
0x0200 0400
OTGFS_DIEPTXF7
0x11C
0x0200 0400
OTGFS_DIEPTXF8
0x120
0x0200 0400
OTGFS_DIEPTXF9
0x124
0x0200 0400
OTGFS_DIEPTXF10
0x128
0x0200 0400