USB on-the-go full-speed (OTG_FS)
RM0090
1294/1731
DocID018909 Rev 11
OTG_FS device control register (OTG_FS_DCTL)
Address offset: 0x804
Reset value: 0x0000 0000
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
Reserved
POP
R
GDNE
CGONA
K
SGO
N
AK
CGINAK
SGI
N
AK
TCTL
GO
NS
TS
GI
NS
TS
SD
IS
RW
U
S
IG
rw
w
w
w
w
rw rw rw
r
r
rw rw
Bits 31:12 Reserved, must be kept at reset value.
Bit 11
POPRGDNE:
Power-on programming done
The application uses this bit to indicate that register programming is completed after a
wakeup from power down mode.
Bit 10
CGONAK:
Clear global OUT NAK
A write to this field clears the Global OUT NAK.
Bit 9
SGONAK:
Set global OUT NAK
A write to this field sets the Global OUT NAK.
The application uses this bit to send a NAK handshake on all OUT endpoints.
The application must set the this bit only after making sure that the Global OUT NAK
effective bit in the Core interrupt register (GONAKEFF bit in OTG_FS_GINTSTS) is cleared.
Bit 8
CGINAK:
Clear global IN NAK
A write to this field clears the Global IN NAK.
Bit 7
SGINAK:
Set global IN NAK
A write to this field sets the Global non-periodic IN NAK.The application uses this bit to send
a NAK handshake on all non-periodic IN endpoints.
The application must set this bit only after making sure that the Global IN NAK effective bit
in the Core interrupt register (GINAKEFF bit in OTG_FS_GINTSTS) is cleared.
Bits 6:4
TCTL:
Test control
000: Test mode disabled
001: Test_J mode
010: Test_K mode
011: Test_SE0_NAK mode
100: Test_Packet mode
101: Test_Force_Enable
Others: Reserved
Bit 3
GONSTS:
Global OUT NAK status
0: A handshake is sent based on the FIFO Status and the NAK and STALL bit settings.
1: No data is written to the RxFIFO, irrespective of space availability. Sends a NAK
handshake on all packets, except on SETUP transactions. All isochronous OUT packets are
dropped.