ht82m9be Holtek Semiconductor Inc., ht82m9be Datasheet - Page 17

no-image

ht82m9be

Manufacturer Part Number
ht82m9be
Description
Ht82m99e/ht82m99a -- Usb Mouse Encoder 8-bit Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
USB with MCU Interface
There are eight registers, including Pipe_ctrl, Address+Remote_WakeUp, STALL, SIES, MISC, Endpt_EN and
FIFO0~FIFO3 in this buffer function.
Address+Remote_WakeUp register represents current address and remote wake-up function. The initial value is
STALL, Pipe_ctrl and Endpt_EN Registers
PIPE register represents whether the endpoint corresponding is accessed by host or not. After ACT_EN signal being
sent out, MCU can check which endpoint had been accessed. This register is set only after the time when host access
the corresponding endpoint.
STALL register shows whether the endpoint corresponding works or not. As soon as the endpoint work improperly, the
bit corresponding must be set.
Pipe_ctrl register is used for configuring IN (Bit=1) or OUT (Bit=0) pipe. The default is define IN pipe. Where Bit0
(DATA0) of the Pipe_ctrl register is used to setting the data toggle of any endpoint (except endpoint 0) using data tog-
gles to the value DATA0. Once the user want the any endpoint (except endpoint 0) using data toggles to the value
DATA0, the user can output a LOW pulse to this bit. The LOW pulse period must at least 10 instruction cycle.
Endpt_EN register is used to enable or disable the corresponding endpoint (except endpoint 0). Enable Endpoint
(Bit=1) or disable Endpoint (Bit=0).
The bitmaps are list as follows:
Rev. 1.60
00000000 from MSB to LSB.
Pipe_ctrl
STALL
Endpt_EN
Mem. Addr.
01000010B
Register
Register
Address
Register
Name
Name
Pipe_ctrl
R/W
R/W
R/W
R/W
R/W
R/W
41H
01000001B
01000011B
01000111B
Register
Address
Bit 7
Pipe_ctrl (41H), STALL (43H) and Endpt_EN (47H) Registers
Remote
Addr.+
42H
Bit 6
STALL
Reserved
Bit7~Bit4
Address+Remote_WakeUp Register
43H
Default value=00000000
Register Memory Mapping
Bit 5
Address value
SIES
45H
Bit 4
Pipe 3
Pipe 3
Pipe 3
Bit 3
17
MISC Endpt_EN FIFO0
46H
Bit 3
Pipe 2
Pipe 2
Pipe 2
Bit 2
47H
Bit 2
HT82M9BE/HT82M9BA
Pipe 1
Pipe 1
Pipe 1
48H
Bit 1
Bit 1
Remote Wake-up Function
0: Not this function
1: The function exists
FIFO1
49H
Data 0
Pipe 0
Pipe 0
Bit 0
FIFO2
Bit 0
4AH
April 16, 2008
0000 1110
0000 1110
0000 1111
Default
Value
FIFO3
4BH

Related parts for ht82m9be