CN1190727C - Element testing and switching device - Google Patents

Element testing and switching device Download PDF

Info

Publication number
CN1190727C
CN1190727C CNB981197744A CN98119774A CN1190727C CN 1190727 C CN1190727 C CN 1190727C CN B981197744 A CNB981197744 A CN B981197744A CN 98119774 A CN98119774 A CN 98119774A CN 1190727 C CN1190727 C CN 1190727C
Authority
CN
China
Prior art keywords
transmission signals
signal
keyboard
mouse
slide
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB981197744A
Other languages
Chinese (zh)
Other versions
CN1249461A (en
Inventor
黄振旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LIANYANG SEMICONDUCTOR CO Ltd
Original Assignee
LIANYANG SEMICONDUCTOR CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LIANYANG SEMICONDUCTOR CO Ltd filed Critical LIANYANG SEMICONDUCTOR CO Ltd
Priority to CNB981197744A priority Critical patent/CN1190727C/en
Publication of CN1249461A publication Critical patent/CN1249461A/en
Application granted granted Critical
Publication of CN1190727C publication Critical patent/CN1190727C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The present invention relates to an element detecting and switching device which is used for utilizing a circuit module set to monitor codes of transmission signals of PS/2 keyboard and a mouse between a microcontroller and a connector, automatically switches transmission lines of the PS/2 keyboard and the mouse, and then correctly outputs correct transmission signals to the microcontroller. The device utilizes a first decoder and a second decoder to respectively output received transmission signals to a monitoring and controlling device, and then a control signal is generated; the control signal is output to an exchanger. Finally, under the control of the control signal, the exchanger enable a received first transmission signal and a received second transmission signal to output a keyboard transmission signal through a first signal transmission line and a mouse transmission signal through a second signal transmission line.

Description

Element testing and switching device shifter
Technical field
The invention relates to a kind of element testing and switching device shifter, and particularly relevant for a kind of transmission signals coding that utilizes the circuit method of discrimination to monitor PS/2 keyboard and slide-mouse, and the device of automatic switchover PS/2 keyboard and slide-mouse transmission line.
Background technology
Early stage computer uses, and all utilizes keyboard to be used as the main method of operating computer haply.In recent years, the computer technology progress was very fast, and user's interface all adopts the graphic interface of friendliness, with graphic interface mode operating computer the time, had become member indispensable in the PC as the slide-mouse (mouse) of indicator (pointer).
The general PC of generally using all has the serial port (Serial Port) of RS-232, the drive current that is provided by the signal wire of RS-232 serial port is enough to provide integrated circuit work, therefore, Fa Zhan slide-mouse nearly all was connected to computer with RS-232 serial interface actinal surface afterwards, and did not need to provide in addition power supply.Up at present, because the prosperity of the Internet (Internet), nearly all user can use modulator-demodular unit (MODEM) by connecting the Internet in the family, and this modulator-demodular unit need be connected serial port, in addition, serial port also can be used to connect infrared transmission device, in order to transmitting data between different computers, and general PC mostly only is equipped with the dual serial gateway, in the case, promptly face serial port and do not apply the situation of using, cause user's puzzlement.On the other hand, portable computer (Portable Computer) generally uses, because the volume requirement of this class computer is compact, can be limited for the space of arranging the various interface joint, and so all miniaturizations as far as possible of various terminal.Therefore, the factor of and joint miniaturization not enough based on the serial port number, at present some slide-mouse has changed with keyboard and has adopted the PS/2 interface, and the joint of PS/2 interface is comparatively small-sized, and general new PC also cooperates and provides the PS/2 port for connection slide-mouse and keyboard in addition.Also cooperating provides the PS/2 port for connecting slide-mouse and keyboard in addition.
For the power supply control of typical PC or workstation computer, utilize pure mechanical open circuit/closed circuit contact-making switch device in early days, control the primary power that the power supply unit circuit is provided, such as the interchange city power supply of 110 volts of controls.When this power switch was in open-circuit condition, the power supply unit of system did not have power supply, so system closedown.When this power switch is switched to closed circuit state, AC power promptly is supplied to the power supply unit of system, just power supply unit can produce the required various direct supplys of computer system operation, the typical case as just/negative 5 with just/negative 12V (volt), computer system is started, begin to operate.This kind mechanicalness power switch must just can make computer system start or shutdown with the action of manually directly switching.If do not have operation or user of service at the scene at computer system place, system promptly can't open or close.
Afterwards, (the AppleComputer Inc. of Apple by California, USA Cusparia Ti Nuo city, Cupertino, the California) Macintosh of manufacturing series PC has wherein been used the assignment key on the keyboard to start or has been closed computer system.After the electric power supply power lead of computer system was inserted into supply socket, this kind system can utilize the keyboard circuit state of surveillance start key at any time.In case detect the action of pressing the system start-up key, primary power supply that promptly can start-up system, this is a kind of software power supply control (Soft Power Control).
On the other hand, (the IntelCorporation of Ying Daier company in the holy Plutarch La La of California, USA city, Santa Clara, California) also propose a kind of its and be called the personal host computer specification of ATX, power supply unit wherein no longer is as the major control switch of computer system and system is directly controlled with mechanical open circuit/closed switch.Relatively, the power specification of this kind ATX carries out the management and the control of whole computer system power supply with the circuit on the computer internal control wafer.This also is a kind of idea of software power supply control, and it can utilize various mode to come the switch computer, and the mechanicalness switch that no longer only is only limited to by power supply switches, to open and close the operation that two kinds of simple states come the controlling computer system.
2.01 editions with the ATX specification is example, the power supply that its pre-stand-by power source 5VSB is a direct current 5V, and its maximum can be fed to the output current of 0.7A (ampere), so that the normal power management circuit among driving computer system under the state of shutdown.This kind management circuit can be set carry out many manipulate make things convenient for function.For example, system can set appropriate in advance, in night preset time start automatically, so that in the reduced rate period of telephone operator, send international fax, perhaps, when night is unattended, can dial the incident of crying such as modulator-demodular unit and start because of external, so that accept transmission of external file etc.
At present, in the use of computer, because the interface of PS/2 keyboard and slide-mouse belongs to same specification, but both transfer encodings (Code) are different, so when the connector (Connector) with PS/2 keyboard and slide-mouse is connected to the PS/2 interface, the situation of wrong can take place just.Using the early stage of PS/2 keyboard and slide-mouse, if during the generation said circumstances, then keyboard and slide-mouse all can't normal operations.Afterwards, develop and utilize firmware (Firmware) to reach the two interchangeable and method normal operation.Yet, the shortcoming of exchanging the transmission signals coding of PS/2 keyboard and slide-mouse with firmware is to use the microcontroller (Micro-controller) of subsystem or claims keyboard controller (Keyboard Controller, KBC) finish startup, and regular event, just finish the PS/2 keyboard of misconnection and the function of slide-mouse exchange, therefore can't be used as the mechanism of total system start with keyboard or slide-mouse.
Fig. 1 is that tradition is used as control interface structural drawing between main frame and PS/2 keyboard and slide-mouse with microcontroller.Please refer to Fig. 1, keyboard 10 exports keyboard clock pulse signal KCLK and keyboard data signal KDAT to microcontroller 14 (for example 8042 microcontrollers of employed Intel Company in the PC of IBM) via a PS/2 connector 11; Simultaneously, slide-mouse 15 also exports slide-mouse clock pulse signal MCLK and slide-mouse data-signal MDAT to microcontroller 14 via one the 2nd PS/2 connector 16.Then, microcontroller 14 is for keyboard clock pulse signal KCLK that receives and keyboard data signal KDAT, and slide-mouse clock pulse signal MCLK and slide-mouse data-signal MDAT judge, detecting the element that is connect on that group connector is the PS/2 slide-mouse, the element that is connect on that group connector is the PS/2 keyboard, and correct signal and main frame 18 are transmitted.Yet this kind method must open the element that just can detect on the connector after initiating is done to be connect earlier at microcontroller 14 as mentioned above, and then normal operation.
Summary of the invention
In view of this, fundamental purpose of the present invention is providing a kind of element testing and switching device shifter exactly, utilization is between microcontroller and connector, monitor the transmission signals coding of PS/2 keyboard and slide-mouse with a circuit module, and automatic switchover PS/2 keyboard and slide-mouse transmission line, export transmission signals to microcontroller then.Therefore, before the microcontroller normal operation, can correctly produce the start mechanism of keyboard or slide-mouse.
According to purpose of the present invention, a kind of element testing and switching device shifter are proposed, in order to via one first signal transmssion line PS/2 keyboard transmission signals being exported one first transmission signals and one second transmission signals to a microcontroller, and also export PS/2 slide-mouse transmission signals to microcontroller via a secondary signal transmission line.This element detects and switching device shifter comprises one first demoder, one second demoder, a monitoring and a control device and an interchanger.At first, first demoder receives first transmission signals, and exports one first data decode signal to monitoring and control device; And second demoder receives second transmission signals, and exports one second data decode signal to monitoring and control device.Then, monitoring and control device produce a control signal, and export interchanger to.At last, interchanger is exported the keyboard transmission signals with first transmission signals and second transmission signals that receive via first signal transmssion line under the control of control signal, and via secondary signal transmission line output slide-mouse transmission signals.
According to the present invention proposes a kind of element testing and switching device shifter, in order to detecting in one first transmission signals and one second transmission signals, which PS/2 keyboard transmission signals and which to be PS/2 slide-mouse transmission signals for, and according to testing result this first transmission signals is switched to draw and be connected to one of one first signal transmssion line and a secondary signal transmission line, and another that is connected to this first signal transmssion line and this secondary signal transmission line drawn in this second transmission signals switching, to export a microcontroller to, wherein PS/2 is a kind of signal transmission interface.This element testing and switching device shifter comprise: one first demoder, in order to receiving this first transmission signals, and export one first data decode signal; One second demoder in order to receiving this second transmission signals, and is exported one second data decode signal; One monitoring and control device, the decoded signal of PS/2 slide-mouse transmission signals and which to be the decoded signal of PS/2 keyboard transmission signals in order to which to receive and to detect in this first data decode signal and this second data decode signal for, and to export a control signal according to testing result; An and interchanger, in order to receive this first transmission signals, this second transmission signals and control signal, and export this PS/2 keyboard transmission signals to this microprocessor via this first signal transmssion line according to this control signal, and export this PS/2 slide-mouse transmission signals to this microprocessor via this secondary signal transmission line.
Preferably, this first data decode signal is the numeric data code of one 8 bits.
Preferably, this second data decode signal is the numeric data code of one 8 bits.
Preferably, this PS/2 keyboard transmission signals comprises a keyboard clock pulse signal and a keyboard data signal.
Preferably, this PS/2 slide-mouse transmission signals comprises a slide-mouse clock pulse signal and a slide-mouse data-signal.
Preferably, this first transmission signals is exported by a PS/2 keyboard, and this second transmission signals is exported by a PS/2 slide-mouse.
Preferably, this PS/2 keyboard is connected to one the one PS/2 connector, exports this first transmission signals then; This PS/2 slide-mouse is connected to one the 2nd PS/2 connector, exports this second transmission signals then.
Preferably, this first transmission signals is exported by a PS/2 slide-mouse, and this second transmission signals is exported by a PS/2 keyboard.
Preferably, this PS/2 slide-mouse is connected to one the one PS/ connector, exports this first transmission signals then; This PS/2 keyboard is connected to one the 2nd PS/2 connector, exports this second transmission signals then.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and conjunction with figs. are described in detail below:
Description of drawings:
Fig. 1 represents that tradition is used as control interface structural drawing between main frame and PS/2 keyboard and slide-mouse with microcontroller;
Fig. 2 represents according to a kind of main frame of a preferred embodiment of the present invention and the control interface structural drawing between PS/2 keyboard and slide-mouse; And
Fig. 3 represents the block diagram according to element testing shown in Fig. 2 and switching device shifter.
Embodiment
Please refer to Fig. 2, it is represented according to a kind of main frame of a preferred embodiment of the present invention and the control interface structural drawing between PS/2 keyboard and slide-mouse.In Fig. 2, keyboard 20 exports the first transmission signals S1 to element testing and switching device shifter 23 via one the one PS/2 connector 21, and slide-mouse 25 also exports the second transmission signals S2 to element testing and switching device shifter 23 via one the 2nd PS/2 connector 26.Then, how element testing and switching device shifter 23 judge the first transmission signals S1 and the second transmission signals S2 of a PS/2 connector 21 and the input of the 2nd PS/2 connector 26, and the person is a keyboard, how the person is a slide-mouse to analyze the element that is connected on a PS/2 connector 21 and the 2nd PS/2 connector 26.Then, export keyboard clock pulse signal KCLK and keyboard data signal KDAT to microcontroller 27 via the first signal transmssion line L1 respectively again, and secondary signal transmission line L2 exports slide-mouse clock pulse signal MCLK and slide-mouse data-signal MDAT to microcontroller 27, makes correct signal be able in main frame 28 and 27 transmission of microcontroller.Keyboard clock pulse signal KCLK herein and keyboard data signal KDAT are the digital transmission signals, and slide-mouse clock pulse signal MCLK and slide-mouse data-signal MDAT are meant the slide-mouse transmission signals.
Please refer to Fig. 3, its expression is according to the block diagram of element testing shown in Fig. 2 and switching device shifter.As shown in Figure 3, the first transmission signals S1 inputs to one first demoder 30, the second transmission signals S2 inputs to one second demoder 31, to the first transmission signals S1 and second transmission signals S2 decoding, the data decode signal D1 and the D2 that respectively produce one 8 bits then input to monitoring and control device 32 respectively.At the same time, the first transmission signals S1 and the second transmission signals S2 also input to an interchanger 34 simultaneously.
Because PS/2 keyboard 20 is different with the coding of the transmission signals of slide-mouse 25, for example the initial code of the transmission signals of PS/2 keyboard is AA, the initial code of the transmission signals of PS/2 slide-mouse is AA00, so monitoring and control device 32 can be in order to monitor the first transmission signals S1 and the second transmission signals S2, the element that judgement is connected on a PS/2 connector 21 and the 2nd PS/2 connector 26 is PS/2 keyboard or PS/2 slide-mouse, and export a control signal Ctrl to interchanger 34, whether decision exchanges the first transmission signals S1 and the second transmission signals S2.For example work as a PS/2 connector 21 and be connected to keyboard 20, when the 2nd PS/2 connector 26 is connected to slide-mouse 25, then the first transmission signals S1 exports keyboard clock pulse signal KCLK and keyboard data signal KDAT to microcontroller 27 via the first signal transmssion line L1 after inputing to interchanger 34; And export slide-mouse clock pulse signal MCLK and slide-mouse data-signal MDAT to microcontroller 27 via secondary signal transmission line L2.
If when a PS/2 connector 21 is connected to slide-mouse 25, when the 2nd PS/2 connector 26 is connected to keyboard 20, then the first transmission signals S1 exports slide-mouse clock pulse signal MCLK and slide-mouse data-signal MDAT to microcontroller 27 via secondary signal transmission line L2 after inputing to interchanger 34; And the second transmission signals S2 exports keyboard clock pulse signal KCLK and keyboard data signal KDAT to microcontroller 27 via the first signal transmssion line L1.
Therefore, through the transmission signals of interchanger 34 outputs, be not need PS/2 keyboard transmission signals and the slide-mouse transmission signals through judging again, so the control module of system boot, also do not need after the microcontroller normal operation, just can obtain the mechanism of correct keyboard or slide-mouse start.
Therefore, one of feature of the present invention is to detect and switching device shifter with an element, be connected between microcontroller and connector, monitor the transmission signals coding that connector is sent here, export transmission signals to microcontroller then, make microcontroller before normal operation, can correctly produce the transmission signals of keyboard or slide-mouse.
Two of feature of the present invention is that element testing and switching device shifter are simple circuit configuration, does not need to control via microcontroller, can be in order to the transmission signals of PS/2 keyboard and slide-mouse is exported by correct transmission line.
In sum; though the present invention discloses as above with a preferred embodiment; right its is not in order to limit the present invention; anyly have the knack of this skill person; without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking the claim person of defining of the present invention.

Claims (9)

1. element testing and switching device shifter, in order to detecting in one first transmission signals and one second transmission signals, which PS/2 keyboard transmission signals and which to be PS/2 slide-mouse transmission signals for, and according to testing result this first transmission signals is switched to draw and be connected to one of one first signal transmssion line and a secondary signal transmission line, and another that is connected to this first signal transmssion line and this secondary signal transmission line drawn in this second transmission signals switching, to export a microcontroller to, wherein PS/2 is a kind of signal transmission interface, it is characterized in that this element testing and switching device shifter comprise:
One first demoder in order to receiving this first transmission signals, and is exported one first data decode signal;
One second demoder in order to receiving this second transmission signals, and is exported one second data decode signal;
One monitoring and control device, the decoded signal of PS/2 slide-mouse transmission signals and which to be the decoded signal of PS/2 keyboard transmission signals in order to which to receive and to detect in this first data decode signal and this second data decode signal for, and to export a control signal according to testing result; And
One interchanger, in order to receive this first transmission signals, this second transmission signals and control signal, and export this PS/2 keyboard transmission signals to this microprocessor via this first signal transmssion line according to this control signal, and export this PS/2 slide-mouse transmission signals to this microprocessor via this secondary signal transmission line.
2. element testing as claimed in claim 1 and switching device shifter is characterized in that this first data decode signal is the numeric data code of one 8 bits.
3. element testing as claimed in claim 1 and switching device shifter is characterized in that this second data decode signal is the numeric data code of one 8 bits.
4. element testing as claimed in claim 1 and switching device shifter is characterized in that this PS/2 keyboard transmission signals comprises a keyboard clock pulse signal and a keyboard data signal.
5. element testing as claimed in claim 1 and switching device shifter is characterized in that this PS/2 slide-mouse transmission signals comprises a slide-mouse clock pulse signal and a slide-mouse data-signal.
6. element testing as claimed in claim 1 and switching device shifter is characterized in that this first transmission signals exported by a PS/2 keyboard, and this second transmission signals is exported by a PS/2 slide-mouse.
7. element testing as claimed in claim 6 and switching device shifter is characterized in that this PS/2 keyboard is connected to one the one PS/2 connector, exports this first transmission signals then; This PS/2 slide-mouse is connected to one the 2nd PS/2 connector, exports this second transmission signals then.
8. element testing as claimed in claim 1 and switching device shifter is characterized in that this first transmission signals exported by a PS/2 slide-mouse, and this second transmission signals is exported by a PS/2 keyboard.
9. element testing as claimed in claim 8 and switching device shifter is characterized in that this PS/2 slide-mouse is connected to one the one PS/ connector, exports this first transmission signals then; This PS/2 keyboard is connected to one the 2nd PS/2 connector, exports this second transmission signals then.
CNB981197744A 1998-09-28 1998-09-28 Element testing and switching device Expired - Fee Related CN1190727C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB981197744A CN1190727C (en) 1998-09-28 1998-09-28 Element testing and switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB981197744A CN1190727C (en) 1998-09-28 1998-09-28 Element testing and switching device

Publications (2)

Publication Number Publication Date
CN1249461A CN1249461A (en) 2000-04-05
CN1190727C true CN1190727C (en) 2005-02-23

Family

ID=5226460

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB981197744A Expired - Fee Related CN1190727C (en) 1998-09-28 1998-09-28 Element testing and switching device

Country Status (1)

Country Link
CN (1) CN1190727C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101852949B (en) * 2010-04-23 2011-07-13 上海凯鑫森产业投资控股有限公司 Micro-molded slice for backlight module

Also Published As

Publication number Publication date
CN1249461A (en) 2000-04-05

Similar Documents

Publication Publication Date Title
CN1038962C (en) A data processing system, and a power supply apparatus and a method for its use with a data processing system
US20040088449A1 (en) USB unit control method and a USB unit controller
CN1288181A (en) Electric power management device and method used for computer system
CN1261697A (en) Method and device for controlling power supply to peripheral device in computer system
US20050030680A1 (en) Electric outlet for stanby power interruption and power saving, control method thereof, and power saving system
CN101782802A (en) Standby power-saving system and method for starting and disconnecting power supply of computer
US9400896B2 (en) Portable computer and security operating method thereof
US6275947B1 (en) Control circuit and method to wake up or turn on computer via peripheral device
CN1190727C (en) Element testing and switching device
CN101739320B (en) Error detection device of server and error detection method thereof
KR100448274B1 (en) A power supply control device for cutting off stand-by electric power and for saving electric power, a control method thereof and a power saving system
CN1484146A (en) Test card for computer
US6034444A (en) Power supply system
US6919878B2 (en) Keyboard/mouse switching controller
CN1766864A (en) Calculator device having a USB connection
JP2000099246A (en) Device detecting and switching device
CN2708343Y (en) Power supply protection time-delay control device for projection system
CN1466029A (en) Sequence electric system and method for clauster system
CN114880035B (en) Startup and shutdown system
CN2618210Y (en) Computer power supplier
CN212084099U (en) Computer on-off control board card
CN1622048A (en) Method and apparatus for displaying computer system debugging result
CN1838491B (en) Bidirectional electronic device with USB interface
CN1622660B (en) Hand-held mobile communication terminal equipment
CN1205557C (en) Infrared remote controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050223

Termination date: 20150928

EXPY Termination of patent right or utility model