CN105677054B - Independent keyboard Scan orientation circuit - Google Patents

Independent keyboard Scan orientation circuit Download PDF

Info

Publication number
CN105677054B
CN105677054B CN201610003719.XA CN201610003719A CN105677054B CN 105677054 B CN105677054 B CN 105677054B CN 201610003719 A CN201610003719 A CN 201610003719A CN 105677054 B CN105677054 B CN 105677054B
Authority
CN
China
Prior art keywords
keyboard
state
output
encoder
code
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.)
Active
Application number
CN201610003719.XA
Other languages
Chinese (zh)
Other versions
CN105677054A (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.)
Pizhou Jingpeng Venture Capital Co Ltd
Original Assignee
Hunan University of Technology
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 Hunan University of Technology filed Critical Hunan University of Technology
Priority to CN201810338492.3A priority Critical patent/CN108509055B/en
Priority to CN201610003719.XA priority patent/CN105677054B/en
Publication of CN105677054A publication Critical patent/CN105677054A/en
Application granted granted Critical
Publication of CN105677054B publication Critical patent/CN105677054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device

Abstract

A kind of independent keyboard Scan orientation circuit is made of independent keyboard, buffer register, state Code memory, encoder.The circuit is scanned via clock pulses, the positioning of state operation will be maintained to single key stroke, combination key operation, keyboard, the effective status code of same binary length and disarmed state code are converted into, output effective key number corresponding with each effective status code either exports invalid key number corresponding with all disarmed state codes after encoded device coding;Different single key stroke, combination key operation, keyboard maintain state operation to be only embodied in not being same as above for conditional code;Button operation function is either adjusted if necessary to increase and decrease button operation function, keyboard scanning circuit structure need not be changed, only need to encoder be changed according to the correspondence between the conditional code after increase and decrease and key number.The invention circuit does not have to write and operation program, reliable operation.

Description

