WO2018098620A1 - Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection - Google Patents

Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection Download PDF

Info

Publication number
WO2018098620A1
WO2018098620A1 PCT/CN2016/107679 CN2016107679W WO2018098620A1 WO 2018098620 A1 WO2018098620 A1 WO 2018098620A1 CN 2016107679 W CN2016107679 W CN 2016107679W WO 2018098620 A1 WO2018098620 A1 WO 2018098620A1
Authority
WO
WIPO (PCT)
Prior art keywords
button
matrix
level signal
wire
wires
Prior art date
Application number
PCT/CN2016/107679
Other languages
English (en)
Chinese (zh)
Inventor
王铭
Original Assignee
王铭
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 王铭 filed Critical 王铭
Priority to PCT/CN2016/107679 priority Critical patent/WO2018098620A1/fr
Publication of WO2018098620A1 publication Critical patent/WO2018098620A1/fr

Links

Images

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

Definitions

  • the invention relates to the field of button detection, in particular to a matrix button, a matrix button combination button detecting device, a method and a detecting method for detecting a button combination of the matrix button.
  • the matrix button is a kind of button method that is different from the independent button. Based on the huge number of buttons, the button mode set as an independent button needs to occupy a large number of IO interfaces of the processor or other chips with computing power, in order to reduce the number of IO interfaces used. , usually set to matrix button.
  • the existing matrix button device and matrix button scanning scheme have been very rich and have been applied to many occasions. Despite this, the current programs are not all perfect.
  • the technical problem to be solved by the present invention is to provide a matrix button, a matrix button combination button detecting device, a method, and a detecting method for detecting the button combination of the matrix button, which can scan as many buttons as possible by using a limited number of IO ports. A detection scan of a case where a matrix button of any number and any combination is pressed in a matrix button is implemented.
  • a technical solution adopted by the present invention is to provide a matrix button, comprising: a plurality of buttons arranged in a matrix form, and a wire connecting the plurality of buttons into a matrix form; wherein the button comprises a button switch and a diode, the button switch is connected in series with the diode, and the buttons are arranged in a matrix manner; the first end of the button switch is connected Connected to the cathode of the diode, the second end of the button switch of each column of the matrix array is connected by a first wire, and the anode of the diode of each row of the matrix is connected by a second wire, the first end of each first wire Connected to the third wire, the first end of each second wire is connected to the fourth wire, and a power source is disposed at the connection of the third wire and the fourth wire.
  • a technical solution adopted by the present invention is to provide a detecting device for combining a matrix button, which is used for detecting a plurality of buttons pressed simultaneously in a matrix button, including: an input module, each connected The second end of the first wire is used for inputting a level signal to the first end of the button switch of each column; the control module is connected to the input module for controlling the level signal input by the input module; the detecting module is connected a second end of each of the second wires is configured to detect a level signal outputted by the second end of each of the second wires.
  • a technical solution adopted by the present invention is to provide a method for detecting a combination of a matrix button and a method for detecting that a single button is pressed or at least two buttons are simultaneously pressed.
  • the steps include: inputting a set level signal to the first end of the button switch of each column; detecting a level signal outputted by the second end of each second wire.
  • a technical solution adopted by the present invention is to provide a level input method for detecting a matrix button combination button, and the method includes the following steps: S101: from the first end of each first wire Inputting a low level signal in the matrix button; receiving the output level signal at the second end of each second wire, and determining the type of the output level signal; if the judgment result is the second end of each second wire When the output level signal is a high level signal, the low level signal is input again after the interval time period is set; S102: if the judgment result is the level signal output by one or more of the second ends of the second wire For the low level signal, all the first wires are divided into two groups in the order of arrangement, and step S101 is performed for each group of first wires respectively; S103: steps are continued for one or two sets of first wires outputting a low level signal The grouping in S102, respectively performing step S101 for each set of first wires; S104: grouping into each group of individual one or more sets of first wires, and
  • the matrix button of the present invention comprises: a plurality of buttons arranged in a matrix form, and a wire connecting the plurality of buttons into a matrix form; wherein the button comprises a button switch and a diode, and the button switch is connected in series with the diode And the buttons are arranged in a matrix manner; the first end of the button switch is connected to the cathode of the diode, the second end of the button switch of each column of the matrix array is connected by the first wire, and the anode of the diode of each row of the button is arranged in a matrix The first end of each of the first wires is connected to the third wire, and the first end of each of the second wires is connected to the fourth wire, and a power source is disposed at the connection of the third wire and the fourth wire.
  • the invention it is possible to scan as many keys as possible in the matrix button by using as many buttons as possible by using a limited number of IO ports. Detection scan of the pressed situation.
  • FIG. 1 is a schematic structural view of an embodiment of a matrix button provided by the present invention.
  • FIG. 2 is a schematic structural diagram of a detecting device for a combination of a matrix button and a key provided by the present invention
  • FIG. 3 is a schematic structural diagram of circuit level signal input and detection of a detecting device when a matrix button is combined with a button provided by the present invention
  • FIG. 4 is a schematic structural diagram of circuit level signal input and detection of a detecting device when a matrix button combination button is used in the prior art
  • FIG. 5 is a schematic flow chart of a method for detecting a combination of a matrix button and a key provided by the present invention
  • FIG. 6 is a schematic flow chart of a level input method for detecting a matrix button combination button according to the present invention.
  • FIG. 1 is a schematic structural diagram of an embodiment of a matrix button provided by the present invention.
  • Figure 1 is an example of a 4*4 matrix button.
  • Matrix buttons are often presented in the form of matrix keyboards, which are very common in life. When there are a large number of keys in the keyboard, in order to avoid using too much I/O resources of the processor chip during the scan detection, the keys are usually arranged in a matrix form. In a matrix keyboard, each horizontal line and vertical line are not directly connected at the intersection, but are connected by a button. In this way, each row and each column only needs to use one I/O interface to realize the scanning detection of the matrix key keyboard.
  • the matrix button 100 includes a plurality of buttons 110 arranged in a matrix and a wire 120 connecting the plurality of buttons.
  • the matrix button 110 includes a button switch 111 and a diode 112, and the two are connected in series to form a button 110. All the buttons 110 are arranged in a matrix form.
  • the key switch 111 includes a first end and a first connection to other components The two ends, wherein the first end is connected to the cathode of the diode 112 of the button 110.
  • the wire 120 is used to connect all of the plurality of buttons 110 into a matrix button.
  • the second end of the button switch 111 of each column of the button 110 is connected to a first wire 121.
  • the anode of the diode 112 of each row of buttons 110 is connected to a second wire 122, and the first wire of each first wire 121
  • the first end of the second wire 122 is connected to a fourth wire 124.
  • One end of the third wire 123 and the fourth wire 124 are connected to a power source 130.
  • the power source 130 is used to provide a high height. Level.
  • each of the first wires 121 and the second ends of the second wires 122 are in a floating state.
  • a capacitor C is connected in parallel to each of the pushbutton switches 111 of the matrix button 100, and the capacitance of the capacitor is preferably 10 pF. This capacitor is used to eliminate the jitter generated during the pressing of the push button switch 111 and the pop-up operation.
  • a resistor R is disposed at a position where each of the first wires 121 is connected to the third wire 123, and a position where each of the second wires 122 is connected to the fourth wire.
  • the resistance of the resistor is preferably 10 k ⁇ .
  • the resistor R is R6, R8, R10, R12 and R13-R16 in FIG.
  • the resistor R has the following effects:
  • the push button switch 111 acts as a "weak pull-up".
  • the purpose is to have the default level of the corresponding row and column port high (typically 3.3V, which represents the value "1" in the computer system).
  • the processor reads the level of the row port, if there is no button press, the read level state should be high, preventing the processor from misjudged as low level without any button press. .
  • the key 110 is an improvement to the keys in the conventional conventional key matrix.
  • the main improvement is that a diode 112 is connected in series with the switch button 111, and the cathode of the diode 112 is connected to one end of the push switch 111.
  • the inventor of the present invention finds the inaccuracy of the matrix button scan detection in the prior art, and analyzes the cause of the above inaccuracy. After a large number of experiments and calculations, it is found that the button 110 of the present invention can be used in the key matrix quickly and accurately. Scans out the buttons in the multiple button matrix that are simultaneously pressed.
  • the matrix button of the present invention comprises: a plurality of buttons arranged in a matrix form, and a wire connecting the plurality of buttons into a matrix form; wherein the button comprises a button switch and a diode, and the button switch is connected in series with the diode And the buttons are arranged in a matrix manner; the first end of the button switch is connected to the cathode of the diode, the second end of the button switch of each column of the matrix array is connected by the first wire, and the anode of the diode of each row of the button is arranged in a matrix Pass The first end of each of the first wires is connected to the third wire, the first end of each of the second wires is connected to the fourth wire, and a power source is disposed at the junction of the third wire and the fourth wire.
  • the present invention it is possible to realize a detection scan of a case where a matrix button of any number and any combination is pressed in a matrix button by scanning as many keys as possible using a limited
  • FIG. 2 is a schematic structural diagram of a detecting device for a matrix button combination button provided by the present invention
  • FIG. 3 is a detecting device for a matrix button combination button provided by the present invention.
  • FIG. 4 is a schematic structural diagram of the circuit level signal input and detection of the detecting device when the matrix button combination button is used in the prior art.
  • the detecting device 200 is configured to recognize and determine a plurality of pressed buttons when a single button is pressed or at least two buttons are simultaneously pressed.
  • the set matrix button 100 is an n*m matrix, that is, a button 110 including n columns and m rows.
  • the detecting device 200 includes an input module 210, a control module 220 and a detecting module 230.
  • the input module 210 is connected to the second end of each of the first wires 121 for inputting a level signal to the first end of the button switch 111 of the button 110 of each column.
  • the second ends of the first wire 121 and the second wire 122 of the matrix button 100 are both disposed to be suspended.
  • the second end of each of the first wires 121 is connected to the input module. 210.
  • the input module 210 has at least an input interface equal to the number of the first wires. In the present invention, the number of first wires 121 is equal to the number of columns of the matrix button 100, and the input module 210 includes n input interfaces. After the input module 210 is connected to the second end of the first wire 121, a set level signal is input to the second end of each of the first wires 121.
  • the control module 220 is connected to each input interface of the input module 210 for controlling the input module 210 to input the set level signal.
  • the control module 220 includes at least one level unit 221 and a first encoding unit 222.
  • Each level unit 221 is connected to the input module 210 for inputting a level signal to the input module 210.
  • the level signal is a high level or One of the low levels, the high level and the low level can be 1/0 level, that is, the high level is marked as 1 and the low level is marked as 0.
  • the number of level units 221 should be equal to the number of first wires 121, and each input interface of the input module 211 is connected.
  • the first encoding unit 222 is connected to each level unit 221 for encoding control of the type of the level signal input to the input interface by each level unit 221, so that each level unit 221 inputs the input to the corresponding input interface.
  • Type level signal is connected to each input interface of the input module 210 for controlling the input module 210 to
  • the detecting unit 230 is connected to the second end of each of the second wires 122 for detecting a level signal output from the second end of each of the second wires 122.
  • the detecting module 230 includes at least one receiving unit 231, a determining unit 232, and an output unit 233.
  • Each receiving unit 231 is connected to a second end of a second wire 122 and receives a level signal outputted from the input module 210 and input to the matrix button 100.
  • the receiving unit 231 is connected to the second end of the second wire 122 that is suspended in the matrix button 100.
  • the determining unit 232 is connected to the receiving unit 231 for determining the type of the level signal received by the receiving unit 231.
  • the output unit 233 is configured to determine and output each of the matrix buttons 100 according to the determination result of the determining unit 232. The case where the button is pressed.
  • the first encoding unit 222 of the control module 220 is connected to a single-chip MCU (not shown), and the first encoding unit 222 is controlled by the single-chip microcomputer to cause the level unit 221 to input a specific level signal to different interfaces of the input module 210.
  • the first encoding unit 222 is controlled by the single chip microcomputer to perform encoding, so that the input module 210 inputs a specific level signal to the second end of all the first wires 121.
  • the type of level signal output through the matrix button 100 is received and determined by the detection module 230 at the second end of the second wire 122.
  • the detecting module 230 further includes a second encoding unit 234 for encoding each button in the matrix button 100, so that the output unit 233 outputs the encoded value of the pressed button.
  • the second encoding unit 234 encodes each of the matrix buttons 100 as the buttons SW1-SW16, and the final output unit 233 outputs the result as one or several of the SW1-SW16.
  • the matrix button 100 is set to a 4*4 matrix as shown in FIG.
  • each of the intersections (hereinafter referred to as nodes) of the row and column is placed with one button SW1-SW16.
  • Three of the three nodes are placed on the three nodes, and the corresponding buttons are SW6, SW7, and SW10, indicating that the current state of the above three buttons is pressed.
  • the buttons SW1-SW16 are conventional buttons (that is, only one button switch 111 is included, as shown in FIG.
  • the level unit 221 connected to COL2 during the detection process inputs a signal to COL2.
  • Low level the remaining level unit 122 inputs a high level to its connected COL, and the detecting module 230 detects the level signal of the ROW0-ROW3 output. Since the button SW7 is pressed, the detecting module 230 can detect that the level signal output from the ROW1 is low.
  • each button switch 111 is connected to a diode 112.
  • the serial number of the diode is sequentially set to D1-D16, and the button switch buttons SW1-SW16 are respectively connected, and the capacitors C1-C16 are respectively set and connected to SW1-SW16 respectively.
  • the capacitors C1-C16 play a role in relieving jitter to a certain extent when the button switch is pressed or bounced.
  • SW6, SW7, and SW10 are pressed, when detecting, a low level is input to COL2 through the level unit 221 connected to COL2, and the remaining level units 122 input a high level to the respective connected COL, and the detecting module 230 detects Level signal output from ROW0-ROW3.
  • row ROW1 Since row ROW1 is connected in series with a 10k ohm resistor R8 connected to the power supply to function as a weak pull-up, row ROW1
  • the connected contact point is high by default, but due to the voltage difference between the diodes, the diode is conducting, causing the level of the contact to change from high to low.
  • the contact points on the ROW1 that are in contact with the diodes of the respective nodes are sequentially turned to a low level, so that the detection module 230 receives a low level signal at the output of the ROW1.
  • the detection module 230 detects that only ROW1 is low. The detecting module 230 can accurately determine that the current button switch SW7 must be pressed, and the SW11 is not pressed. By the same token, when the second test is performed, the column of the input low level signal is changed to COL1, and the other column input is set to the high level signal. In the same determination method, the detecting module 230 can judge that the buttons SW6 and SW10 are pressed.
  • the detection module 230 can detect that three buttons have been pressed.
  • the final output unit 233 outputs the pressed keys as SW6, SW7, and SW10.
  • a resistor R' is disposed at the second end of each of the first wire 121 and the second wire 122.
  • the resistance of R' is preferably 100 ⁇ .
  • R' is R1-R4 and R5, R7, R9, and R11 in Fig. 3 .
  • the resistor R' has the following effects:
  • the resistance R' is smaller than R, the voltage difference between the two terminals is small. That is, the potential at one end of the resistor R' is almost identical to the potential at the other end, and the resistor R' functions as a level signal.
  • the resistor R' also plays a certain current limiting effect. If both ROW0 and COL0 are used as inputs, respectively input high level signal and low level signal, when the corresponding node button SW1 is pressed, it is equivalent to R1 and R5, and diode D1 is connected in series between high and low level, resulting in Short circuit. If there is no R1 and R5, since the diode is forward-conducting, the unidirectional resistance between ROW0 and COL0 is almost zero, and the current is large, which will cause damage to the pins of the processor chip. If there are these two resistors, the resistance can reach 200 ohms, which will have a certain current limiting effect.
  • the technical solution of the present embodiment solves the problem that any three buttons are short-circuited when they are pressed at the same time. Due to the action of the diode, the buttons between the row and the row, the column and the column of the button matrix 100 are not affected by the simultaneous pressing, and the detection function of the multi-key combination is realized.
  • the detecting device for the combination of the matrix button of the present invention is configured to detect that a single button is pressed or at least two buttons are simultaneously pressed, including: an input module, connected to the second of each first wire The end is used to input a level signal to the first end of the button switch of each column; the control module is connected to the input module for controlling the level signal input by the input module; the detecting module is connected to each second wire The second end is configured to detect a level signal outputted by the second end of each second wire. According to the present invention, it is possible to realize a detection scan of a case where a matrix button of any number and any combination is pressed in a matrix button by scanning as many keys as possible using a limited number of IO ports.
  • FIG. 5 is a schematic flow chart of a method for detecting a matrix button combination button provided by the present invention.
  • the method is for detecting and determining a plurality of pressed buttons when a single button is pressed or at least two buttons are simultaneously pressed.
  • the key matrix of the present invention is exemplified by an n*m matrix.
  • the steps of the method include:
  • S310 Input a set level signal to the first end of the button switch of each column of the button.
  • a second signal is applied to the second end of each button of the button of each column by a processor connected to the second end of each of the first wires.
  • the second ends of the first and second wires of the matrix button are all set to be suspended.
  • the number of the first wires is equal to the number of columns of the matrix buttons, and the processor is connected to The n input interfaces.
  • the second end of the first wire is connected, and after the encoding operation, the set level signal is input to the second end of each of the first wires.
  • the level signal is one of a high level or a low level, and the high level and the low level may be 1/0 level, that is, the high level is marked as 1 and the low level is marked as 0.
  • the type of the level signal input to the second end of the first wire is coded by the processor, and a level signal of a specified type is input to the second end of the corresponding first wire.
  • S320 Detect a level signal outputted by the second end of each second wire.
  • the level signal After the level signal is input to the second end of the first wire, the level signal output from the second end of each of the second wires is detected. Determine the high and low state of the received level signal.
  • the processor can analyze and determine if the button has been pressed.
  • each key in the matrix button is encoded, and the encoded value of the pressed button is output.
  • each button of the matrix button is coded as the button SW1-SW16, and the final output is one or several of SW1-SW16.
  • the set matrix button is a 4*4 matrix, and one button SW1-SW16 is placed at each intersection of the row and column (hereinafter referred to as a node). Three of the three nodes are placed on the three nodes, and the corresponding buttons are SW6, SW7, and SW10, indicating the button switches that have been pressed in the current button matrix. There are four first wires and two wires, which are set to COL0-COL3 and ROW0-ROW3, respectively. If the buttons SW1-SW16 are regular buttons (ie, only one button switch is included), after SW6, SW7, and SW10 are pressed, when COL2 is detected, a low level is input to COL2, and the remaining inputs are input.
  • the level signal of the ROW0-ROW3 output is detected by the MCU of the single chip microcomputer. Since the button SW7 is pressed, the microcontroller MCU can detect that the level signal output from ROW1 is low. However, since SW6 and SW10 are also pressed, the average level of the two ends of SW6 and SW10 is pulled low to a low level, so that when the COL2 input low level signal and the remaining input high level signals, the final ROW1 and ROW2 are both The output is a low level signal. At this time, the MCU of the MCU cannot judge the switching condition of SW11. It can be further explained that even if the "reverse method" is referred to, all columns are changed to output, and all rows are changed to input. Similarly, it is impossible to determine whether the SW11 button is pressed. This is because the normal matrix button cannot realize the detection function of the combined button.
  • each button switch is connected to a diode, the diode is set to D1-D16, respectively connected to SW1-SW16, and the capacitors C1-C16 are set at the same time, respectively connected to SW1-SW16, and the capacitors C1-C16 are in the button switch
  • SW6 SW7, and SW10 are pressed, when the MCU detects COL2, it inputs a low level to COL2, and the rest inputs a high level.
  • the MCU detects the level signal of ROW0-ROW3 output.
  • the contact point of the diode D7 connected to the weakly pulled-up row ROW1 should be high, but due to the voltage difference of the diode, the diode is conducting, causing the contact point to have a high level to become a low level.
  • the contact point on the ROW1 that is connected to the diode of each node changes to a low level in turn, so that the MCU receives a low level signal at the output of the ROW1.
  • the button switch SW6 and the diodes connected in series have high and low levels at both ends, the contact point on the left side of the SW6 button is not pulled down due to the direction of the diode D6.
  • the MCU of the microcontroller detects that only ROW1 is low.
  • the MCU of the MCU can accurately judge that the current button switch SW7 must be pressed, and the SW11 is not pressed.
  • the MCU of the single chip can judge that the buttons SW6 and SW10 are pressed. Through two tests, the MCU can detect that 3 buttons have been pressed (after all, it is not the same time detection in the strict sense, but the time interval between the two times is very short, which can be regarded as "simultaneous").
  • the buttons that the final output is pressed are SW6, SW7, and SW10.
  • a resistor R' is disposed at the second end of each of the first wire and the second wire.
  • the resistance of R' is preferably 100 ⁇ .
  • R' is R1-R4 and R5, R7, R9, and R11 in Fig. 3 .
  • the resistor R' has the following effects:
  • the resistance R' is smaller than R, the voltage difference between the two terminals is small. That is, the voltage at one end of the resistor R' is almost the same as the voltage at the other end, and it can be regarded as a function of the level transmission of the wire.
  • Both ROW0 and COL0 are used as inputs, respectively inputting a high level signal and a low level signal.
  • the corresponding node button SW33 When the corresponding node button SW33 is pressed, it is equivalent to R1 and R5, and the diode D1 is connected in series between the high and low levels, causing a short circuit. If there is no R1 and R5, the unidirectional resistance between the row and column ports is almost zero, and the current is large, which will cause damage to the pins of the processor chip. If there are these two resistors, the resistance can reach 200 ohms, which will have a certain current limiting effect.
  • the technical solution of the present embodiment solves the problem that the three buttons set as described above are simultaneously short-circuited and connected together. It is precisely because the diode makes the buttons between the rows and rows, columns and columns not interfere with each other due to simultaneous pressing, and the detection function of the multi-key combination is realized.
  • the detecting method for the matrix button combination button of the present invention is for detecting a plurality of buttons pressed simultaneously in the matrix button, comprising: inputting a setting to the first end of the button switch of each column of the button Level signal; detecting a level signal outputted by the second end of each second wire.
  • FIG. 6 is a schematic flow chart of a level input method for detecting a matrix button combination button according to the present invention.
  • the method is used for encoding the level input of the detection of an n*m matrix button combination button.
  • the steps of the method include:
  • S101 input a low level signal from the first end of each first wire to the matrix button; receive the output level signal at the second end of each second wire, and determine the type of the output level signal; If the result of the determination is that the level signal outputted by the second end of each second wire is a high level signal, the low level signal is input again after the interval is set.
  • the matrix button is 16 columns * 16 rows.
  • the serial number of the column is: COL0 ⁇ COL15; for the same reason, the row number is: ROW0 ⁇ ROW15.
  • a low level signal is input from the first end of each first wire to the matrix button.
  • the processor inputs a low level signal to all column ports (COL0 to COL15), and causes the processor to check all the row ports. If all the row port outputs are high, it jumps out directly and at the set time. The aforementioned steps are repeated again at intervals.
  • Step S102 If the result of the determination is that the level signal output by one or more of the second ends of the second wire is a low level signal, all the first wires are divided into two groups according to the arrangement order, respectively for each group of the first wires. Step S101 is performed.
  • the processor is in the same way
  • the low-level signals are input to the second ends of the first wires of the half of the matrix buttons corresponding to (COL0 to COL7) and (COL8 to COL15), respectively.
  • step S103 Continue to perform the grouping in step S102 for one or two sets of first wires outputting a low level signal, and perform step S101 for each set of first wires respectively.
  • each group has an output low-level signal output, continue to divide the matrix buttons into (col0, col1), (col2, col3), (col4, col5), (col6, col7) (col8, col9), (col10) , col11) (col12, col13), (col14, col15), each time a single group of columns input low-level signal to determine. If one or more of the outputs are high level signals, the matrix button of the group need not be detected, and the matrix button group that outputs the low level signal continues to be grouped.
  • S104 grouping into each group of a single group or groups of first wires, and inputting a low level signal to a second end of each group of the single group or groups of first wires to determine a second output low level signal
  • the wire determines the position of the pressed button through the row and column intersections of the matrix buttons.
  • the group with low-level output in each group continues to detect.
  • the detection method is to input a low-level signal to the matrix button of a single column, and determine the level signal type of the output.
  • the second wire of the low-level signal is outputted, and the position of the pressed button is determined by the intersection of the matrix buttons.
  • each button in the matrix button is encoded, and finally the number of the pressed button is output to accurately determine the position of the pressed button.
  • the above method is a preferred embodiment of the present invention for performing key matrix scanning detection.
  • the detection may be performed by column-by-column scanning or by the parity value of the number of columns.
  • the purpose is to scan the matrix button in the shortest time, and get the combination of the button in the current matrix button in the shortest time.
  • the level input method for detecting the matrix button combination button of the present invention is used for encoding the level input of the detection of an n*m matrix button combination button.
  • the steps of the method include: S101: Inputting a low level signal from the first end of each first wire to the matrix button; receiving an output level signal at the second end of each second wire, and determining the type of the output level signal; The result is that the level signal outputted by the second end of each second wire is When the signal is a high level, the low level signal is input again after the time period is set; S102: if the result of the determination is that the level signal output by one or more of the second ends of the second wire is a low level signal, All the first wires are divided into two groups according to the arrangement order, and step S101 is performed for each group of first wires respectively; S103: the grouping in step S102 is continued for one or two sets of first wires outputting the low level signal, respectively Performing step S101 for each set of first wires; S104: grouping into

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

