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.

<strong>RM0090</strong> USB on-the-go high-speed (OTG_HS)<br />

are enabled, at least two spaces of (Largest Packet Size / 4) + 1 must be allocated to<br />

receive back-to-back packets. Typically, two (Largest Packet Size / 4) + 1 spaces are<br />

recommended so that when the previous packet is being transferred to AHB, the USB can<br />

receive the subsequent packet.<br />

Along with each host channels last packet, transfer complete status information are also<br />

pushed to the FIFO. As a consequence, one location must be allocated to store this data.<br />

Transmit FIFO RAM<br />

For Transmit FIFO RAM allocation, the minimum amount of RAM required for the host<br />

nonperiodic Transmit FIFO is the largest maximum packet size for all supported nonperiodic<br />

OUT channels. Typically, a space corresponding to two Largest Packet Size is<br />

recommended, so that when the current packet is being transferred to the USB, the AHB<br />

can transmit the subsequent packet.<br />

The minimum amount of RAM required for Host periodic Transmit FIFO is the largest<br />

maximum packet size for all supported periodic OUT channels. If there is at least one High<br />

Bandwidth Isochronous OUT endpoint, then the space must be at least two times the<br />

maximum packet size for that channel.<br />

Note: More space allocated in the Transmit nonperiodic FIFO results in better performance on the<br />

USB.<br />

When operating in DMA mode, the DMA address register for each host channel (HCDMAn)<br />

is stored in the SPRAM (FIFO). One location for each channel must be reserved for this.<br />

31.11 OTG_HS interrupts<br />

When the OTG_HS controller is operating in one mode, either peripheral or host, the<br />

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

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

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

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

power-on reset.<br />

Figure 382 shows the interrupt hierarchy.<br />

Doc ID 018909 Rev 3 1172/1416

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

Saved successfully!

Ooh no, something went wrong!