ht82m9be Holtek Semiconductor Inc., ht82m9be Datasheet - Page 21

no-image

ht82m9be

Manufacturer Part Number
ht82m9be
Description
Ht82m99e/ht82m99a -- Usb Mouse Encoder 8-bit Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
send a Resume signal to the device. The timing is as fol-
lows:
To Configure the device as PS2 Device
The HT82M9BE/HT82M9BA can be defined as a USB
interface or a PS2 interface by configuring the SPS2 (bit
4 of the USR) and SUSB (bit 5 of the USR). If SPS2=1,
and SUSB=0, the HT82M9BE/HT82M9BA is defined as
PS2 interface, pin USBD- is now defined as PS2 Data
I/O Port Special Registers Definition
Rev. 1.60
Port-A (12H)
Port-A Control (13H)
This port configure the input or output mode of Port-A
Port-B Control (14H)
Port-B Control (15H)
This port configures the input or output mode of Port-B for I/O mode
Bit No.
Bit No.
0~3
4~6
7
0
1
2
3
4
5
6
7
PA0~PA3
PA4~PA6
Label
Label
PA7
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PA
PAC
PB
PBC
Read/Write
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Option
Option
PB (14H) Register
PA (12H) Register
I/O (R/W) has pull-low and pull-high option.
Has falling edge wake-up option.
I/O (R/W) has pull-high option.
Has falling edge wake-up option.
I/O (R/W) has pull-high option.
Has falling edge wake-up option, pin-shared with timer input pin.
I/O (R/W), has pull-high option
I/O (R/W), has pull-high option
I/O (R/W), has pull-low and pull-high option
I/O (R/W), has pull-low and pull-high option
I/O (R/W), has pull-high option, can wake-up
I/O (R/W), has pull-high option
I/O (R/W), has pull-high option
I/O (R/W), has pull-high option, can wake-up
21
pin and USBD+ is now defined as PS2 Clk pin. The user
can easily read or write to the PS2 Data or PS2 Clk pin
by accessing the corresponding bit PS2DAI (bit 4 of the
USC), PS2CKI (bit 5 of the USC), PS2DAO (bit 6 of the
USC) and S2CKO (bit 7 of the USC) respectively.
The user should make sure that in order to read the data
properly, the corresponding output bit must be set to 1 .
For example, if user wants to read the PS2 Data by
reading PS2DAI, the PS2DAO should be set to 1 . Oth-
erwise it always read a 0 .
If SPS2=0, and SUSB=1, the HT82M9BE/HT82M9BA is
defined as a USB interface. Both the USBD- and
U S B D + a r e d r i v e n b y t h e U S B S I E o f t h e
HT82M9BE/HT82M9BA. User only writes or reads the
USB data through the corresponding FIFO.
Both SPS2 and SUSB default is 0 .
Functions
Functions
HT82M9BE/HT82M9BA
April 16, 2008

Related parts for ht82m9be