![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
TP8452 PS/2 2D 3Key Mouse Controller DataSheet Version:1.0 Apr/2002 http://www.topro.com.tw 5 ,F o.1,0 Prosperity oad ,1 Science-ased Inustrial Park, s N R B d H inchu 30,0 aiwan, ..C T RO 300 *s|Ei3/4Cu*~eI(R)i@o 10 5 1/4O TPE: 5 ,F o.27, Min Chuan . . aipei ,401 aiwan, ..C N W dR T T RO 104 x_AAv|eo 27 5 1/4O : SHENZH Room 802, Tower A, World Trade Plaza, Fahong Rd., Fatian, Shenzhen, China |OI-io 9 @T1/4so A (R)y 802 C (l1/2sG 518033) H.Q.: Tel:886-3-5632515 Fax:886-3-5641728 TPE.: Tel:886-2-25856858 Fax:886-2-25941104 SHENZHEN:TEL:755-3679985 Fax:755-3679518 Page 1 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller General Specification 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. Page 2 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Applications * Optical mouse or pen-mouse. * Mechanical mouse or pen-mouse. * Optomechanical mouse or pen-mouse. * Mechanical track ball. * Optomechanical track ball. Page 3 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller ContentsG 1. General Specification 2. Pin Configurations and Package Type 3. Pin Descriptions 4. Functional Block Diagram 5. Function Descriptions 6. Absolute Maximum Ratings 7. DC Electrical Characteristic 8. AC Electrical Characteristic 9. Application Diagrams P. 2 --- P. 3 P. 5 --- P. 5 P. 6 --- P. 6 P. 7 --- P. 7 P. 8 --- P. 16 P. 17 --- P. 17 P. 17 --- P. 18 P. 18 --- P. 19 P. 20 --- P. 20 Page 4 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Pin Configurations and Package Type Page 5 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Pin Descriptions Pin 1 2 18 4 Name VDD Test I/O I Power. Function 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 4 5 6 7 8 9 5 6 7 9 10 11 12 OSC.OUT O CLK DATA VSS R M L I I/O I/O I/O I/O Clock output 8042 auxiliary port CLK line 8042 auxiliary port DATA line Ground. Three key-switches exert seven different combinations totally. Both key-pressed and key-released signals accompanied with 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 11 12 13 14 13 14 15 16 17 X1 X2 Y1 Y2 OSCR I Four photo-couple signals denote UP, DOWN,LEFT, and RIGHT state During the scanning period, as long as the photo-couples change their states, the value of vertical or horizontal counter will accordingly increase or decrease. 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. Page 6 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Functional Block Diagram X1 X2 Y1 Y2 R M L Motion Detect & Noise Immunity CKT Counter Auto-Speed CKT Button Debounce Timing Control DATA Converter & command decoder TEST Mode Select & Power-on reset SYSTEM CLOCK OSCR OSCOUT DATA I/O control CLK DATA Page 7 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Function Descriptions (1) PS/2 Mouse Mode (A) Operating mode There are four operating modes in PS/2 mouse : 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. Page 8 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller (B) PS/2 Mouse Data Report: a. In stream mode: A data report is sent at the end of a sample interval. b. In remote mode: A data report is sent in response to Read Data command. c. Data report format: Byte 1 Bit 0 1 2 3 4 5 6 7 Description Left button status; 1 = pressed Right button status; 1 = pressed Middle button status; 1 = pressed Reserved X data sign; 1 = negative Y data sign; 1 = negative X data overflow; 1 = overflow Y data overflow; 1 = overflow X data ( D0 - D7 ) Y data ( D0 - D7 ) 2 3 0-7 0-7 (C) PS/2 mouse Data Transmission: a. TP8452 generates the clocking signal when sending data to and receiving data from the system. b. The system requests TP8452 to receive system data output by forcing the DATA line to an inactive level then allowing CLK line to go to an active level. c. Data transmission frame: Bit 1 2-9 10 11 Function Start bit ( always 0 ) Data bits ( D0 - D7 ) Parity bit ( odd parity ) Stop bit ( always 1 ) Page 9 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller d. Data Output ( data from TP8452 to system ): If CLK keep low (inhibit status), data will not transmit. If CLK raised to high and DATA is low(request-to-send),data is updated. After receiving data from system, TP8452 will not start transmitting until CLK and DATA are 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, TP8452 check for line contention by checking for an inactive level on CLK lasting for no more than 100m sec. Contention occurs when the system lowers CLK to inhibit TP8452 output after TP8452 has started a transmission. If this occurs before the rising edge of the tenth clock, TP8452 internal store its data in its buffer and returns DATA and CLK to an active level. If the contention does not occur by the tenth clock, the transmission is completed. Following a transmission, the system inhibits TP8452 by holding CLK low until it can service the input or until the system receives a request to send a response from TP8452. e. Data Input ( from system to TP8452): System first check if TP8452 is transmitting data. If TP8452 is transmitting, the system can override the output by forcing CLK to an inactive level prior to the tenth clock. If the transmission of TP8452 beyond the tenth clock ,the system must receive the data. If TP8452 is not transmitting or if the system choose to override the output, the system force CLK to an inactive level for a period of not less than 100u sec while preparing for output. When the system is ready to output start bit (0), it allows CLK to go to active level. If request-to-send is detected, TP8452 clocks in 11 bits. Following the tenth clock,TP8452 checks for an active level on the DATA line, and if found, force DATA low , and clock once more. If framing error occurs, TP8452 continue to clock until DATA is high, then clocks the line control bit and request a Resend. When the system sends out a command or a data that requires a response, the system must wait for TP8452 to response before sending its next output. (D) PS/2 Mouse Error Handling: Page 10 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller a. A Resend command ( FE ) following receipt of an invalid input or any input with incorrect polarity. b. If two invalid input are received in succession, an error code of hex FC will be sent to the system. c. The counter accumulators are cleared after receiving any command except "Resend". d. As TP8452 receives a Resend command ( FE ), it transmits its last packet of data. e. In the stream mode "Resend" is received by TP8452 following a 3-byte data packet transmission to the system. TP8452 resend the 3-byte data packet prior to clearing the counter. f. A response is sent within 25 ms if (a) The system requires a response (b) An error is detected during transmission g. When a command requiring a response is issued by the system ,another command should not be issued until either the response is received or 25ms has passed. (E) PS/2 Mouse Commands Description: 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: Hex Code FF FE F6 Set F5 F4 F3,XX F2 F0 EE Page 11 of 20 Command Reset Resend Default Disable Enable Set Sampling Read Device Type Set Remote Mode Set Wrap Mode TP8452 echo code FA,AA,00 XX,(XX,XX) FA FA FA Rate FA,FA FA,00 FA FA 2003/7/31 Print TOPRO CONFIDNETIAL TP8452 PS/2 2D 3Key Mouse Controller EC EB EA E9 E8,XX E7 E6 Reset Wrap Mode Read Data Set Stream Mode Status Request Set Resolution Set Autospeed Reset Autospeed FA FA,XX,XX,XX FA FA,XX,XX,XX FA,FA FA FA The following describes valid 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. Page 12 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller (c) In stream mode, if a Resend command is received by TP8452 immediately following a 3-byte data packet transmission to the system, TP8452 will resend the 3-byte data packet prior to cleaning the count accumulators. 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: Second byte XX Sample Rate 0A 14 28 3C 50 64 C8 10/sec 20/sec 40/sec 60/sec 80/sec 100/sec 200/sec g. Read Device Type ( F2 ) TP8452 always echoes " FA,00 " following this command. h. Set Remote Mode ( F0 ) Data value are reported only in response to a Read Data command. Page 13 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller i. Set Wrap Mode ( EE ) Wrap mode remains until Reset ( FF ) or Reset Wrap Mode( EC ) is received. j. Reset Wrap Mode ( EC ) TP8452 returns to the previous mode of operation after receiving this command. 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. l. Set Stream Mode ( EA ) This command sets TP8452 in stream mode. m. Status Request ( E9 ) When this command is issued by the system, TP8452 responds with a 3-byte status report as follows: Byte 1 Bit 0 1 2 3 4 5 6 7 Description 1 = Right button pressed 1 = Middle button pressed 1 = Left button pressed Reserved 0 = Normal speed, 1 = Autospeed 0 = Disabled, 1 = Enabled 0 = Stream mode, 1 = Remote mode Reserved Current resolution setting ( D0 - D7 ) Current sampling rate ( D0 - D7 ) 2 3 0-7 0-7 Page 14 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller n. Set Resolution ( E8,XX ) TP8452 provides four resolutions selected by the second byte of this command as follows: Second Byte XX 00 01 02 03 Resolution 1 counts/mm 2 counts/mm 4 counts/mm 8 counts/mm 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 0 1 2 3 4 5 N( >=6 ) Output 0 1 1 3 6 9 2.0*N p. Reset Autospeed ( E6 ) This command restore normal speed. Page 15 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller (2) Testing Mode Whenever "Test" pin is connected to GND, the chip will enter buyer's testing mode. If OSCR (connect to VDD) = "1"G 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"G The TP8452'S Internal RC won't generate clock. you can input clock on OSC.OUT pin to let TP8452 work on normal operation. Page 16 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Absolute Maximum Ratings Parameter Min. Ratings Max. Unit Supply voltage -0.3 7.5 V o Temperature under bias 0 70 C o Storage temperature range -65 150 C Power dissipation 500 mW _________________________________________________________________________ DC Electrical Characterisitics (Ta=25 to 70 oC) Parameter Operating voltage Operating current (with load)@33kHz OSCR high input voltage X1,X2,Y1,Y2 input reference Current CLK,DATA positive-going threshold voltage CLK,DATA negaitive-going threshold voltage Low input voltage, other pins High input voltage , other pins L,M,R input current ( pull low resistor, Vin=5V ) DATA, CLK input current ( pull up resistor, Vin=0V ) DATA, CLK low output voltage ( Iprl=4mA ) OSC IN input leakage current (Vin=5V) L,M,R input leakage current ( Vin =0V ) X1, X2, Y1, Y2 input leakage current (Vin=0V) Page 17 of 20 Vprl Iih 0 Iil Iipl -1 -1 0.4 1.0 1 1 2003/7/31 Print V uA uA uA Sym. V DD Iop Vrh Ipi Vt+ VtVai Vaih Imi Idc Min. 4.5 Typ. 5.0 Max. 5.5 5.5 Unit V mA V 4 45(1v) 3.2 1.2 1500(5v) 3.8 1.9 1.5 3.5 35 -0.6 45 -1.86 uA V V V V uA mA TOPRO CONFIDNETIAL TP8452 PS/2 2D 3Key Mouse Controller ________________________________________________________________________________ * All voltages in above table are compared with V SS . * All parameters in above table are tested under V DD =5V. * CLK & DATA output gates are open drains that connect to pull up resistors. AC Electrical Characterisitics (Ta=25 to 70 oC) Parameter Sym. Min. Typ. Max. Unit Oscillating frequency Key debounce Rising edge crossed width (Fosc=35KHz) Falling edge crossed width (Fosc=35KHz) Mouse CLK active time Mouse CLK inactive time Time that mouse sample DATA from CLK rising edge System CLK active time System CLK inactive time Time from DATA transition to falling edge of CLK Time from rising edge of CLK to DATA transition Time to mouse inhibit after the 11th CLK to ensure mouse does not start another transmission Fosc Tkd Tr Tf Tmca Tmci Tmdc 13.1 13.1 32.3 12 38 43.7 ms us us KHz 39.4 39.4 us us 13.1 Tsca Tsci Tsdc 13.1 Tscd 26.2 Tpi 0 50 us us us 39.4 39.4 us us us ________________________________________________________________________________ PS. The AC timings are measured with 38 KHz system clock signal. Page 18 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Page 19 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print TP8452 PS/2 2D 3Key Mouse Controller Application Diagrams Page 20 of 20 TOPRO CONFIDNETIAL 2003/7/31 Print |
Price & Availability of TP8452AP
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |