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.

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

OTG_FS to fill in the available RAM space at best regardless of the current USB sequence.<br />

With these features:<br />

● The application gains good margins to calibrate its intervention in order to optimize the<br />

CPU bandwidth usage:<br />

– It can accumulate large amounts of transmission data in advance compared to<br />

when they are effectively sent over the USB<br />

– It benefits of a large time margin to download data from the single receive FIFO<br />

● The USB Core is able to maintain its full operating rate, that is to provide maximum fullspeed<br />

bandwidth with a great margin of autonomy versus application intervention:<br />

– It has a large reserve of transmission data at its disposal to autonomously manage<br />

the sending of data over the USB<br />

– It has a lot of empty space available in the receive buffer to autonomously fill it in<br />

with the data coming from the USB<br />

As the OTG_FS core is able to fill in the 1.25 Kbyte RAM buffer very efficiently, and as<br />

1.25 Kbyte of transmit/receive data is more than enough to cover a full speed frame, the<br />

USB system is able to withstand the maximum full-speed data rate for up to one USB frame<br />

(1 ms) without any CPU intervention.<br />

30.15 OTG_FS interrupts<br />

When the OTG_FS controller is operating in one mode, either device or host, the application<br />

must not access registers from the other mode. If an illegal access occurs, a mode<br />

mismatch interrupt is generated and reflected in the Core interrupt register (MMIS bit in the<br />

OTG_FS_GINTSTS register). When the core switches from one mode to the other, the<br />

registers in the new mode of operation must be reprogrammed as they would be after a<br />

power-on reset.<br />

Figure 364 shows the interrupt hierarchy.<br />

1039/1416 Doc ID 018909 Rev 3

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

Saved successfully!

Ooh no, something went wrong!