[go: up one dir, main page]

CN103633983A - Key extension circuit - Google Patents

Key extension circuit Download PDF

Info

Publication number
CN103633983A
CN103633983A CN201310661289.7A CN201310661289A CN103633983A CN 103633983 A CN103633983 A CN 103633983A CN 201310661289 A CN201310661289 A CN 201310661289A CN 103633983 A CN103633983 A CN 103633983A
Authority
CN
China
Prior art keywords
button
outer input
input interface
input interfaces
group
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.)
Pending
Application number
CN201310661289.7A
Other languages
Chinese (zh)
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.)
FREEWINGS TECHNOLOGIES CO LTD
Original Assignee
FREEWINGS TECHNOLOGIES CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FREEWINGS TECHNOLOGIES CO LTD filed Critical FREEWINGS TECHNOLOGIES CO LTD
Priority to CN201310661289.7A priority Critical patent/CN103633983A/en
Publication of CN103633983A publication Critical patent/CN103633983A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a key extension circuit comprising a processing unit. The processing unit is provided with n external input interfaces, the letter n being not smaller than 2. The key extension circuit further comprises X keys. One ends of the n keys in the X keys are connected to the n external input interfaces by means of one-to-one correspondence. The external input interfaces of b groups of a ones in the n external input interfaces are not completely the same, a being one or multiple. The a external input interfaces of any group of external input interfaces are connected to cathodes of a diodes by means of one-to-one correspondence. Anodes of the a didoes are all connected to one end of any key of the X keys not including the selected n keys. The other end of every key is connected to a power source. The key extension circuit has the advantages that more keys are extended with few external input interfaces, the processing unit can be high in response speed, and the cost of the processing unit is low.

Description

