English
Language : 

HT46RB50_06 Datasheet, PDF (30/53 Pages) Holtek Semiconductor Inc – A/D Type USB 8-Bit MCU
HT46RB50
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.
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 FIFO0 sequence
02H®03H®delay 2ms, check 43H®write* to FIFO0 register and
check not ready (03H)®01H®00H
Check whether FIFO0 can be read or not 00H®01H®delay 2ms, check 41H (ready) or 01H (not ready)®00H
Check whether FIFO0 can be written or not 02H®03H®delay 2ms, check 43H (ready) or 03H (not ready)®02H
Read 0-sized packet sequence form FIFO0 00H®01H®delay 2ms, check 81H®read once (01H)®03H®02H
Write 0-sized packet sequence to FIFO0 02H®03H®delay 2ms, check 03H®07H®06H®00H
Read or Write FIFO Table
Note: *: There are 2ms existing between 2 reading action or between 2 writing action
R eq.
R eq.
Tx
Tx
R eady
R e a d F IF O T im in g
R eady
W r ite F IF O T im in g
Bit No. Label
R/W
Function
0
DATATG* R/W To toggle this bit, all the DATA token will send a DATA0 first.
1
SETIO1** R/W Set endpoint 1 input or output pile (1/0), default input pipe (1)
2
SETIO2** R/W Set endpoint 2 input or output pile (1/0), default input pipe (1)
3
SETIO3** R/W Set endpoint 3 input or output pile (1/0), default input pipe (1)
4~7
¾
¾ Undefined bit, read as ²0²
SETIO Register (27H), USB Endpoint 1~Endpoint5 Set IN/OUT Pipe Register
Note:
*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.
Options
The following table shows all kinds of options in the microcontroller. All of the OTP options must be defined to ensure a
proper functioning system.
No.
Option
1
PA0~PA7 pull-high resistor enable or disable (by bit)
2
PB0~PB7 pull down resistor enable or disable (by bit)
3
PC0~PC7 pull-high resistor enable or disable (by nibble)
4
PD0~PD7 pull-high resistor enable or disable (by nibble)
5
PE0~PE5 pull-high resistor enable or disable (by nibble)
6
LVR enable or disable
Rev. 1.20
30
November 1, 2006