HT82J97E
Rev. 1.30
16
May 10, 2004
USB with MCU Interface
There are eight registers, including Pipe_ctrl, Address+Remote_WakeUp, Stall, Pipe, SIES, Misc, FIFO 0 and FIFO 1
in this buffer function.
Register Name Pipe_ctrl Addr.+Remote
Stall
Pipe
SIES
Misc
FIFO 0
FIFO 1
Mem. Addr.
41H
42H
43H
44H
45H
46H
48H
49H
Reserved Addr.
Bank 1, Address 40H, 4AH, 4FH
Register Memory Mapping
Address+Remote_WakeUp register represents current address and remote wake-up function. The initial value is
00000000 from MSB to LSB.
Register
Address
R/W
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
01000010B
R/W
Address value
Default value=00000000
Remote Wake-up Function
0: Not this function
1: The function exists
Address+Remote_WakeUp Register
The PIPE_ctrl, STALL and PIPE are bitmap ones. The Pipe_ctrl Register is used for configuring IN (Bit=1) or OUT
(Bit=0) Pipe. The default is defined as IN Pipe. The Pipe register represents whether the corresponding endpoint is ac-
cessed by host or not. After a USB interrupt signal is being sent out, the MCU can check which endpoint had been ac-
cessed. This register is set only after the host accessed the corresponding endpoint. The Stall register shows whether
the corresponding endpoint works or not. As soon as the endpoint works improperly, the corresponding bit must be set.
The bitmaps are listed as follows:
Register
Name
R/W
Register
Address
Bit7~Bit2 Reserved
Bit 1
Bit 0
Default
Value
Pipe_ctrl
R/W
01000001B
Pipe 1
Pipe 0
00000011
Stall
R/W
01000011B
Pipe 1
Pipe 0
00000000
Pipe
R
01000100B
Pipe 1
Pipe 0
00000000
Stall and Pipe Registers
The SIES Register is used to indicate the present signal state which the USB SIE received and also determines
whether the USB SIE has to change the device address automatically.
Bit No.
Function
Read/Write
Register Address
7
MNI
R/W
01000101B
6
EOT
R
5
CRC_ERR
R/W
4
NAK
R
3
IN
R
2
OUT
R/W
1
F0_ERR
R/W
0
Adr_set
R/W
SIES Registers Table