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

X  

HT82B40A 数据表(PDF) 33 Page - Holtek Semiconductor Inc

部件名 HT82B40A
功能描述  I/O 8-Bit MCU with USB Interface
PDF  54 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  HOLTEK [Holtek Semiconductor Inc]
网页  http://www.holtek.com
标志 HOLTEK - Holtek Semiconductor Inc

HT82B40A 数据表(HTML) 33 Page - Holtek Semiconductor Inc

Back Button HT82B40A Datasheet HTML 29Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 30Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 31Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 32Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 33Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 34Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 35Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 36Page - Holtek Semiconductor Inc HT82B40A Datasheet HTML 37Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 33 / 54 page
background image
HT82B40R/HT82B40A
Rev. 1.70
33
November 5, 2014
The MISC register combines a command and status to control desired endpoint FIFO action and to show the status of
the desired endpoint FIFO. The MISC will be cleared by the USB reset signal.
Bit No.
Label
R/W
Function
0
REQ
R/W
After setting the other status of the desired one in the MISC, endpoint FIFO can be
requested by setting this bit to
²1². After the task is completed, this bit must be
cleared to
²0².
1
TX
R/W
This bit defines the direction of data transferring between the MCU and endpoint
FIFO. When the TX is set to
²1², this means that the MCU wants to write data to the
endpoint FIFO. After the task is completed, this bit must be cleared to
²0² before ter-
minating the request to represent the end of transferring. For a read action, this bit
has to be cleared to
²0² to represent that MCU wants to read data from the endpoint
FIFO and has to be set to
²1² after completion.
2
CLEAR
R/W
Clear the requested endpoint FIFO, even if the endpoint FIFO is not ready.
4
3
SELP1
SELP0
R/W
Defines which endpoint FIFO is selected, SELP1,SELP0:
00: endpoint FIFO0
01: endpoint FIFO1
10: endpoint FIFO2
11: reserved
5
SCMD
R/W
Used to show that the data in the endpoint FIFO is a SETUP command. This bit has
to be cleared by firmware. That is to say, even if the MCU is busy, the device will not
miss any SETUP commands from the host.
6
READY
R
Read only status bit, this bit is used to indicate that the desired endpoint FIFO is
ready for operation.
7
LEN0
R/W
Used to indicate that a 0-sized packet has been sent from a host to the MCU. This bit
should be cleared by firmware.
MISC (46H) Register
The MCU can communicate with the endpoint FIFO by setting the corresponding registers, of which the address is
listed in the following table. After reading the current data, the next data will show after 2
ms, this is used to check the
endpoint FIFO status and response to the MISC register, if the read/write action is still going on.
Registers
R/W
Bank
Address
Bit7~Bit0
FIFO0
R/W
1
48H
Data7~Data0
FIFO1
R/W
1
49H
Data7~Data0
FIFO2
R/W
1
4AH
Data7~Data0
There are some timing constrains and usages illustrated here. By setting the MISC register, the MCU can perform read-
ing, writing and clearing actions. There are some examples shown in the following table for endpoint FIFO reading, writ-
ing and clearing.
Actions
MISC Setting Flow and Status
Read FIFO0 sequence
00H
®01H®delay 2ms, check 41H®read* from FIFO0 register and
check not ready (01H)
®03H®02H
Write FIFO1 sequence
0AH
®0BH®delay 2ms, check 4BH®write* to FIFO1 register and
check not ready (0BH)
®09H®08H
Check whether FIFO0 can be read or not
00H
®01H®delay 2ms, check 41H (ready) or 01H (not ready)®00H
Check whether FIFO1 can be written or not
0AH
®0BH®delay 2ms, check 4BH (ready) or 0BH (not ready)®0AH
Read 0-sized packet sequence form FIFO0
00H
®01H®delay 2ms, check 81H®read once (01H)®03H®02H
Write 0-sized packet sequence to FIFO1
0AH
®0BH®delay 2ms, check 4BH®09H®08H
Note:
*: There is a 2
ms time between 2 read actions or between 2 write actions.



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


数据表 下载

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