CC1110Fx / CC1111Fx
0xDE0D: USBFRMH – Current Frame Number (High byte)
Bit
Field Name
Reset
R/W
Description
7:3
2:0
-
R0
R
Not used
FRAME[10:8]
000
3 MSB of 11-bit frame number
0xDE0E: USBINDEX – Current Endpoint Index Register
Bit
Field Name
Reset
R/W
Description
7:4
3:0
-
R0
Not used
USBINDEX[3:0]
0000
R/W
Endpoint selected. Must be set to value in the range 0 – 5
0xDE10: USBMAXI – Max. Packet Size for IN Endpoint{1-5}
Bit
Field Name
Reset
R/W
Description
7:0
USBMAXI[7:0]
0x00
R/W
Maximum packet size in units of 8 bytes for IN endpoint selected by
USBINDEXregister. The value of this register should correspond to the
wMaxPacketSize field in the Standard Endpoint Descriptor for the endpoint.
This register must not be set to a value grater than the available FIFO
memory for the endpoint.
0xDE11: USBCS0 – EP0 Control and Status (USBINDEX=0)
Bit
Field Name
Reset R/W
Description
7
CLR_SETUP_END
0
0
0
0
R/W
H0
Set this bit to 1 to de-assert the SETUP_ENDbit of this register. This bit will be
cleared automatically.
6
5
4
CLR_OUTPKT_RDY
SEND_STALL
R/W
H0
Set this bit to 1 to de-assert the OUTPKT_RDYbit of this register. This bit will
be cleared automatically.
R/W
H0
Set this bit to 1 to terminate the current transaction. The USB controller will
send the STALL handshake and this bit will be de-asserted.
SETUP_END
R
This bit is set if the control transfer ends due to a premature end of control
transfer. The FIFO will be flushed and an interrupt request (EP0) will be
generated if the interrupt is enabled. Setting CLR_SETUP_END=1 will de-
assert this bit
3
DATA_END
0
R/W
H0
This bit is used to signal the end of a data transfer and must be asserted in
the following three situations:
1
2
3
When the last data packet has been loaded and USBCS0.INPKT_RDYis
set to 1
When the last data packet has been unloaded and
USBCS0.CLR_OUTPKT_RDYis set to 1
When USBCS0.INPKT_RDYhas been asserted without having loaded
the FIFO (for sending a zero length data packet).
The USB controller will clear this bit automatically
2
1
SENT_STALL
INPKT_RDY
0
0
R/W
H1
This bit is set when a STALL handshake has been sent. An interrupt request
(EP0) will be generated if the interrupt is enabled This bit must be cleared
from firmware.
R/W
H0
Set this bit when a data packet has been loaded into the EP0 FIFO to notify
the USB controller that a new data packet is ready to be transferred. When
the data packet has been sent, this bit is cleared and an interrupt request
(EP0) will be generated if the interrupt is enabled.
0
OUTPKT_RDY
0
R
Data packet received. This bit is set when an incoming data packet has been
placed in the OUT FIFO. An interrupt request (EP0) will be generated if the
interrupt is enabled. Set CLR_OUTPKT_RDY=1to de-assert this bit.
SWRS033E
Page 181 of 239