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 />

Bits 1:0 FSLSPCS: FS/LS PHY clock select<br />

When the core is in FS host mode<br />

01: PHY clock is running at 48 MHz<br />

Others: Reserved<br />

When the core is in LS host mode<br />

00: Reserved<br />

01: Select 48 MHz PHY clock frequency<br />

10: Select 6 MHz PHY clock frequency<br />

11: Reserved<br />

Note: The FSLSPCS must be set on a connection event according to the speed of the<br />

connected device (after changing this bit, a software reset must be performed).<br />

OTG_FS Host frame interval register (OTG_FS_HFIR)<br />

Address offset: 0x404<br />

Reset value: 0x0000 EA60<br />

This register stores the frame interval information for the current speed to which the<br />

OTG_FS controller has enumerated.<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 />

Bits 31:16 Reserved, must be kept at reset value.<br />

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

FRIVL<br />

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

Bits 15:0 FRIVL: Frame interval<br />

The value that the application programs to this field specifies the interval between two<br />

consecutive SOFs (FS) or Keep-Alive tokens (LS). This field contains the number of PHY<br />

clocks that constitute the required frame interval. The application can write a value to this<br />

register only after the Port enable bit of the host port control and status register (PENA bit in<br />

OTG_FS_HPRT) has been set. If no value is programmed, the core calculates the value<br />

based on the PHY clock specified in the FS/LS PHY Clock Select field of the host<br />

configuration register (FSLSPCS in OTG_FS_HCFG). Do not change the value of this field<br />

after the initial configuration.<br />

1 ms × (PHY clock frequency)

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

Saved successfully!

Ooh no, something went wrong!