Independent keyboard Scan orientation circuit
Technical field
The present invention relates to a kind of scanning circuit of keyboard, especially a kind of independent keyboard Scan orientation circuit.
Background technology
With the continuous development of embedded technology, current each electronic product is generally using microcontroller as control core The heart, keyboard are widely used as main input equipment.
Current keyboard scan mainly controlled by microcontroller, it is necessary to by run the program in microcontroller come into Row, runs into interference, program is caused to run fast, and scanning imaging system is by cisco unity malfunction.
A kind of patent of invention " fast scanning and positioning method of matrix keyboard " of Application No. CN201010153560.2 is adopted Enter the Scan orientation process of keyboard with the mode that keyboard interrupt triggers, judged using the method that keyboard scan step is repeated several times Whether button is effective, and the key assignments to being obtained carries out condition adjudgement;If multiple repairing weld state is identical, it is in and stablizes shape State, key assignments are effective;If multiple repairing weld state is different, key assignments is invalid.Single key stroke or combination key operation need individually judgement, such as It is single key stroke, then into singly-bound tupe;Key operation is combined in this way, then into Macintosh tupe.Described in the patent Method solves since keyboard caused by the mechanical property of keyboard itself is shaken and causes the Problem-Errors such as wrong key, continuous touching, And the support issue to Macintosh and repeat key.But the method single key stroke needs to handle respectively with combining key operation; Not accounting for keyboard state maintains a period of time just to perform the keyboard operation function of effectively operating after;Increase and decrease button operation function , it is necessary to change keyboard scan finder structure when either adjusting button operation function.
The content of the invention
In order to solve above-mentioned technical problem existing for existing keyboard scan localization method, the present invention provides a kind of stand alone types Keyboard scan positioning circuit is made of independent keyboard, buffer register, state Code memory, encoder.
The independent keyboard shares N number of button, equipped with N bit keyboard status signal outputs;The N bit keyboards state letter Number be level signal.
The buffer register is N binary registers;The N positions data input pin of buffer register is connected to N keys Disk status signal output.
The state Code memory is 2 × N binary registers;In 2 × N positions data input pin of state Code memory N positions be connected to N bit keyboard status signal outputs, other N N positions data output ends for being connected to buffer register.
The encoder has 2 × N coding input ends, and the 2 × N coding input end is connected to state Code memory 2 × N data output ends;The encoder has M key output terminals.
The reception pulse input end of the buffer register and the reception pulse input end of state Code memory are connected to Clock pulses.
The buffer register and state Code memory are carried out at the same time data in the rising edge of clock pulses and latch, Huo Zhe The trailing edge of clock pulses is carried out at the same time data latch.
2 × N data output ends of the state Code memory export the conditional code of 2 × N;The conditional code is by effective shape State code and disarmed state code composition;The key number of the encoder output is made of effective key number and invalid key number;Effective shape State code is generated by effective keyboard operation or state, and encoder corresponds to output corresponding effective key when inputting each effective status code Number;The disarmed state code is generated by invalid keyboard operation or state, and encoder all corresponds to defeated when inputting all disarmed state codes Go out invalid key number.
The encoder has M key output terminals, and the selection of M values should meet 2MMore than or equal to effective key number and invalid key number The sum of quantity.
Meet one-to-one relationship between the N bit keyboards status signal and N number of button.
The cycle of the clock pulses is 20~100ms;The independent keyboard Scan orientation circuit further includes oscillator; The oscillator exports clock pulses.
The independent keyboard Scan orientation circuit further includes keyboard state change pulse generation unit, for judging independence Whether the key number of formula keyboard output changes, and when the key number of independent keyboard output changes, output keyboard state becomes Change pulse.
The keyboard state change pulse generation unit is made of OR gate, M delay buffers and M XOR gate;M are prolonged Slow buffer is used to carry out signal delay respectively to the M positions key number of independent keyboard output;The input of M XOR gate is respectively M The input of position delay buffer, output signal;The output of M XOR gate is respectively connected to the input terminal of OR gate;The output of OR gate End output keyboard state change pulse.
The N positions, 2 × N, M refer both to binary digit data.
The beneficial effects of the invention are as follows:The positioning of state operation will be maintained to single key stroke, combination key operation, keyboard, by Clock pulses scan transformation is handled by the way of Unified coding into the conditional code of same binary length, single key stroke, Combination key operation, keyboard maintain state operation to be only embodied in not being same as above for conditional code;If necessary to increase and decrease button operation function or Person is adjustment button operation function, need not change keyboard scanning circuit structure, only need to be according to the conditional code after increase and decrease and key number Between correspondence change encoder, re-write the storage content of read-only memory.The invention circuit does not have Using microcontrollers such as microcontroller, ARM, without operation program, reliable operation.
Description of the drawings
Fig. 1 is independent keyboard Scan orientation schematic block circuit diagram;
Fig. 2 is the independent keyboard circuit diagram of the embodiment of the present invention;
Fig. 3 is the Scan orientation circuit diagram of the embodiment of the present invention;
Fig. 4 is the circuit diagram of the keyboard state change pulse generation unit of the embodiment of the present invention;
Fig. 5 is the waveform correlation schematic diagram that the keyboard of the embodiment of the present invention effectively operates.
Specific embodiment
Below in conjunction with attached drawing, the invention will be further described.
Fig. 1 is independent keyboard Scan orientation schematic block circuit diagram, by independent keyboard 400, buffer register 100, shape State Code memory 200, encoder 300, oscillator 500 form.
Fig. 2 is the circuit diagram of the independent keyboard 400 of the embodiment of the present invention, shares 4 buttons, by button S1, button S2, Button S3, button S4 and it is connected to the pull-up resistor R1 of power supply+VCC, pull-up resistor R2, pull-up resistor R3, pull-up resistor R4 groups Into.4 output terminals of independent keyboard 400 correspond output key S1, button S2, button S3, the state of button S4 respectively Signal I1, I2, I3, I4, during by key pressing, the status signal of corresponding output end is low level;It is corresponding to export when button is not pressed The status signal at end is high level.
Buffer register 100, state Code memory 200, encoder 300 in Fig. 1 form Scan orientation circuit, implement Example circuit diagram is as shown in Figure 3.Independent keyboard circuit has 4 buttons, therefore, requirement 4 binary systems of deposit of buffer register 100 Data, requirement 8 bit binary datas of deposit of state Code memory 200.4 data input pins of buffer register 100 are connected to I1、I2、I3、I4;In 8 data input pins of state Code memory 200,4 data input pins are connected to I1, I2, I3, I4, Other 4 data input pins are connected to 4 output terminals of buffer register 100;8 input terminals of encoder 300 are connected to shape 8 output terminals of state Code memory 200.Encoder 300, which exports, is scanned through 4 definite binary system keys number of positioning.
In Fig. 3, trigger 101 forms buffer register 100, trigger 201 forms state Code memory 200.Trigger 101 are made of 4 edge triggered flip flops, and the triggering input terminal of 4 edge triggered flip flops is the reception pulse input of buffer register 100 End is connected to the CP output terminal of clock pulse of oscillator 500;Trigger 201 is made of 8 edge triggered flip flops, and 8 edges touch The triggering input terminal for sending out device is the reception pulse input end of state Code memory 200, is connected to the CP clock arteries and veins of oscillator 500 Rush output terminal.Trigger 101, trigger 201 are preferably made of the d type flip flop of edging trigger, for example, by double D trigger 74HC74,4D trigger 74HC175 are formed.In Fig. 3 embodiments, trigger 101, trigger 201 select what rising edge triggered 8D trigger 74HC273 at this point, unillustrated clear input in Fig. 3 is connected to high level, make the clearing of 74HC273 Function is in disarmed state, only has Trigger Function;Trigger 101 only needs 4D triggers, arbitrarily using selected 8D triggers 4 d type flip flops in 74HC273.Triggering input terminal CLK1, CLK2 of two 8D triggers 74HC273 is connected to CP.
In Fig. 3, read-only memory 301 forms encoder 300.Address input end A7~A0 of read-only memory 301 is volume The input terminal of code device 300, data output end D3~D0 of read-only memory 301 are coding output terminal C3~C0 of encoder 300.
Embodiment is not drawn into the circuit of oscillator 500, and oscillator 500 is multivibrator, and the output cycle is 20~100ms Rectangular wave, the rectangular wave be Fig. 3 in CP clock pulses.CP clock pulses can also be by independent keyboard Scan orientation circuit Outside circuit or device provide.
The operation principle of independent keyboard Scan orientation circuit is as follows:
Buffer register 100, state Code memory 200 have under the control of CP clock pulses in each cycle of CP Effect triggering edge carries out data latch.In Fig. 3,74HC273 is effective for rising edge triggering, therefore, effective triggering of CP clock pulses Edge is rising edge.
4 data input pin D20~D23 in 8 data input pins of state Code memory 200 are connected directly to independence Formula keyboard output status signal I1, I2, I3, I4, in addition 4 data input pin D24~D27 be connected to buffer register 100 Data output end Q10~Q13,4 data input pin D10~D13 of buffer register 100 are connected directly to independent keyboard Status signal I1, I2, I3, I4 of output, therefore, on effective triggering edge of CP clock pulses, 8 of state Code memory 200 In data output end, be connected directly to independent keyboard output corresponding 4 data of status signal I1, I2, I3, I4 it is defeated The data that outlet Q20~Q23 is latched are the current state of independent keyboard, and 4 digits are stated to be existing state key assignments;It is slow with being connected to The data for rushing the corresponding 4 data output end Q24~Q27 latches of data output end of register 100 are independent keyboard Previous state, state key assignments before 4 digits are stated to be.4 existing state key assignments and 4 of 200 data output end of state Code memory output State key assignments collectively constitutes 8 conditional codes before position.
8 conditional codes are used to identify the current state and mode of operation of independent keyboard.For example, the present embodiment In, the conditional code of no key pressing is 11111111;The conditional code of S1 key singly-bound pushes is 11111110;S1 key singly-bounds are pressed And the conditional code maintained is 11101110;The conditional code of S1 keys singly-bound release operation is 11101111;S2 key singly-bound pushes Conditional code be 11111101;The conditional code of S4 key singly-bound pushes is 11110111;The S1 of S2+S1 combination operations presses behaviour Make, after expression first presses S2, press the operation of S1 again in the state that S2 maintenances are pressed, the conditional code of the operation is 11011100.
Encoder 300 is used to conditional code being converted to key number.In embodiment, equipped with 7 effective keyboard operations and state, Including:
Operation 0:The singly-bound push of button S1, key number are 0000;
Operation 1:The singly-bound push of button S2, key number are 0001;
Operation 2:The singly-bound push of button S3, key number are 0010;
Operation 3:Button S3 singly-bounds press after maintenance state, key number be 0011;
Operation 4:After button S4 singly-bounds are pressed, then the combination key operation of S1 is pushed button, key number is 0100;
Operation 5:After button S4 singly-bounds are pressed, then the combination key operation of S2 is pushed button, key number is 0101;
Operation 6:The singly-bound release operation of button S1, key number is 0110.
The conditional code and key number obtained according to above-mentioned regulation is shown in coding schedule 1:
1 coding schedule of table
Keyboard operation Conditional code (address) Key number (storage data)
S1 singly-bounds are pressed 11111110 0000
S2 singly-bounds are pressed 11111101 0001
S3 singly-bounds are pressed 11111011 0010
S3 singly-bounds press maintenance 10111011 0011
S4+S1 combination operations 01110110 0100
S4+S2 combination operations 01110101 0101
S1 singly-bounds discharge 11101111 0110
Other operations or state ******** 1111
Encoder 300 is combinational logic circuit, designs circuit, meets the logical relation of table 1.
The encoder 300 of embodiment is preferably made of read-only memory 301.Read-only memory 301 has 8 bit address, and totally 28 A 4 binary storage cells.7 effective keyboard operations have 7 effective status codes, corresponding 7 effective keys number with state; Using conditional code as address A7~A0 of read-only memory 301, in 7 corresponding storage units of effective status code, inciting somebody to action Corresponding key number is as storage data write-in.7 effective keyboard operations are disarmed state with the conditional code generated outside state Code, i.e., other operations or state in table 1 are generated for disarmed state code;In other storage units, all write-in is invalid Key number, invalid key number are worth for one outside 7 effective keys number, and in embodiment, invalid key number is 1111.
Read-only memory 301 always works at data output state.When read-only memory 301 has piece selected control system, data When exporting cushioning control function, its piece selected control system, data output cushioning control should be made to be in effective status.
Key number in embodiment is 4 binary codes.The number of bits of key number can increase or subtract as needed It is few, at this point, need to only select the read-only memory 301 to match with this.If the number of bits of key number is M, the selection of M values 2 should be metMMore than or equal to the sum of effective key number and quantity of invalid key number.When independent keyboard has the N bit keyboard status signals defeated When going out, read-only memory 301 needs the input of 2 × N bit address, M-bit data output.
Button operation function is either adjusted if necessary to increase and decrease button operation function, only need to change table 1 as needed, it will Amended content re-writes the storage content of read-only memory 301.
In embodiment, when independent keyboard S1 singly-bounds are pressed, CP clock pulses of the encoder 300 after S1 singly-bounds are pressed Effective triggering along starting, until effective triggering edge of next CP clock pulses, coding output terminal C3~C0 run-out keies number 0000;When independent keyboard S2 singly-bounds are pressed, effective triggering edge of CP clock pulses of the encoder 300 after S2 singly-bounds are pressed Start, until effective triggering edge of next CP clock pulses, run-out key number 0001;After independent keyboard first presses S4, S1 is pressed again, and effective triggering edge that encoder 300 combines the CP clock pulses after key pressing in S1 starts, until next CP clocks Until effective triggering edge of pulse, run-out key number 0100;When independent keyboard S1 singly-bounds discharge, encoder 300 is in S1 singly-bounds Effective triggering edge of CP clock pulses after release starts, until effective triggering edge of next CP clock pulses, run-out key Number 0110;It can therefore be seen that when identification be effective button operation of independent keyboard when, encoder 300 is effectively pressed at this Effective triggering edge of CP clock pulses after key operation starts, until effective triggering edge of next CP clock pulses, output Duration is effective key number of CP width clock cycle.
In embodiment, when independent keyboard S3 singly-bounds are pressed, CP clock pulses of the encoder 300 after S3 singly-bounds are pressed Effective triggering along starting, to next CP clock pulses effectively trigger edge until, run-out key number 0010;In next CP Effective triggering edge of clock pulses starts, until next CP clock pulses after S3 singly-bounds press maintenance state is effectively touched Until sending out edge, 300 run-out key number 0011 of encoder;It can therefore be seen that when identification be the maintenance state of independent keyboard when, Encoder 300 exports the duration of effective key number and the duration of the maintenance state is adapted.
When outside the state of keyboard or operation is 7 effective keyboard operations described in table 1 and states, encoder 300 output invalid keys number 1111.Effective key number or output invalid key number are either exported, encoder 300 changes output content At the time of for CP clock pulses effective triggering edge;In embodiment, encoder 300 is CP clock arteries and veins at the time of changing output content The rising edge of punching.
The cycle of CP clock pulses is the scan period of independent keyboard.The keyboard scan cycle, can in more than 20ms It has been effectively shielded from the influence of keyboard shake;The keyboard scan cycle in below 100ms, is unlikely to omit keyboard operation; Therefore, the cycle of CP clock pulses should be controlled in 20~100ms.
Fig. 4 is the circuit diagram of the keyboard state change pulse generation unit of the embodiment of the present invention.What it is when identification is stand alone type During effective button operation of keyboard, effective triggering edge of CP clock pulses of the encoder 300 after effective button operation starts, Until effective triggering edge of next CP clock pulses, output duration is effective for CP width clock cycle Key number.The device of the independent keyboard output is received, it is necessary to which the output of moment inquiry independent keyboard, obtains key number.Inquiry Period distances be necessarily less than cycle of CP clock pulses.
Circuit shown in Fig. 4 is used to judge whether the key number of independent keyboard output changes, when independent keyboard exports Key number when changing, keyboard state change pulse is exported, for the reception device of independent keyboard to be aided in receive stand alone type The key number of keyboard output, for example, using keyboard state change pulse as the interrupt request singal of reception device.
Circuit shown in Fig. 4 by delay buffer 601, XOR gate 602, XOR gate 603, XOR gate 604, XOR gate 605 or Door 606 forms.By only having 4 edge triggered flip flops of Trigger Function to form, 4 edge triggered flip flops touch delay buffer 601 The reception pulse input end that input terminal is delay buffer 601 is sent out, is connected to the CP output terminal of clock pulse of oscillator 500; Delay buffer 601 carries out data latch on effective triggering edge of CP clock pulses.
Delay buffer 601 is used to carry out at delay 4 data C3~C0 of the coding output terminal of encoder 300 respectively Reason.4 data input pin D63~D60 of delay buffer 601 are connected to coding output terminal C3~C0 of encoder 300, delay The data that 4 data output end Q63~Q60 of buffer 601 are accordingly exported are C31~C01;C31~C01 is buffered by delay After the first-level buffer of device 601, signal postpones CP clock cycles than C3~C0, and Fig. 5 show the embodiment of the present invention The waveform correlation schematic diagram that effectively operates of keyboard.The T1 sections of CP clock pulses are located at, independent keyboard presence is once effective Operation, effective operation of embodiment include:S1 singly-bounds are pressed, S2 singly-bounds are pressed, S3 singly-bounds are pressed, the S1 of S4+S1 combination operations It presses, the S2 of S4+S2 combination operations is pressed, the release of S1 singly-bounds.On the next effective triggering edge once effectively operated, i.e. Fig. 5 Rising edge after middle CP clock pulses T1 sections, coding C3~C0 that encoder 300 exports change;In T2 sections, compile Code device 300 exports efficient coding C3~C0 of a cycle;In T3, T4 and section afterwards, coding C3 that encoder 300 exports~ C0 changes and again into maintenance state, which may be that such as S1 singly-bounds press maintenance state below, output Invalid key number, it is also possible to which S3 singly-bounds press maintenance state below, export effective key number, until effectively operation next time.
Coding C3~C0 that D6 pulses in Fig. 5 schematically illustrate the output of encoder 300 is in maintenance state, is not become Change, still change, the D6 pulses are not present in actual circuit.As shown in figure 5, D6 pulses are low level, illustrate table Show that coding C3~C0 that encoder 300 exports is in maintenance state, do not change;D6 pulses are high level, schematically illustrate volume Code device 300 exports efficient coding C3~C0 of a cycle.What the Q6 in Fig. 5 reflected is the situation of change of C31~C01, it is clear that Q6 postpones CP clock cycles than D6.Equally, the Q6 pulses are not present in actual circuit.
In Fig. 5, coding C3~C0 that encoder 300 exports is in maintenance state, does not change, still changes, Really by 606 4 delay buffers 601, XOR gate 602, XOR gate 603, XOR gate 604, XOR gate 605, OR gate groups Into logic circuit complete.1 corresponding, input point that 4 XOR gates encode in output terminal C3~C0 respectively with encoder 300 Not Wei 4 delay buffers 601 input, output signal.For example, two input signals of XOR gate 602 be respectively C0 and C01, C01 postpone CP clock cycles than C0, and therefore, when C0 changes, XOR gate 602 exports 1 CP clock The positive pulse of pulse period width;When C0 is a CP change width clock cycle signal, XOR gate 602 exports 2 The positive pulse of CP width clock cycle.XOR gate 603, XOR gate 604, XOR gate 605 judge whether C1~C3 sends out respectively Changing, principle is with judging it is identical whether C0 changes.XOR gate 602, XOR gate 603, XOR gate 604, XOR gate 605 Output terminal is respectively connected to the input terminal of OR gate 606, and whether OR gate 606 changes for comprehensive descision C0~C3, as long as C0 ~C3 changes, and OR gate 606 exports keyboard state change pulse F, which is positive pulse.
In embodiment, delay buffer 601 selects the 8D triggers 74HC273 of rising edge triggering.In embodiment, encoder 300 outputs are 4 binary system keys number, therefore, delay buffer 601 needs, 4 d type flip flops.Due to delay buffer 601 In 4 d type flip flops and trigger 101 in the triggering input terminals of 4 d type flip flops be connected to the CP clocks of oscillator 500 Pulse output end, therefore, delay buffer 601 can share a 8D triggers 74HC273 with trigger 101.
Delay buffer 601 can also use other schemes, for example, using RC circuits, using 4 RC circuits respectively to C0 ~C3 is postponed;If the time delay of RC circuits is less than CP clock cycles, encoder 300 exports a week During efficient coding C3~C0 of phase, start and export efficient coding C3~C0 in output efficient coding C3~C0 and terminate all to generate one A keyboard state change pulse, the width of keyboard state change pulse are equal to RC circuit delay times;If the delay of RC circuits Time is more than or equal to CP clock cycles, then when encoder 300 exports efficient coding C3~C0 of a cycle, defeated Go out one keyboard state change pulse of generation when efficient coding C3~C0 starts, pulse width is more than or equal to 2 CP clock pulses Cycle.It is required that the time delay of RC circuits is no more than 2 CP clock cycles, failed to report in order to avoid generating.
In the invention circuit, the positioning of state operation will be maintained to single key stroke, combination key operation, keyboard, by CP Pulse scan transformation is handled, single key stroke, combination into the conditional code of same binary length by the way of Unified coding Key operation, keyboard maintain state operation to be only embodied in not being same as above for conditional code;If necessary to increase and decrease button operation function either Button operation function is adjusted, keyboard scanning circuit structure need not be changed, need to only be updated and encoded according to the state code table after increase and decrease Device 300, the storage content for re-writing update read-only memory 301.The invention circuit using microcontroller, The microcontrollers such as ARM, without operation program, reliable operation.

