TP 8452 Ap
TP 8452 Ap
DataSheet
Version:1.0
Apr/2002
http://www.topro.com.tw
5 F, No.10, Prosperity Road 1, Science-Based Industrial Park, Hsinchu 300, Taiwan, R.O.C
300 新竹科學工業園區展業一路 10 號 5 樓
TPE:
5 F, No.27, Min Chuan W. Rd. Taipei 104, Taiwan, R.O.C
104 台北市民權西路 27 號 5 樓
SHENZHEN:
Room 802, Tower A, World Trade Plaza, Fahong Rd., Fatian, Shenzhen, China
深圳市福田區福虹路 9 號世貿廣場 A 座 802 室(郵編:518033)
General Description
The TP8452 Mouse Controller is specially designed to control PS/2 mouse device. This single chip
can interface three key-switches and four photo-couples direct to 8042. TP8452 can receive command
and echo status or data format which are compatible with IBM PS/2 mode mouse.
Key debouncing circuit is provided to prevent false entry and improve TP8452 accuracy.
In the conventional mouse, a great number of noises are generated when the grid is partially closed or
opened. These noises are usually mistaken for movement signals by conventional mouse controller
and the cursor of the display screen is thus moved frequently up and down or back and forth. This will
consumes a great amount of energy. The TP8452 PS/2 mouse controller provides noise immunity
circuits to eliminate these noises in order to reduce energy consumption.
Using the auto-speed adjusting circuits, TP8452 promotes the power of the mouse in movement. when
TP8452 moves at low speed, it will be very smooth. While at high speed, TP8452 can change the
scanning ability of the motion and detects more dots than that of at low speed. According to different
speed, the horizontal and vertical counters acquire different dots in the same distance.
Features
* Being compatible with PS/2 mouse mode.
* Including buyer testing mode.
* Auto speed with dynamic resolutions.
* Built-in noise immunity circuit.
* Low power dissipation.
* Both RC oscillating and crystal oscillating circuits provided.
* Three key-switches and four photo-couples inputs.
* Both key-press and key-release debounce interval 11 ms.
* Through three key-switch inputs, TP8452 can exert seven different output.
* PIN to PIN compatible with HM8450.
* Improved ESD protection.
Applications
* Optical mouse or pen-mouse.
* Mechanical mouse or pen-mouse.
* Optomechanical mouse or pen-mouse.
* Mechanical track ball.
* Optomechanical track ball.
Contents:
1 18 VDD I Power.
2 4 Test If it is connected to VDD or floated,TP8452 will work on normal operation.
While it is connect to GND, TP8452 will enter testing mode, you can use OSCR
to select two types of testing mode.
3 5 OSC.OUT O Clock output
4 6 CLK I/O 8042 auxiliary port CLK line
5 7 DATA I/O 8042 auxiliary port DATA line
6 9 VSS Ground.
7 10 R I Three key-switches exert seven different combinations totally.
8 11 M I/O Both key-pressed and key-released signals accompanied with
9 12 L I/O horizontal and vertical state will be sent to the host. The status
of the key-switches will be preserved when RXD is transmitting.
The debounce interval for both key-press and key-release is 12
ms.
In testing mode, L and M are the outputs of motion detector.
Use R key can select the two outputs from X1, X2 or Y1, Y2.
This feature can help manufacture to adjust the phase of four
photo-couples for improving the yield.
10 13 X1 I Four photo-couple signals denote UP, DOWN,LEFT, and RIGHT
11 14 X2 state During the scanning period, as long as the photo-couples
12 15 Y1 change their states, the value of vertical or horizontal counter
13 16 Y2 will accordingly increase or decrease.
14 17 OSCR I If it is connected a 30kohm resistor to ground, TP8452 will employ
a built in RC ckt to generate clock. While it is connected to VDD,and Test
connect to GND, it will enter testing mode, you can observe X/Y input on L/M
pin.
X1 Motion Detect
X2
Y1 & Noise Immunity Counter Auto-Speed
CKT CKT
Y2
R Button Timing
M DATA Converter &
L Debounce Control command decoder
Mode Select
SYSTEM DATA CLK
TEST & Power-on
CLOCK I/O control DATA
reset
OSCR OSCOUT
a. Reset Mode :
In this mode a self-test is initiated during power-on or by a Reset command. After reset
signal, PS/2 mouse will send:
(a) Completion code AA & ID code 00.
(b) Set default:
sampling rate: 100 reports/s
non-autospeed
stream mode
4 counts/mm
disable
b. Stream Mode:
The maximum rate of transfer is the programmed sampling rate.
Data report is transmitted if
(a) switch is pressed
(b) movement has been detected
c. Remote Mode:
Data is transmitted only in response to a Read Data command.
d. Wrap Mode:
Any byte of data sent by the system, except hex EC ( Reset wrap mode ) or hex FF ( Reset
), is returned by TP8452.
Bit Function
1 Start bit ( always 0 )
2-9 Data bits ( D0 - D7 )
10 Parity bit ( odd parity )
11 Stop bit ( always 1 )
There are 16 valid commands that transmits between the system and TP8452. The “EA” code is
always the first response to any valid input received from the system other than a Set Wrap
Mode or Resend command.
The following table list the commands:
a. Reset ( FF )
TP8452 operation:
(a) Complete the reset.
(b) Transmit FA,AA,00 to the system.
(c) Set default:
sampling rate: 100 reports/s
non-autospeed
stream mode
4 counts/mm
disable
b. Resend ( FE )
(a) Any time TP8452 receives an invalid command, it returns a Resend command to the
system.
(b) When TP8452 receives a Resend command, it retransmits its last output. If the
last packet was a Resend command, it transmits the packet just prior to the Resend
command.
c. Set Default ( F6 )
The command reinitializes all conditions to the power-on defaults.
d. Disable ( F5 )
This command is used in the stream mode to disable transmissions from TP8452.
e. Enable ( F4 )
Enable transmissions, if in stream mode.
f. Set Sampling Rate ( F3,XX )
In the stream mode, this command sets the sampling rate to the value indicated by byte hex
XX, shown as follows:
0A 10/sec
14 20/sec
28 40/sec
3C 60/sec
50 80/sec
64 100/sec
C8 200/sec
k. Read Data ( EB )
This command is executed in either remote or stream mode. The data is transmitted even if
there has been no movement or the button status is unchanged since the last report.
Following a Read Data command, the registers are cleared after a data transmission.
m. Status Request ( E9 )
When this command is issued by the system, TP8452 responds with a 3-byte status report
as follows:
o. Set Autospeed ( E7 )
At the end of a sample interval in the stream mode, the current X and Y data values are
converted new values. The sign bits are not involved in this conversion.The conversion is
only in stream mode. The relationship between the input and output count is as follows:
Input Output
0 0
1 1
2 1
3 3
4 6
5 9
N( >=6 ) 2.0*N
p. Reset Autospeed ( E6 )
This command restore normal speed.
If OSCR (connect to VDD) = “1”:The X direction output signals of comparators will present to
“L” and “M” pin. Pressing "R" key can toggle the output from X direction to Y direction.
If OSCR (connect to GND) = “0”:The TP8452’S Internal RC won’t generate clock. you can
input clock on OSC.OUT pin to let TP8452 work on normal operation.
PS. The AC timings are measured with 38 KHz system clock signal.