数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AT89C5131A-RDTIL 数据表(PDF) 121 Page - ATMEL Corporation

部件名 AT89C5131A-RDTIL
功能描述  8-bit Flash Microcontroller with Full Speed USB Device
PDF  186 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ATMEL [ATMEL Corporation]
网页  http://www.atmel.com
标志 ATMEL - ATMEL Corporation

AT89C5131A-RDTIL 数据表(HTML) 121 Page - ATMEL Corporation

Back Button AT89C5131A-RDTIL Datasheet HTML 117Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 118Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 119Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 120Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 121Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 122Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 123Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 124Page - ATMEL Corporation AT89C5131A-RDTIL Datasheet HTML 125Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 121 / 186 page
background image
121
AT89C5131A-L
4338F–USB–08/07
Endpoint FIFO reset
Before using an endpoint, its FIFO will be reset. This action resets the FIFO pointer
to its original value, resets the byte counter of the endpoint (UBYCTLX and
UBYCTHX registers), and resets the data toggle bit (DTGL bit in UEPCONX).
The reset of an endpoint FIFO is performed by setting to 1 and resetting to 0 the
corresponding bit in the UEPRST register.
For example, in order to reset the Endpoint number 2 FIFO, write 0000 0100b then
0000 0000b in the UEPRST register.
Note that the endpoint reset doesn’t reset the bank number for ping-pong endpoints.
Read/Write Data FIFO
FIFO Mapping
Depending on the selected endpoint through the UEPNUM register, the UEPDATX reg-
ister allows to access the corresponding endpoint data fifo.
Figure 61. Endpoint FIFO Configuration
Read Data FIFO
The read access for each OUT endpoint is performed using the UEPDATX register.
After a new valid packet has been received on an Endpoint, the data are stored into the
FIFO and the byte counter of the endpoint is updated (UBYCTLX and UBYCTHX regis-
ters). The firmware has to store the endpoint byte counter before any access to the
endpoint FIFO. The byte counter is not updated when reading the FIFO.
To read data from an endpoint, select the correct endpoint number in UEPNUM and
read the UEPDATX register. This action automatically decreases the corresponding
address vector, and the next data is then available in the UEPDATX register.
Write Data FIFO
The write access for each IN endpoint is performed using the UEPDATX register.
To write a byte into an IN endpoint FIFO, select the correct endpoint number in UEP-
NUM and write into the UEPDATX register. The corresponding address vector is
automatically increased, and another write can be carried out.
Warning 1: The byte counter is not updated.
Warning 2: Do not write more bytes than supported by the corresponding endpoint.
UEPNUM
Endpoint 0
Endpoint 6
UEPSTA0
UEPCON0
UEPDAT0
UEPSTA6
UEPCON6
UEPDAT6
0
1
2
3
4
5
6
SFR registers
UEPSTAX
UEPCONX
UEPDATX
X
UBYCTH0
UBYCTL0
UBYCTH6
UBYCTL6
UBYCTHX
UBYCTLX



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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