CN110995276A - Three-line key scanning method for T-type scanning key expansion - Google Patents

Three-line key scanning method for T-type scanning key expansion Download PDF

Info

Publication number
CN110995276A
CN110995276A CN201910366515.6A CN201910366515A CN110995276A CN 110995276 A CN110995276 A CN 110995276A CN 201910366515 A CN201910366515 A CN 201910366515A CN 110995276 A CN110995276 A CN 110995276A
Authority
CN
China
Prior art keywords
key
scanning
port
keys
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
Application number
CN201910366515.6A
Other languages
Chinese (zh)
Other versions
CN110995276B (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.)
Guangzhou Anguang Electronic Technology Co ltd
Original Assignee
Guangzhou Anguang Electronic Technology 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 Guangzhou Anguang Electronic Technology Co ltd filed Critical Guangzhou Anguang Electronic Technology Co ltd
Priority to CN201910366515.6A priority Critical patent/CN110995276B/en
Publication of CN110995276A publication Critical patent/CN110995276A/en
Application granted granted Critical
Publication of CN110995276B publication Critical patent/CN110995276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/20Dynamic coding, i.e. by key scanning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to the technical field of remote controllers, in particular to a three-line key scanning method for T-type scanning key expansion, which comprises the following steps: the method comprises the following steps: under the condition that the original T scanning structure of the traditional remote controller can not be changed, a key for scanning three lines is added to form a three-line key scanning mode; step two: in the three-wire key scanning mode in the first step, one port is extracted from the port of the original T scanning structure to serve as a public port, whether the port receives a key signal or not is preferentially detected during key scanning, if the key signal is received, the pressed key is considered to be a three-wire key, and then the other input port is detected to receive the key signal, so that which three-wire key is pressed can be determined; if the public port does not detect the port signal, other ports are continuously detected, and whether a key is pressed down is judged; the method has the advantage that the number of keys can be increased to the maximum under the condition of the same pin number.

Description

