English
Language : 

PAW3401 Datasheet, PDF (12/17 Pages) Pixart Imaging Inc. – PS/2 OPTICAL MOUSE SENSOR
PixArt Imaging Inc.
PAW3401
12 PIN PS/2 Optical Mouse Sensor
7. PS/2 Data Transmission
7.1 Mouse Send Data Out to Host
When the mouse is ready to transmit data, it must first check for mouse “inhibit” or system “request to send”
status on clock and data lines. If CLK is low (inhibit status), data shall be continuously updated in the mouse and
no transmissions shall be started. If CLK is high and DATA is low (request-to-send), data is updated. Data is
received from the system and no transmission are started by the PAW3401 until CLK and DATA both high.
If CLK and DATA are both high, the transmission is ready. DATA is valid prior to the falling edge of CLK and
beyond the rising edge of CLK. During transmission, the PAW3401 checks for line contention by checking for
an inactive level on CLK at intervals not to exceed 100 microseconds. Contention occurs when the system
lowers CLK to inhibit the PAW3401 output after the PAW3401 has started a transmission. If this occurs prior to
the rising edge of the tenth clock (parity bit), the PAW3401 internally stores the data package in its buffer and
return DATA and CLK to an active level. If the contention does not occur by the tenth clock, the transmission is
complete.
Following a transmission, the system can inhibit the PAW3401 by holding CLK low until it can service the input
or until the system receives a request to send a response if necessary.
CLK
Tsca
1st
CLK
2nd
CLK
Tsci
Tsdc
Tscd
10th
CLK
11th
CLK
………
Tpi
DATA
Start bit
……… …
Bit0 - Bit7
Parity bit
Stop bit
………
Figure 6. Mouse send data out to host
7.2 Mouse Receive Data from Host
System first check to see if the PAW3401 is transmitting data. If the PAW3401 is transmitting, the system can
override the output forcing CLK to an inactive level prior to the tenth clock. If the PAW3401 transmission is
beyond the tenth clock, the system receives the data. If the PAW3401 is not transmitting or if the system chooses
to override the output, the system forces CLK to an inactive level for a period of not less than 100 microseconds
while preparing for output. When the system is ready to output “0” start bit, it allows CLK to go to active level.
If “request-to-send” is detected, the PAW3401 clocks in 11 bits. Following the tenth clock, the PAW3401
checks for an active level on the DATA line, and if found, force DATA low (line control bit), and clock once
more. If occurs framing error, the PAW3401 continue to clock until DATA is high, then clock the line control bit
and request a resend.
For each system command or data transmission to the PAW3401 that requires a response, the system must wait
for the PAW3401 to response before sending its next output.
CLK
DATA
Tmca
Inhibit
1st
CLK
2 nd
CLK
9 th
CLK
10 th
CLK
11 th
CLK
……
Tmdc
Tmci
Tmlc
Start bit
………
…
…
Bit0 - Bit7
Parity bit
Stop
Line
bit control bit
Figure 7. Mouse Receive Data from Host
All rights strictly reserved any portion in this paper shall not be reproduced, copied or transformed to any other forms without permission.
12
PixArt Imaging Inc.
E-mail: fae_service@pixart.com.tw
V1.1, Dec. 2006