RM0430
Table 224. Core global control and status registers (CSRs) (continued)
Acronym
OTG_GRXSTSR
OTG_GRXSTSP
OTG_GRXFSIZ
OTG_HNPTXFSIZ/
(1)
OTG_DIEPTXF0
OTG_HNPTXSTS
OTG_GCCFG
OTG_CID
OTG_GLPMCFG
OTG_HPTXFSIZ
OTG_DIEPTXFx
1. The general rule is to use OTG_HNPTXFSIZ for host mode and OTG_DIEPTXF0 for device mode.
Host-mode CSR map
These registers must be programmed every time the core changes to host mode.
Table 225. Host-mode control and status registers (CSRs)
Acronym
OTG_HCFG
OTG_HFIR
OTG_HFNUM
OTG_HPTXSTS
OTG_HAINT
OTG_HAINTMSK
OTG_HPRT
Address
offset
0x01C
Section 33.15.8: OTG receive status debug read/OTG status read and pop
registers (OTG_GRXSTSR/OTG_GRXSTSP)
0x020
0x024
Section 33.15.9: OTG receive FIFO size register (OTG_GRXFSIZ)
Section 33.15.10: OTG host non-periodic transmit FIFO size register
0x028
(OTG_HNPTXFSIZ)/Endpoint 0 Transmit FIFO size (OTG_DIEPTXF0)
Section 33.15.11: OTG non-periodic transmit FIFO/queue status register
0x02C
(OTG_HNPTXSTS)
0x038
Section 33.15.12: OTG general core configuration register (OTG_GCCFG)
0x03C
Section 33.15.13: OTG core ID register (OTG_CID)
0x54
Section 33.15.14: OTG core LPM configuration register (OTG_GLPMCFG)
Section 33.15.15: OTG host periodic transmit FIFO size register
0x100
(OTG_HPTXFSIZ)
0x104
0x108
Section 33.15.16: OTG device IN endpoint transmit FIFO size register
(OTG_DIEPTXFx) (x = 1..5, where x is the FIFO number)
...
0x114
Offset
address
0x400
Section 33.15.18: OTG host configuration register (OTG_HCFG)
0x404
Section 33.15.19: OTG host frame interval register (OTG_HFIR)
Section 33.15.20: OTG host frame number/frame time remaining register
0x408
(OTG_HFNUM)
Section 33.15.21: OTG_Host periodic transmit FIFO/queue status register
0x410
(OTG_HPTXSTS)
0x414
Section 33.15.22: OTG host all channels interrupt register (OTG_HAINT)
Section 33.15.23: OTG host all channels interrupt mask register
0x418
(OTG_HAINTMSK)
0x440
Section 33.15.24: OTG host port control and status register (OTG_HPRT)
USB on-the-go full-speed (OTG_FS)
Register name
Register name
RM0430 Rev 8
1157/1324
1283
Need help?
Do you have a question about the STM32F423 and is the answer not in the manual?