Three-line key scanning method for T-type scanning key expansion
Technical Field
The invention relates to the technical field of remote controllers, in particular to a three-line key scanning method for T-type scanning key expansion.
Background
The remote controller keyboard scanning is generally divided into two scanning modes: matrix scanning and T-scan. In the same I/O port, the T-type scanning mode can realize more keys than the matrix scanning mode. Generally, in a television or a set top box remote controller, a T-shaped scanning mode is adopted due to the fact that the number of keys is large; in the air conditioner remote controller, the number of keys is less, and a matrix type scanning mode is more. The packaging form of the chip is more than that of SOP16 now, namely the pin number of the chip is 16. In the key design, two ports are combined into one key. The driver brings innovation on the basis of multiple experiments, and whether the function development of multiple keys can be realized under the condition of reducing I/O pins is achieved.
Disclosure of Invention
The present invention is directed to a three-line key scanning method for T-scan key expansion, which overcomes the drawbacks and disadvantages of the prior art.
In order to achieve the purpose, the invention adopts the technical scheme that:
the invention relates to a three-line key scanning method for T-type scanning key expansion, which comprises the following steps:
the method comprises the following steps: under the condition that the original T scanning structure of the traditional remote controller can not be changed, aiming at the scanning mode of 'two-line key' of the traditional remote controller, a key for scanning three lines is added to form a three-line key scanning mode;
step two: in the three-wire key scanning mode in the first step, one port is extracted from the port of the original T scanning structure to serve as a public port, whether the port receives a key signal or not is preferentially detected during key scanning, if the key signal is received, the pressed key is considered to be a three-wire key, and then the other input port is detected to receive the key signal, so that which three-wire key is pressed can be determined; if the public port does not detect the port signal, other ports are continuously detected, and whether a key is pressed down is judged;
step three: in the three-line key scanning mode in the first step, the design method of the number of keys is as follows:
(1) aiming at n pins, under the condition that the n pins participate in T-type scanning of the traditional remote controller in the step one, n (n-1)/2 keys are realized;
(2) in the three-wire key scanning mode in the second step, one port is used as a public port, namely one pin is used as a public pin, so that the number of the rest pins is n-1, and the rest n-1 pins are subjected to T-type scanning to realize (n-1) (n-2) keys;
(3) and (3) aiming at the number of n (n-1)/2 keys and (n-1) (n-2) keys in the steps (1) and (2), when n is larger than 4, the number of keys obtained by the three-line key scanning mode in the step two is superior to the number of keys formed by the original T scanning mode of the traditional remote controller.
The invention has the beneficial effects that: the three-wire key scanning method for the T-type scanning key expansion adopts a three-wire key mode, and can maximize the number of keys under the condition of the same pin number, thereby facilitating the remote controller to greatly expand the application range of the remote controller according to different electrical appliance requirements.
Drawings
FIG. 1 is a circuit schematic of a conventional T-scan;
FIG. 2 is a schematic diagram of a three line scan non-common terminal portion circuit of the present invention;
FIG. 3 is a schematic diagram of the three line scanning common terminal portion circuit of the present invention;
FIG. 4 is a system connection diagram of the present invention;
FIG. 5 is a logic topology diagram determined by the routine of the present invention;
FIG. 6 is a diagram of the bond wires in the conventional T-scan circuit of the present invention and in the three-line scan non-common terminal portion of the present design;
fig. 7 is a diagram of the on-press wiring connections of the common end portion of the three-line scan of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings.
As shown in fig. 1 to 5, the three-line key scanning method for T-scan key expansion according to the present invention adopts the following steps:
the method comprises the following steps: under the condition that the original T scanning structure of the traditional remote controller can not be changed, aiming at the scanning mode of 'two-line key' of the traditional remote controller, a key for scanning three lines is added to form a three-line key scanning mode;
step two: in the three-wire key scanning mode in the first step, one port is extracted from the port of the original T scanning structure to be used as a public port, namely one pin is extracted from the pin of the original T scanning structure in the first step to be used as a public pin; when the keys are scanned, whether the port receives the key signal or not is preferentially detected, if the key signal is received, the pressed key can be considered as a three-wire key, and then the other input port is detected to receive the key signal, so that which three-wire key is pressed can be determined; if the public port does not detect the port signal, other ports are continuously detected, and whether a key is pressed down is judged;
step three: in the three-line key scanning mode in the first step, the design method of the number of keys is as follows:
(1) aiming at n pins, under the condition that the n pins participate in T-type scanning of the traditional remote controller in the step one, n (n-1)/2 keys are realized;
(2) in the three-wire key scanning mode in the second step, one port is used as a public port, namely one pin is used as a public pin, so that the number of the rest pins is n-1, and the rest n-1 pins are subjected to T-type scanning to realize (n-1) (n-2) keys;
(3) and (3) aiming at the number of n (n-1)/2 keys and (n-1) (n-2) keys in the steps (1) and (2), when n is larger than 4, the number of the keys obtained by the three-line key scanning mode in the step two is superior to the number of the keys formed by the original T scanning of the traditional remote controller.
The specific embodiment of the invention is as follows:
the sample chosen for this design is an 11-pin chip. As shown in fig. 1, according to the original T-type scanning mode of the conventional remote controller, at most 44 keys can be scanned; the scheme of the number of keys which can be realized in this way cannot meet the requirement of development of a large number of televisions or set top box remote controllers. The design introduces a three-wire key mode, and on the basis of the original two-wire key scheme, the pin 2 of the IC is independently taken out to be used as a public end expansion key;
wherein: FIG. 2 shows a portion where the common terminal is not used, and there are 35 keys;
wherein: the pin 2 shown in fig. 3 is used as a common terminal to be connected with other T-type scanning nodes, and 35 keys are also arranged, so that 70 keys can be developed;
wherein: the key structure of the common terminal part is different from that of the non-common terminal part, and a three-line conducting switch (one extension line is added) is adopted, as shown in the key structure diagram of fig. 3.
The design further explains the three-line scanning mode and the original T-type sub-scanning mode; the description is as follows:
as shown in the system connection diagram of fig. 4. The original T-type scanning pin is a chip pin 3, a chip pin 4 and a key 2, the newly introduced three-line scanning is formed by the key 1, the chip pin 2 serving as a public end, the chip pin 3 and the chip pin 4, compared with the original T-type scanning, the logic of key judgment is adjusted, a judgment whether the chip pin 2 is connected or not needs to be added, and whether the key 1 or the key 2 is connected or not is distinguished by judging whether the pin 2 is connected or not; the program judgment logic is as shown in fig. 5, and the T-scan is performed, the key is detected, whether the terminal is a public terminal is judged, then the table is looked up to locate the key, and finally the key function is realized by emitting red external codes.
FIG. 6 shows the connection diagram of the key lead of the conventional T-scan circuit and the three-line scan non-common terminal of the present design; the two pins of the key 1 are connected with two leads I2. FIG. 7 is a schematic diagram of the wiring connections of the common end portion of the three-line scan of the present invention; a common pin is added on two pins of the key 1, and then the common pin is connected with the expansion line 3 to form a three-line scanning mode, so that three lines are realized to position the key.
The invention has the following advantages:
1. the multiplexing efficiency of the I/O port of the IC is improved;
2. more keys can be integrated under the condition of the same pin number in service, the usable field of the IC is increased, and the sale range of the IC is widened;
3. in terms of cost, the use requirement of the IC which needs to be packaged by SOP16 and the like can be met by using the package with fewer pins, so that the packaging cost is reduced.
The invention relates to a three-line key scanning method for T-type scanning key expansion, which adopts a three-line key structure, namely, a key is formed by three ports, one port is a public port, the original scanning mode that two ports form one key is reserved, and the method can maximize the number of keys under the condition of the same pin number, thereby facilitating a remote controller to greatly expand the application range of the remote controller according to different electrical appliance requirements.
The above description is only a preferred embodiment of the present invention, and all equivalent changes or modifications of the structure, characteristics and principles described in the present invention are included in the scope of the present invention.