Claims (10)

1. a kind of independent keyboard Scan orientation circuit, which is characterized in that posted by independent keyboard, buffer register, conditional code Storage, encoder composition;
The independent keyboard shares N number of button, equipped with N bit keyboard status signal outputs;The N bit keyboards status signal is Level signal;
The buffer register is N binary registers;The N positions data input pin of buffer register is connected to N bit keyboard shapes State signal output part;
The state Code memory is 2 × N binary registers;N in 2 × N positions data input pin of state Code memory Position is connected to N bit keyboard status signal outputs, in addition the N N positions data output ends for being connected to buffer register;
The encoder has 2 × N coding input ends, and the 2 × N coding input end is connected to 2 × N of state Code memory Position data output end;
The reception pulse input end of the buffer register and the reception pulse input end of state Code memory are connected to clock Pulse.
2. independent keyboard Scan orientation circuit according to claim 1, it is characterised in that:The buffer register and shape State Code memory is carried out at the same time data latch in the rising edge of clock pulses or is carried out at the same time number in the trailing edge of clock pulses According to latch.
3. independent keyboard Scan orientation circuit according to claim 2, it is characterised in that:The buffer register and shape State Code memory is made of the d type flip flop of edging trigger;The encoder is read-only memory.
4. independent keyboard Scan orientation circuit according to claim 1, it is characterised in that:The state Code memory 2 × N data output end exports the conditional code of 2 × N;The conditional code is made of effective status code and disarmed state code;It is described The key number of encoder output is made of effective key number and invalid key number;The effective status code is produced by effective keyboard operation or state Raw, encoder corresponds to output corresponding effectively key number when inputting each effective status code;The disarmed state code is by invalid key Disk operates or state generates, and encoder inputs all corresponding output invalid key number during all disarmed state codes.
5. independent keyboard Scan orientation circuit according to claim 4, it is characterised in that:The encoder has M keys Number output terminal, the selection of M values should meet 2MMore than or equal to the sum of effective key number and quantity of invalid key number.
6. independent keyboard Scan orientation circuit according to claim 5, it is characterised in that:Further include keyboard state variation Impulse generating unit, whether the key number for judging independent keyboard output changes, when the key number of independent keyboard output When changing, keyboard state change pulse is exported.
7. independent keyboard Scan orientation circuit according to claim 6, it is characterised in that:The keyboard state changes arteries and veins Generation unit is rushed to be made of OR gate, M delay buffers and M XOR gate;M delay buffers are used for defeated to independent keyboard The M positions key number gone out carries out signal delay respectively;The input of M XOR gate is respectively the input of M delay buffers, output letter Number;The output of M XOR gate is respectively connected to the input terminal of OR gate;The output terminal output keyboard state change pulse of OR gate.
8. independent keyboard Scan orientation circuit according to claim 1, it is characterised in that:The N bit keyboards state letter Number meet one-to-one relationship between N number of button.
9. independent keyboard Scan orientation circuit according to claim 1, it is characterised in that:The cycle of the clock pulses For 20~100ms.
10. independent keyboard Scan orientation circuit according to claim 1, it is characterised in that:Further include oscillator;It is described Oscillator exports clock pulses.
CN201610003719.XA 2016-01-05 2016-01-05 Independent keyboard Scan orientation circuit Active CN105677054B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810338492.3A CN108509055B (en) 2016-01-05 2016-01-05 Independent keyboard scanning and positioning method
CN201610003719.XA CN105677054B (en) 2016-01-05 2016-01-05 Independent keyboard Scan orientation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610003719.XA CN105677054B (en) 2016-01-05 2016-01-05 Independent keyboard Scan orientation circuit

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201810338492.3A Division CN108509055B (en) 2016-01-05 2016-01-05 Independent keyboard scanning and positioning method

