CN1598740A - Computer keyboard and operating method - Google Patents
Computer keyboard and operating method Download PDFInfo
- Publication number
- CN1598740A CN1598740A CN 200410050291 CN200410050291A CN1598740A CN 1598740 A CN1598740 A CN 1598740A CN 200410050291 CN200410050291 CN 200410050291 CN 200410050291 A CN200410050291 A CN 200410050291A CN 1598740 A CN1598740 A CN 1598740A
- Authority
- CN
- China
- Prior art keywords
- key
- button
- over
- result changes
- line
- 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.)
- Granted
Links
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a keyboard which is set for computer, it aims at the fault of the current key-board that the operation is slowed, because the pressing operation can not be done until the former key has been bounced. The invention includes shell and circuit board in it. The circuit provides printed circuit, which is connected to singlechip, reset circuit, crystal, pull-up resistor array, interface wire to computer, LED. The printed circuit provides line scanning line, row scanning line, between them, is an interdiction isolation circuit which is composed by pressing elements and interdiction isolation elements, the interdiction isolation circuit is arrayed regulated, and is formed an array structure; the key-press controlling program is set in the singlechip, and a key-press position area is set in the memory to record the pressing position timely, and a scanning area is also set to record the scanned times of the key-press position, the invention is more fast and security than the current keyboard.
Description
Technical field
The present invention relates to a kind of computer keyboard, especially be concerned about whether lift button, just can press next key position, and do not produce wrong connection, error code, be beneficial to the computer keyboard of high speed operation about need not.
Background technology
The computer keyboard that uses is except combination operating key Ctrl, Shift, Alt at present, all be singly-bound input button, that is: the operator at every turn can only be by next key by computer keyboard during to computer input information, if by next key, the key of having pressed must lift.Be to have more than two key to be pressed simultaneously, because general operation person is difficult to the time that key is pressed in control, correctly input information.Market upper keyboard circuit is an array now, when the button more than three is in down state simultaneously, when one of them button and another one button occurring on same line, also with other second button on same alignment the time, make to be easy to generate wrong the connection between the keyboard circuit, produce wrong key; And the single-chip microcomputer program curing on the keyboard circuit do not handle when operator's button, and the operator needn't be concerned about whether the button of pressing earlier lifts, after the button the pressed function pressed of order in chronological sequence.Therefore generalized case does not allow to press earlier key under situation about not lifting, and just wants button by the back in succession, so just influences the operator by the speed of computer keyboard to computer input information.
Summary of the invention
At above-mentioned weak point, the invention provides a kind of computer keyboard.The socket that when this keyboard uses the plug of keyboard interface line directly is inserted in computer keyboard interface gets final product, the system program of computer terminal does not make any changes, it not only possesses the active computer keypad function, but also realized that the operator is by keyboard during to computer input information, needn't be concerned about on the fingering whether the key of pressing earlier lifts, the back will by key between the free poor difference of precedence of pressing by all means get final product, the precedence of pressing key is identical to the precedence of computer input information by keyboard with the operator.In this way when computer input information, because identical with the precedence that the operator presses key by keyboard to the precedence of computer input information, so the grasp eager to learn, easy of this kind input method; Because the operator will press the free poor difference of precedence of key by all means, and needn't be concerned about whether the key of having pressed lifts, so the operator can concentrate one's energy accurately, operation fast; Because earlier by key needn't lift, the back will by key can press, therefore can press a plurality of buttons, thereby reach the operator fast to the purpose of computer input information identical time period operator.
The technical solution adopted for the present invention to solve the technical problems is: a circuit board is housed in the casing of computer keyboard, P.e.c. is arranged on the circuit board, P.e.c. is provided with a single-chip microcomputer, have a formation make single-chip microcomputer work start reset circuit and crystal oscillating circuit, horizontal scanning line and column scan line are arranged, pull-up resistor row are arranged; The interface line that is connected with computing machine is arranged, the LED lamp is arranged, the keyboard array circuit is arranged, Key element is arranged and be provided for blocking the blocking-up isolated component of buffer circuit.Since with continuous when poor input method when the computer input information, at a time have many buttons and all be in down state, in order to make these buttons that are pressed to not producing wrong connection between the circuit or producing wrong interference, be located at blocking-up buffer circuit on the circuit and utilize each line potential change rule of horizontal scanning line, block some buttons that are pressed to the influence of other buttons that are pressed with produce unnecessary being connected.The program that has guaranteed the continuous supervisory keyboard circuit working that has solidified to computer input signal when poor is arranged in the single-chip microcomputer, make the program of the single-chip microcomputer residing state of each button of having the ability accurately to judge, the position at the record key place of pressing.The programmed control process of solidifying in the single-chip microcomputer is:
1), be used to open computer power supply, the program initialization step, the result changes step 2 over to;
2), the line that is used for driving horizontal scanning line is electronegative potential, receives and preserve the data of column scan line; Whether bright calculate and drive 3 LED lamps instruction step, the result changes step 3 over to;
3), be used for according to the current line line sweep and scanning alignment data, the calculation step of the key position of computational analysis button, the result changes step 4 over to;
4), be used for data and the current key position of analyzing according to key-position area, scanning area, program is carried out corresponding control operation step, the result changes step 5 over to;
5), be used for column scan line counting unit and add 1 step, the result changes step 6 over to;
6), be used for whether finishing the testing procedure of the scanning of alignment to greatest extent, as do not have, recognition result changes step 3 over to, as finishes, recognition result changes step 7 over to;
7), be used to remove column scan line counting unit, make next round scanning removing step since the 1st row, the result changes step 8 over to;
8), be used for horizontal scanning line counting unit and add 1 step, the result changes step 9 over to;
9), be used for whether finishing the identification step of line scan to greatest extent, as do not have, recognition result changes step 2 over to, as finishes, recognition result changes step 10 over to;
10), be used to remove horizontal scanning line counting unit, make next round scanning removing step since the 1st row, its result changes step 2 over to.
Program detects the interface line that keyboard links to each other with computing machine after promptly opening computer power supply, and keyboard was sent out contact information to computing machine after wait interface line current potential was stable.Program begins initialization, the memory area of setting up the keyboard code database and being at single-chip microcomputer is provided with a key-position area, real record is connect down the position of button place keyboard during this district, corresponding with this zone, memory area at single-chip microcomputer is provided with a scanning area, record pushes button and has been scanned how many times, can accurately know the residing duty of each button that is pressed by these regional data.The key that process analysis is pressed is combination operating key, expansion key, special expansion key, or common key-press.When program detects a button first and is effectively pressed, except combination control button, no matter whether this button lifts, and all sends connection sign indicating number, the pass short in size of this button to computing machine, only send the connection sign indicating number for combination control button, when combination control button lifts, only send the pass short in size.When having only a button to be pressed, and the time of pressing exceeds the time that sets, except special expansion button, keyboard sends the connection sign indicating number of this button continuously to computing machine, when lifting, this button just sends the pass short in size of this button, though or this button does not lift and have a button to be pressed, the pass short in size of at this moment earlier sending out key previous.Receive the processing keyboard for computing machine like this and transmit key code, transmit key code as common keyboard.Therefore computer terminal can use keyboard without any change.Whether three LED are bright in programmed control.Program is according to the data of key-position area, scanning area and currently just control in the button key position of analyzing and processing situation, and whether decision sends key code or carry out other processing to computing machine by interface line.
The invention has the beneficial effects as follows: owing to adopt technique scheme, no matter have how many buttons to be pressed at synchronization, connection and the interference between the circuit of forming because button is pressed isolated in the effect blocking-up of blocking-up buffer circuit.So when many buttons are pressed, be unlikely to produce wrong phenomenon.Owing on program, be provided with key-position area and scanning area, the key position and the scanning times of key pressed in record, during the process analysis button, though there are a plurality of buttons to be pressed, but key position and the scanning times of pressing key all had record, and program is carried out work according to the data of key-position area and scanning area are ruly.Because when program detects a button first and is effectively pressed, except combination control button, no matter whether this button lifts, and all sends connection sign indicating number, the pass short in size of this button to computing machine, only send the connection sign indicating number for combination control button, when combination control button lifts, only send the pass short in size.When having only a button to be pressed, and the time of pressing exceeds the time that sets, except special expansion button, keyboard sends the connection sign indicating number of this button continuously to computing machine, when lifting, this button just sends the pass short in size of this button, though or this button does not lift and have a button to be pressed, the pass short in size of at this moment earlier sending out key previous.Receive the processing keyboard for computing machine like this and transmit key code, transmit key code as common keyboard.Therefore computer terminal can use keyboard without any change.Can make the operator pass through computer keyboard, use time difference input method fast to computer input information.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples:
Fig. 1 is the computer keyboard structural drawing;
Fig. 2 is a computer keyboard schematic block circuit diagram 1;
Fig. 3 is a computer keyboard schematic block circuit diagram 2;
Fig. 4 is the 1st embodiment circuit theory diagrams of computer keyboard;
Fig. 5 is the 2nd embodiment circuit theory diagrams of computer keyboard;
Fig. 6 is the 3rd embodiment circuit theory diagrams of computer keyboard;
Fig. 7 is the 4th embodiment circuit theory diagrams of computer keyboard;
Fig. 8 is the 5th embodiment circuit theory diagrams of computer keyboard;
Fig. 9 is the 6th embodiment circuit theory diagrams of computer keyboard;
Figure 10 is computer keyboard key element and button key symbol corresponding diagram;
Figure 11 is the computer keyboard program flow chart;
Figure 12 is step 1 FB(flow block) among Figure 11;
Figure 13 is step 2 FB(flow block) among Figure 11;
Figure 14 is step 3 FB(flow block) among Figure 11;
Figure 15 is step 4 flow process the first half block diagram among Figure 11;
Figure 16 is step 4 flow process the latter half block diagram among Figure 11.
Among the figure: 1 button, 2 casings, 3 circuit boards, 4 single-chip microcomputers, 5 pilot lamp, 6 with computing machine connected interface line, a Key element, s blocks isolated component, 7 line scanning circuits, 8 column scan circuits.
Embodiment
It includes computer keyboard casing 2 and is contained in the interior circuit board 3 of shell, circuit board is provided with P.e.c., the interface line 6, the LED light 5 that be connected to single-chip microcomputer 4, start reset circuit, crystal oscillating circuit, pull-up resistor row on the P.e.c., are connected with computing machine, be provided with horizontal scanning line 7, column scan line 8 in the P.e.c., be provided with button a element and blocking-up isolated component s formation blocking-up buffer circuit between the row, column sweep trace, and regularly arranged composition keyboard array formula circuit structure.Wherein blocking isolated component can adopt switching diode, Sheffer stroke gate element, inclusive NAND door to go here and there non-gating element; Key element can adopt switching regulator, condenser type, inductance type; Be solidified with the control program of supervisory keyboard circuit working in the single-chip microcomputer, a key-position area is set in its storage area, real position of writing down the key place keyboard that is pressed during this district, a scanning area also is set, this district's record is pressed key and has been scanned how many times, by the data that above-mentioned zone collects, can accurately know the residing duty of each button that is pressed.
Further specify in conjunction with the accompanying drawings more below:
As shown in Figure 1: circuit board 3 is housed in the computer keyboard casing 2, on the circuit board 3 P.e.c. is arranged, linking with P.e.c. is connected to keyboard 1; The pilot lamp 5 that has three LED light emitting diodes to be used to indicate; The interface line 6 that links with computing machine is arranged; Single-chip microcomputer 4 and other electron component are arranged.The computer keyboard circuit theory diagrams are seen in the elements on circuit board effect.
Fig. 2, Fig. 3 circuit of computer keyboard schematic block circuit diagram as can be known are made up of a single-chip microcomputer, reset circuit of SCM, crystal oscillating circuit, horizontal scanning line, column scan line, pull-up resistor row, the interface line, LED lamp and the keyboard array circuit that are connected with computing machine and blocking-up buffer circuit.The blocking-up isolated component s that each single route Key element a of keyboard array circuit and being used to blocks buffer circuit constitutes and is connected between the row, column sweep trace.The difference of Fig. 2, Fig. 3 is: illustrate that blocking-up isolated component s is in keyboard array circuit connecting method difference.Fig. 2 illustrates that one of blocking-up isolated component s terminates on the horizontal scanning line and the other end is connected on the end of Key element a, and Fig. 3 illustrates that one of part blocking-up isolated component s terminates on the column scan line and the other end is connected on the end of Key element a.And terminating on the horizontal scanning line and the other end is connected on the end of Key element a of another part blocking-up isolated component s.
As Fig. 4, Fig. 5, Fig. 6, Fig. 7, shown in Figure 9 be 5 embodiments of computer keyboard circuit theory diagrams.The single-chip microcomputer model is AT89C51, and capacitor C 1 and resistance R 1 constitute reset circuit of SCM.Capacitor C 2, C3 and crystal oscillator constitute the single-chip microcomputer clock oscillation circuit.Capacitor C 4 and resistance R 2 constitutes the link anti-jamming circuit of data-interface line of keyboards and computing machine.Capacitor C 5 and resistance R 3 constitutes the link anti-jamming circuit of clock interface line of keyboards and computing machine.Resistance R 4, R5, the R6 that LED1, LED2, LED3 pass through to be connected respectively constitutes the status lamp of multi-functional shift key, wherein one terminates at+the 5V power supply on, the other end is connected on the pin 37-39 of single-chip microcomputer, shows the residing duty of multi-functional shift key.Draw 13 lines from single-chip microcomputer pin 21-25 and 32-39, these 13 lines are called horizontal scanning line.Drawn 8 lines from the pin 1-8 of single-chip microcomputer, these 8 lines are called the column scan line.As Fig. 4, Fig. 5, Fig. 6, shown in Figure 9, Key element a is a kind of switch, shown in K switch 00-K7C.Key element a is a kind of capacitance-type switch as shown in Figure 7, shown in C00-C7C.As Fig. 4, Fig. 7, shown in Figure 9, blocking-up isolated component s is a switching diode, and shown in D00-D7C, as shown in Figure 5, blocking-up isolated component s is that model is the Sheffer stroke gate of 74HC138 and with each Key element is in parallel on the same group.As shown in Figure 6, blocking-up isolated component s is to be that the Sheffer stroke gate of 74HC138 and not gate series connection back that model is 74HC06 are with each Key element is in parallel on the same group by model.Do not have the pin of pull-up resistor for the interface microcontroller that links to each other with horizontal scanning line, connect the resistance of 8 22K Ω.
Be the 6th embodiment of computer keyboard circuit theory diagrams as shown in Figure 8.The single-chip microcomputer model is MCS8049, and capacitor C 6 constitutes reset circuit of SCM.Capacitor C 7, C8 and inductance L constitute the single-chip microcomputer clock oscillation circuit.Capacitor C 9 and resistance R 6 constitutes the link anti-jamming circuit of data-interface line of keyboards and computing machine.Capacitor C 10 and resistance R 7 constitutes the link anti-jamming circuit of clock interface line of keyboards and computing machine.Resistance R 4, R5, the R6 that LED1, LED2, LED3 pass through to be connected respectively constitutes the status lamp of multi-functional shift key, wherein one terminates at+the 5V power supply on, the other end is connected on the pin 27-29 of single-chip microcomputer, shows the residing duty of multi-functional shift key.Draw 12 lines from single- chip microcomputer pin 23,24,27-29,30-32,35-38, these 12 lines are called horizontal scanning line.Drawn 9 lines from pin 1, the 12-19 of single-chip microcomputer, these 9 lines are called the column scan line.Key element a is a capacitance-type switch, and shown in C00-C16, C18-C5B, C60-C6A, C6C-C7C among the figure, blocking-up isolated component s is a switching diode, shown in D00-D16, D18-D5B, D60-D6A, D6C-D7C among the figure.
Figure 10 is computer keyboard key element and button key symbol corresponding diagram, and the keyboard symbol of Key element representative computer keyboard key is described.
Fig. 8 single-chip microcomputer model is MCS8048, and Fig. 4, Fig. 5, Fig. 6, Fig. 7, Fig. 9 single-chip microcomputer model are AT89C51, only use the embodiment of single-chip microcomputer model for the present invention, be not the single-chip microcomputer model that the unique qualification of the present invention is used, all can adopt for the single-chip microcomputer that can constitute computer keyboard.
It is a switching diode that Fig. 4, Fig. 5, Fig. 6, Fig. 7, Fig. 8, Fig. 9 block buffer circuit s, and Fig. 5 blocks buffer circuit s right and wrong door, and Fig. 6 blocks buffer circuit s right and wrong door and not gate constitutes.Only using the preferred embodiment of blocking-up buffer circuit for the present invention, is not the blocking-up buffer circuit of the unique qualification of the present invention, all can adopt for the circuit of the blocking-up buffer action that can play computer keyboard.
Fig. 4, Fig. 5, Fig. 6, Fig. 9 Key element a are switches, Fig. 7, Fig. 8 Key element a are an electric capacity, only use the preferred embodiment of keyboard element for the present invention, be not the Key element of the unique qualification of the present invention, all can adopt for the Key element of the button effect that can play computer keyboard.
13 of Fig. 4, Fig. 5, Fig. 6, Fig. 7, Fig. 9 horizontal scanning lines, 8 on column scan line.12 of Fig. 8 horizontal scanning lines, 9 on column scan line.Only, the present invention counts preferred embodiment for using the bar of horizontal scanning line and column scan line, be not the bar number that horizontal scanning line and column scan line are used in the unique qualification of the present invention, can adopt for other number average of horizontal scanning line that can constitute computer keyboard and column scan line.Wherein at 104 key computer keyboards, using 13 horizontal scanning lines and 8 column scan lines is preferred plan.
Blocking-up buffer circuit connectivity scenario is blocked the common point of buffer circuit as shown in Figure 2 in Fig. 4, Fig. 8, Fig. 9, is connected on the horizontal scanning line.A blocking-up buffer circuit connectivity scenario part as shown in Figure 3 in Fig. 7, the common point of blocking-up buffer circuit is connected on the column scan line.Blocking-up buffer circuit connectivity scenario is that output terminal by AND circuit is connected on the column scan line among Fig. 5, Fig. 6., be not the connected mode of the unique qualification of the present invention only, all can adopt in the connected mode that computer keyboard can play the blocking-up buffer action for the blocking-up buffer circuit for the present invention connects the preferred embodiment of blocking buffer circuit.
Need not be concerned about for guaranteeing computer keyboard whether button lifts, under time difference condition, reach quick purpose by touching down a key, again solidified supervisory keyboard circuit working program in the single-chip microcomputer, flow process is seen Figure 11, below in conjunction with its block diagram process step is described:
1, be used to open computer power supply, the program initialization step, the result changes step 2 over to;
2, a line that is used for driving horizontal scanning line is an electronegative potential, receives the data of column scan line; Whether bright calculate and drive 3 LED lamps instruction step, the result changes step 3 over to;
3, be used for according to the current line line sweep and scanning alignment data, the calculation step of the key position of computational analysis button key position, the result changes step 4 over to;
5, be used for 8 column scan line counting units and add 1 step, the result changes step 6 over to;
6, be used for whether finishing the testing procedure of alignment scanning to greatest extent, as do not have, recognition result changes step 3 over to, as finishes, and recognition result changes step 7 over to;
7, be used to remove column scan line counting unit, make next round scanning since the 1st row step, the result changes step 8 over to;
8, be used for horizontal scanning line counting unit and add 1 step, the result changes step 9 over to;
9, be used for whether finishing the identification step of line scan to greatest extent, as do not have, recognition result changes step 2 over to, as finishes, and recognition result changes step 10 over to;
10, be used to remove 13 horizontal scanning line counting units, make next round scanning since the 1st row step, its result changes step 2 over to.
Describe in detail step by step again below in conjunction with each step:
1.1), be used to open computer power supply, wait for the interface line current potential stabilizing step that is connected with computing machine, the result is commentaries on classics down naturally;
1.2), be used for single-chip microcomputer and send out the contact information step to computing machine by interface line, the result changes down naturally;
1.3), be used to set up keyboard code database step, the result changes down naturally;
1.4), be used for the key-position area that key pressed in initialization record, should each unit, district all be empty step when initial, the result naturally under commentaries on classics;
1.5), be used for correspondingly with key-position area, the scanning area step of key scanning number of times pressed in initialization record, the result is commentaries on classics down naturally;
1.6), be used for initialization when singly-bound is pressed, the unit step of connecting continuously sign indicating number sent out in record, the result is commentaries on classics down naturally;
1.7), be used for that initialization record presses the key number press key counting unit step, the result is commentaries on classics down naturally;
1.8), be used for the counting unit of initialization record column scan line line position, be 0 line position step when initial, the result is commentaries on classics down naturally;
1.9), be used for the counting unit of initialization record horizontal scanning line line position, be 0 line position step when initial, the result is commentaries on classics down naturally;
1.10), be used for initialization and allow the bright Q-character step of Num Lock, the result changes down naturally.
To make horizontal scanning line all be the noble potential step 2.1 be used for the programmed control single-chip microcomputer, and the result changes down naturally;
2.2 be used for the data according to horizontal scanning line counting unit, calculating which bar line of current line sweep trace is electronegative potential, and control to make this line be the step of electronegative potential, the result is commentaries on classics down naturally;
Read data on the column scan line 2.3 be used for program, and data that read are kept at a step in the specific unit, the result changes down naturally;
2.4 be used for horizontal scanning line is set to the step of noble potential, the result changes down naturally;
2.5 be used for according to 3 Q-characters that LED is bright, the line at LED place that should be bright is controlled to electronegative potential, make the bright step of corresponding LED, the result changes down naturally.
3.1 be used to take out the data step of horizontal scanning line line position counting unit, the result changes down naturally;
3.2 program calculates the current keyboard key-position step of analyzing according to the data of horizontal scanning line counting unit and the data of column scan line counting unit, the result changes down naturally;
3.3 the current keyboard key-position of analyzing is preserved step in the designating unit, and the result changes down naturally.
4.1), be used to take out the analysis and distinguishing step of the operating state of the current keyboard key-position of analyzing, record is arranged: be not pressed, the result changes step 4.4 over to, presses, and the result changes step 4.5 over to; Do not have record: do not press again, the result changes step 4.2 over to, presses, and the result changes 4.3 over to;
4.2), be used for the not record that is pressed of this button key position of key-position area, the current keyboard key-position of analyzing is not pressed, and the step that this button did not move is described, the result changes step 5 over to;
4.3), be used for the not record that is pressed of this button key position of key-position area, but the current keyboard of analyzing has been pressed, illustrate that this button moves to down state from lifting state, this button key position is recorded in the unit, room of key-position area, scanned once with the unit record of the corresponding scanning area of key-position area, the result changes step 5 over to;
4.4), be used for the record that key-position area has this button key position to be pressed, but the current keyboard of analyzing is not pressed, illustrate this button from down state to lifting state action, when this button of program validation lifted fully, the unit that key-position area record is lifted key was revised as dummy cell; It is clear 0 that scanning area record is lifted the unit of key scan number of times, and what have that several buttons are pressed presses key counting unit 1; Take out the code discriminating step that this button key position will send to computing machine from the keyboard code database, Macintosh whether, be, the result changes the 4.4.1 step over to, is not, and the result changes the 4.4.2 step over to;
4.4.1), the code that is used to send is the combination operating key, then sends the execution in step of the pass short in size of Macintosh to computing machine, the result changes step 5 over to;
4.4.2), the code that is used to send is not the combination operating key, if all buttons have all lifted, and sent this key of pressing and connected sign indicating number continuously, be recorded in whether to send when singly-bound is pressed and connect code element clear 0 continuously, then send the disconnection sign indicating number of this button, otherwise do not send the execution in step of the disconnection sign indicating number of this button, the result changes step 5 over to;
4.5), be used for the record that key-position area has this button key position to be pressed, the keyboard of being analyzed also is pressed, illustrate that this button locates down state always, take out the number of times of this key scan from scanning area, and with scanning number of times+1, program according to scanning area writing scan the data of how many times, carry out corresponding control operation determination step, greater than regulation, the result changes the 4.5.3 step over to; Equal regulation, the result changes the 4.5.2 step over to; Less than regulation, the result changes the 4.5.1 step over to;
4.5.3), be used for judging according to the number of times of this key scan, if the number of times of scanning is 3 times greater than stated number such as this procedure stipulation, illustrating that this button is stable already presses, taking out this button will be to the code of computing machine transmission, program is carried out corresponding control operation step, judge the current key that whether is pressed, have one, the result changes 4.5.3.1 over to; Have a plurality ofly, the result changes 4.5.3.2 over to;
4.5.2), be used for judging according to the number of times of this key scan, if the number of times of scanning is that stated number such as this procedure stipulation are 3 times, illustrate that this button is judged as stable pressing first, what have that several buttons are pressed presses key counting unit+1, takes out the code that this button will transmit to computing machine, and program is carried out corresponding control operation step, judge whether first button sent out the connection sign indicating number, sending out, is Macintosh, and the result changes 4.5.2.2 over to; Not that Macintosh changes 4.5.2.1 over to; Do not send out, the result changes the 4.5.2.3 step over to;
4.5.1), be used for judging that if the number of times of scanning is 3 times less than stated number such as this procedure stipulation, illustrate that this button presses and also do not have stable step, the result changes step 5 over to according to the number of times of this key scan;
4.5.3.1), be used for judging according to the number of times of this key scan, possess transmission and connect the time of sign indicating number continuously as scanning 5ch time, and currently have only a button to be pressed, this button is not special extended code, then send the connection sign indicating number of this button to computing machine, sending continuously when singly-bound is pressed, the connection code element writes down this key position; The modification scanning area writes down the number of times of this key scan as being that the speed step of connection sign indicating number is continuously sent out in this size of data decision 58h time, and the result changes step 5 over to;
4.5.3.2), be used for judging according to the number of times of this key scan, possess transmission and connect the time of sign indicating number continuously as scanning 5ch time, current have a plurality of buttons to be pressed, revise the number of times that scanning area writes down this key scan-1. make when next time scanning, scanning area writes down this key scan number of times+1 can not surpass 5ch step of stated number scanning yet, and the result changes step 5 over to;
4.5.2.1) if, to be used for current be not to have only 2 buttons to be pressed, perhaps current is to have only 2 buttons to be pressed, and connects sign indicating number continuously but the button of pressing does not earlier send; Current in both cases institute analysis button is not the combination operating key, then sends connection sign indicating number, the pass short in size of this button to computing machine; If this button is the bright key of control LED lamp, then control corresponding Q-character, make the bright step of LED lamp, the result changes step 5 over to;
4.5.2.2) if, to be used for current be not to have only 2 buttons to be pressed, perhaps current is to have only 2 buttons to be pressed, and connects sign indicating number continuously but the button of pressing does not earlier send; Current in both cases institute analysis button is the combination operating key, sends the connection sign indicating number of this button to computing machine, but does not send the pass short in size step of this button, and the result changes step 5 over to;
4.5.2.3) so, with there being 2 buttons to be pressed, whether the button of pressing earlier sent connects sign indicating number continuously, then sends the pass short in size of previous key earlier to computing machine, be recorded in to send when singly-bound is pressed and connect code element clear 0 continuously; Scanning area write down previous key scanning time counting unit is revised as certain number such as certain number is 30h time; Current institute analysis button is not the combination operating key, then sends connection sign indicating number, the pass short in size of this button to computing machine; Current institute analysis button is the combination operating key, sends the connection sign indicating number of this button to computing machine, but does not send the pass short in size step of this button, and the result changes step 5 over to.
Computer keyboard of the present invention, using method is that operational computations switch dish is when computer input information, the button that the back will be pressed needn't be concerned about whether the button of pressing previously lifts, the button that the back will be pressed is as long as it is identical with order to computer input information to press the precedence of key.
Claims (7)
1, a kind of computer keyboard, it contains casing and is contained in the interior circuit board of shell, circuit board is provided with P.e.c., the interface line, the LED lamp that be connected to single-chip microcomputer, start reset circuit, crystal oscillating circuit, pull-up resistor row on the P.e.c., are connected with computing machine, P.e.c. is provided with horizontal scanning line, column scan line, it is characterized in that: be provided with Key element and blocking-up isolated component between the row, column sweep trace, form the blocking-up buffer circuit, regularly arranged, form keyboard array formula circuit structure; Be solidified with the control program of supervisory keyboard circuit working in the single-chip microcomputer, this programmed control has following steps:
1), be used to open computer power supply, the program initialization step, the result changes step 2 over to;
2), the line that is used for driving horizontal scanning line is electronegative potential, receives and preserve the data of column scan line; Whether bright calculate and drive 3 LED lamps instruction step, the result changes step 3 over to;
3), be used for according to the current line line sweep and scanning alignment data, the calculation step of the key position of computational analysis button, the result changes step 4 over to;
4), be used for data and the current key position of analyzing according to key-position area, scanning area, program is carried out corresponding control operation step, the result changes step 5 over to;
5), be used for column scan line counting unit and add 1 step, the result changes step 6 over to;
6), be used for whether finishing the testing procedure of the scanning of alignment to greatest extent, as do not have, recognition result changes step 3 over to, as finishes, recognition result changes step 7 over to;
7), be used to remove column scan line counting unit, make next round scanning removing step since the 1st row, the result changes step 8 over to;
8), be used for horizontal scanning line counting unit and add 1 step, the result changes step 9 over to;
9), be used for whether finishing the identification step of line scan to greatest extent, as do not have, recognition result changes step 2 over to, as finishes, recognition result changes step 10 over to;
10), be used to remove horizontal scanning line counting unit, make next round scanning removing step since the 1st row, its result changes step 2 over to.
2, computer keyboard according to claim 1 is characterized in that said isolated component can adopt switching diode element, Sheffer stroke gate element, the non-gating element of Sheffer stroke gate string; Said Key element can adopt switching regulator, condenser type, inductance type.
3, computer keyboard according to claim 1 is characterized in that the said computer power supply that is used to open, and the program initialization step is carried out according to the following steps:
1.1), be used to open computer power supply, wait for the interface line current potential stabilizing step that is connected with computing machine, the result is commentaries on classics down naturally;
1.2), be used for single-chip microcomputer and send out the contact information step to computing machine by interface line, the result changes down naturally;
1.3), be used to set up keyboard code database step, the result changes down naturally;
1.4), be used for the key-position area that key pressed in initialization record, should each unit, district all be empty step when initial, the result naturally under commentaries on classics;
1.5), be used for correspondingly with key-position area, the scanning area step of key scanning number of times pressed in initialization record, the result is commentaries on classics down naturally;
1.6), be used for initialization when singly-bound is pressed, the unit step of connecting continuously sign indicating number sent out in record, the result is commentaries on classics down naturally;
1.7), be used for that initialization record presses the key number press key counting unit step, the result is commentaries on classics down naturally;
1.8), be used for the counting unit of initialization record column scan line line position, be 0 line position step when initial, the result is commentaries on classics down naturally;
1.9), be used for the counting unit of initialization record horizontal scanning line line position, be 0 line position step when initial, the result is commentaries on classics down naturally;
1.10), be used for initialization and allow the bright Q-character step of Num Lock, the result changes down naturally.
4, computer keyboard according to claim 1 is characterized in that said to be used for driving horizontal scanning line one line be electronegative potential, receives and preserve the data of column scan line; Calculate and drive 3 LED lamps whether bright instruction step is carried out according to the following steps:
2.1), be used for the programmed control single-chip microcomputer horizontal scanning line be set to the noble potential step, the result changes down naturally;
2.2), be used for data according to horizontal scanning line counting unit, calculating which bar line of current line sweep trace is electronegative potential, and control to make this line be the electronegative potential step, the result is commentaries on classics down naturally;
2.3), be used for the data that program reads the column scan line, and save the data in step in the designating unit, the result changes down naturally;
2.4), be used for horizontal scanning line is set to the noble potential step, the result changes down naturally;
2.5), be used for data according to the bright Q-character of 3 LED of control, the line at LED place that should be bright is controlled to electronegative potential, the just corresponding bright step of LED, the result descends commentaries on classics naturally.
5, computer keyboard according to claim 1 is characterized in that said data according to horizontal scanning line and column scan line, calculates the key position step of institute's analysis button and carries out according to the following steps:
3.1), be used to take out the data step of horizontal scanning line line position counting unit, the result changes down naturally;
3.2), be used for calculating the current button key position step that will analyze according to the data of horizontal scanning line line position counting unit and the data of column scan line line position counting unit, the result changes down naturally;
3.3), be used for will be determining that the data of the button key position that will analyze are kept at the designating unit step, the result is commentaries on classics down naturally.
6, computer keyboard according to claim 1 is characterized in that said data and the current key position of analyzing according to key-position area, scanning area, and program is carried out the step of corresponding control operation and carried out by following operation steps:
4.1), be used to take out the analysis and distinguishing step of the operating state of the current keyboard key-position of analyzing, record is arranged: be not pressed, the result changes step 4.4 over to, presses, and the result changes step 4.5 over to; Do not have record: do not press again, the result changes step 4.2 over to, presses, and the result changes 4.3 over to;
4.2), be used for the not record that is pressed of this button key position of key-position area, the current keyboard key-position of analyzing is not pressed, and the step that this button did not move is described, the result changes step 5 over to;
4.3), be used for the not record that is pressed of this button key position of key-position area, but the current keyboard of analyzing has been pressed, illustrate that this button moves to down state from lifting state, this button key position is recorded in the unit, room of key-position area, scanned step once with the unit record of the corresponding scanning area of key-position area, the result changes step 5 over to;
4.4), be used for the record that key-position area has this button key position to be pressed, but the current keyboard of analyzing is not pressed, illustrate this button from down state to lifting state action, when this button of program validation lifted fully, the unit that key-position area record is lifted key was revised as dummy cell; It is clear 0 that scanning area record is lifted the unit of key scan number of times, and what have that several buttons are pressed presses key counting unit-1; Take out the code discriminating step that this button key position will send to computing machine from the keyboard code database, Macintosh whether, be, the result changes the 4.4.1 step over to, is not, and the result changes the 4.4.2 step over to;
4.4.1), the code that is used to send is the combination operating key, then sends the execution in step of the pass short in size of Macintosh to computing machine, the result changes step 5 over to;
4.4.2), the code that is used to send is not the combination operating key, if all buttons have all lifted, and sent this key of pressing and connected sign indicating number continuously, be recorded in whether to send when singly-bound is pressed and connect code element clear 0 continuously, then send the disconnection sign indicating number of this button, otherwise do not send the execution in step of the disconnection sign indicating number of this button, the result changes step 5 over to;
4.5), be used for the record that key-position area has this button key position to be pressed, the keyboard of being analyzed also is pressed, illustrate that this button locates down state always, take out the number of times of this key scan from scanning area, and with scanning number of times+1, program according to scanning area writing scan the data of how many times, carry out corresponding control operation determination step, greater than regulation, the result changes the 4.5.3 step over to; Equal regulation, the result changes the 4.5.2 step over to; Less than regulation, the result changes the 4.5.1 step over to;
4.5.3), be used for judging according to the number of times of this key scan, if the number of times of scanning is 3 times greater than stated number such as this procedure stipulation, illustrating that this button is stable already presses, taking out this button will be to the code of computing machine transmission, program is carried out corresponding control operation step, judge the current key that whether is pressed, have one, the result changes 4.5.3.1 over to; Have a plurality ofly, the result changes 4.5.3.2 over to;
4.5.2), be used for judging according to the number of times of this key scan, if the number of times of scanning is that stated number such as this procedure stipulation are 3 times, illustrate that this button is judged as stable pressing first, what have that several buttons are pressed presses key counting unit+1, takes out the code that this button will transmit to computing machine, and program is carried out corresponding control operation step, judge whether first button sent out the connection sign indicating number, sending out, is Macintosh, and the result changes 4.5.2.2 over to; Not that Macintosh changes 4.5.2.1 over to; Do not send out, the result changes the 4.5.2.3 step over to;
4.5.1), be used for judging that if the number of times of scanning is 3 times less than stated number such as this procedure stipulation, illustrate that this button presses and also do not have stable step, the result changes step 5 over to according to the number of times of this key scan;
4.5.3.1), be used for judging according to the number of times of this key scan, possess transmission and connect the time of sign indicating number continuously as scanning 5ch time, and currently have only a button to be pressed, this button is not special extended code, then send the connection sign indicating number of this button to computing machine, sending continuously when singly-bound is pressed, the connection code element writes down this key position; The modification scanning area writes down the number of times of this key scan as being that the speed step of connection sign indicating number is continuously sent out in this size of data decision 58h time, and the result changes step 5 over to;
4.5.3.2), be used for judging according to the number of times of this key scan, possess send connect sign indicating number continuously time as scanning 5ch time, current have a plurality of buttons to be pressed, the modification scanning area writes down the number of times-1 of this key scan.Make when scanning, scanning area writes down this key scan number of times+1 can not surpass 5ch step of stated number scanning yet next time, and the result changes step 5 over to;
4.5.2.1) if, to be used for current be not to have only 2 buttons to be pressed, perhaps current is to have only 2 buttons to be pressed, but not sending, the button of pressing earlier do not connect sign indicating number continuously, current in both cases institute analysis button is not the combination operating key, then sends connection sign indicating number, the pass short in size of this button to computing machine; If this button is the bright key of control LED lamp, then control corresponding Q-character, make the bright step of LED lamp, the result changes step 5 over to;
4.5.2.2) if, to be used for current be not to have only 2 buttons to be pressed, perhaps current is to have only 2 buttons to be pressed, and connects sign indicating number continuously but the button of pressing does not earlier send; Current in both cases institute analysis button is the combination operating key, sends the connection sign indicating number of this button to computing machine, but does not send the pass short in size step of this button, and the result changes step 5 over to;
4.5.2.3) so, with there being 2 buttons to be pressed, whether the button of pressing earlier sent connects sign indicating number continuously, then sends the pass short in size of previous key earlier to computing machine, be recorded in to send when singly-bound is pressed and connect code element clear 0 continuously; Scanning area write down previous key scanning time counting unit is revised as certain number such as certain number is 30h time; Current institute analysis button is not the combination operating key, then sends connection sign indicating number, the pass short in size of this button to computing machine; Current institute analysis button is the combination operating key, sends the connection sign indicating number of this button to computing machine, but does not send the pass short in size step of this button, and the result changes step 5 over to.
7, use the described computer keyboard of claim 1, the feature of its method of operating is that operational computations switch dish is when computer input information, the button that the back will be pressed needn't be concerned about whether the button of pressing previously lifts, the button that the back will be pressed is as long as it is identical with order to computer input information to press the precedence of key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100502911A CN1323342C (en) | 2004-08-20 | 2004-08-20 | Computer keyboard and operating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100502911A CN1323342C (en) | 2004-08-20 | 2004-08-20 | Computer keyboard and operating method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1598740A true CN1598740A (en) | 2005-03-23 |
CN1323342C CN1323342C (en) | 2007-06-27 |
Family
ID=34665901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100502911A Expired - Fee Related CN1323342C (en) | 2004-08-20 | 2004-08-20 | Computer keyboard and operating method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1323342C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001086B (en) * | 2007-01-12 | 2010-05-26 | 宁波天安(集团)股份有限公司 | Keyboard matrix pagerank method based on Boolean process |
CN102854994A (en) * | 2011-06-28 | 2013-01-02 | 幻音科技(深圳)有限公司 | Inputting method and device |
CN103049092A (en) * | 2012-12-19 | 2013-04-17 | 华南理工大学 | Rocker-type QWERTY keyboard |
CN103049091A (en) * | 2012-12-19 | 2013-04-17 | 华南理工大学 | Fingerstall-type keyboard |
CN106877878A (en) * | 2015-12-14 | 2017-06-20 | 联阳半导体股份有限公司 | Keyboard device and detection method of key state thereof |
WO2018098620A1 (en) * | 2016-11-29 | 2018-06-07 | 王铭 | Key matrix, key combination detection device and method therefor, and detection method for detection |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS56147226A (en) * | 1980-04-15 | 1981-11-16 | Brother Ind Ltd | Key input device |
JPS61107417A (en) * | 1984-10-30 | 1986-05-26 | Toshiba Corp | Keyboard control system |
CN85101663B (en) * | 1985-04-01 | 1988-03-16 | 菲利浦光灯制造公司 | Data input keyboard with electronic contact point key |
CN2184222Y (en) * | 1994-06-02 | 1994-11-30 | 天津市新星电子公司 | Keyboard scanning device for household computer learning machine |
-
2004
- 2004-08-20 CN CNB2004100502911A patent/CN1323342C/en not_active Expired - Fee Related
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001086B (en) * | 2007-01-12 | 2010-05-26 | 宁波天安(集团)股份有限公司 | Keyboard matrix pagerank method based on Boolean process |
CN102854994A (en) * | 2011-06-28 | 2013-01-02 | 幻音科技(深圳)有限公司 | Inputting method and device |
CN102854994B (en) * | 2011-06-28 | 2016-05-11 | 幻音科技(深圳)有限公司 | Input method and device |
CN103049092A (en) * | 2012-12-19 | 2013-04-17 | 华南理工大学 | Rocker-type QWERTY keyboard |
CN103049091A (en) * | 2012-12-19 | 2013-04-17 | 华南理工大学 | Fingerstall-type keyboard |
CN103049091B (en) * | 2012-12-19 | 2016-03-02 | 华南理工大学 | A kind of Fingertip type keyboard |
CN103049092B (en) * | 2012-12-19 | 2016-03-02 | 华南理工大学 | A kind of Rocker-type QWERTY keyboard |
CN106877878A (en) * | 2015-12-14 | 2017-06-20 | 联阳半导体股份有限公司 | Keyboard device and detection method of key state thereof |
CN106877878B (en) * | 2015-12-14 | 2020-01-31 | 联阳半导体股份有限公司 | Keyboard device and detection method of key state thereof |
WO2018098620A1 (en) * | 2016-11-29 | 2018-06-07 | 王铭 | Key matrix, key combination detection device and method therefor, and detection method for detection |
Also Published As
Publication number | Publication date |
---|---|
CN1323342C (en) | 2007-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN2869988Y (en) | Chip programming apparatus | |
CN1295703A (en) | Method and apparatus for writing | |
CN104850289A (en) | Wireless control system, touch sensing electrode integration module, touch sensing module and manufacturing method thereof | |
CN1598740A (en) | Computer keyboard and operating method | |
CN101046764A (en) | Server and correlative method for providing hardware diagnostic information | |
CN1801132A (en) | Computer with multiple processors and operating method thereof | |
CN202364197U (en) | Button detection and LED control circuit | |
CN110968329A (en) | Burner and operation method and burning system thereof | |
CN1690977A (en) | Device and method for monitoring and indicating health state of a computer | |
CN1928784A (en) | Keyboard, control method and system communication method | |
CN101047317A (en) | Digital synchronous indication, control method for ship power station generator | |
CN1372189A (en) | Method for instant raising CPU frequency | |
CN101606849B (en) | Integrated color ultrasonic control panel and implementation method thereof | |
CN2390234Y (en) | Programmable keyboard | |
CN1540539A (en) | System and method for controlling interrput | |
CN2847384Y (en) | Device for recording and detecting student pick-up and delivery information | |
CN102256409A (en) | Lamp light control equipment and control method thereof | |
CN114740794B (en) | STM 32-based embedded PLC control device and control method | |
CN2716897Y (en) | Wireless input device having low-voltage forced prompting function | |
CN1117323C (en) | Method and device for indicating system starting up error code by power indication lamp | |
CN1227577C (en) | Chinese input unit and chinese input method | |
CN1381994A (en) | Method and device for setting up parameters of talkback set | |
CN1228703C (en) | Pushbutton device and operation method | |
CN1828482A (en) | Control output signal switchinging time to save electric power consumption | |
CN1026626C (en) | Plane keyboard with seperated pages having seperate Chinese characters for inputting |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070627 Termination date: 20110820 |