Claims (1)

1. A three-line key scanning method for T-type scanning key expansion is characterized in that: the method comprises the following steps:
the method comprises the following steps: under the condition that the original T scanning structure of the traditional remote controller can not be changed, aiming at the scanning mode of 'two-line key' of the traditional remote controller, a key for scanning three lines is added to form a three-line key scanning mode;
step two: in the three-wire key scanning mode in the first step, one port is extracted from the port of the original T scanning structure to serve as a public port, whether the port receives a key signal or not is preferentially detected during key scanning, if the key signal is received, the pressed key is considered to be a three-wire key, and then the other input port is detected to receive the key signal, so that which three-wire key is pressed can be determined; if the public port does not detect the port signal, other ports are continuously detected, and whether a key is pressed down is judged;
step three: in the three-line key scanning mode in the first step, the design method of the number of keys is as follows:
(1) aiming at n pins, under the condition that the n pins participate in T-type scanning of the traditional remote controller in the step one, n (n-1)/2 keys are realized;
(2) in the three-wire key scanning mode in the second step, one port is used as a public port, namely one pin is used as a public pin, so that the number of the rest pins is n-1, and the rest n-1 pins are subjected to T-type scanning to realize (n-1) (n-2) keys;
(3) and (3) aiming at the number of n (n-1)/2 keys and (n-1) (n-2) keys in the steps (1) and (2), when n is larger than 4, the number of keys obtained by the three-line key scanning mode in the step two is superior to the number of keys formed by the original T scanning mode of the traditional remote controller.
CN201910366515.6A 2019-05-05 2019-05-05 Three-wire key scanning method for T-shaped scanning key expansion Active CN110995276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910366515.6A CN110995276B (en) 2019-05-05 2019-05-05 Three-wire key scanning method for T-shaped scanning key expansion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910366515.6A CN110995276B (en) 2019-05-05 2019-05-05 Three-wire key scanning method for T-shaped scanning key expansion

Publications (2)

Publication Number Publication Date
CN110995276A true CN110995276A (en) 2020-04-10
CN110995276B CN110995276B (en) 2024-05-28

Family

