Electronic Components Datasheet Search
  English  ▼

X  

AT90USB646 Datasheet(PDF) 259 Page - ATMEL Corporation

Part # AT90USB646
Description  8-bit Microcontroller with 64/128K Bytes of ISP Flash and USB Controller
PDF  435 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT90USB646 Datasheet(HTML) 259 Page - ATMEL Corporation

Back Button AT90USB646 Datasheet HTML 255Page - ATMEL Corporation AT90USB646 Datasheet HTML 256Page - ATMEL Corporation AT90USB646 Datasheet HTML 257Page - ATMEL Corporation AT90USB646 Datasheet HTML 258Page - ATMEL Corporation AT90USB646 Datasheet HTML 259Page - ATMEL Corporation AT90USB646 Datasheet HTML 260Page - ATMEL Corporation AT90USB646 Datasheet HTML 261Page - ATMEL Corporation AT90USB646 Datasheet HTML 262Page - ATMEL Corporation AT90USB646 Datasheet HTML 263Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 259 / 435 page
background image
259
7593D–AVR–07/06
AT90USB64/128
21.6.2
Host mode
When the USB interface is configured in device mode, internal Pull Down resistors are activated
on both UDP UDM lines and the interface detects the type of device connected.
21.7
Memory management
The controller does only support the following memory allocation management:
The reservation of a Pipe or an Endpoint can only be made in the growing order (Pipe/Endpoint
0 to the last Pipe/Endpoint). The firmware shall thus configure them in the same order.
The reservation of a Pipe or an Endpoint “k
i” is done when its ALLOC bit is set. Then, the hard-
ware allocates the memory and insert it between the Pipe/Endpoints “ki-1” and “ki+1”. The “ki+1”
Pipe/Endpoint memory “slides” up and its data is lost. Note that the “k
i+2” and upper Pipe/End-
point memory does not slide.
Clearing a Pipe enable (PEN) or an Endpoint enable (EPEN) does not clear neither its ALLOC
bit, nor its configuration (EPSIZE/PSIZE, EPBK/PBK). To free its memory, the firmware should
clear ALLOC. Then, the “k
i+1” Pipe/Endpoint memory automatically “slides” down. Note that the
“ki+2” and upper Pipe/Endpoint memory does not slide.
The following figure illustrates the allocation and reorganization of the USB memory in a typical
example:
Table 21-1.
Allocation and reorganization USB memory flow
• First, Pipe/Endpoint 0 to Pipe/Endpoint 5 are configured, in the growing order. The memory of
each is reserved in the DPRAM.
• Then, the Pipe/Endpoint 3 is disabled (EPEN=0), but its memory reservation is internally kept
by the controller.
• Its ALLOC bit is cleared: the Pipe/Endpoint 4 “slides” down, but the Pipe/Endpoint 5 does not
“slide”.
• Finally, if the firmware chooses to reconfigure the Pipe/Endpoint 3, with a bigger size. The
controller reserved the memory after the endpoint 2 memory and automatically “slide” the
Pipe/Endpoint 4. The Pipe/Endpoint 5 does not move and a memory conflict appear, in that
Free memory
0
1
2
3
4
5
EPEN=1
ALLOC=1
Free memory
0
1
2
4
5
EPEN=0
(ALLOC=1)
Free memory
0
1
2
4
5
Pipe/Endpoints
activation
Pipe/Endpoint
Disable
Free its memory
(ALLOC=0)
Free memory
0
1
2
3 (bigger size)
5
Pipe/Endpoint
Activatation
Lost memory
4
Conflict



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