Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AT43USB325 Datasheet(PDF) 63 Page - ATMEL Corporation

Part # AT43USB325
Description  Multimedia USB Keyboard Controller with Embedded Hub
PDF  109 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT43USB325 Datasheet(HTML) 63 Page - ATMEL Corporation

Back Button AT43USB325 Datasheet HTML 59Page - ATMEL Corporation AT43USB325 Datasheet HTML 60Page - ATMEL Corporation AT43USB325 Datasheet HTML 61Page - ATMEL Corporation AT43USB325 Datasheet HTML 62Page - ATMEL Corporation AT43USB325 Datasheet HTML 63Page - ATMEL Corporation AT43USB325 Datasheet HTML 64Page - ATMEL Corporation AT43USB325 Datasheet HTML 65Page - ATMEL Corporation AT43USB325 Datasheet HTML 66Page - ATMEL Corporation AT43USB325 Datasheet HTML 67Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 63 / 109 page
background image
63
3355C–USB–4/05
AT43USB325
8.
Programming the USB Module
The USB hardware consists of two devices, hub and function, each with their own device
address and endpoints. Its operation is controlled through a set of memory mapped registers.
The exact configuration of the USB device is defined by the software and it can be programmed
to operate as a compound device, or as a hub only or as a function only. The hub has the
required control and interrupt endpoints. The number of external downstream ports is program-
mable from 0 to 2. The DP and DM pins of the unused port(s) must be connected to ground. The
USB function has one control endpoint and 2 programmable endpoints. All the endpoints have
their own 8-byte FIFOs. If the hub is disabled, one extra endpoint becomes available to the
function.
8.1
USB Function
The USB function hardware is designed to operate in the single packet mode and to manage the
USB protocol layer. It consists of a Serial Interface Engine (SIE), endpoint FIFOs and a Function
Interface Unit (FIU). The SIE performs the following tasks: USB signaling detection/generation,
data serialization/de-serialization, data encoding/decoding, bit stuffing and un-stuffing,
clock/data separation, and CRC generation/checking. It also decodes and manages all packet
data types and packet fields.
The endpoint FIFO buffers the data to be sent out or data received. The FIU manages the flow of
data between the SIE, FIFO and the internal microcontroller bus. It controls the FIFO and moni-
tors the status of the transactions and interfaces to the CPU. It initiates interrupts and acts upon
commands sent by the firmware.
The USB function hardware of the AT43USB325 makes the physical interface and the protocol
layer transparent to the user. To start the process, the firmware must first enable the endpoints
and which place them in receive mode by default. The device address by default is address 0.
The USB function hardware then waits for a setup token from the host. When a valid setup token
is received, it automatically stores the data packet in endpoint 0 FIFO and responds with an
ACK. It then notifies the microcontroller through an interrupt. The microcontroller reads the FIFO
and parses the request.
Transactions for the non-control endpoints are even simpler. Once the endpoint is enabled, it
waits for an IN or an OUT token depending whether it is programmed as an IN or OUT endpoint.
For example, if it is an IN endpoint, the microcontroller simply loads the data into the endpoint's
FIFO and sets a bit in the control and status register. The USB hardware will assemble the data
in a USB packet and waits for an IN token. When it receives one, it automatically responds by
transmitting the data packet and completes the transaction by waiting for the host's ACK. When
one is received, the USB hardware will signal the microcontroller that the transaction has been
completed successfully. Retries and data toggles are performed automatically by the USB hard-
ware. When the IN endpoint is not ready to send data, in the case where the microcontroller has
not filled the FIFO, it will automatically respond with a NAK.
Similarly, an OUT endpoint will wait for an OUT token. When one is received, it will store the
data in the FIFO, completes the transaction and interrupt the microcontroller, which then reads
the FIFO and enables the endpoint for the next packet. If the FIFO is not cleared, the USB hard-
ware will responds with a NAK.
A detailed description of how USB transactions are handled is described in the following sec-
tions. First for a control endpoint and then for non-control endpoints.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com