L'invention concerne une matrice de touches (100), un dispositif de détection de combinaison de touches et un procédé associé, ainsi qu'un procédé de détection pour la détection. La matrice de touches (100) comprend une pluralité de touches (110) agencées sous une forme de réseau, et comprend des fils conducteurs (120) pour relier la pluralité de touches (110) pour constituer une forme de réseau. Les touches (110) comprennent des commutateurs de touches (111) et des diodes (112). Les commutateurs de touches (111) sont reliés en série à la diode (112), et les touches (110) sont agencées sous une forme de réseau. Les premières extrémités des commutateurs de touches (111) sont reliées aux cathodes des diodes (112). Des secondes extrémités des commutateurs de touche (111) de chaque colonne de touches (110) agencées sous une forme de réseau sont reliées au moyen de premiers fils conducteurs (121), et des anodes des diodes (112) de chaque rangée de touches (110) agencées sous une forme de réseau sont reliées au moyen de seconds fils conducteurs (122). Une première extrémité de chaque premier fil conducteur (121) est reliée à un troisième fil conducteur (123), une première extrémité de chaque second fil conducteur (122) est reliée à un quatrième fil conducteur (124), et une alimentation électrique (130) est disposée au niveau d'une position de liaison entre le troisième fil conducteur (123) et le quatrième fil conducteur (124). Par conséquent, autant de touches (110) que possible peuvent être balayées à l'aide d'une quantité limitée d'interfaces d'entrée/sortie, et toute touche dans la matrice de touches (100) ainsi qu'une combinaison de touches (110) de toutes touches (110) peuvent être détectées et balayées.
PCT/CN2016/107679 2016-11-29 2016-11-29 Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection WO2018098620A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/107679 WO2018098620A1 (fr) 2016-11-29 2016-11-29 Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/107679 WO2018098620A1 (fr) 2016-11-29 2016-11-29 Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection

