29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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

RM0008<br />

Figure 279. TRDT max timing case<br />

0ns 50ns 100ns 150ns 200ns<br />

HCLK<br />

1 2 3 4 5 6 7 8<br />

PCLK<br />

tkn_rcvd<br />

dsynced_tkn_rcvd<br />

spr_read<br />

spr_addr<br />

A1<br />

spr_rdata<br />

D1<br />

srcbuf_push<br />

srcbuf_rdata<br />

D1<br />

5 Clocks<br />

ai15680<br />

26.15.8 OTG programming model<br />

The OTG_FS controller is an OTG device supporting HNP <strong>and</strong> SRP. When the core is<br />

connected to an “A” plug, it is referred to as an A-device. When the core is connected to a<br />

“B” plug it is referred to as a B-device. In Host mode, the OTG_FS controller turns off V BUS<br />

to conserve power. SRP is a method by which the B-device signals the A-device to turn on<br />

V BUS power. A device must perform both data-line pulsing <strong>and</strong> V BUS pulsing, but a host can<br />

detect either data-line pulsing or V BUS pulsing for SRP. HNP is a method by which the B-<br />

device negotiates <strong>and</strong> switches to host role. In Negotiated mode after HNP, the B-device<br />

suspends the bus <strong>and</strong> reverts to the device role.<br />

A-device session request protocol<br />

The application must set the SRP-capable bit in the Core USB configuration register. This<br />

enables the OTG_FS controller to detect SRP as an A-device.<br />

830/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!