ht82a523r Holtek Semiconductor Inc., ht82a523r Datasheet - Page 25

no-image

ht82a523r

Manufacturer Part Number
ht82a523r
Description
Ht82a523r -- Usb 2.0 Full Speed 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
There are some timing constrains and usages illustrated here. By setting the MISC register, MCU can perform reading,
writing and clearing actions. There are some examples shown in the following table for endpoint FIFO reading, writing
and clearing.
Note:
Note:
Rev. 1.30
Read FIFO0 sequence
Write FIFO0 sequence
Check whether FIFO0 can be read or not
Check whether FIFO0 can be written or not
Read 0-sized packet sequence form FIFO0
Write 0-sized packet sequence to FIFO0
Bit No.
Label
FIFOi
4~7
0
1
2
3
*: There are 2 s existing between 2 reading action or between 2 writing action
*USB definition: when the host sends a set Configuration , the Data pipe should send the DATA0 (Data tog-
gle) first. So, when the device receives a set configuration setup command, user needs to toggle this bit so
the next data will send a Data0 first.
**Needs to set the data pipe as an input pile or output pile. The purpose of this function is to avoid the host from
abnormally sending only an IN or OUT token and disables the endpoint.
DATATG*
SETIO1**
SETIO2**
SETIO3**
FIFO0~FIFO03 (28H~2BH) Register, USB Endpoint Accessing Registers Definitions
Label
R/W
R/W
SETIO (27H) Register, USB Endpoint 1~Endpoint3 Set IN/OUT Pipe Register
Actions
EPi accessing register (i = 0~3). When an endpoint is disabled, the corresponding accessing
register should be disabled.
R/W
R/W
R/W
R/W
R/W
To toggle this bit, all the DATA token will send a DATA0 first.
Set endpoint 1 input or output pile (1/0), default input pipe (1)
Set endpoint 2 input or output pile (1/0), default input pipe (1)
Set endpoint 3 input or output pile (1/0), default input pipe (1)
Undefined bit, read as 0
Read or Write FIFO Table
00H 01H delay 2 s, check 41H read* from FIFO0 register and
check not ready (01H) 03H 02H
02H 03H delay 2 s, check 43H write* to FIFO0 register and
check not ready (03H) 01H 00H
00H 01H delay 2 s, check 41H (ready) or 01H (not ready) 00H
02H 03H delay 2 s, check 43H (ready) or 03H (not ready) 02H
00H 01H delay 2 s, check 81H read once (01H) 03H 02H
02H 03H delay 2 s, check 03H 07H 06H 00H
25
Function
MISC Setting Flow and Status
Function
HT82A523R
May 13, 2008

Related parts for ht82a523r