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 2 AHBERR: AHB error<br />

This is generated only in Internal DMA mode when there is an AHB error during AHB<br />

read/write. The application can read the corresponding channel’s DMA address register to<br />

get the error address.<br />

Bit 1 CHHM: Channel halted mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

Bit 0 XFRCM: Transfer completed mask<br />

0: Masked interrupt<br />

1: Unmasked interrupt<br />

OTG_HS host channel-x transfer size register (OTG_HS_HCTSIZx) (x = 0..11,<br />

where x = Channel_number)<br />

Address offset: 0x510 + (Channel_number × 0x20)<br />

Reset value: 0x0000 0000<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 />

Reserved<br />

DPID PKTCNT XFRSIZ<br />

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

Bit 31 DOPING: Do ping<br />

This bit is used only for OUT transfers. Setting this field to 1 directs the host to do PING<br />

protocol.<br />

Note: Do not set this bit for IN transfers. If this bit is set for IN transfers it disables the channel.<br />

Bits 30:29 DPID: Data PID<br />

The application programs this field with the type of PID to use for the initial transaction. The<br />

host maintains this field for the rest of the transfer.<br />

00: DATA0<br />

01: DATA2<br />

10: DATA1<br />

11: MDATA (noncontrol)/SETUP (control)<br />

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

This field is programmed by the application with the expected number of packets to be<br />

transmitted (OUT) or received (IN).<br />

The host decrements this count on every successful transmission or reception of an OUT/IN<br />

packet. Once this count reaches zero, the application is interrupted to indicate normal<br />

completion.<br />

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

For an OUT, this field is the number of data bytes the host sends during the transfer.<br />

For an IN, this field is the buffer size that the application has reserved for the transfer. The<br />

application is expected to program this field as an integer multiple of the maximum packet<br />

size for IN transactions (periodic and nonperiodic).<br />

1215/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!