ID=70081712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910366515.6A Active CN110995276B (en) 2019-05-05 2019-05-05 Three-wire key scanning method for T-shaped scanning key expansion

Country Status (1)

Country Link
CN (1) CN110995276B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63268337A (en) * 1987-04-25 1988-11-07 Matsushita Electric Ind Co Ltd Key scan expanding device for integrated circuit for telephone control
CN101013896A (en) * 2006-11-01 2007-08-08 深圳市菉华半导体有限公司 Keyboard scanning circuit and scanning method thereof
CN101888250A (en) * 2010-06-03 2010-11-17 无锡力芯微电子股份有限公司 Key system and method thereof
CN102289293A (en) * 2011-06-28 2011-12-21 埃派克森微电子(上海)股份有限公司 Press key detection device and method
CN103354455A (en) * 2013-08-05 2013-10-16 杭州士兰微电子股份有限公司 Key scanning method and circuit of triangular keyboard and triangular keyboard device
CN204481799U (en) * 2015-03-24 2015-07-15 深圳市明芯微电子有限公司 A kind of keyboard scanning circuit
CN210867651U (en) * 2019-05-05 2020-06-26 广州安广电子科技股份有限公司 Three-line key scanning device for T-type scanning key expansion

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63268337A (en) * 1987-04-25 1988-11-07 Matsushita Electric Ind Co Ltd Key scan expanding device for integrated circuit for telephone control
CN101013896A (en) * 2006-11-01 2007-08-08 深圳市菉华半导体有限公司 Keyboard scanning circuit and scanning method thereof
CN101888250A (en) * 2010-06-03 2010-11-17 无锡力芯微电子股份有限公司 Key system and method thereof
CN102289293A (en) * 2011-06-28 2011-12-21 埃派克森微电子(上海)股份有限公司 Press key detection device and method
CN103354455A (en) * 2013-08-05 2013-10-16 杭州士兰微电子股份有限公司 Key scanning method and circuit of triangular keyboard and triangular keyboard device
CN204481799U (en) * 2015-03-24 2015-07-15 深圳市明芯微电子有限公司 A kind of keyboard scanning circuit
CN210867651U (en) * 2019-05-05 2020-06-26 广州安广电子科技股份有限公司 Three-line key scanning device for T-type scanning key expansion

Also Published As

Publication number Publication date
CN110995276B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN100592637C (en) Keyboard scanning circuit and method
CN101938077B (en) Method for sensing and auto switching between two USB input ports to a single port on the PDA
CN101394185A (en) Press-key detection circuit and method thereof
CN101795139A (en) Method and circuit for detecting press key
CN103678226A (en) General purpose input/output (GPIO) port reuse circuit and method of chip
CN210867651U (en) Three-line key scanning device for T-type scanning key expansion
CN110995276A (en) Three-line key scanning method for T-type scanning key expansion
CN102833611B (en) The method of Set Top Box and control economize on electricity thereof
CN106338938B (en) A kind of backplane bus communication addressing system and method
CN102571070A (en) Pin sharing circuit, pin sharing method and integrated circuit using pin sharing circuit and method
CN106288189A (en) Air-conditioning fault detection method and device
CN108964431A (en) Protection circuit and method under a kind of power supply when electricity
CN218162642U (en) Multichannel AV + HDMI video acquisition module
JP2003023473A (en) Physical layer chip for ieee1394 standards, and testing method therefor
CN220730304U (en) Acquisition circuit of switching value signal and elevator controller
KR101062874B1 (en) Automatic address allocation method for light control module
CN102565694A (en) Non-AD-port key detection circuit and detection method thereof
CN212019705U (en) Interface circuit and welding power supply
CN220961620U (en) Wiring device
CN214670202U (en) Single-chip microcomputer key circuit
CN214707178U (en) Remote regulation and control type automatic parallel operation generator set
CN103810130B (en) Data transmission selection circuit and method
CN209015131U (en) Software upgrading circuit and electronic product
CN207835477U (en) A kind of network switching device
KR200215652Y1 (en) A communications line terminal board of a module ader style based on PCB circuit constitution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant