HT82J97A_08 HOLTEK [Holtek Semiconductor Inc], HT82J97A_08 Datasheet - Page 23

no-image

HT82J97A_08

Manufacturer Part Number
HT82J97A_08
Description
USB Joystick Encoder 8-Bit MCU
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
USB/PS2 Status and Control Register USC (Address 0X1A)
Endpoint Interrupt Status Register USR (Address 0X1B)
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) and A/D converter operation modes. The endpoint request flags (EP0IF, EP1IF) are used
to indicate which endpoints are accessed. If an endpoint is accessed, the related endpoint request flag will be set to 1
and a USB interrupt will occur (If a USB interrupt is enabled and the stack is not full). When the active endpoint request
flag is served, the endpoint request flag has to be cleared to 0 .
Rev. 1.60
Register
Register
(0X1A)
(0X1B)
USC
USR
Bits
Bits
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
Labels
Labels
PEC0
PEC1
PEC2
PEC3
PEC4
PEC5
PEC6
PEC7
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
Read/Write
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
W
W
W
R
R
R
R
URST_FLAG USB bus reset event flag. Default value is 0.
RESUME_O
RMOT_WK
SUSPEND
PS2_DAO
PS2_CKO
PS2_DAI
PS2_CKI
USB_flag
SELUSB
SELPS2
VRSEL
Option
Option
EP0IF
EP1IF
23
USB suspend mode status bit. When 1, indicates that
the USB system entry is in suspend mode.
USB remote wake-up signal. Default value is 0.
When RESUME_OUT EVENT, RESUME_O is set to 1.
Default value is 0.
USBD-/DATA input
USBD+/CLK input
Output for driving USBD-/DATA pin, when working un-
der 3D PS2 mouse function. Default value is 1.
Output for driving USBD-/DATA pin, when working un-
der 3D PS2 mouse function. Default value is 1.
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. Default value is
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. Default value
is 0 .
Reserved bit, set to 0
Reserved bit, set to 0
When set to 1 , indicates that the chip is working under
PS2 mode. Default value is 0 .
When set to 1 , indicates that the chip is working under
USB mode. Default value is 0.
When set to 0 , indicates the reference voltage of the
8-bit ADC from the external input pin. When set to 1 ,
indicates that the reference voltage is from the internal
power line. Default value is 1 .
This flag is used to show that the MCU is in USB mode
(Bit=1). This bit is R/W by FW and will be cleared to zero
after power-on reset. The default is 0 .
0 .
Functions
Functions
HT82J97E/HT82J97A
December 23, 2008

Related parts for HT82J97A_08