Button expanded circuit
Technical field
The present invention relates to a kind of for MCU(microcontroller) the button expanded circuit of/CPU (central processing unit)/processor systems such as single-chip microcomputer.
Background technology
Existing button expanded circuit has several as follows conventionally:
(1), the corresponding button of each outer input interface (IO): sort circuit takies maximum IO interfaces, does not realize expanded function, more to the outer input interface resource requirement of processor.
(2), the button of matrix-scanning mode expansion; The shortcoming of sort circuit is that the response speed of processor is slow, and a plurality of buttons there will be the judgement of mistake simultaneously or cannot judge while pressing, and the workload of software is larger simultaneously, and needs the interface of two types of input and output simultaneously.
(3) use analog input interface direct-detection button; The shortcoming of sort circuit is to need software to do a large amount of computing work, when processor is busy, cannot respond in time, and the quantity of button expansion depends on the precision of analog input interface, higher to the requirement of processor simulation input interface, cause the price comparison of processor high.
Summary of the invention
Technical problem to be solved by this invention is to provide and can use less outer input interface to expand more button, and make processor response speed very fast, the lower-cost button expanded circuit of processor.
For solving the problems of the technologies described above, button expanded circuit provided by the invention, it comprises processor, processor is provided with n outer input interface, wherein n >=2; It is characterized in that:
It also comprises X button, wherein n < X &le; C n 1 + C n 2 + . . . + C n n - 1 + C n n ;
One end of n button in X button is connected to respectively n outer input interface one to one;
In n outer input interface, choosing arbitrarily a is one group, altogether chooses b group, and b group outer input interface is incomplete same each other, wherein
Figure BDA0000432667900000012
a can choose one or more, wherein a outer input interface in any one group of outer input interface is connected to respectively the negative pole of a diode one to one, the positive pole of a diode is all connected to the one end of removing any one button of selected n button in X button, and the other end of a described X button is all connected to power supply.
Adopt after above structure, the present invention compared with prior art, has advantages of following:
The present invention utilizes the unilateral conduction of diode, use outer input interface seldom just can realize the expansion of more button, diode plays the signal between two buttons of isolation, and software algorithm of the present invention is very simple, can make processor respond in time, make processor response speed very fast, and processor be there is no to a requirement of analog input interface, can reduce the requirement of processor, the price of processor is reduced, make processor cost lower.
As improvement, described X = C n 1 + C n 2 + . . . + C n n - 1 + C n n , b = C n a , a = { 2,3 , . . . . . . . , n } . Now, externally the certain situation of output interface under, can expand maximum buttons.
Accompanying drawing explanation
Fig. 1 is the structural representation of the embodiment of the present invention one.
Fig. 2 is the structural representation of the embodiment of the present invention two.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in more detail.
Embodiment mono-,
As shown in Figure 1, in the present embodiment, the outer input interface of processor is 3, be respectively IO1, IO2 and IO3, button is 7, is respectively S1, S2, S3, S4, S5, S6 and S7, diode is 9, is respectively D1, D2, D3, D4, D5, D6, D7, D8 and D9.
One end of button S1, S2 and S3 is connected to respectively outer input interface IO1, IO2 and IO3 one to one, that is to say that one end of S1 is connected to IO3, and one end of S2 is connected to IO2, and one end of S3 is connected to IO1.
In 3 outer input interfaces, choosing arbitrarily two is one group, altogether choose 3 groups, 3 groups of outer input interfaces are incomplete same each other, that is to say that IO1 and IO2 are one group, IO1 and IO3 are one group, IO2 and IO3 are one group, IO1 is connected with the negative pole of D1, the positive pole of D1 is connected with one end of S4, IO2 is connected with the negative pole of D2, the positive pole of D2 is connected with one end of S4, IO1 is connected with the negative pole of D3, the positive pole of D3 is connected with one end of S5, IO3 is connected with the negative pole of D4, the positive pole of D4 is connected with one end of S5, IO2 is connected with the negative pole of D5, the positive pole of D5 is connected with one end of S6, IO3 is connected with the negative pole of D6, the positive pole of D6 is connected with one end of S6.
It is one group that 3 outer input interfaces are chosen 3, that is to say that IO1, IO2 and IO3 are one group, IO1 is connected with the negative pole of D7, the positive pole of D7 is connected with one end of S7, IO2 is connected with the negative pole of D8, the positive pole of D8 is connected with one end of S7, and IO3 is connected with the negative pole of D9, and the positive pole of D9 is connected with one end of S7.
The other end of described S1, S2, S3, S4, S5, S6 and S7 is all connected to 3V3 power supply.
Embodiment bis-,
As shown in Figure 2, in the present embodiment, the outer input interface of processor is 3, is respectively IO1, IO2 and IO3, and button is 6, is respectively S1, S2, S3, S4, S5 and S6, and diode is 7, is respectively D1, D2, D3, D4, D5, D6 and D7.
One end of button S1, S2 and S3 is connected to respectively outer input interface IO1, IO2 and IO3 one to one, that is to say that one end of S1 is connected to IO3, and one end of S2 is connected to IO2, and one end of S3 is connected to IO1.
In 3 outer input interfaces, choosing arbitrarily two is one group, altogether chooses 2 groups, and 2 groups of outer input interfaces are incomplete same each other, that is to say that IO1 and IO2 are one group, IO1 and IO3 are one group, and IO1 is connected with the negative pole of D1, and the positive pole of D1 is connected with one end of S4, IO2 is connected with the negative pole of D2, the positive pole of D2 is connected with one end of S4, and IO1 is connected with the negative pole of D3, and the positive pole of D3 is connected with one end of S5, IO3 is connected with the negative pole of D4, and the positive pole of D4 is connected with one end of S5.
It is one group that 3 outer input interfaces are chosen 3, that is to say that IO1, IO2 and IO3 are one group, IO1 is connected with the negative pole of D5, the positive pole of D5 is connected with one end of S6, IO2 is connected with the negative pole of D6, the positive pole of D6 is connected with one end of S6, and IO3 is connected with the negative pole of D7, and the positive pole of D7 is connected with one end of S6.
The other end of described S1, S2, S3, S4, S5 and S6 is all connected to 3V3 power supply.
According to the method described above, 4 outer input interfaces can be extended at most 15 buttons, and when 4 outer input interfaces are extended to 15 buttons, wherein a button of 4 each corresponding directly connections of outer input interface, at this moment expands 4 buttons, then
Figure BDA0000432667900000031
that is to say, during a=2,
Figure BDA0000432667900000032
at this moment expand 6 buttons, during a=3,
Figure BDA0000432667900000033
at this moment expand 4 buttons, during a=4,
Figure BDA0000432667900000034
at this moment expand 1 button, according to the above, the in the situation that of 4 outer input interfaces, can expand at most 15 buttons, also can reduce as required the button of respective numbers.
In like manner, 5 outer input interfaces can be extended at most 31 buttons, can use less outer input interface to expand more button, and software algorithm are simple, processor fast response time by the present invention.

Claims (2)

