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 high-speed (OTG_HS) <strong>RM0090</strong><br />

STUPCNT: SETUP packet count<br />

Applies to control OUT Endpoints only.<br />

This field specifies the number of back-to-back SETUP data packets the endpoint can<br />

receive.<br />

01: 1 packet<br />

10: 2 packets<br />

11: 3 packets<br />

Bit 28:19 PKTCNT: Packet count<br />

Indicates the total number of USB packets that constitute the Transfer Size amount of data<br />

for this endpoint.<br />

This field is decremented every time a packet (maximum size or short packet) is written to<br />

the RxFIFO.<br />

Bits 18:0 XFRSIZ: Transfer size<br />

This field contains the transfer size in bytes for the current endpoint. The core only interrupts<br />

the application after it has exhausted the transfer size amount of data. The transfer size can<br />

be set to the maximum packet size of the endpoint, to be interrupted at the end of each<br />

packet.<br />

The core decrements this field every time a packet is read from the RxFIFO and written to<br />

the external memory.<br />

OTG_HS device endpoint-x DMA address register (OTG_HS_DIEPDMAx /<br />

OTG_HS_DOEPDMAx) (x = 1..5, where x = Endpoint_number)<br />

Address offset for IN endpoints: 0x914 + (Endpoint_number × 0x20)<br />

Reset value: 0xXXXX XXXX<br />

Address offset for OUT endpoints: 0xB14 + (Endpoint_number × 0x20)<br />

Reset value: 0xXXXX XXXX<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

DMAADDR<br />

Bits 31:0 DMAADDR: DMA address<br />

This bit holds the start address of the external memory for storing or fetching endpoint data.<br />

Note: For control endpoints, this field stores control OUT data packets as well as SETUP<br />

transaction data packets. When more than three SETUP packets are received back-toback,<br />

the SETUP data packet in the memory is overwritten. This register is incremented<br />

on every AHB transaction. The application can give only a DWORD-aligned address.<br />

31.12.5 OTG_HS power and clock gating control register<br />

(OTG_HS_PCGCCTL)<br />

Address offset: 0xE00<br />

Reset value: 0x0000 0000<br />

This register is available in host and peripheral modes.<br />

1243/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!