Publications (2)

Publication Number Publication Date
CN105677054A CN105677054A (en) 2016-06-15
CN105677054B true CN105677054B (en) 2018-05-25

Family

ID=56298835

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610003719.XA Active CN105677054B (en) 2016-01-05 2016-01-05 Independent keyboard Scan orientation circuit
CN201810338492.3A Expired - Fee Related CN108509055B (en) 2016-01-05 2016-01-05 Independent keyboard scanning and positioning method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810338492.3A Expired - Fee Related CN108509055B (en) 2016-01-05 2016-01-05 Independent keyboard scanning and positioning method

Country Status (1)

Country Link
CN (2) CN105677054B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509062A (en) * 2018-04-10 2018-09-07 西京学院 A kind of key board unit and knowledge key method based on priority encoder

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0188151A1 (en) * 1984-12-20 1986-07-23 Automobiles Peugeot Keyboard device
CN101510127A (en) * 2009-03-30 2009-08-19 北京中星微电子有限公司 Method, apparatus and chip for implementing keyboard module composite key function
CN101840268A (en) * 2010-04-23 2010-09-22 中国电子科技集团公司第五十四研究所 Method for fast scanning and positioning of matrix keyboard
CN103226391A (en) * 2013-05-22 2013-07-31 湖南工业大学 Scan locating method for independent keyboard
CN103279197A (en) * 2013-06-08 2013-09-04 湖南工业大学 Keyboard scanning positioning method
CN103631244A (en) * 2013-12-22 2014-03-12 贺义方 Master and slave type keyboard controller based on MCU (microprogrammed control unit) and CPLD (complex programmable logic device)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4291385A (en) * 1973-12-17 1981-09-22 Hewlett-Packard Company Calculator having merged key codes
JPH0682314B2 (en) * 1985-05-17 1994-10-19 富士通株式会社 Keyboard simultaneous keystroke shift processing method
CN1159641C (en) * 2001-07-11 2004-07-28 威盛电子股份有限公司 Keyboard instruction fetch device for notebook computer
CN1192300C (en) * 2002-11-20 2005-03-09 威盛电子股份有限公司 Keyboard control circuit of universal serial bus interface
US20090128373A1 (en) * 2007-11-15 2009-05-21 Polycom, Inc. Twin-contact keyboard arrangement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0188151A1 (en) * 1984-12-20 1986-07-23 Automobiles Peugeot Keyboard device
CN101510127A (en) * 2009-03-30 2009-08-19 北京中星微电子有限公司 Method, apparatus and chip for implementing keyboard module composite key function
CN101840268A (en) * 2010-04-23 2010-09-22 中国电子科技集团公司第五十四研究所 Method for fast scanning and positioning of matrix keyboard
CN103226391A (en) * 2013-05-22 2013-07-31 湖南工业大学 Scan locating method for independent keyboard
CN103279197A (en) * 2013-06-08 2013-09-04 湖南工业大学 Keyboard scanning positioning method
CN103631244A (en) * 2013-12-22 2014-03-12 贺义方 Master and slave type keyboard controller based on MCU (microprogrammed control unit) and CPLD (complex programmable logic device)

