09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

USB on-the-go high-speed (OTG_HS) <strong>RM0090</strong><br />

Bit 17 NAKSTS: NAK status<br />

Indicates the following:<br />

0: The core is transmitting nonNAK handshakes based on the FIFO status.<br />

1: The core is transmitting NAK handshakes on this endpoint.<br />

When either the application or the core sets this bit, the core stops receiving data, even if<br />

there is space in the RxFIFO to accommodate the incoming packet. Irrespective of this bit’s<br />

setting, the core always responds to SETUP data packets with an ACK handshake.<br />

Bit 16 Reserved, must be kept at reset value.<br />

Bit 15 USBAEP: USB active endpoint<br />

This bit is always set to 1, indicating that a control endpoint 0 is always active in all<br />

configurations and interfaces.<br />

Bits 14:2 Reserved, must be kept at reset value.<br />

Bits 1:0 MPSIZ: Maximum packet size<br />

The maximum packet size for control OUT endpoint 0 is the same as what is programmed in<br />

control IN endpoint 0.<br />

00: 64 bytes<br />

01: 32 bytes<br />

10: 16 bytes<br />

11: 8 bytes<br />

OTG_HS device endpoint-x control register (OTG_HS_DOEPCTLx) (x = 1..3,<br />

where x = Endpoint_number)<br />

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

Reset value: 0x0000 0000<br />

The application uses this register to control the behavior of each logical endpoint other than<br />

endpoint 0.<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 />

EPENA<br />

EPDIS<br />

SODDFRM<br />

SD0PID/SEVNFRM<br />

SNAK<br />

CNAK<br />

rs rs w w w w<br />

Reserved<br />

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

Stall<br />

rw/<br />

rs<br />

SNPM<br />

EPTYP<br />

NAKSTS<br />

EONUM/DPID<br />

USBAEP<br />

Reserved<br />

MPSIZ<br />

rw rw rw r r rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bit 31 EPENA: Endpoint enable<br />

Applies to IN and OUT endpoints.<br />

The application sets this bit to start transmitting data on an endpoint.<br />

The core clears this bit before setting any of the following interrupts on this endpoint:<br />

– SETUP phase done<br />

– Endpoint disabled<br />

– Transfer completed

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

Saved successfully!

Ooh no, something went wrong!