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.

RM0008<br />

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

OTG_FS device control register (OTG_FS_DCTL)<br />

Address offset: 0x804<br />

Reset value: 0x0000 0000<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 />

POPRGDNE<br />

CGONAK<br />

SGONAK<br />

CGINAK<br />

SGINAK<br />

TCTL<br />

GONSTS<br />

GINSTS<br />

SDIS<br />

RWUSIG<br />

rw w w w w rw rw rw r r rw rw<br />

Bits 31:12 Reserved<br />

Bit 11 POPRGDNE: Power-on programming done<br />

The application uses this bit to indicate that register programming is completed after a wakeup<br />

from power down mode.<br />

Bit 10 CGONAK: Clear global OUT NAK<br />

A write to this field clears the Global OUT NAK.<br />

Bit 9 SGONAK: Set global OUT NAK<br />

A write to this field sets the Global OUT NAK.<br />

The application uses this bit to send a NAK h<strong>and</strong>shake on all OUT endpoints.<br />

The application must set the this bit only after making sure that the Global OUT NAK effective<br />

bit in the Core interrupt register (GONAKEFF bit in OTG_FS_GINTSTS) is cleared.<br />

Bit 8 CGINAK: Clear global IN NAK<br />

A write to this field clears the Global IN NAK.<br />

Bit 7 SGINAK: Set global IN NAK<br />

A write to this field sets the Global non-periodic IN NAK.The application uses this bit to send a<br />

NAK h<strong>and</strong>shake on all non-periodic IN endpoints.<br />

The application must set this bit only after making sure that the Global IN NAK effective bit in<br />

the Core interrupt register (GINAKEFF bit in OTG_FS_GINTSTS) is cleared.<br />

Bits 6:4 TCTL: Test control<br />

000: Test mode disabled<br />

001: Test_J mode<br />

010: Test_K mode<br />

011: Test_SE0_NAK mode<br />

100: Test_Packet mode<br />

101: Test_Force_Enable<br />

Others: Reserved<br />

Bit 3 GONSTS: Global OUT NAK status<br />

0: A h<strong>and</strong>shake is sent based on the FIFO Status <strong>and</strong> the NAK <strong>and</strong> STALL bit settings.<br />

1: No data is written to the RxFIFO, irrespective of space availability. Sends a NAK<br />

h<strong>and</strong>shake on all packets, except on SETUP transactions. All isochronous OUT packets are<br />

dropped.<br />

Doc ID 13902 Rev 9 755/995

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

Saved successfully!

Ooh no, something went wrong!