User manual

...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 382
www.energymicro.com
15.6.41 USB_DCTL - Device Control Register
Offset Bit Position
0x3C804
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
Reset
0
0
0
0
0
0
0
0x0
0
0
0
0
Access
RW
RW
RW
W1
W1
W1
W1
RW
R
R
RW
RW
Name
NAKONBBLE
IGNRFRMNUM
PWRONPRGDONE
CGOUTNAK
SGOUTNAK
CGNPINNAK
SGNPINNAK
TSTCTL
GOUTNAKSTS
GNPINNAKSTS
SFTDISCON
RMTWKUPSIG
Bit Name Reset Access Description
31:17 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
16 NAKONBBLE 0 RW NAK on Babble Error
Set NAK automatically on babble. The core sets NAK automatically for the endpoint on which babble is received.
15 IGNRFRMNUM 0 RW Ignore Frame number For Isochronous End points
When set to 0 the core transmits the packets only in the frame number in which they are intended to be transmitted. When set to 1
the core ignores the frame number, sending packets immediately as the packets are ready.
14:12 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
11 PWRONPRGDONE 0 RW Power-On Programming Done
The application uses this bit to indicate that register programming is completed after a wake-up from Power Down mode.
10 CGOUTNAK 0 W1 Clear Global OUT NAK
A write to this field clears the Global OUT NAK.
9 SGOUTNAK 0 W1 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 this bit only after making sure that the Global OUT NAK Effective bit in the Core Interrupt Register
(USB_GINTSTS.GOUTNAKEFF) is cleared.
8 CGNPINNAK 0 W1 Clear Global Non-periodic IN NAK
A write to this field clears the Global Non-periodic IN NAK.
7 SGNPINNAK 0 W1 Set Global Non-periodic 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
(USB_GINTSTS.GINNAKEFF) is cleared.
6:4 TSTCTL 0x0 RW Test Control
Set to a non-zero value to enable test control.
Value Mode Description
0 DISABLE Test mode disabled.
1 J Test_J mode.
2 K Test_K mode.
3 SE0NAK Test_SE0_NAK mode.
4 PACKET Test_Packet mode.
5 FORCE Test_Force_Enable.
3 GOUTNAKSTS 0 R Global OUT NAK Status
When this bit is 0 a handshake is sent based on the FIFO Status and the NAK and STALL bit settings. When this bit is 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.
2 GNPINNAKSTS 0 R Global Non-periodic IN NAK Status
When this bit is 0 a handshake is sent out based on the data availability in the transmit FIFO. When this bit is 1 a NAK handshake
is sent out on all non-periodic IN endpoints, irrespective of the data availability in the transmit FIFO.
1 SFTDISCON 0 RW Soft Disconnect