Also Published As

Publication number Publication date
CN105677054A (en) 2016-06-15
CN108509055B (en) 2021-03-16
CN108509055A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN105468164B (en) Matrix keyboard scanner uni coding circuit
CN105677054B (en) Independent keyboard Scan orientation circuit
CN105677052B (en) Independent keyboard state recognition and coding circuit
CN105677055B (en) matrix keyboard scanning circuit and method
CN105680873B (en) Independent keyboard scanning encoding circuit
CN105677053B (en) Independent keyboard operation identification and coding circuit
CN105677051B (en) Independent keyboard scanning circuit and coding circuit
CN105703780B (en) Matrix keyboard Scan orientation circuit
CN105700698B (en) Matrix keyboard state recognition and coding circuit
CN205334379U (en) Stand alone type keyboard state recognition and coding circuit
CN105677050B (en) Independent keyboard scanning circuit and scanning encoding method
CN105700697B (en) independent keyboard scanning circuit and method
CN205490497U (en) Stand alone type keyboard scan positioning circuit
CN105471439B (en) Independent keyboard scanner uni coding circuit
CN105680874B (en) Matrix keyboard scanning circuit and scanning encoding method
CN205318332U (en) Discernment of stand alone type key board operation and coding circuit
CN205320063U (en) Matrix type keyboard state recognition and coding circuit
CN105700696B (en) Matrix keyboard scanning encoding circuit
CN205384581U (en) Stand alone type keyboard scanning circuit and coding circuit
CN205485933U (en) Matrix type keyboard scans positioning circuit
CN205353947U (en) Stand alone type keyboard scan and coding circuit
CN205384582U (en) Matrix type keyboard scanning circuit and coding circuit
CN105680875B (en) Matrix keyboard operation identification and coding circuit
CN105700695A (en) Matrix keyboard scanning circuit and coding circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191025

Address after: 221300, Fumin Road, Pizhou hi tech Industrial Development Zone, Xuzhou, Jiangsu, 22

Patentee after: Pizhou hi tech Zone New Energy Technology Research Institute Co., Ltd.

Address before: 412007 School of industry, research and production, Hunan University of Technology, 88 West Taishan Road, Zhuzhou, Hunan

Patentee before: Hunan University of Technology

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210309

Address after: 221300 No.56, paoche street, Pizhou City, Xuzhou City, Jiangsu Province

Patentee after: Pizhou Jingpeng Venture Capital Co., Ltd

Address before: 221300 22 Fu Min Road, hi tech Industrial Development Zone, Pizhou, Xuzhou, Jiangsu

Patentee before: PIZHOU HIGH-TECH ZONE NEW ENERGY TECHNOLOGY RESEARCH INSTITUTE Co.,Ltd.