
RM0008
USB on-the-go full-speed (OTG_FS)
Doc ID 13902 Rev 12
819/1096
To save dynamic power, the USB data FIFO is clocked only when accessed by the OTG_FS
core.
28.9
Dynamic update of the OTG_FS_HFIR register
The USB core embeds a dynamic trimming capability of micro-SOF framing period in host
mode allowing to synchronize an external device with the micro-SOF frames.
When the OTG_HS_HFIR register is changed within a current micro-SOF frame, the SOF
period correction is applied in the next frame as described in
Figure 306. Updating OTG_FS_HFIR dynamically
28.10
USB data FIFOs
The USB system features 1.25 Kbyte of dedicated RAM with a sophisticated FIFO control
mechanism. The packet FIFO controller module in the OTG_FS core organizes RAM space
into Tx-FIFOs into which the application pushes the data to be temporarily stored before the
USB transmission, and into a single Rx FIFO where the data received from the USB are
temporarily stored before retrieval (popped) by the application. The number of instructed
FIFOs and how these are architectured inside the RAM depends on the device’s role. In
peripheral mode an additional Tx-FIFO is instructed for each active IN endpoint. Any FIFO
size is software configured to better meet the application requirements.
x
x
x
x
,ATENCY
3/&
RELOAD
/4'?&3?(&)2
WRITE
VALUE
&RAME
TIMER
/LD/4'?&3?()&2VALUE
PERIODS
/4'?&3?()&2VALUE
PERIODS()&2WRITELATENCY
.EW/4'?&3?()&2VALUE
PERIODS
/4'?&3?(&)2
AI