at43usb320a ATMEL Corporation, at43usb320a Datasheet - Page 78

no-image

at43usb320a

Manufacturer Part Number
at43usb320a
Description
Full-speed Usb Microcontroller With An Embedded Hub
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at43usb320a-AC
Manufacturer:
Atmel
Quantity:
10 000
Function Address
Register – FADDR
Endpoint Registers
78
AT43USB320A
The USB function contains an address register that contains the function address assigned by
the host. This Function Address Register must be programmed by the microcontroller once it
has received a SET_ADDRESS request from the host and completed the status phase of the
transaction. After power up or reset, this register will contain the value of 0x00.
Function Address Register – FADDR
• Bit 7 – FEN: Function Enable
The Function Enable bit (FEN) allows the firmware to enable or disable the function endpoints.
The firmware will set this bit after receipt of a reset through the hub, SetPortFea-
ture[PORT_RESET]. Once this bit is set, the USB hardware passes to and from the host.
When the Single Address bit is set, the condition of FEN is ignored.
• Bit 6..0 – FADD6...0: Function Address[6:0]
Hub Endpoint 0 Control Register – HENDP0_CR
Function Endpoint 0 Control Register – FENDP0_CR
• Bit 7 – EPEN: Endpoint Enable
0 = Disable endpoint
1 = Enable endpoint
• Bit 6..4 – Reserved
These bits are reserved in the AT43USB320A and will read as zero.
• Bit 3 – DTGLE: Data Toggle
Identifies DATA0 or DATA1 packets. This bit will automatically toggle and requires clearing by
the firmware only in certain special circumstances.
• Bit 2 – EPDIR: Endpoint Direction
0 = Out
1 = In
• Bit 1, 0 – EPTYPE: Endpoint Type
These bits must be programmed as 0, 0.
Read/Write
Initial Value
Initial Value
Read/Write
$24 ($44)
$1FEE
$1FE7
Bit
Bit
EPEN
EPEN
R/W
FEN
R/W
7
0
7
0
R
FADD6
6
0
R/W
6
0
5
R
0
FADD5
R/W
5
0
R
4
0
FADD4
R/W
4
0
DTGLE
DTGLE
R/W
3
0
FADD3
R/W
3
0
EPDIR
EPDIR
R/W
2
0
FADD2
R/W
EPTYPE1
EPTYPE1
2
0
R/W
1
0
FADD1
R/W
1
0
EPTYPE0
EPTYPE0
R/W
0
0
FADD0
R/W
0
0
1443E–USB–4/04
HENDP0_CR
FENDP0_CR
FADDR

Related parts for at43usb320a