AT43USB355M-AC ATMEL [ATMEL Corporation], AT43USB355M-AC Datasheet - Page 87

no-image

AT43USB355M-AC

Manufacturer Part Number
AT43USB355M-AC
Description
Full-speed USB Microcontroller with Embedded Hub, ADC and PWM
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT43USB355M-AC
Manufacturer:
ALTERA
0
2603G–USB–04/06
Hub End-point 0 Control and Acknowledge Register – HCAR0
Function End-point 0 Control and Acknowledge Register – FCAR0
• Bit 7 – DIR: Control transfer direction
It is set by the microcontroller firmware to indicate the direction of a control transfer to the USB
hardware. The FW writes to this bit location after it receives an RX SETUP interrupt. The hard-
ware uses this bit to determine the status phase of a control transfer.
0 = control write or no data stage
1 = control read
• Bit 6 – DATA END
When set to 1 by firmware, this bit indicate that the microcontroller has either placed the last
data packet in FIFO, or that the microcontroller has processed the last data packet it expects
from the Host. This bit is used by control end-points only together with bit 4 (TX Packet Ready)
to signal the USB hardware to go to the STATUS phase after the packet currently residing in
the FIFO is transmitted. After the hardware completes the STATUS phase it will interrupt the
microcontroller without clearing this bit.
• Bit 5 – FORCE STALL
This bit is set by the microcontroller to indicate a stalled end-point. The hardware will send a
STALL handshake as a response to the next IN or OUT token, or whenever there is a control
transfer without a Data Stage.
The microcontroller sets this bit if it wants to force a STALL. A STALL is sent if any of the fol-
lowing condition is encountered:
1. An unsupported request is received.
2. The host continues to ask for data after the data is exhausted.
3. The control transfer has no data stage.
• Bit 4 – TX PACKET READY: Transmit Packet Ready
When set by the firmware, this bit indicates that the microcontroller has loaded the FIFO with a
packet of data. This bit is cleared by the hardware after the USB Host acknowledges the
packet. For ISO end-points, this bit is cleared unconditionally after the data is sent.
This bit is used for the following operations:
1. Control read transactions by a control end-point.
2. IN transactions with DATA1 PID to complete the status phase for a control end-point,
3. By a BULK IN or ISO IN or INT IN end-point.
The microcontroller should write into the FIFO only if this bit is cleared. After it has completed
writing the data, it should set this bit. This data can be of zero length.
Bit
Hub EP0
$1FA7
Function
EP0 $1FDD
Read/Write
Initial Value
when this bit is zero but Data End set high (bit 4).
R/W
DIR
DIR
7
0
DATA
DATA
R/W
END
END
6
0
FORCE
FORCE
STALL
STALL
R/W
5
0
PACKET
PACKET
READY
READY
R/W
TX
TX
4
0
STALL_
STALL_
SENT_
SENT_
R/W
ACK
ACK
3
0
SETUP_
SETUP_
R/W
ACK
ACK
RX_
RX_
2
0
RX_OUT_
RX_OUT_
PACKET_
PACKET_
R/W
ACK
ACK
AT43USB355
1
0
COMPLETE_
COMPLETE_
R/W
ACK
ACK
TX_
TX_
0
0
HCAR0
FCAR0
87

Related parts for AT43USB355M-AC