09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USB on-the-go full-speed (OTG_FS) <strong>RM0090</strong><br />

Table 169. Core global control and status registers (CSRs) (continued)<br />

Acronym<br />

OTG_FS_GRXSTSR 0x01C<br />

OTG_FS_GRXSTSP 0x020<br />

Host-mode CSR map<br />

These registers must be programmed every time the core changes to host mode.<br />

1043/1416 Doc ID 018909 Rev 3<br />

OTG_FS Receive status debug read/OTG status read and pop registers<br />

(OTG_FS_GRXSTSR/OTG_FS_GRXSTSP) on page 1062<br />

OTG_FS_GRXFSIZ 0x024 OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ) on page 1063<br />

OTG_FS_HNPTXFSIZ/<br />

OTG_FS_DIEPTXF0 (1)<br />

0x028<br />

OTG_FS_HNPTXSTS 0x02C<br />

OTG_FS_GCCFG 0x038<br />

OTG_FS Host non-periodic transmit FIFO size register<br />

(OTG_FS_HNPTXFSIZ)/Endpoint 0 Transmit FIFO size<br />

(OTG_FS_DIEPTXF0)<br />

OTG_FS non-periodic transmit FIFO/queue status register<br />

(OTG_FS_HNPTXSTS) on page 1064<br />

OTG_FS general core configuration register (OTG_FS_GCCFG) on<br />

page 1065<br />

OTG_FS_CID 0x03C OTG_FS core ID register (OTG_FS_CID) on page 1066<br />

OTG_FS_HPTXFSIZ 0x100<br />

OTG_FS_DIEPTXFx<br />

Address<br />

offset<br />

0x104<br />

0x124<br />

...<br />

0x138<br />

Register name<br />

OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ) on<br />

page 1067<br />

OTG_FS device IN endpoint transmit FIFO size register<br />

(OTG_FS_DIEPTXFx) (x = 1..3, where x is the FIFO_number) on page 1068<br />

1. The general rule is to use OTG_FS_HNPTXFSIZ for host mode and OTG_FS_DIEPTXF0 for device mode.<br />

Table 170. Host-mode control and status registers (CSRs)<br />

Acronym<br />

Offset<br />

address<br />

Register name<br />

OTG_FS_HCFG 0x400 OTG_FS Host configuration register (OTG_FS_HCFG) on page 1068<br />

OTG_FS_HFIR 0x404 OTG_FS Host frame interval register (OTG_FS_HFIR) on page 1069<br />

OTG_FS_HFNUM 0x408<br />

OTG_FS_HPTXSTS 0x410<br />

OTG_FS_HAINT 0x414<br />

OTG_FS_HAINTMSK 0x418<br />

OTG_FS_HPRT 0x440<br />

OTG_FS Host frame number/frame time remaining register<br />

(OTG_FS_HFNUM) on page 1070<br />

OTG_FS_Host periodic transmit FIFO/queue status register<br />

(OTG_FS_HPTXSTS) on page 1070<br />

OTG_FS Host all channels interrupt register (OTG_FS_HAINT) on<br />

page 1071<br />

OTG_FS Host all channels interrupt mask register (OTG_FS_HAINTMSK)<br />

on page 1072<br />

OTG_FS Host port control and status register (OTG_FS_HPRT) on<br />

page 1072

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!