Publications (1)

Publication Number Publication Date
WO2018098620A1 true WO2018098620A1 (fr) 2018-06-07

Family

ID=62241024

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/107679 WO2018098620A1 (fr) 2016-11-29 2016-11-29 Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection

Country Status (1)

Country Link
WO (1) WO2018098620A1 (fr)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361400A (zh) * 2018-12-03 2019-02-19 天津七二移动通信有限公司 一种智能化按键模块及其实现方法
CN109698705A (zh) * 2019-01-09 2019-04-30 上海中基国威电子股份有限公司 一种多线按键判断系统
CN111797054A (zh) * 2020-07-14 2020-10-20 北京百瑞互联技术有限公司 一种soc按键开关机检测电路及soc系统
CN111817707A (zh) * 2020-07-28 2020-10-23 深圳大趋智能科技有限公司 利用单个io实现多个按键功能的方法及装置
CN112290930A (zh) * 2020-10-22 2021-01-29 珠海格力电器股份有限公司 按键检测电路以及家用电器
CN112713902A (zh) * 2020-12-07 2021-04-27 珠海格力电器股份有限公司 确定按键扫描键值的方法、系统、遥控器、介质及应用
CN113341300A (zh) * 2021-06-23 2021-09-03 紫光展讯通信(惠州)有限公司 矩阵按键电路自动检测方法、系统、介质及设备
CN114442004A (zh) * 2022-04-08 2022-05-06 河北南皮铁路器材有限责任公司 继电器组合配线自动校验台

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0359669B1 (fr) * 1988-09-14 1996-03-27 Fujitsu Limited Dispositif de détection d'une opération d'entrée dans une matrice de commutation
CN1598740A (zh) * 2004-08-20 2005-03-23 王宝库 一种计算机键盘及操作方法
CN101079637A (zh) * 2007-05-24 2007-11-28 四川长虹电器股份有限公司 按键系统及其检测方法
CN203071916U (zh) * 2013-01-16 2013-07-17 深圳市怡化电脑有限公司 一种可以实现多按键检测的金属加密密码键盘扫描电路

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0359669B1 (fr) * 1988-09-14 1996-03-27 Fujitsu Limited Dispositif de détection d'une opération d'entrée dans une matrice de commutation
CN1598740A (zh) * 2004-08-20 2005-03-23 王宝库 一种计算机键盘及操作方法
CN101079637A (zh) * 2007-05-24 2007-11-28 四川长虹电器股份有限公司 按键系统及其检测方法
CN203071916U (zh) * 2013-01-16 2013-07-17 深圳市怡化电脑有限公司 一种可以实现多按键检测的金属加密密码键盘扫描电路

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361400A (zh) * 2018-12-03 2019-02-19 天津七二移动通信有限公司 一种智能化按键模块及其实现方法
CN109698705A (zh) * 2019-01-09 2019-04-30 上海中基国威电子股份有限公司 一种多线按键判断系统
CN111797054A (zh) * 2020-07-14 2020-10-20 北京百瑞互联技术有限公司 一种soc按键开关机检测电路及soc系统
CN111797054B (zh) * 2020-07-14 2023-11-03 北京百瑞互联技术股份有限公司 一种soc按键开关机检测电路及soc系统
CN111817707A (zh) * 2020-07-28 2020-10-23 深圳大趋智能科技有限公司 利用单个io实现多个按键功能的方法及装置
CN112290930A (zh) * 2020-10-22 2021-01-29 珠海格力电器股份有限公司 按键检测电路以及家用电器
CN112713902A (zh) * 2020-12-07 2021-04-27 珠海格力电器股份有限公司 确定按键扫描键值的方法、系统、遥控器、介质及应用
CN113341300A (zh) * 2021-06-23 2021-09-03 紫光展讯通信(惠州)有限公司 矩阵按键电路自动检测方法、系统、介质及设备
CN113341300B (zh) * 2021-06-23 2023-03-03 紫光展讯通信(惠州)有限公司 矩阵按键电路自动检测方法、装置、介质及设备
CN114442004A (zh) * 2022-04-08 2022-05-06 河北南皮铁路器材有限责任公司 继电器组合配线自动校验台

