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 full-speed (OTG_FS) <strong>RM0090</strong><br />

OTG_FS Host channel-x characteristics register (OTG_FS_HCCHARx)<br />

(x = 0..7, where x = Channel_number)<br />

Address offset: 0x500 + (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 />

CHENA<br />

CHDIS<br />

ODDFRM<br />

DAD MCNT<br />

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

EPTYP<br />

LSDEV<br />

Reserved<br />

EPDIR<br />

EPNUM MPSIZ<br />

rs rs 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 CHENA: Channel enable<br />

This field is set by the application and cleared by the OTG host.<br />

0: Channel disabled<br />

1: Channel enabled<br />

Bit 30 CHDIS: Channel disable<br />

The application sets this bit to stop transmitting/receiving data on a channel, even before the<br />

transfer for that channel is complete. The application must wait for the Channel disabled<br />

interrupt before treating the channel as disabled.<br />

Bit 29 ODDFRM: Odd frame<br />

This field is set (reset) by the application to indicate that the OTG host must perform a<br />

transfer in an odd frame. This field is applicable for only periodic (isochronous and interrupt)<br />

transactions.<br />

0: Even frame<br />

1: Odd frame<br />

Bits 28:22 DAD: Device address<br />

This field selects the specific device serving as the data source or sink.<br />

Bits 21:20 MCNT: Multicount<br />

This field indicates to the host the number of transactions that must be executed per frame<br />

for this periodic endpoint. For non-periodic transfers, this field is not used<br />

00: Reserved. This field yields undefined results<br />

01: 1 transaction<br />

10: 2 transactions per frame to be issued for this endpoint<br />

11: 3 transactions per frame to be issued for this endpoint<br />

Note: This field must be set to at least 01.<br />

Bits 19:18 EPTYP: Endpoint type<br />

Indicates the transfer type selected.<br />

00: Control<br />

01: Isochronous<br />

10: Bulk<br />

11: Interrupt<br />

Bit 17 LSDEV: Low-speed device<br />

This field is set by the application to indicate that this channel is communicating to a lowspeed<br />

device.<br />

Bit 16 Reserved, must be kept at reset value.

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

Saved successfully!

Ooh no, something went wrong!