![Texas Instruments CC2533 Скачать руководство пользователя страница 204](http://html.mh-extra.com/html/texas-instruments/cc2533/cc2533_user-manual_1094592204.webp)
USB Registers
USBCSIH (0x6212)
–
IN EP{1
–
5} Control and Status, High
Bit
Name
Reset
R/W
Description
7
AUTOSET
0
R/W
When this bit is 1, the
USBCSIL.INPKT_RDY
bit is automatically asserted when a data
packet of maximum size (specified by USBMAXI) has been loaded into the IN FIFO.
6
ISO
0
R/W
Selects IN endpoint type
0:
Bulk/interrupt
1:
Isochronous
5:4
10
R/W
Reserved. Always write 10
3
FORCE_DATA_TOG
0
R/W
Setting this bit forces the IN endpoint data toggle to switch and the data packet to be
flushed from the IN FIFO, even though an ACK was received. This feature can be useful
when reporting rate feedback for isochronous endpoints.
2:1
–
R0
Reserved
0
IN_DBL_BUF
0
R/W
Double buffering enable (IN FIFO)
0:
Double buffering disabled
1:
Double buffering enabled
USBMAXO (0x6213)
–
Max. Packet Size for OUT EP{1
–
5}
Bit
Name
Reset
R/W
Description
7:0
USBMAXO[7:0]
0x00
R/W
Maximum packet size, in units of 8 bytes, for OUT endpoint selected by USBINDEX register.
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 greater than the
available FIFO memory for the endpoint.
USBCSOL (0x6214)
–
OUT EP{1
–
5} Control and Status, Low
Bit
Name
Reset
R/W
Description
7
CLR_DATA_TOG
0
R/W
Setting this bit resets the data toggle to 0. Thus, setting this bit forces the next data
H0
packet to be a DATA0 packet. This bit is automatically cleared.
6
SENT_STALL
0
R/W
This bit is set when a STALL handshake has been sent. An interrupt request (OUT
EP{1
–
5}) is generated if the interrupt is enabled. This bit must be cleared from firmware.
5
SEND_STALL
0
R/W
Set this bit to 1 to make the USB controller reply with a STALL handshake when
receiving OUT tokens. Firmware must clear this bit to end the STALL condition. It is not
possible to stall an isochronous endpoint; thus, this bit only has an effect if the IN
endpoint is configured as bulk/interrupt.
4
FLUSH_PACKET
0
R/W
Set to 1 to flush the next packet that is to be read from the OUT FIFO. The
H0
OUTPKT_RDY bit in this register is cleared. If there are two packets in the OUT FIFO
due to double buffering, this bit must be set twice to completely flush the OUT FIFO. This
bit is automatically cleared after a write to 1.
3
DATA_ERROR
0
R
This bit is set if there is a CRC or bit-stuff error in the packet received. Cleared when
OUTPKT_RDY is cleared. This bit is only valid if the OUT endpoint is isochronous.
2
OVERRUN
0
R/W
This bit is set when an OUT packet cannot be loaded into the OUT FIFO. Firmware
should clear this bit. This bit is only valid in isochronous mode.
1
FIFO_FULL
0
R
This bit is asserted when no more packets can be loaded into the OUT FIFO because it is
full.
0
OUTPKT_RDY
0
R/W
This bit is set when a packet has been received and is ready to be read from the OUT
FIFO. An interrupt request (OUT EP{1
–
5}) is generated if the interrupt is enabled. This bit
should be cleared when the packet has been unloaded from the FIFO.
204
USB Controller
SWRU191C
–
April 2009
–
Revised January 2012
Copyright
©
2009
–
2012, Texas Instruments Incorporated