Similar Documents

Publication Publication Date Title
WO2018098620A1 (fr) Matrice de touches, dispositif de détection de combinaison de touches et procédé associé, et procédé de détection pour la détection
CN100592637C (zh) 键盘扫描电路及方法
US8780048B2 (en) Membrane keyboard scan circuit, scan method and keyboard having the same
JP2800233B2 (ja) Ad変換器
CN102075194B (zh) 键盘扫描电路和方法及电子设备
US8314723B2 (en) Ghost key detecting circuit and related method
US8248276B2 (en) Scanning circuit and scanning method for keyboard
EP0436555A1 (fr) Convertisseur analogique-numerique a risque d'erreurs reduit
CN101860369A (zh) 矩阵键盘及其扫描方法
CN107764431B (zh) 芯片内核温度检测电路
CN105628263A (zh) 一种压敏传感器阵列的信号处理电路及方法
CN102857232B (zh) 一种按键检测电路及检测方法
CN104423616B (zh) 输入装置及控制单元
CN101599770B (zh) 一种键盘及键盘检测方法
CN202841104U (zh) 一种按键检测电路
US10817075B2 (en) Keyboard control system and computer input system allowing a single pin to correspond to a single key when pressed on the keyboard key
US9360949B2 (en) Human interface device
CN212180969U (zh) 按键检测电路
CN214670202U (zh) 一种单片机按键电路
CN106569001B (zh) 一种低功耗电桥阵列信号处理电路
TW201339900A (zh) 鍵盤掃描方法及應用該方法之鍵盤
CN218850757U (zh) 一种按键扫描电路
TWI832468B (zh) 防鬼鍵電路
TWI776728B (zh) 觸控設備及其觸控面板
JPS5816021Y2 (ja) キ−の2重押下げ検知装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16923005

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16923005

Country of ref document: EP

Kind code of ref document: A1