HT82M99EE/HT82M99AE
Rev. 1.00
25
February 8, 2006
USB/PS2 Status and Control Register
USC
Bit No.
Label
Read/Write
Option
Functions
0
PE0
R
SUSPEND
USB suspend mode status bit. When 1, indicates that the USB
system entry is in suspend mode.
1
PE1
W
RMOT_WK USB remote wake-up signal. The default value is 0 .
2
PE2
R/W
URST_FLAG USB bus reset event flag. The default value is 0 .
3
PE3
R
RESUME_OWhen RESUME_OUT EVENT, RESUME_O is set to 1 .
The default value is 0 .
4
PE4
R
PS2_DAI
USBD-/DATA input
5
PE5
R
PS2_CKI
USBD+/CLK input
6
PE6
W
PS2_DAO
Output for driving USBD-/DATA pin, when working under 3D
PS2 mouse function. The default value is 1 .
7
PE7
W
PS2_CKO
Output for driving USBD-/DATA pin, when working under 3D
PS2 mouse function. The default value is 1 .
USC (0X1A) Register
Endpoint Interrupt Status Register
USR
The USR (USB endpoint interrupt status register) register is used to indicate which endpoint is accessed and to select
the serial bus (PS2 or USB). The endpoint request flags (EP0IF, EP1IF) are used to indicate which endpoints are ac-
cessed. If an endpoint is accessed, the related endpoint request flag will be set to 1 and a USB interrupt will occur (If a
USBinterruptisenabledandthestackisnotfull).Whentheactiveendpointrequestflagisserved,theendpointrequest
flag has to be cleared to 0 .
Bit No.
Label
Read/Write
Option
Functions
0
PEC0
R/W
EP0IF
When set to 1 , indicates an endpoint 0 interrupt event. Must
wait for the MCU to process the interrupt event and clear this
bit by firmware. This bit must be 0 , then the next interrupt
event will be processed. The default value is 0 .
1
PEC1
R/W
EP1IF
When set to 1 , indicates an endpoint 1 interrupt event. Must
wait for the MCU to process the interrupt event, then clear this
bit by firmware. This bit must be 0 , then the next interrupt
event will be processed. The default value is 0 .
2~3,
6
PEC2~PEC3,
PEC6
R/W
Reserved bit, set to 0
4
PEC4
R/W
SELPS2
When set to 1 , indicates that the chip is working under PS2
mode. The default value is 0 .
5
PEC5
R/W
SELUSB
When set to 1 , indicates that the chip is working under USB
mode. The default value is 0 .
7
PEC7
R/W
USB_flag
This flag is used to show that the MCU is in USB mode (Bit=1).
ThisbitisR/WbyFWandwillbeclearedtozeroafterpower-on
reset. The default value is 0 .
USR (0X1B) Register