1. a button expanded circuit, it comprises processor, processor is provided with n outer input interface, wherein n >=2; It is characterized in that:
It also comprises X button, wherein n < X &le; C n 1 + C n 2 + . . . + C n n - 1 + C n n ;
One end of n button in X button is connected to respectively n outer input interface one to one;
In n outer input interface, choosing arbitrarily a is one group, altogether chooses b group, and b group outer input interface is incomplete same each other, wherein
Figure FDA0000432667890000013
a can choose one or more, wherein a outer input interface in any one group of outer input interface is connected to respectively the negative pole of a diode one to one, the positive pole of a diode is all connected to the one end of removing any one button of selected n button in X button, and the other end of a described X button is all connected to power supply.
2. button expanded circuit according to claim 1, is characterized in that:
Described X = C n 1 + C n 2 + . . . + C n n - 1 + C n n , b = C n a , a = { 2,3 , . . . . . . . , n } .
CN201310661289.7A 2013-12-09 2013-12-09 Key extension circuit Pending CN103633983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310661289.7A CN103633983A (en) 2013-12-09 2013-12-09 Key extension circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310661289.7A CN103633983A (en) 2013-12-09 2013-12-09 Key extension circuit

Publications (1)

Publication Number Publication Date
CN103633983A true CN103633983A (en) 2014-03-12

Family

ID=50214678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310661289.7A Pending CN103633983A (en) 2013-12-09 2013-12-09 Key extension circuit

Country Status (1)

Country Link
CN (1) CN103633983A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681519A (en) * 2017-02-15 2017-05-17 深圳市科美集成电路有限公司 Keyboard circuit and keyboard control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102522976A (en) * 2011-11-30 2012-06-27 青岛海信移动通信技术股份有限公司 Key expansion circuit, expansion method and mobile terminal
CN102624372A (en) * 2011-01-31 2012-08-01 苏州三星电子有限公司 A touch button circuit
CN103297020A (en) * 2013-05-14 2013-09-11 福建师范大学 Key circuit capable of increasing quantities of keys
CN203574628U (en) * 2013-12-09 2014-04-30 宁波翼动通讯科技有限公司 Button expansion circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624372A (en) * 2011-01-31 2012-08-01 苏州三星电子有限公司 A touch button circuit
CN102522976A (en) * 2011-11-30 2012-06-27 青岛海信移动通信技术股份有限公司 Key expansion circuit, expansion method and mobile terminal
CN103297020A (en) * 2013-05-14 2013-09-11 福建师范大学 Key circuit capable of increasing quantities of keys
CN203574628U (en) * 2013-12-09 2014-04-30 宁波翼动通讯科技有限公司 Button expansion circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681519A (en) * 2017-02-15 2017-05-17 深圳市科美集成电路有限公司 Keyboard circuit and keyboard control system

Similar Documents

Publication Publication Date Title
Chen et al. Some new inequalities of Simpson’s type for s-convex functions via fractional integrals
NZ601639A (en) Method and system for conducting legal research using clustering analytics
CN203561853U (en) Control circuit
EP2778935A3 (en) Efficient Input/Output (I/O) operations
CN103633983A (en) Key extension circuit
CN203574628U (en) Button expansion circuit
CN202364197U (en) Button detection and LED control circuit
CN202584690U (en) Light-emitting diode (LED) display screen constant-current drive control system
CN202424694U (en) Keyboard scanning circuit saving input/output (I/O) ports
CN104202055B (en) Key circuit for detecting key trigger sate in real time, gamepad and method
CN203166858U (en) Analog switch cascade structure
CN102202118A (en) Power sequence control circuit on camera and mobile phone
CN105183097B (en) A kind of confirmation method of key system input
CN212782003U (en) Intelligent USB concentrator with controllable function
RU2621280C1 (en) Binary number comparator
CN204131504U (en) A kind of key circuit of real-time detection button trigger state and game paddle
CN108600066A (en) A kind of monobus communication means
CN109753314A (en) A kind of configurable process automatic execution method and system
CN102857232A (en) Key detection circuit and key detection method
CN216388083U (en) DPU device based on FPGA
CN204009891U (en) The soft core of a kind of sixteen bit embedded chip
CN203588024U (en) Key expander circuit
CN106227544B (en) A uboot-based interface architecture implementation method
US20140304438A1 (en) Detection system for detecting button being pressed and method thereof
CN105227188A (en) A kind of many key press detecting circuits

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140312