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.

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

Bit 17 NAKSTS: NAK status<br />

Indicates the following:<br />

0: The core is transmitting non-NAK 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:<br />

The core stops receiving any data on an OUT endpoint, even if there is space in the<br />

RxFIFO to accommodate the incoming packet.<br />

Irrespective of this bit’s setting, the core always responds to SETUP data packets with an<br />

ACK handshake.<br />

Bit 16 EONUM: Even/odd frame<br />

Applies to isochronous IN and OUT endpoints only.<br />

Indicates the frame number in which the core transmits/receives isochronous data for this<br />

endpoint. The application must program the even/odd frame number in which it intends to<br />

transmit/receive isochronous data for this endpoint using the SEVNFRM and SODDFRM<br />

fields in this register.<br />

0: Even frame<br />

1: Odd frame<br />

DPID: Endpoint data PID<br />

Applies to interrupt/bulk OUT endpoints only.<br />

Contains the PID of the packet to be received or transmitted on this endpoint. The<br />

application must program the PID of the first packet to be received or transmitted on this<br />

endpoint, after the endpoint is activated. The application uses the SD0PID register field to<br />

program either DATA0 or DATA1 PID.<br />

0: DATA0<br />

1: DATA1<br />

Bit 15 USBAEP: USB active endpoint<br />

Indicates whether this endpoint is active in the current configuration and interface. The core<br />

clears this bit for all endpoints (other than EP 0) after detecting a USB reset. After receiving<br />

the SetConfiguration and SetInterface commands, the application must program endpoint<br />

registers accordingly and set this bit.<br />

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

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

The application must program this field with the maximum packet size for the current logical<br />

endpoint. This value is in bytes.<br />

Doc ID 018909 Rev 3 1094/1416

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

Saved successfully!

Ooh no, something went wrong!