WO2020243952A1 - 一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备 - Google Patents

一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备 Download PDF

Info

Publication number
WO2020243952A1
WO2020243952A1 PCT/CN2019/090357 CN2019090357W WO2020243952A1 WO 2020243952 A1 WO2020243952 A1 WO 2020243952A1 CN 2019090357 W CN2019090357 W CN 2019090357W WO 2020243952 A1 WO2020243952 A1 WO 2020243952A1
Authority
WO
WIPO (PCT)
Prior art keywords
scan
scanning
lines
main
key
Prior art date
Application number
PCT/CN2019/090357
Other languages
English (en)
French (fr)
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/CN2019/090357 priority Critical patent/WO2020243952A1/zh
Priority to EP19932066.4A priority patent/EP3982543A4/en
Priority to US17/056,761 priority patent/US11290126B2/en
Publication of WO2020243952A1 publication Critical patent/WO2020243952A1/zh
Priority to US17/671,620 priority patent/US20220171472A1/en

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
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • 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
    • G06F3/0219Special purpose keyboards
    • 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/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • 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/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • 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

Definitions

  • the present invention relates to a key scanning, and in particular to a key scanning method that performs interspersed multiple scanning of key keys to shorten the scanning period, a scanning method used in a key scanning circuit, and an input device.
  • e-sports industry not only drives the wave of digital competitions, but also drives the advancement of hardware.
  • a mechanical keyboard that responds quickly to keystrokes and is durable and reliable even after a large number of hits is absolutely indispensable.
  • e-sports players usually only use specific keys on the keyboard to play related e-sports games.
  • most of the keyboards dedicated to gaming use the mechanical structure or material of the keys to shorten the response time of the overall keys.
  • an embodiment of the present invention provides a button scanning method, which is suitable for an input device with multiple buttons, a part of the multiple buttons forms a first button group, and another part of the multiple buttons forms The second button group, and the input device further has a plurality of scan lines for scanning the plurality of buttons and a plurality of sensing signal lines corresponding to the plurality of buttons, and the plurality of scan lines includes a first main scan Line and multiple secondary scan lines, wherein the first main scan line is electrically connected to the first button group, the multiple secondary scan lines are electrically connected to the second button group, and the button scanning method Including: executing a first scan mode, the first scan mode includes: executing a first scan program, the first scan program includes triggering the first main scan line, and reading the electrical power of the plurality of sensing signal lines Signal to determine whether a button in the first button group is triggered; and execute a second scan program, where the second scan program is to trigger at least one of the plurality of secondary scan lines, and read the The electrical signals of
  • the embodiment of the present invention further provides a scanning method used in a key scanning circuit
  • the key scanning circuit can scan a first key group and a second key group
  • the first key group includes X priority keys
  • the second The button group includes Y secondary buttons
  • the button scanning circuit includes M main scanning lines Sa(1) to Sa(M), N secondary scanning lines Sb(1) to Sb(N), and multiple sensing signal lines ,
  • X, Y, M, and N are positive integers
  • the M main scan lines Sa(1) to Sa(M) are electrically connected to the X priority buttons
  • the N sub scan lines Sb(1) ) To Sb(N) are electrically connected to the Y secondary keys
  • the scanning method includes the following steps: step (1), start a scanning cycle, and set the initial value of the number of main scanning times j to 0; step (2a) ), judge whether the main scan times j is equal to the main scan default upper limit Jmax, where Jmax is a positive integer, if yes, execute step (3), if not, execute step
  • An embodiment of the present invention provides an input device, including: a key scan circuit, the key scan circuit includes M main scan lines Sa(1) to Sa(M), N sub scan lines Sb(1) to Sb(N ) And multiple sensing signal lines, where M and N are positive integers; the first button group, the first button group includes X priority buttons, the M main scan lines Sa(1) to Sa(M) Is connected to the X priority keys, where X is a positive integer; and a second key group, the second key group includes Y secondary keys, the N secondary scan lines Sb(1) to Sb(N ) Electrically connected to the Y secondary keys, where Y is a positive integer; wherein the key scanning circuit performs the following steps: step (1), start the scanning cycle, and set the initial value of the main scanning number j to 0; Step (2a), judge whether the main scan times j is equal to the main scan default upper limit Jmax, where Jmax is a positive integer; if yes, go to step (3), if not, go to step (2b); step (2b)
  • An embodiment of the present invention further provides an input device, including: a key scanning circuit, the key scanning circuit includes N+1 scanning lines Row0 to RowN, and a plurality of sensing signal lines, N is a positive integer; wherein the key scanning circuit The circuit executes the following steps: step (1), start a scan cycle, determine whether the input device is currently in one of the first scan mode, the second scan mode, or the third scan mode, and perform steps (2) and steps accordingly.
  • step (3) executed when the input device is in the first scan mode: the key scan circuit triggers one of the plurality of scan lines Row0 to RowN in turn until Until each of the plurality of scan lines is triggered, read the electrical signals of the plurality of sensing signal lines, detect whether a button in the input device is triggered, and end the scan cycle; step (3)
  • step (3a) the key scan circuit defines the scan line Row0 as the first main scan line Sa(1), and sets the scan lines Row1 to RowN Defined as N sub-scanning lines Sb(1) to Sb(N); in step (3b), the key scanning circuit defines the X1 keys electrically connected to the first main scanning line Sa(1) as the first A button group, and the remaining Y1 buttons that are not electrically connected to the first main scan line Sa(1) are defined as the second button group, X1 and Y1 are positive integers; step (3c), set the main scan The initial value of the number of times j is 0
  • the key keys or commonly used keys are scanned multiple times, and the key keys are also scanned.
  • the line increases the number of scans to shorten the scan period of these key keys, so as to scan these key keys at a faster speed. In this way, the scanning time of these key keys is greatly shortened, and the reaction time of these key keys is accelerated.
  • FIG. 1 is a schematic flowchart of a key scan method for executing a first scan mode and a second scan mode according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a key scan method for executing the first scan mode, the second scan mode, and the third scan mode according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a scanning method used in a key scanning circuit according to another embodiment of the present invention.
  • FIG. 4A is a schematic diagram illustrating that a keyboard can use a 6*21 key matrix according to another embodiment of the present invention.
  • FIG. 4B is a schematic diagram illustrating that a keyboard in the first scan mode can use a 6*21 key matrix according to another embodiment of the present invention.
  • FIG. 4C is a schematic diagram illustrating that a keyboard in the second scan mode can use a 6*21 key matrix according to another embodiment of the present invention.
  • Fig. 5 is a block diagram of a keyboard input device according to an embodiment of the present invention.
  • the input device has two scanning modes, corresponding to two key groups respectively.
  • Fig. 6 is a block diagram of another keyboard input device according to the present invention.
  • the input device has three scanning modes, corresponding to three key groups respectively.
  • FIG. 7A is a block diagram of another keyboard input device according to the present invention, suitable for the first scanning mode.
  • FIG. 7B is a block diagram of another keyboard input device according to the present invention, suitable for the second scanning mode.
  • FIG. 7C is a block diagram of another keyboard input device according to the present invention, which is suitable for the third scanning mode.
  • FIG. 8 is a schematic flowchart of a key scan method for executing the first scan mode according to another embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of a key scan method for executing the second scan mode according to another embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of a key scan method for executing the third scan mode according to another embodiment of the present invention.
  • the key scanning method, the scanning method used in the key scanning circuit, and the input device provided by the embodiments of the present invention can be applied to desktop computers, notebook computers, or other electronic products that use keyboards.
  • the interval between two consecutive scans of these key keys can be shortened, so that these key keys can have more scan times per unit time, which means that Scan these key keys at a higher frequency.
  • the embodiment of the present invention utilizes a storage device that stores instructions for executing the key scan method, and is electrically connected to a processor of the storage device to execute program instructions to control, trigger, or detect key scan circuits of input devices to perform Multiple operations.
  • FIG. 1 is a flowchart of a key scanning method for executing the first scan mode and the second scan mode according to an embodiment of the present invention, and also refer to FIGS. 4A to 6 to understand the operation of the keyboard key scanning Process.
  • FIG. 4A is a schematic diagram of a 6*21 key matrix that can be used by a keyboard according to another embodiment of the present invention
  • FIG. 4B is a keyboard that can use 6*21 keys in the first scan mode according to another embodiment of the present invention
  • FIG. 4C is a schematic diagram illustrating that a keyboard in the second scan mode can use a 6*21 key matrix according to another embodiment of the present invention.
  • FIG. 5 is a block diagram of a keyboard input device according to an embodiment of the present invention.
  • the input device has two scanning modes, corresponding to two key groups respectively.
  • Fig. 6 is a block diagram of another keyboard input device according to the present invention.
  • the input device has three scanning modes, corresponding to three key groups respectively.
  • a key scanning method is applicable to an input device with multiple keys.
  • a part of the aforementioned keys forms the first key group 10
  • another part of the aforementioned keys forms the second key group.
  • the input device has a plurality of scan lines for scanning the plurality of keys
  • the plurality of scan lines include a first main scan line Sa(1) and a plurality of sub scan lines Sb(1) to Sb(N), wherein
  • the first main scan line Sa(1) is electrically connected to the first button group 10 (specifically connected to the plurality of buttons included in the first button group 10), and the plurality of sub scan lines Sb(1) to Sb( N) Electrically connected to the second button group 20 (specifically connected to the multiple buttons included in the above-mentioned second button group 20).
  • the arrangement of the above-mentioned multiple keys is a matrix consisting of R rows and C columns, where R and C are positive integers greater than or equal to 2.
  • the input device also has multiple sensing signal lines SS corresponding to multiple keys.
  • multiple scanning lines are arranged corresponding to the first row to the Rth row of the matrix
  • multiple sensing signal lines SS are arranged corresponding to the first column to the Cth column of the matrix.
  • the sequence of triggering six scan lines in turn is: Row0->Row1->Row2->until Row5, so when a scan cycle is completed, each of the six scan lines Both are triggered the same number of times.
  • the key scan circuit will classify six scan lines, set Row0 as the first main scan line Sa(1), and set Row1 ⁇ Row5 as five times Scan lines Sb(1) to Sb(5).
  • buttons included in the first button group 10 are specific buttons that are frequently used in gaming games, such as "W”, “A”, “S”, and “D” four English letter keys
  • the other keys that are not frequently used during gaming operations can be arranged in the second row to the sixth row Row1 to Row5 of the matrix (that is, corresponding to the aforementioned secondary scan lines Sb(1) to Sb(5)).
  • the number of triggered scans of the first main scan line Sa(1) is higher than that of each of the sub scan lines Sb(1) to Sb(5).
  • the column sequence of the multiple sub-scanning lines Sb(1) to Sb(N), that is, Sb(1) to Sb(5), is arranged after the column sequence of the first main scanning line Sa(1), that is,
  • the scan arrangement priority of the plurality of secondary scan lines Sb(1) to Sb(N) is arranged after the scan arrangement priority of the first main scan line Sa(1).
  • the multiple sensing signal lines SS are arranged corresponding to the first column to the Cth column of the matrix, that is, corresponding to the first column to the twenty-first column (ie, Col. 0 to Col. 20) of the matrix.
  • the key scanning circuit will classify the six scanning lines, and set Row0 to Row1 as the two main scanning lines Sa(1) to Sa(2) (can be separately Defined as the first main scan line Sa(1) and the second main scan line Sa(2)), and set Row2 to Row5 as the four sub scan lines Sb(1) to Sb(4); for example, the first
  • the key group 10 contains keys frequently used in document operations, such as at least 26 English letter keys from "A to Z", and these keys can be arranged on Row0 to Row1 of the matrix (that is, corresponding to the two main scan lines mentioned above) Sa(1) to Sa(2)).
  • step S200 setting the scan mode can be that the system executes the scan mode setting in a manner of automatic detection and automatic judgment. For example, when the system detects that the user starts the game, the system will automatically set the scan mode to the first A scanning mode (e-sports mode). Of course, the user can also manually set the scan mode.
  • step S210 before executing the first scan mode or the second scan mode, the method further includes determining which of the first scan mode and the second scan mode is enabled, that is, which mode is to be executed.
  • the second scan mode may be a general mode.
  • step S220 if the first scan mode is enabled, the first scan mode is executed, as shown in steps S221 to S223. Conversely, in step S230, if the second scan mode is enabled, the second scan mode is executed.
  • the button scanning method includes executing a first scanning mode
  • the first scanning mode may be a gaming mode
  • the first button group 10 includes a plurality of buttons frequently used in gaming operations, such as at least "W”
  • the first scanning mode includes executing a first scanning procedure, and the first scanning procedure includes triggering the first main scanning line Sa(1), and reading the electrical signals of the plurality of sensing signal lines SS to determine the first button Whether any key in group 10 is triggered.
  • a second scanning procedure is executed. The second scanning procedure is to trigger at least one of the plurality of sub-scanning lines Sb(1) to Sb(N), and to read the electrical power of the plurality of sensing signal lines SS. Signal to determine whether a button in the second button group 20 is triggered. For example, take whether the voltage level of a button is a high level as an example to determine whether the button is pressed.
  • step S223 the first scanning procedure and the second scanning procedure are alternately executed, and each sub-scanning line Sb(1) to Sb(N) is triggered at least once.
  • the first scanning procedure and the second scanning procedure are interleaved and alternate scanning methods.
  • it can be the first main scan line Sa(1) with one sub scan line; it can also be the first main scan line Sa(1) with two sub scan lines; or it can be the first main scan line Sa(1) With three secondary scan lines and so on.
  • the first main scan line Sa(1) can be triggered first, then the sub scan line Sb(1) is triggered; then the first main scan line Sa is triggered (1), then trigger the secondary scan line Sb(2); then trigger the first main scan line Sa(1), then trigger the secondary scan line Sb(3); then trigger the first main scan line Sa(1), Then trigger the secondary scan line Sb(3); then trigger the first main scan line Sa(1), then trigger the secondary scan line Sb(4); then trigger the first main scan line Sa(1), then trigger the secondary scan Line Sb(5), thus completing a scan cycle, and so on, and then continue to cycle the next scan cycle.
  • the scan cycle of the first button group 10 is 1ms (2T), that is, the first button group 10 is scanned every 1ms; the second button group The scan cycle of 20 is 5ms (10T), that is, the second button group 20 is scanned every 5ms.
  • the scanning cycle of the first button group 10 is greatly shortened, and the button response time of the first button group 10 is shortened.
  • the second scan mode is executed, as shown in step S230.
  • the second scanning mode includes alternately executing the first scanning procedure and the third scanning procedure.
  • the third scanning procedure includes sequentially triggering the plurality of sub-scanning lines Sb(1) to Sb(N), and reading the The electrical signals of the plurality of signal lines SS are sensed to determine whether a button in the second button group 20 is triggered.
  • the first scanning procedure and the third scanning procedure are interleaved and alternate scanning methods. For example, the first main scan line Sa(1) is triggered first, and then the secondary scan lines Sb(1) to Sb(N) may be triggered in sequence to complete a scan cycle, and so on, and then continue to cycle the next scan cycle.
  • FIG. 2 is a schematic flowchart of a key scanning method for executing the first scan mode, the second scan mode, and the third scan mode according to an embodiment of the present invention, that is, the e-sports mode, the general mode, and the document scanning mode (referred to as document scanning mode) Mode).
  • the scanning method further includes a third scanning mode, and corresponds to the step of determining which of the first scanning mode (that is, the gaming mode) and the second scanning mode (that is, the normal mode) is enabled in FIG. 1, as shown in FIG.
  • the method further includes determining whether the third scan mode is enabled.
  • the third scan mode (ie, document mode) is executed. It should be noted that the key scanning methods related to the first scanning mode and the second scanning mode of steps S220 to S231 have been described in detail in the foregoing embodiment, and will not be repeated here.
  • setting the scan mode can be that the system executes the scan mode setting by automatic detection and automatic judgment. For example, when the system detects that the user has opened the word processing software, the system will automatically set the scan mode It is the third scan mode. Or it may be that the user executes the setting of the scan mode manually.
  • the key scan method includes determining which of the first scan mode, the second scan mode, and the third scan mode is enabled. In step S340, if the third scan mode is enabled, the third scan mode is executed.
  • the third scanning mode includes executing the first scanning procedure (specific execution content can be as shown in step S221); then executing the fourth scanning procedure, the fourth scanning procedure includes triggering the second main scanning line Sa(2 ), and read the electrical signals of the multiple sensing signal lines SS to determine whether a button in the third button group 30 is triggered; then execute the second scanning program (the specific execution content may be shown in step S222).
  • the first scanning procedure, the fourth scanning procedure and the second scanning procedure are alternately executed, and each sub-scanning line Sb(1) to Sb(N) is triggered at least once. It should be noted that the frequency of use of the first button group 10 is higher than that of the third button group 30.
  • the column order of the second main scanning line Sa(2) is arranged after the column order of the first main scanning line Sa(1), and the column order of the plurality of sub-scanning lines Sb(1) to Sb(N) is arranged second After the main scan line Sa(2) in the column order.
  • the embodiment of the present invention can be practically applied to a keyboard with two scanning modes, for example, an e-sports scanning mode (referred to as an e-sports mode) and a document scanning mode (referred to as a document mode).
  • setting the scan mode can be the system executes the scan mode setting by automatic detection and automatic judgment. For example, when the system detects that the user starts the game, the system will automatically set the scan mode to the first scan. Mode (e-sports mode). Of course, the user can also manually set the scan mode.
  • the method further includes determining which of the first scan mode and the third scan mode is enabled, that is, which mode is to be executed.
  • the third scan mode includes: first execute the first scan program; then execute the fourth scan Program, the fourth scan program includes triggering the second main scan line Sa(2), and reading the electrical signals of the multiple sensing signal lines SS to determine whether any key in the third key group is triggered; then execute the second scan program ; Among them, the first scan program, the fourth scan program and the second scan program are alternately executed, and each scan line is triggered at least once.
  • FIG. 3 is a schematic flow chart of a scanning method used in a key scanning circuit according to another embodiment of the present invention. It should be noted that the step flow of the scanning method used in the key scanning circuit and the step flow of the key scanning method are It is very similar and some parts are the same, and the key scanning method has been described in detail in the foregoing embodiment, and will not be repeated here, but only a key overview.
  • a scanning method used in the key scanning circuit 40 can be used to scan the first key group 10 and the second key group 20, the first key group 10 includes X priority keys, the second The button group 20 includes Y secondary buttons, and the button scanning circuit 40 includes M main scanning lines Sa(1) to Sa(M), N secondary scanning lines Sb(1) to Sb(N), and multiple sensing signal lines SS, where X, Y, M, N are positive integers, M main scan lines Sa(1) to Sa(M) are electrically connected to X priority buttons, and N sub scan lines Sb(1) to Sb(N ) Electrically connected to the Y secondary keys, the scanning method includes the following steps: Step (1) Start the scanning cycle, and set the initial value of the main scanning times j to 0 (as shown in Step S500); Step (2a), judge Whether the number of main scanning times j is equal to the default upper limit value Jmax of main scanning (as shown in step S510), where Jmax is a positive integer.
  • step (3) If yes, proceed to step (3); if not, proceed to step (2b); step (2b), trigger each of the M main scan lines Sa(1) to Sa(M) in turn, and read the multiple
  • the electrical signal of line SS where P secondary scan lines are coupled to Q secondary buttons among Y secondary buttons to detect whether any of the Q secondary buttons is triggered, where P ⁇ N, And Q ⁇ Y, P and Q are positive integers (as shown in step S520); step (4), in the scan cycle, determine whether the N secondary scan lines Sb(1) to Sb(N) have been triggered ( (As
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn can be: scan Sa(1) Jmax times, for example, if Jmax is 3 When, scan Sa(1) three times continuously.
  • the first scan mode can be an e-sports mode.
  • the X priority buttons include at least the four English alphabet keys "W", “A”, “S”, and “D” and “up”, “down” and “ “Left” and “Right” four arrow keys.
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn can be: Sa(1)->Sb(1)->Sa(1)->Sb(2)->Sa(1)->Sb(3) until Sa(1)->Sb(N).
  • first trigger the first main scan line Sa(1) then trigger the sub scan line Sb(1), then trigger the first main scan line Sa(1), then trigger the sub scan line Sb(2), and then trigger The first main scan line Sa(1), then the secondary scan line Sb(3) is triggered, and so on, until the first main scan line Sa(1) is triggered, and then the secondary scan line Sb(N) is triggered.
  • the input device has a total of 6 scan lines, including one main scan line and 5 sub scan lines.
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn can be: Sa(1)->[Sb(1)->Sb (2)]->Sa(1)->[Sb(3)->Sb(4)] until ->Sa(1)->Sb(5).
  • P is equal to 2
  • N is equal to 5
  • P cannot be divisible by N.
  • only N sub-scanning lines Sb(1) to Sb(N) have not been scanned yet 1 scan line Sb(5) for scanning.
  • the first main scan line Sa(1) and N secondary scan lines Sb(1) to Sb(N) may also be: Sa(1)->[ Sb(1)->Sb(2)]->Sa(1)->[Sb(3)->Sb(4)] until ->Sa(1)->[Sb(5)->Sb(1 )]until. That is, N sub-scanning lines Sb(1) to Sb(N) can also be used as the scanning target, and Sb(5) and Sb(1) can be scanned.
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn can be: Sa(1)->[Sb(1)-> Sb(2)->Sb(3)]->Sa(1)->[Sb(4)->Sb(5)->Sb(6)] until ->Sa(1)->[Sb(N -2)->Sb(N-1)->Sb(N)].
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn may be: [ Sa(1)->Sa(1)]->Sb(1)->[Sa(1)->Sa(1)]->Sb(2) until ->[Sa(1)->Sa(1 )]->Sb(N).
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn may be: [Sa(1)->Sa(1)->Sa(1)]->Sb(1)->[Sa(1)->Sa(1)->Sa(1)]->Sb(2) Until ->[Sa(1)->Sa(1)->Sa(1)]->Sb(N).
  • the response time of the X priority keys can be greatly shortened.
  • N sub-scanning lines Sb(1) to Sb(N) can be: Sa(1) to Sa(2) cyclic scanning Jmax times -> Sb(1) to Sb(P) -> Sa(1) To Sa(2) cycle scan Jmax times ->Sb(1+P) to Sb(2P)->Sa(1) to Sa(2) cycle scan Jmax times until ->Sa(1) to Sa(2) cycle After scanning Jmax times and then scanning P secondary scan lines, it is determined that N secondary scan lines Sb(1) to Sb(N) are all triggered.
  • the second scanning mode can be a document mode
  • the X priority keys include at least 26 English letter keys from
  • first trigger the main scan line Sa(1) then trigger the main scan line Sa(2), then trigger the secondary scan line Sb(1), then trigger the main scan line Sa(1), and then trigger the main scan line Sa (2), then trigger the secondary scan line Sb(2), then trigger the main scan line Sa(1), then trigger the main scan line Sa(2), then trigger the secondary scan line Sb(3), and so on, Until the first main scan line Sa(1) is triggered, then the second main scan line Sa(2) is triggered, and then the secondary scan line Sb(N) is triggered.
  • the response time of the X priority buttons can be greatly improved.
  • the key scanning method provided by the embodiment of the present invention and the scanning method used in the key scanning circuit can be executed in the input device 1. Please refer to FIGS. 1 to 4C at the same time.
  • the present invention does not limit the key scanning method of FIGS. 1 to 2 and the scanning method used in the key scanning circuit of FIG. 3 to be executed only in the input device 1 of FIG. 5. It should be noted that, since the key scanning method and the step flow of the scanning method used in the key scanning circuit have been described in detail in the foregoing embodiment, they will not be repeated here, and only a key overview is given.
  • the input device 1 includes a key scanning circuit 40, a first key group 10 and a second key group 20.
  • the input device 1 may be a physical keyboard. There are multiple keys on the keyboard, and each key is marked with its representative characters and symbols. In most cases, pressing a button will output a corresponding symbol, such as letters, numbers, or punctuation marks.
  • the key scan circuit 40 includes M main scan lines Sa(1) to Sa(M), N sub scan lines Sb(1) to Sb(N), and a plurality of sensing signal lines SS, where M and N are positive integers.
  • the first button group 10 includes X priority buttons, and M main scan lines Sa(1) to Sa(M) are electrically connected to X priority buttons, where X is a positive integer.
  • the second button group 20 includes Y secondary buttons, and N secondary scan lines Sb(1) to Sb(N) are electrically connected to the Y secondary buttons, where Y is a positive integer.
  • the key scanning circuit 40 of the input device 1 of the present invention may perform the following steps: step (1) start the scanning cycle, and set the initial value of the main scanning number j to 0 (as shown in step S500); (2a) Determine whether the main scan times j is equal to the main scan default upper limit Jmax (as shown in step S510), where Jmax is a positive integer.
  • step (3) If yes, go to step (3); if not, go to step (2b); step (2b), trigger each of the M main scan lines Sa(1) to Sa(M) in turn, and read the multiple
  • the P secondary scan lines are coupled to the Q secondary buttons of the Y secondary buttons to detect whether the Q secondary buttons are triggered, where P ⁇ N, and Q ⁇ Y, P and Q are positive integers (as shown in step S520); step (4), in the scan cycle, determine whether the N secondary scan lines Sb(1) to Sb(N) have been triggered (e.g. Step S521), if not, set the main scan number j to 0, and return to step (2a), if yes, end the scan cycle (shown in step S540).
  • the sequence can be: Sa(1)->Sb(1) ->Sb(2)->Sb(3) until Sb(N), so that each of the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) is triggered The same number of times.
  • the sequence of triggering the first main scan line Sa(1) and N sub scan lines Sb(1) to Sb(N) in turn can be : Sa(1)->Sb(1)->Sa(1)->Sb(2)->Sa(1)->Sb(3) until Sa(1)->Sb(N), make the first
  • the number of times that a main scan line Sa(1) is triggered is higher than the number of times that each of the N secondary scan lines Sb(1) to Sb(N) is triggered.
  • the order to Sb(N) can be: Sa(1) scan Jmax times->[Sb(1)->to Sb(P)]->Sa(1) scan Jmax times->[Sb(P+1) ->to Sb(2P)] until Sa(1) scans Jmax times and then P scan lines are scanned, it is determined that N scan lines Sb(1) to Sb(N) have been triggered, so that the first The number of times the main scan line Sa(1) is triggered is higher than the number of times that each of the N secondary scan lines Sb(1) to Sb(N) is triggered.
  • the sequence of N) can be: Sa(1)->Sa(2)->Sb(1)->Sb(2)->Sb(3) until Sb(N), so that the two main scan lines Sa( 1)
  • Each of Sa(2) and each of N sub-scanning lines Sb(1) to Sb(N) are triggered the same number of times.
  • two main scan lines Sa(1), Sa(2) and N sub scan lines Sb(1) to Sb(N ) can be in the order: [Sa(1)->Sa(2)]->Sb(1)->[Sa(1)->Sa(2)]->Sb(2)->[Sa(1 )->Sa(2)]->Sb(3) until [Sa(1)->Sa(2)]->Sb(N), so that the two main scan lines Sa(1) are triggered more frequently The number of times that each of the N sub-scan lines Sb(1) to Sb(N) is triggered.
  • the sequence of lines Sb(1) to Sb(N) is: [Sa(1)->Sa(2)] cyclic scanning Jmax times->[Sb(1)->Sb(2)->...Sb( P)] scan once ->[Sa(1)->Sa(2)] cycle scan Jmax times ->[Sb(P+1)...Sb(2P)] scan once until [Sa(1)-> Sa(2)] cyclically scan for Jmax times and then scan P sub-scanning lines, and then determine that N sub-scanning lines Sb(1) to Sb(N) are triggered until the two main scan lines Sa(1)
  • the number of times that each of ⁇ Sa(2) is triggered is higher than the number of times that each of the N secondary scan lines Sb(1) to Sb(N) is triggered.
  • FIG. 7A is a block diagram of another keyboard input device according to the present invention, suitable for the first scanning mode.
  • FIG. 7B is a block diagram of another keyboard input device according to the present invention, suitable for the second scanning mode.
  • Figure 7C is a block diagram of another keyboard input device according to the present invention, suitable for the third scanning mode.
  • the input device 3 includes a key scanning circuit 40 and a key group 50.
  • the key group 50 may include a first key group 10 and a second key group 20.
  • the input device 3 may be a physical keyboard.
  • the keyboard has multiple keys, and each key is marked with its representative characters and symbols. In most cases, pressing a button will output a corresponding symbol, such as letters, numbers, or punctuation marks.
  • the key scan circuit 40 includes N+1 scan lines Row0 ⁇ RowN, and a plurality of sensing signal lines SS, where N is a positive integer.
  • Figures 8 to 10 are schematic diagrams of the process of executing the key scanning method of the present invention according to another embodiment of the present invention.
  • the key scanning circuit 40 performs the following steps: Start a scanning cycle, and determine whether the input device 3 is currently One of the first scanning mode, the second scanning mode, or the third scanning mode, according to which step S810 (path C-corresponding to the first scanning mode), step S821 (path A-corresponding to the second scanning mode), or step S841 is performed respectively (B path-corresponding to the third scan mode) one of them.
  • the first scanning mode may be a general mode
  • the second scanning mode may be an e-sports mode
  • the third scanning mode may be a document mode.
  • step S810 in FIG. 8 the following steps are executed when the input device 3 is in the first scan mode.
  • the key scan circuit 40 triggers one of the plurality of scan lines Row0 to RowN in turn until each of the plurality of scan lines is triggered, and reads the electrical signals of the plurality of sensing signal lines SS, and then detects the input device Whether any key is triggered in 3 and end the scan cycle.
  • the key scan circuit 40 defines the scan line Row0 as the first main scan line Sa(1), and defines the scan lines Row1 to RowN as N The secondary scan lines Sb(1) to Sb(N).
  • the key scanning circuit 40 defines the X1 keys electrically connected to the first main scanning line Sa(1) as the first key group 10, and electrically connects to the rest of the first main scanning line Sa(1) Y1 buttons are defined as the second button group 20, where X1 and Y1 are positive integers (as shown in step S822).
  • the X1 priority buttons include at least the four alphabet keys “W”, “A”, “S”, and “D” and the four arrows "up”, “down”, “left” and “right” key.
  • the initial value of the main scan number j is set to 0 (as shown in step S823).
  • step S826 determine whether the N secondary scan lines Sb(1) to Sb(N) have been triggered (as shown in step S826), if not, set the number of main scan times j to 0, and return to step S824 ( (As shown in step S828), if yes, end the scanning cycle (as shown in step S827).
  • step S830 triggers the first main scan line Sa(1), read the electrical signals of multiple sensing signal lines SS, and detect whether any of the X1 priority keys is triggered (as shown in step S830).
  • step S830 triggers the first main scan line Sa(1), read the electrical signals of multiple sensing signal lines SS, and detect whether any of the X1 priority keys is triggered (as shown in step S830).
  • the key scan circuit 40 defines the scan lines Row0 ⁇ Row1 as two main scan lines Sa(1) ⁇ Sa(2), and the scan lines Row2 ⁇ RowN are defined as N-1 secondary scan lines Sb(1) to Sb(N-1).
  • the key scanning circuit 40 defines the X2 keys electrically connected to the two main scanning lines Sa(1) to Sa(2) as the first key group, and electrically connects them to the two main scanning lines Sa( 1)
  • the remaining Y2 buttons from Sa(2) are defined as the second button group, and X2 and Y2 are positive integers (as shown in step S842).
  • the X2 priority keys include at least 26 English letter keys from “A to Z” and four arrow keys “up”, “down”, “left” and “right”.
  • the initial value of the number of main scans j is set to 0 (as shown in step S843). Then, it is determined whether the number of main scans j is equal to the preset upper limit Jmax, where the preset upper limit Jmax is a positive integer (as shown in step S844), if yes, step S845 is executed, and if not, step S850 is executed.
  • step S846 determine whether the N-1 secondary scan lines Sb(1) to Sb(N-1) have been triggered (as shown in step S846), if not, set the main scan number j to 0, and return Step S844 (shown in step S847), if yes, end the scanning cycle (shown in step S827).
  • step S850 trigger the two main scan lines Sa(1) ⁇ Sa(2) in turn, read the electrical signals of the multiple sensing signal lines SS, and detect whether any of the X2 priority keys is triggered (as shown in step S850) .
  • the key scanning method By performing interspersed and alternate scanning of key buttons or commonly used keys, that is, the number of scans is increased to the main scan line to which these key keys are coupled, so as to shorten the scan cycle of these key keys, so as to control these key keys. Perform faster scanning. In this way, the scanning cycle of these key keys is greatly shortened, and the response speed of these key keys is also accelerated.

Landscapes

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

Abstract

本发明公开一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备。按键扫描方法包括:执行第一扫描程序,包括触发第一主扫描线,并读取多条感应信号线的电信号,以判断第一按键组中是否有按键被触发。接着执行第二扫描程序,包括触发多条次扫描线的至少其中之一,并读取多条感应信号线的电信号,以判断第二按键组中是否有按键被触发。其中,第一扫描程序与第二扫描程序为交替执行,并且每一个次扫描线至少被触发一次。

Description

一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备 技术领域
本发明是有关于一种按键扫描,且特别是一种对关键按键进行穿插式的多次扫描,以缩短扫描周期的按键扫描方法、使用于按键扫描电路的扫描方法及输入设备。
背景技术
随着电竞文化越来越盛行,消费者逐渐选择购买电竞产品作为工作或游戏的用途。电竞产业不仅带动数字竞赛的风潮,更是推动硬件进步的推手。对于电竞玩家或是键盘爱好者来说,一款击键反应迅速并且大量敲击后仍然耐用且可靠的机械键盘是绝对不可或缺的。事实上,电竞玩家通常只使用到键盘的特定按键,来进行相关的电竞游戏。目前电竞专用的键盘大多是藉由按键本身的机械结构或材料是缩短整体按键的反应时间。然而,鲜少是藉由改善按键扫描的方式来缩短特定按键的反应时间。因此,如何提供藉由改善特定按键的扫描方式,使特定按键的扫描速度可以大幅度地提升,将是本案所要着重的问题与解决的重点。
发明内容
有鉴于此,本发明实施例提供一种按键扫描方法,适用于一个具有多个按键的输入设备,所述多个按键的其中一部分组成第一按键组,所述多个按键的其中另一部分组成第二按键组,且所述输入设备还具有用于扫描所述多个按键的多条扫描线以及对应所述多个按键的多条感应信号线,所述多条扫描线包括第一主扫描线与多条次扫描线,其中所述第一主扫描线电性连接至所述第一按键组,所述多条次扫描线电性连接至所述第二按键组,所述按键扫描方法包括:执行第一扫描模式,所述第一扫描模式包括:执行第一扫描 程序,所述第一扫描程序包括触发所述第一主扫描线,并读取所述多条感应信号线的电信号,以判断所述第一按键组中是否有按键被触发;以及执行第二扫描程序,所述第二扫描程序为触发所述多条次扫描线的至少其中之一,并读取所述多条感应信号线的所述电信号,以判断所述第二按键组中是否有按键被触发;其中,所述第一扫描程序与所述第二扫描程序为交替执行,并且每一次扫描线至少被触发一次。
本发明实施例另提供一种使用于按键扫描电路的扫描方法,所述按键扫描电路可扫描第一按键组与第二按键组,所述第一按键组包含X个优先按键,所述第二按键组包含Y个次要按键,所述按键扫描电路包括M条主扫描线Sa(1)至Sa(M)、N条次扫描线Sb(1)至Sb(N)与多条感应信号线,其中X、Y、M、N为正整数,所述M条主扫描线Sa(1)至Sa(M)电性连接至所述X个优先按键,所述N条次扫描线Sb(1)至Sb(N)电性连接至所述Y个次要按键,所述扫描方法包括下列步骤:步骤(1),开始扫描循环,设定主扫描次数j的初始值为0;步骤(2a),判断所述主扫描次数j是否等于主扫描默认上限值Jmax,其中Jmax为正整数,若是,则执行步骤(3),若否,则执行步骤(2b);步骤(2b),轮流触发所述M条主扫描线Sa(1)至Sa(M)中的每一条,读取所述多条感应信号线的电信号,以侦测所述X个优先按键中是否有按键被触发;步骤(2c),增加所述主扫描次数j的值,其中j=j+1,并回到步骤(2a);步骤(3),轮流触发所述N条次扫描线Sb(1)至Sb(N)的其中P条次扫描线,读取所述多条感应信号线的所述电信号,其中,所述P条次扫描线耦接到所述Y个次要按键中的Q个次要按键,以侦测所述Q个次要按键中是否有按键被触发,其中P<N,且Q<Y,P、Q为正整数;以及步骤(4),于所述扫描循环中,判断所述N条次扫描线Sb(1)至Sb(N)是否均被触发过,若是则结束所述扫描循环,若否,则设定所述主扫描次数j为0,并回到步骤(2a)。
本发明实施例提供一种输入设备,包括:按键扫描电路,所述按键扫描 电路包括M条主扫描线Sa(1)至Sa(M),N条次扫描线Sb(1)至Sb(N)与多条感应信号线,其中M、N为正整数;第一按键组,所述第一按键组包含X个优先按键,所述M条主扫描线Sa(1)至Sa(M)电性连接至所述X个优先按键,其中X为正整数;以及第二按键组,所述第二按键组包含Y个次要按键,所述N条次扫描线Sb(1)至Sb(N)电性连接至所述Y个次要按键,其中Y为正整数;其中所述按键扫描电路执行下列步骤:步骤(1),开始扫描循环,设定主扫描次数j的初始值为0;步骤(2a),判断所述主扫描次数j是否等于主扫描默认上限值Jmax,其中Jmax为正整数;若是,则执行步骤(3),若否,则执行步骤(2b);步骤(2b),轮流触发所述M条主扫描线Sa(1)至Sa(M)中的每一条,并读取所述多条感应信号线的电信号,以侦测所述X个优先按键中是否有按键被触发;步骤(2c),增加所述主扫描次数j的值,其中j=j+1,并回到步骤(2a);步骤(3),轮流触发所述N条次扫描线Sb(1)至Sb(N)的其中P条次扫描线,并读取所述多条感应信号线的所述电信号,其中,所述P条次扫描线为耦接到所述Y个次要按键中的Q个次要按键,以侦测所述Q个次要按键中是否有按键被触发,其中P<N,且Q<Y,P、Q为正整数;以及步骤(4),于所述扫描循环中,判断所述N条次扫描线Sb(1)至Sb(N)是否均被触发过,若否,则设定所述主扫描次数j为0,并回到步骤(2a),若是,则结束所述扫描循环。
本发明实施例另提供一种输入设备,包括:按键扫描电路,所述按键扫描电路包括N+1条扫描线Row0~RowN,与多条感应信号线,N为正整数;其中所述按键扫描电路执行下列步骤:步骤(1),开始扫描循环,判断所述输入设备目前是否为第一扫描模式、第二扫描模式或第三扫描模式其中之一,据此分别执行步骤(2)、步骤(3)或步骤(4)其中之一;步骤(2),当所述输入设备于第一扫描模式时执行:所述按键扫描电路轮流触发所述复数条扫描线Row0~RowN其中之一直到所述复数条扫描线中每一条都被触发过为止,并读取所述多条感应信号线的电信号,侦测所述输入设备中是否有按键 被触发,并结束所述扫描循环;步骤(3),当所述输入设备于第二扫描模式时执行:步骤(3a),所述按键扫描电路将扫描线Row0定义为第一主扫描线Sa(1)、并将扫描线Row1~RowN定义为N条次扫描线Sb(1)至Sb(N);步骤(3b),所述按键扫描电路将电性连接至所述第一主扫描线Sa(1)的X1个按键定义为第一按键组,并将未电性连接至所述第一主扫描线Sa(1)的其余Y1个按键定义为第二按键组,X1、Y1为正整数;步骤(3c),设定主扫描次数j的初始值为0;步骤(3d),判断所述主扫描次数j是否等于预设上限值Jmax,其中预设上限值Jmax为正整数;若是,则执行步骤(3g),若否,则执行步骤(3e);步骤(3e),触发所述第一主扫描线Sa(1),读取所述多条感应信号线的所述电信号,侦测所述X1个优先按键中是否有按键被触发;步骤(3f),增加所述主扫描次数j的值,其中j=j+1,并回到步骤(3d);步骤(3g),轮流触发所述N条次扫描线Sb(1)至Sb(N)的其中P条,其中,所述P条次扫描线为耦接到所述Y1个次要按键中的Q个次要按键,读取所述多条感应信号线的所述电信号,侦测所述Q个次要按键中是否有按键被触发,其中P<N、Q<Y1,P、Q为正整数;步骤(3i),判断所述N条次扫描线Sb(1)至Sb(N)是否均被触发过,若否,则设定所述主扫描次数j为0,并回到步骤(3d),若是,则结束所述扫描循环;步骤(4),当所述输入设备于第三扫描模式时执行:步骤(4a),所述按键扫描电路将扫描线Row0~Row1定义为两条主扫描线Sa(1)~Sa(2)、并将扫描线Row2~RowN定义为N-1条次扫描线Sb(1)至Sb(N-1);步骤(4b),所述按键扫描电路将电性连接至所述两条主扫描线Sa(1)~Sa(2)的X2个按键定义为第一按键组,并将未电性连接至所述两条主扫描线Sa(1)~Sa(2)的其余Y2个按键定义为第二按键组,X2、Y2为正整数;步骤(4c),设定主扫描次数j的初始值为0;步骤(4d),判断所述主扫描次数j是否等于预设上限值Jmax,其中预设上限值Jmax为正整数,若是,则执行步骤(4g),若否,则执行步骤(4e);步骤(4e),轮流触发所述两条主扫描线Sa(1)~Sa(2),读取所述多条感应信号线的所述电信号, 侦测所述X2个优先按键中是否有按键被触发;步骤(4f),增加所述主扫描次数j的值,其中j=j+1,并回到步骤(4d);步骤(4g),轮流触发所述N-1条次扫描线Sb(1)至Sb(N-1)的其中P条,所述P条次扫描线是耦接到所述Y2个次要按键中的Q个次要按键,并读取所述多条感应信号线的所述电信号,侦测所述Q个次要按键中是否有按键被触发,其中P<N-1、Q<Y2,P、Q为正整数;以及步骤(4h),判断所述N-1条次扫描线Sb(1)至Sb(N-1)是否均被触发过,若否,则设定所述主扫描次数j为0,并回到步骤(4d),若是,则结束所述扫描循环。
本发明实施例所提供的按键扫描方法、使用于按键扫描电路的扫描方法及输入设备,藉由对关键按键或者常用按键进行穿插式的多次扫描,也就对这些关键按键所耦接的扫描线增加扫描的次数,以达到缩短这些关键按键的扫描周期,以对这些关键按键进行更快速度的扫描。藉此,大幅度地缩短这些关键按键的扫描时间,同时加快这些关键按键的反应时间。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。为让本发明之上述和其他目的、特征和优点能更明显易懂,下文特举实施例,并配合所附图式,作详细说明如下。
附图说明
图1为依照本发明实施例所绘示的执行第一扫描模式与第二扫描模式的按键扫描方法的流程示意图。
图2为依照本发明实施例所绘示的执行第一扫描模式、第二扫描模式与第三扫描模式的按键扫描方法的流程示意图。
图3为依照本发明另一实施例所绘示的使用于按键扫描电路的扫描方法的流程示意图。
图4A为依照本发明另一实施例所绘示键盘可使用6*21按键矩阵的示意图。
图4B为依照本发明另一实施例所绘示第一扫描模式的键盘可使用6*21按键矩阵的示意图。
图4C为依照本发明另一实施例所绘示第二扫描模式的键盘可使用6*21按键矩阵的示意图。
图5为依照本发明实施例所绘示键盘输入设备的方块示意图,所述输入设备具有两种扫描模式,分别对应两个按键组。
图6为依照本发明另一键盘输入设备的方块示意图,所述输入设备具有三种扫描模式,分别对应三个按键组。
图7A为依照本发明另一键盘输入设备的方块示意图,适用于第一扫描模式。
图7B为依照本发明另一键盘输入设备的方块示意图,适用于第二扫描模式。
图7C为依照本发明另一键盘输入设备的方块示意图,适用于第三扫描模式。
图8为依照本发明另一实施例所绘示的执行第一扫描模式的按键扫描方法的流程示意图。
图9为依照本发明另一实施例所绘示的执行第二扫描模式的按键扫描方法的流程示意图。
图10为依照本发明另一实施例所绘示的执行第三扫描模式的按键扫描方法的流程示意图。
具体实施方式
本发明实施例所提供的按键扫描方法、使用于按键扫描电路的扫描方法及输入设备,其可应用于诸如桌面计算机、笔记本电脑或其他使用到键盘的 电子产品。藉由针对关键按键或者常用按键进行穿插式的多次扫描,以缩短该些关键按键连续两次扫描的间隔时间,使这些关键按键在单位时间内能有较多的扫描次数,亦即能以更高的频率扫描这些关键按键。藉此,大幅度地缩短这些关键按键连续两次被扫描的间隔时间,同时缩短这些关键按键的反应时间.如此当用户按压这些关键按键时,用户按压关键按键的机械动作,能更快地转换为电信号,更迅速地输入给在主机中执行的电竞游戏或者文字处理软件。本发明实施例利用储存用于执行按键扫描方法的指令的储存装置,并通过电性连接至储存装置的处理器,来执行程序的指令以控制、触发或侦测输入设备的按键扫描电路以进行多个运作。
请参阅图1,图1是依照本发明实施例所绘示的执行第一扫描模式与第二扫描模式的按键扫描方法的流程示意图,并同时参阅图4A至图6以便理解键盘按键扫描的运作流程。图4A是依照本发明另一实施例所绘示键盘可使用的6*21按键矩阵的示意图,图4B是依照本发明另一实施例所绘示第一扫描模式的键盘可使用6*21按键矩阵的示意图,图4C是依照本发明另一实施例所绘示第二扫描模式的键盘可使用6*21按键矩阵的示意图。图5是依照本发明实施例所绘示一键盘输入设备的方块示意图,所述输入设备具有两种扫描模式,分别对应两个按键组。图6是依照本发明另一键盘输入设备的方块示意图,所述输入设备具有三种扫描模式,分别对应三个按键组。
在本实施例中,一种按键扫描方法,适用于一个具有多个按键的输入设备,上述多个按键的其中一部分组成第一按键组10,上述多个按键的其中另一部分组成第二按键组20,且输入设备具有用于扫描上述多个按键的多条扫描线,多条扫描线包括第一主扫描线Sa(1)与多条次扫描线Sb(1)至Sb(N),其中第一主扫描线Sa(1)电性连接至第一按键组10(具体为连接至上述第一按键组10所包含的多个按键),上述多条次扫描线Sb(1)至Sb(N)电性连接至第二按键组20(具体为连接至上述第二按键组20所包含的多个按键)。
上述多个按键的排列形式为矩阵,由R行和C列所组成,其中R与C 为大于等于2的正整数。输入设备除了具有上述多条扫描线外,还具有对应多个按键的多条感应信号线SS。实际操作中,多条扫描线对应矩阵的第1行至第R行设置,多条感应信号线SS对应矩阵的第1列至第C列设置。以一般较多人使用的104键的键盘为例,目前较常使用的矩阵大小为6行*21列(亦即R为6,而C为21),则输入设备可具有6条扫描线以及21条感应信号线。如图4A所示,当输入设备处于一般扫描模式时,轮流触发六条扫描线的顺序为:Row0->Row1->Row2->直到Row5为止,如此当完成一个扫描循环,六条扫描线中每一条均被触发相同的次数。如图4B所示,当输入设备处于电竞扫描模式时,按键扫描电路会将六条扫描线加以分类,设定Row0为第一主扫描线Sa(1),且设定Row1~Row5为五条次扫描线Sb(1)至Sb(5)。举例来说,第一按键组10所包含的多个按键为电竞游戏操作时会经常使用到的特定按键,例如“W”、“A”、“S”、“D”四个英文字母键与“上”、“下”、“左”、“右”四个箭头键,并且这些按键可以是设置在矩阵的第一行Row0(亦即对应前述第一主扫描线Sa(1))。其余电竞游戏操作时不常使用的按键则可以设置在矩阵的第二行至第六行Row1至Row5(亦即对应前述次扫描线Sb(1)至Sb(5))。如稍后图8示意的流程图所描述,当完成一个扫描循环,第一主扫描线Sa(1)的被触发扫描次数高于次扫描线Sb(1)至Sb(5)中每一条的被触发扫描次数。上述多条次扫描线Sb(1)至Sb(N)的列序,亦即Sb(1)至Sb(5),排在第一主扫描线Sa(1)的列序之后,亦即,多条次扫描线Sb(1)至Sb(N)的扫描排列优先级排在第一主扫描线Sa(1)的扫描排列优先级之后。而上述多条感应信号线SS对应矩阵的第一列至第C列设置,也就是对应矩阵的第一列至第二十一列(亦即Col.0至Col.20)设置。
若输入设备同时兼具电竞扫描模式与稍后描述的文书扫描模式,则可参阅图4C来设置第一行与第二行按键。如图4C所示,当输入设备处于文书扫描模式时,按键扫描电路会将六条扫描线加以分类,会设定Row0至Row1为两条主扫描线Sa(1)至Sa(2)(可分别定义为第一主扫描线Sa(1)和第二主 扫描线Sa(2)),且设定Row2至Row5为四条次扫描线Sb(1)至Sb(4);举例来说,第一按键组10包含文书操作时经常使用到的按键,例如至少包含"A至Z"26个英文字母键,并且这些按键可以是设置在矩阵的Row0至Row1上(亦即对应前述两条主扫描线Sa(1)至Sa(2))。其余字处理操作时不常使用的按键则可以设置在矩阵的第三行至第六行Row2至Row5(亦即对应前述次扫描线Sb(1)至Sb(4))。如稍后图9示意的流程图所描述,当完成一个扫描循环,两条主扫描线Sa(1)至Sa(2)中每一条的被触发扫描次数高于次扫描线Sb(1)至Sb(4)中每一条的被触发扫描次数。
如图1所示,本发明实施例可实际应用于具有两种扫描模式的键盘,例如是一般扫描模式(简称为一般模式)与电竞扫描模式(简称为电竞模式)。在步骤S200中,设定扫描模式可以是系统以自动侦测并自动判断的方式执行扫描模式的设定,例如系统侦测到用户开启游戏,此时系统便会自动将扫描模式设定为第一扫描模式(电竞模式)。当然也可以是使用者以手动的方式执行扫描模式的设定。在步骤S210中,在执行第一扫描模式或第二扫描模式的步骤前,所述方法进一步包括判断第一扫描模式与第二扫描模式何者被致能,也就是要执行哪一个模式。第二扫描模式可以是一般模式。在步骤S220中,若第一扫描模式被致能,则执行第一扫描模式,如步骤S221至S223所示。反之,在步骤S230中,若第二扫描模式被致能,则执行第二扫描模式。
接着,请同时参阅图1、图4B与图5,以便理解第一扫描模式的运作流程。在步骤S220中,按键扫描方法包括执行第一扫描模式,第一扫描模式可以是电竞模式,第一按键组10包含电竞操作时经常使用到的多个按键,例如至少包括“W”、“A”、“S”、“D”四个英文字母键,并且这些按键电性连接至第一主扫描线Sa(1),第二按键组20可为除此之外的其他一些按键。在步骤S221中,第一扫描模式包括执行第一扫描程序,第一扫描程序包括触发第一主扫描线Sa(1),并读取多条感应信号线SS的电信号,以判断第一按键组10中是否有按键被触发。在步骤S222中,执行第二扫描程序,第二 扫描程序为触发上述多个次扫描线Sb(1)至Sb(N)的至少其中之一,并读取上述多条感应信号线SS的电信号,以判断第二按键组20中是否有按键被触发。举例来说,以按键的电压准位是否为高准位作为判断此按键是否被按压的例子来说明。若使用者只按压“W”、“A”、“S”、“D”这四个英文字母键的按键。也就是说,在触发第一主扫描线Sa(1)的同时,读取二十一个感应信号线SS的电信号,结果只有第一至第四个感应信号线SS(亦即Col.0至Col.3)的电压准位是高准位,而其余的是低准位,此时便可以判断是“W”、“A”、“S”、“D”这四个英文字母键被按压。换言之,第一扫描程序的阶段便可立即知道是这四个英文字母键被按压,而不用等到第二扫描程序的阶段才得知。因此可以通过软件的方式缩短特定按键的反应时间,提升反应速度。
在步骤S223中,第一扫描程序与第二扫描程序为交替执行,并且每一个次扫描线Sb(1)至Sb(N)至少被触发一次。也就是说,第一扫描程序与第二扫描程序为穿插式、交替式的扫描方式。例如,可以是第一主扫描线Sa(1)搭配一个次扫描线;也可以是第一主扫描线Sa(1)搭配两个次扫描线;或者可以是第一主扫描线Sa(1)搭配三个次扫描线等等。以第一主扫描线Sa(1)搭配一个次扫描线为例子,可以是先触发第一主扫描线Sa(1),接着触发次扫描线Sb(1);然后触发第一主扫描线Sa(1),再接着触发次扫描线Sb(2);紧接着触发第一主扫描线Sa(1),然后触发次扫描线Sb(3);接着触发第一主扫描线Sa(1),然后触发次扫描线Sb(3);再接着触发第一主扫描线Sa(1),紧接着触发次扫描线Sb(4);然后触发第一主扫描线Sa(1),接着触发次扫描线Sb(5),从而完成一个扫描循环,以此类推,再继续地循环下一个扫描循环。假设触发扫描线的时间T为0.5ms,则在第一扫描模式时,第一按键组10的扫描循环为1ms(2T),亦即每1ms会扫描第一按键组10一次;第二按键组20的扫描循环为5ms(10T),亦即每5ms会扫描第二按键组20一次。藉此,大幅度地缩短第一按键组10的扫描循环,同时缩短第一按键组10的按键反应时间。
若第二扫描模式被致能,则执行第二扫描模式,如步骤S230所示。请同时参阅图1与图4A,以便理解第二扫描模式的运作流程。在步骤S231中,第二扫描模式包括交替执行第一扫描程序与第三扫描程序,第三扫描程序包括依序触发上述多个次扫描线Sb(1)至Sb(N),并读取上述多条感应信号线SS的电信号,以判断第二按键组20中是否有按键被触发。也就是说,第一扫描程序与第三扫描程序为穿插式、交替式的扫描方式。例如,先触发第一主扫描线Sa(1),接着可以是依序触发次扫描线Sb(1)至Sb(N),从而完成一个扫描循环,以此类推,再继续地循环下一个扫描循环。
然后,请同时参阅图2、图4C与图6,以便理解第三扫描模式的运作流程。图2是依照本发明实施例所绘示的执行第一扫描模式、第二扫描模式与第三扫描模式的按键扫描方法的流程示意图,亦即电竞模式、一般模式与文书扫描模式(简称文书模式)的实施例。本发明实施例中,前述键盘上的多个按键的其中又一部分组成第三按键组30,且用于扫描上述多个按键的多个扫描线中除了第一主扫描线Sa(1)外,还包括第二主扫描线Sa(2),第二主扫描线Sa(2)电性连接至第三按键组30(具体为连接至上述第三按键组30所包含的多个按键),按键扫描方法进一步包括第三扫描模式,且对应在图1判断第一扫描模式(亦即电竞模式)与第二扫描模式(亦即一般模式)何者被致能的步骤中,图2所示的方法进一步包括判断第三扫描模式是否被致能。若第三扫描模式被致能,则执行第三扫描模式(亦即文书模式)。需注意的是,有关步骤S220至S231的第一扫描模式与第二扫描模式的按键扫描方法已于前述实施例所详加叙述,在此不再赘述。
在步骤S300中,设定扫描模式可以是系统以自动侦测并自动判断的方式执行扫描模式的设定,例如系统侦测到用户开启文字处理软件,此时系统便会自动将扫描模式设定为第三扫描模式。或者可以是用户以手动的方式执行扫描模式的设定。在步骤S310中,按键扫描方法包括判断第一扫描模式、第二扫描模式与第三扫描模式何者被致能。在步骤S340中,若第三扫描模 式被致能,则执行第三扫描模式。
接着,在步骤S341中,第三扫描模式包括执行第一扫描程序(具体执行内容可如步骤S221所示);接着执行第四扫描程序,第四扫描程序包括触发第二主扫描线Sa(2),并读取多条感应信号线SS的电信号,以判断第三按键组30中是否有按键被触发;接着执行第二扫描程序(具体执行内容可如步骤S222所示)。此外,第一扫描程序、第四扫描程序与第二扫描程序为交替执行,并且每一个次扫描线Sb(1)至Sb(N)至少被触发一次。需注意的是,第一按键组10的使用频率比第三按键组30的使用频率高。第二主扫描线Sa(2)的列序排在第一主扫描线Sa(1)的列序之后,上述多个次扫描线Sb(1)至Sb(N)的列序排在第二主扫描线Sa(2)的列序之后。
实际操作中,本发明实施例可实际应用于具有两种扫描模式的键盘,例如是电竞扫描模式(简称为电竞模式)与文书扫描模式(简称为文书模式)。同样的,设定扫描模式可以是系统以自动侦测并自动判断的方式执行扫描模式的设定,例如系统侦测到用户开启游戏,此时系统便会自动将扫描模式设定为第一扫描模式(电竞模式)。当然也可以是使用者以手动的方式执行扫描模式的设定。在执行第一扫描模式或第三扫描模式的步骤前,所述方法进一步包括判断第一扫描模式与第三扫描模式何者被致能,也就是要执行哪一个模式。若第一扫描模式被致能,则执行第一扫描模式;若第三扫描模式被致能,则执行第三扫描模式,第三扫描模式包括:先执行第一扫描程序;接着执行第四扫描程序,第四扫描程序包括触发第二主扫描线Sa(2),并读取多条感应信号线SS的电信号,以判断第三按键组中是否有按键被触发;然后执行第二扫描程序;其中,第一扫描程序、第四扫描程序与第二扫描程序为交替执行,并且每一次扫描线至少被触发一次。
然后,请参阅图3,并同时参阅图4A至图5以便理解按键扫描的运作流程。图3是依照本发明另一实施例所绘示的使用于按键扫描电路的扫描方法的流程示意图,需注意的是,由于使用于按键扫描电路的扫描方法的步骤 流程与按键扫描方法的步骤流程非常相似且有部分是一样的,而按键扫描方法已于前述实施例所详加叙述,在此不再赘述,仅作重点概述。在本实施例中,一种使用于按键扫描电路40的扫描方法,按键扫描电路40可用于扫描第一按键组10与第二按键组20,第一按键组10包含X个优先按键,第二按键组20包含Y个次要按键,按键扫描电路40包括M条主扫描线Sa(1)至Sa(M)、N条次扫描线Sb(1)至Sb(N)与多条感应信号线SS,其中X、Y、M、N为正整数,M条主扫描线Sa(1)至Sa(M)电性连接至X个优先按键,N条次扫描线Sb(1)至Sb(N)电性连接至Y个次要按键,扫描方法包括下列步骤:步骤(1)开始扫描循环,设定主扫描次数j的初始值为0(如步骤S500所示);步骤(2a),判断主扫描次数j是否等于主扫描默认上限值Jmax(如步骤S510所示),其中Jmax为正整数。若是,则执行步骤(3);若否,则执行步骤(2b);步骤(2b),轮流触发M条主扫描线Sa(1)至Sa(M)中的每一条,读取上述多条感应信号线SS的电信号,以侦测X个优先按键中是否有按键被触发(如步骤S530所示);步骤(2c),增加主扫描次数j的值,其中j=j+1(如步骤S531所示),并回到步骤(2a);步骤(3),轮流触发N条次扫描线Sb(1)至Sb(N)的其中P条次扫描线,读取上述多条感应信号线SS的电信号,其中,P条次扫描线为耦接到Y个次要按键中的Q个次要按键,以侦测Q个次要按键中任一个是否被触发,其中P<N,且Q<Y,P、Q为正整数(如步骤S520所示);步骤(4),于扫描循环中,判断N条次扫描线Sb(1)至Sb(N)是否均被触发过(如步骤S521所示),若是,则结束扫描循环(如步骤S540所示),若否,则设定主扫描次数j值为0,并回到步骤(2a)(如步骤S522所示)。
当按键扫描电路40被设定为第一扫描模式时,M等于1(M=1),即输入设备具有一条主扫描线,定义为第一主扫描线Sa(1),X个优先按键均电性连接至第一主扫描线Sa(1)上。于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:对Sa(1)扫描Jmax次,例 如若Jmax为3时,则连续扫描Sa(1)三次。接着依序扫描次扫描线Sb(1)至Sb(P),然后再对第一条主扫描线Sa(1)扫描Jmax次,接着扫描Sb(1+P)至Sb(2P),以此类推,直到对Sa(1)扫描Jmax次,且接着扫描完P条次扫描线后判断N条次扫描线Sb(1)至Sb(N)均被触发过为止。实际操作中,第一扫描模式可以是电竞模式,X个优先按键至少包含“W”、“A”、“S”、“D”四个英文字母键与“上”、“下”、“左”、“右”四个箭头键。
举例来说,当Jmax=1且P=1时,于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)->Sb(1)->Sa(1)->Sb(2)->Sa(1)->Sb(3)直到Sa(1)->Sb(N)为止。换言之,先触发第一主扫描线Sa(1),接着触发次扫描线Sb(1),然后触发第一主扫描线Sa(1),再接着触发次扫描线Sb(2),紧接着触发第一主扫描线Sa(1),接着触发次扫描线Sb(3),以此类推,直到触发第一主扫描线Sa(1),接着触发次扫描线Sb(N)为止。
或者例如,当Jmax=1且P=2时,本实施例中,输入设备一共具有6条扫描线,其中包括一条主扫描线和5条次扫描线。于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)->[Sb(1)->Sb(2)]->Sa(1)->[Sb(3)->Sb(4)]直到->Sa(1)->Sb(5)为止。本实施例中,P等于2,N等于5,P不能够被N整除,在扫描循环内的最后一次扫描时,仅选择N条次扫描线Sb(1)至Sb(N)中尚未被扫描的1条次扫描线Sb(5)进行扫描。实际操作中,还可以于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序还可以是:Sa(1)->[Sb(1)->Sb(2)]->Sa(1)->[Sb(3)->Sb(4)]直到->Sa(1)->[Sb(5)->Sb(1)]为止。即,还可以将N条次扫描线Sb(1)至Sb(N)的循环来作为扫描对象,则可扫描Sb(5)和Sb(1)。
又或者例如,当Jmax=1且P=3时。于扫描循环中,轮流触发第一条主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)->[Sb(1)->Sb(2)->Sb(3)]->Sa(1)->[Sb(4)->Sb(5)->Sb(6)]直到->Sa(1)->[Sb(N-2)-> Sb(N-1)->Sb(N)]为止。
或者例如,当Jmax=2且P=1时,于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:[Sa(1)->Sa(1)]->Sb(1)->[Sa(1)->Sa(1)]->Sb(2)直到->[Sa(1)->Sa(1)]->Sb(N)为止。
又或者例如,当Jmax=3且P=1时,于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:[Sa(1)->Sa(1)->Sa(1)]->Sb(1)->[Sa(1)->Sa(1)->Sa(1)]->Sb(2)直到->[Sa(1)->Sa(1)->Sa(1)]->Sb(N)为止。总的来说,藉由增加对主扫描线Sa(1)的扫描次数,可以大幅度地缩短X个优先按键的反应时间。
当按键扫描电路40被设定为第二扫描模式时,M等于2(M=2),输入设备具有两条主扫描线,分别定义为第一主扫描线Sa(1)和第二主扫描线Sa(2),X个优先按键电性连接至两条主扫描线Sa(1)、Sa(2),于扫描循环中,轮流触发两条主扫描线Sa(1)、Sa(2)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)至Sa(2)循环扫描Jmax次->Sb(1)至Sb(P)->Sa(1)至Sa(2)循环扫描Jmax次->Sb(1+P)至Sb(2P)->Sa(1)至Sa(2)循环扫描Jmax次直到->Sa(1)至Sa(2)循环扫描Jmax次且接着扫描完P条次扫描线后判断N条次扫描线Sb(1)至Sb(N)均被触发过为止。实际操作中,第二扫描模式可以是文书模式,X个优先按键至少包含“A至Z”26个英文字母键。
举例来说,当Jmax=1且P=1时,于扫描循环中,轮流触发两条主扫描线Sa(1)、Sa(2)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:[Sa(1)->Sa(2)]->Sb(1)->[Sa(1)->Sa(2)]->Sb(2)->[Sa(1)->Sa(2)]->Sb(3)直到[Sa(1)->Sa(2)]->Sb(N)为止。换言之,先触发主扫描线Sa(1),接着触发主扫描线Sa(2),然后触发次扫描线Sb(1),再接着触发主扫描线Sa(1),紧接着触发主扫描线Sa(2),接着触发次扫描线Sb(2),然后触发主扫描线Sa(1),再接着触发主扫描线Sa(2),紧接着触发次扫描线Sb(3),以此类推,直到触发第一主扫描线Sa(1),接着触发第二主扫描线Sa(2),然后触发次扫描线Sb(N)为止。总的来说, 藉由增加对主扫描线Sa(1)与Sa(2)的扫描次数,可以大幅度地提升X个优先按键的反应时间。
接下来要说明的是,本发明实施例所提供的按键扫描方法与使用于按键扫描电路的扫描方法是可以执行于输入设备1中,请同时参阅图1至图4C。但本发明并不限制图1至图2的按键扫描方法与图3的使用于按键扫描电路的扫描方法仅能够执行于图5的输入设备1中。需注意的是,由于按键扫描方法与使用于按键扫描电路的扫描方法的步骤流程,已于前述实施例所详加叙述,在此不再赘述,仅作重点概述。
输入设备1包括按键扫描电路40、第一按键组10与第二按键组20。实际操作中,输入设备1可以是实体键盘。键盘上具有多个按键,每个按键上标示着其代表的字符与符号。大部分情况下,按下一个按键就输出对应的一个符号,如字母、数字或标点符号等。按键扫描电路40包括M条主扫描线Sa(1)至Sa(M)、N条次扫描线Sb(1)至Sb(N)与多条感应信号线SS,其中M、N为正整数。第一按键组10包含X个优先按键,M条主扫描线Sa(1)至Sa(M)电性连接至X个优先按键,其中X为正整数。举例来说,当M=1,即按键扫描电路40仅包含一条主扫描线,可定义为第一主扫描线Sa(1),X个优先按键至少包含“W”、“A”、“S”、“D”四个英文字母键与“上”、“下”、“左”、“右”四个箭头键,此时X个优先按键均电性连接至第一主扫描线Sa(1)。此外,当M=2,即按键扫描电路40包含两条主扫描线,可分别定义为第一主扫描线Sa(1)和第二主扫描线Sa(2),X个优先按键至少包含“A至Z”26个英文字母键,此时X个优先按键电性连接至两条主扫描线Sa(1)与Sa(2)。第二按键组20包含Y个次要按键,N条次扫描线Sb(1)至Sb(N)电性连接至Y个次要按键,其中Y为正整数。
请参阅图3,本发明的输入设备1的按键扫描电路40可以是执行下列步骤:步骤(1)开始扫描循环,设定主扫描次数j的初始值为0(如步骤S500所示);步骤(2a),判断主扫描次数j是否等于主扫描默认上限值Jmax(如步 骤S510所示),Jmax为正整数。若是,则执行步骤(3);若否,则执行步骤(2b);步骤(2b),轮流触发M条主扫描线Sa(1)至Sa(M)中的每一条,并读取上述多条感应信号线SS的电信号,以侦测X个优先按键中是否有按键被触发(如步骤S530所示);步骤(2c),增加主扫描次数j的值,其中j=j+1(如步骤S531所示),并回到步骤(2a);步骤(3),轮流触发N条次扫描线Sb(1)至Sb(N)的其中P条次扫描线,并读取上述多条感应信号线SS的电信号,其中,P条次扫描线为耦接到Y个次要按键中的Q个次要按键,以侦测Q个次要按键是否被触发,其中P<N,且Q<Y,P、Q为正整数(如步骤S520所示);步骤(4),于扫描循环中,判断N条次扫描线Sb(1)至Sb(N)是否均被触发过(如步骤S521所示),若否,则设定主扫描次数j为0,并回到步骤(2a),若是,则结束扫描循环(如步骤S540所示)。
当按键扫描电路40未被设定为第一扫描模式时,M等于1(M=1),即输入设备具有一条主扫描线,定义为第一主扫描线Sa(1),Jmax=1,P=N,于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)->Sb(1)->Sb(2)->Sb(3)直到Sb(N)为止,使第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)中每一条均被触发相同的次数。又举例来说,当Jmax=1且P=1时,于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)->Sb(1)->Sa(1)->Sb(2)->Sa(1)->Sb(3)直到Sa(1)->Sb(N)为止,使第一主扫描线Sa(1)的被触发次数高于N条次扫描线Sb(1)至Sb(N)中每一条的被触发次数。
当按键扫描电路40被设定为第一扫描模式时,Jmax>=1,P<N,于扫描循环中,轮流触发第一主扫描线Sa(1)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)扫描Jmax次->[Sb(1)->至Sb(P)]->Sa(1)扫描Jmax次->[Sb(P+1)->至Sb(2P)]直到Sa(1)扫描Jmax次且接着扫描完P条次扫描线后判断N条次扫描线Sb(1)至Sb(N)均被触发过为止,使第一主扫描线Sa(1)的被触发次数高于N条次扫描线Sb(1)至Sb(N)中每一条的被触发次 数。
当按键扫描电路40未被设定为第二扫描模式时,M等于2(m=2),即输入设备具有两条主扫描线,分别定义为第一主扫描线Sa(1)和第二主扫描线Sa(2),Jmax=1,P=N,于扫描循环中,轮流触发两条主扫描线Sa(1)、Sa(2)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:Sa(1)->Sa(2)->Sb(1)->Sb(2)->Sb(3)直到Sb(N)为止,使两条主扫描线Sa(1)、Sa(2)中每一条与N条次扫描线Sb(1)至Sb(N)中每一条均被触发相同的次数。又举例来说,当Jmax=1且P=1时,于扫描循环中,轮流触发两条主扫描线Sa(1)、Sa(2)与N条次扫描线Sb(1)至Sb(N)的顺序可以是:[Sa(1)->Sa(2)]->Sb(1)->[Sa(1)->Sa(2)]->Sb(2)->[Sa(1)->Sa(2)]->Sb(3)直到[Sa(1)->Sa(2)]->Sb(N)为止,使两条主扫描线Sa(1)的被触发次数高于N条次扫描线Sb(1)至Sb(N)中每一条的被触发次数。
当按键扫描电路40被设定为第二扫描模式时,Jmax>=1,P<N,于扫描循环中,轮流触发两条主扫描线Sa(1)、Sa(2)与N条次扫描线Sb(1)至Sb(N)的顺序为:[Sa(1)->Sa(2)]循环扫描Jmax次->[Sb(1)->Sb(2)->...Sb(P)]扫描一次->[Sa(1)->Sa(2)]循环扫描Jmax次->[Sb(P+1)...Sb(2P)]扫描一次直到[Sa(1)->Sa(2)]循环扫描Jmax次且接着扫描完P条次扫描线后判断N条次扫描线Sb(1)至Sb(N)均被触发过为止,使两条主扫描线Sa(1)~Sa(2)中每一条的被触发次数高于N条次扫描线Sb(1)至Sb(N)中每一条的被触发次数。
接下来要说明的是,本发明实施例所提供的按键扫描方法、使用于按键扫描电路的扫描方法是可以执行于输入设备3中,请同时参阅图1至图4C。但本发明并不限制图1至图2的按键扫描方法与图3的使用于按键扫描电路的扫描方法仅能够执行于图7A至图7C的输入设备3中。图7A为依照本发明另一键盘输入设备的方块示意图,适用于第一扫描模式。图7B为依照本发明另一键盘输入设备的方块示意图,适用于第二扫描模式。图7C为依照 本发明另一键盘输入设备的方块示意图,适用于第三扫描模式。需注意的是,由于按键扫描方法与使用于按键扫描电路的扫描方法的步骤流程,已于前述实施例所详加叙述,在此不再赘述,仅作重点概述。
输入设备3包括按键扫描电路40与按键组50,按键组50可包括第一按键组10与第二按键组20。输入设备3可以是实体键盘,键盘上具有多个按键,每个按键上标示着其代表的字符与符号。大部分情况下,按下一个按键就输出对应的一个符号,如字母、数字或标点符号等。按键扫描电路40包括N+1条扫描线Row0~RowN,与多条感应信号线SS,N为正整数。
请参阅图8至图10。图8至图10是依照本发明另一实施例执行本发明按键扫描方法的流程示意图.如图8步骤S800所示,按键扫描电路40执行下列步骤:开始扫描循环,判断输入设备3目前是否为第一扫描模式、第二扫描模式或第三扫描模式其中之一,据此分别执行步骤S810(C路径-对应第一扫描模式)、步骤S821(A路径-对应第二扫描模式)或步骤S841(B路径-对应第三扫描模式)其中之一。需说明的是,在实际操作中,第一扫描模式可以是一般模式;第二扫描模式可以是电竞模式;第三扫描模式可以是文书模式。
如图8步骤S810所示,当输入设备3于第一扫描模式时执行以下步骤。首先,按键扫描电路40轮流触发复数条扫描线Row0~RowN其中之一直到复数条扫描线中每一条都被触发过为止,并读取多条感应信号线SS的电信号,然后侦测输入设备3中是否有按键被触发,并结束扫描循环。
如图9步骤S821所示,当输入设备3于第二扫描模式时,按键扫描电路40将扫描线Row0定义为第一主扫描线Sa(1)、并将扫描线Row1~RowN定义为N条次扫描线Sb(1)至Sb(N)。接着,按键扫描电路40将电性连接至第一主扫描线Sa(1)的X1个按键定义为第一按键组10,并将未电性连接至第一主扫描线Sa(1)的其余Y1个按键定义为第二按键组20,其中X1、Y1为正整数(如步骤S822所示)。需说明的是,X1个优先按键至少包含“W”、“A”、“S”、“D”四个英文字母键与“上”、“下”、“左”、“右”四个箭头键。 紧接着,设定主扫描次数j的初始值为0(如步骤S823所示)。然后,判断主扫描次数j是否等于预设上限值Jmax,其中预设上限值Jmax为正整数(如步骤S824所示)。若是,则执行步骤S825,若否,则执行步骤S830。
接着要说明的是,当主扫描次数j是等于预设上限值Jmax时的步骤流程。首先,轮流触发N条次扫描线Sb(1)至Sb(N)的其中P条,其中P条次扫描线为耦接到Y1个次要按键中的Q个次要按键。接着,读取多条感应信号线SS的电信号,侦测Q个次要按键中是否有按键被触发,其中P<N、Q<Y1,P、Q为正整数(如步骤S825所示)。紧接着,判断N条次扫描线Sb(1)至Sb(N)是否均被触发过(如步骤S826所示),若否,则设定主扫描次数j为0,并回到步骤S824(如步骤S828所示),若是,则结束扫描循环(如步骤S827所示)。
紧接着要说明的是,当主扫描次数j不等于预设上限值Jmax时的步骤流程。首先,触发第一主扫描线Sa(1),读取多条感应信号线SS的电信号,侦测X1个优先按键中是否有按键被触发(如步骤S830所示)。接着,增加主扫描次数j的值,其中j=j+1,并回到步骤S824(如步骤S831所示)。
如图10步骤S841所示,当输入设备3于第三扫描模式时,按键扫描电路40将扫描线Row0~Row1定义为两条主扫描线Sa(1)~Sa(2),并将扫描线Row2~RowN定义为N-1条次扫描线Sb(1)至Sb(N-1)。接着,按键扫描电路40将电性连接至两条主扫描线Sa(1)~Sa(2)的X2个按键定义为第一按键组,并将未电性连接至两条主扫描线Sa(1)~Sa(2)的其余Y2个按键定义为第二按键组,X2、Y2为正整数(如步骤S842所示)。需说明的是,X2个优先按键至少包含“A至Z”26个英文字母键与“上”、“下”、“左”、“右”四个箭头键。紧接着,设定主扫描次数j的初始值为0(如步骤S843所示)。然后,判断主扫描次数j是否等于预设上限值Jmax,其中预设上限值Jmax为正整数(如步骤S844所示),若是,则执行步骤S845,若否,则执行步骤S850。
接着要说明的是,当主扫描次数j是等于预设上限值Jmax时的步骤流 程。首先,轮流触发N-1条次扫描线Sb(1)至Sb(N-1)的其中P条,P条次扫描线是耦接到Y2个次要按键中的Q个次要按键,并读取多条感应信号线SS的电信号,侦测Q个次要按键中是否有按键被触发,其中P<N-1、Q<Y2,P、Q为正整数(如步骤S845所示)。接着,判断N-1条次扫描线Sb(1)至Sb(N-1)是否均被触发过(如步骤S846所示),若否,则设定主扫描次数j为0,并回到步骤S844(如步骤S847所示),若是,则结束扫描循环(如步骤S827所示)。
紧接着要说明的是,当主扫描次数j不等于预设上限值Jmax时的步骤流程。首先,轮流触发两条主扫描线Sa(1)~Sa(2),读取多条感应信号线SS的电信号,侦测X2个优先按键中是否有按键被触发(如步骤S850所示)。接着,增加主扫描次数j的值,其中j=j+1,并回到步骤S844(如步骤S851所示)。
综上所述,本发明实施例所提供的按键扫描方法、使用于按键扫描电路的扫描方法及输入设备。藉由对关键按键或者常用按键进行穿插式、交替式的扫描,也就是对这些关键按键所耦接的主扫描线增加扫描的次数,以达到缩短这些关键按键的扫描循环,以对这些关键按键进行更快速度的扫描。藉此,大幅度地缩短这些关键按键的扫描循环,同时也加快这些关键按键的反应速度。
藉由以上较佳具体实施例的详述,是希望能更加清楚描述本发明的特征与精神,而并非以上述所揭露的较佳具体实施例来对本发明的保护范围加以限制。相反地,其目的是希望能涵盖各种改变及具相等性的安排于本发明所欲申请的权利要求的保护范围内。因此,本发明的权利要求的保护范围应该根据上述的说明作最宽广的解释,以致使其涵盖所有可能的改变以及具相等性的安排。

Claims (25)

  1. 一种按键扫描方法,适用于一个具有多个按键的输入设备,其特征在于,该多个按键的其中一部分组成第一按键组,该多个按键的其中另一部分组成第二按键组,且该输入设备还具有用于扫描该多个按键的多条扫描线以及对应该多个按键的多条感应信号线,该多条扫描线包括第一主扫描线与多条次扫描线,其中该第一主扫描线电性连接至该第一按键组,该多条次扫描线电性连接至该第二按键组,该按键扫描方法包括:
    执行第一扫描模式,该第一扫描模式包括:
    执行第一扫描程序,该第一扫描程序包括触发该第一主扫描线,并读取该多条感应信号线的电信号,以判断该第一按键组中是否有按键被触发;以及
    执行第二扫描程序,该第二扫描程序为触发该多条次扫描线的至少其中之一,并读取该多条感应信号线的该电信号,以判断该第二按键组中是否有按键被触发;
    其中,该第一扫描程序与该第二扫描程序为交替执行,并且每一次扫描线至少被触发一次。
  2. 根据权利要求1所述的按键扫描方法,其特征在于:该多个按键的排列形式为一矩阵,由R行和C列所组成,其中R与C为大于等于2的正整数。
  3. 根据权利要求2所述的按键扫描方法,其特征在于:该多条次扫描线的列序排在该第一主扫描线的列序之后,该多条感应信号线对应该矩阵的第一列至第C列进行设置。
  4. 根据权利要求1所述的按键扫描方法,其特征在于:该按键扫描方法还包括第二扫描模式,其中在执行该第一扫描模式或该第二扫描模式的步骤前,该按键扫描方法还包括:
    判断该第一扫描模式与该第二扫描模式何者被致能;
    若该第一扫描模式被致能,则执行该第一扫描模式;以及
    若该第二扫描模式被致能,则执行该第二扫描模式,该第二扫描模式包括交替执行该第一扫描程序与第三扫描程序,该第三扫描程序包括依序触发该多条次扫描线,并读取该多条感应信号线的该电信号,以判断该第二按键组中是否有按键被触发。
  5. 根据权利要求4所述的按键扫描方法,其特征在于:该多个按键的其中又一部分组成第三按键组,且用于扫描该多个按键的该多条扫描线还包括第二主扫描线,该第二主扫描线电性连接至该第三按键组,该按键扫描方法还包括第三扫描模式,且在执行该第一扫描模式、该第二扫描模式或该第三扫描模式的步骤前,该按键扫描方法还包括:
    判断该第一扫描模式、该第二扫描模式以及该第三扫描模式何者被致能;以及
    若该第三扫描模式被致能,则执行该第三扫描模式,该第三扫描模式包括:
    执行该第一扫描程序;
    执行第四扫描程序,该第四扫描程序包括触发该第二主扫描线,并读取该多条感应信号线的该电信号,以判断该第三按键组中是否有按键被触发;以及
    执行该第二扫描程序;
    其中,该第一扫描程序、该第四扫描程序与该第二扫描程序为交替执行,并且每一次扫描线至少被触发一次。
  6. 根据权利要求5所述的按键扫描方法,其特征在于:该第一按键组的使用频率比该第三按键组的使用频率高。
  7. 根据权利要求5所述的按键扫描方法,其特征在于:该第二主扫描线的列序排在该第一主扫描线的列序之后,该多条次扫描线的列序排在该第 二主扫描线的列序之后。
  8. 根据权利要求1所述的按键扫描方法,其特征在于:该多个按键的其中又一部分组成第三按键组,且用于扫描该多个按键的该多条扫描线还包括第二主扫描线,该第二主扫描线电性连接至该第三按键组,该按键扫描方法还包括第三扫描模式,而在执行该第一扫描模式或该第三扫描模式的步骤前,该按键扫描方法还包括:
    判断该第一扫描模式与该第三扫描模式何者被致能;
    若该第一扫描模式被致能,则执行该第一扫描模式;以及
    若该第三扫描模式被致能,则执行该第三扫描模式,该第三扫描模式包括:
    执行该第一扫描程序;
    执行第四扫描程序,该第四扫描程序包括触发该第二主扫描线,并读取该多条感应信号线的该电信号,以判断该第三按键组中是否有按键被触发;以及
    执行该第二扫描程序;
    其中,该第一扫描程序、该第四扫描程序与该第二扫描程序为交替执行,并且每一次扫描线至少被触发一次。
  9. 根据权利要求8所述的按键扫描方法,其特征在于:该第一按键组的使用频率比该第三按键组的使用频率高。
  10. 根据权利要求8所述的按键扫描方法,其特征在于:该第二主扫描线的列序排在该第一主扫描线的列序之后,该多条次扫描线的列序排在该第二主扫描线的列序之后。
  11. 一种使用于按键扫描电路的扫描方法,其特征在于,该按键扫描电路可扫描第一按键组与第二按键组,该第一按键组包含X个优先按键,该第二按键组包含Y个次要按键,该按键扫描电路包括M条主扫描线Sa(1)至Sa(M)、N条次扫描线Sb(1)至Sb(N)与多条感应信号线,其中X、Y、M、N 为正整数,该M条主扫描线Sa(1)至Sa(M)电性连接至该X个优先按键,该N条次扫描线Sb(1)至Sb(N)电性连接至该Y个次要按键,该扫描方法包括下列步骤:
    步骤(1),开始扫描循环,设定主扫描次数j的初始值为0;
    步骤(2a),判断该主扫描次数j是否等于主扫描默认上限值Jmax,其中Jmax为正整数,若是,则执行步骤(3),若否,则执行步骤(2b);
    步骤(2b),轮流触发该M条主扫描线Sa(1)至Sa(M)中的每一条,读取该多条感应信号线的电信号,以侦测该X个优先按键中是否有按键被触发;
    步骤(2c),增加该主扫描次数j的值,其中j=j+1,并回到步骤(2a);
    步骤(3),轮流触发该N条次扫描线Sb(1)至Sb(N)的其中P条次扫描线,读取该多条感应信号线的该电信号,其中,该P条次扫描线耦接到该Y个次要按键中的Q个次要按键,以侦测该Q个次要按键中是否有按键被触发,其中P<N,且Q<Y,P、Q为正整数;以及
    步骤(4),于该扫描循环中,判断该N条次扫描线Sb(1)至Sb(N)是否均被触发过,若是则结束该扫描循环,若否,则设定该主扫描次数j为0,并回到步骤(2a)。
  12. 根据权利要求11所述的扫描方法,其特征在于:当该按键扫描电路被设定为第一扫描模式时,M=1,该按键扫描电路具有一条主扫描线,定义为第一主扫描线Sa(1),该X个优先按键均电性连接至该第一主扫描线Sa(1)上,于该扫描循环中,轮流触发该第一主扫描线Sa(1)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)扫描Jmax次->Sb(1)至Sb(P)轮流扫描一次->Sa(1)扫描Jmax次->Sb(1+P)至Sb(2P)扫描一次直到该N条次扫描线Sb(1)至Sb(N)均被扫描过为止。
  13. 根据权利要求12所述的扫描方法,其特征在于:当Jmax=1且P=1时,于该扫描循环中,轮流触发该第一主扫描线Sa(1)与该N条次扫描线Sb(1) 至Sb(N)的顺序为:Sa(1)->Sb(1)->Sa(1)->Sb(2)->Sa(1)->Sb(3)直到步骤Sa(1)->Sb(N)为止。
  14. 根据权利要求12所述的扫描方法,其特征在于:该第一扫描模式为电竞模式,该X个优先按键至少包含“W”、“A”、“S”、“D”四个英文字母键与“上”、“下”、“左”、“右”四个箭头键。
  15. 根据权利要求11所述的扫描方法,其特征在于:当该按键扫描电路被设定为第二扫描模式时,M=2,该按键扫描电路具有两条主扫描线,分别为第一主扫描线Sa(1)和第二主扫描线Sa(2),该X个优先按键电性连接至该两条主扫描线Sa(1)、Sa(2),于该扫描循环中,轮流触发该两条主扫描线Sa(1)、Sa(2)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)至Sa(2)循环扫描Jmax次->Sb(1)至Sb(P)扫描一次->Sa(1)至Sa(2)循环扫描Jmax次->Sb(1+P)至Sb(2P)扫描一次->Sa(1)至Sa(2)循环扫描Jmax次->Sb(1+2P)至Sb(3P)扫描一次,直到该N条次扫描线Sb(1)至Sb(N)均被扫描过为止。
  16. 根据权利要求15所述的扫描方法,其特征在于:当Jmax=1且P=1时,于该扫描循环中,轮流触发该两条主扫描线Sa(1)、Sa(2)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)->Sa(2)->Sb(1)->Sa(1)->Sa(2)->Sb(2)->Sa(1)->Sa(2)->Sb(3),直到步骤[Sa(1)->Sa(2)->Sb(N)]为止。
  17. 根据权利要求16所述的扫描方法,其特征在于:该第二扫描模式为文书模式,该X个优先按键至少包含“A至Z”26个英文字母键。
  18. 一输入设备,其特征在于包括:
    按键扫描电路,该按键扫描电路包括M条主扫描线Sa(1)至Sa(M),N条次扫描线Sb(1)至Sb(N)与多条感应信号线,其中M、N为正整数;
    第一按键组,该第一按键组包含X个优先按键,该M条主扫描线Sa(1)至Sa(M)电性连接至该X个优先按键,其中X为正整数;以及
    第二按键组,该第二按键组包含Y个次要按键,该N条次扫描线Sb(1)至Sb(N)电性连接至该Y个次要按键,其中Y为正整数;
    其中该按键扫描电路执行下列步骤:
    步骤(1),开始扫描循环,设定主扫描次数j的初始值为0;
    步骤(2a),判断该主扫描次数j是否等于主扫描默认上限值Jmax,其中Jmax为正整数;若是,则执行步骤(3),若否,则执行步骤(2b);
    步骤(2b),轮流触发该M条主扫描线Sa(1)至Sa(M)中的每一条,并读取该多条感应信号线的电信号,以侦测该X个优先按键中是否有按键被触发;
    步骤(2c),增加该主扫描次数j的值,其中j=j+1,并回到步骤(2a);
    步骤(3),轮流触发该N条次扫描线Sb(1)至Sb(N)的其中P条次扫描线,并读取该多条感应信号线的该电信号,其中,该P条次扫描线为耦接到该Y个次要按键中的Q个次要按键,以侦测该Q个次要按键中是否有按键被触发,其中P<N,且Q<Y,P、Q为正整数;以及
    步骤(4),于该扫描循环中,判断该N条次扫描线Sb(1)至Sb(N)是否均被触发过,若否,则设定该主扫描次数j为0,并回到步骤(2a),若是,则结束该扫描循环。
  19. 根据权利要求18所述的输入设备,其特征在于:M=1,该按键扫描电路具有一条主扫描线,定义为第一主扫描线Sa(1),该X个优先按键至少包含“W”、“A”、“S”、“D”四个英文字母键与“上”、“下”、“左”、“右”四个箭头键,该X个优先按键均电性连接至该第一主扫描线Sa(1);
    其中当该按键扫描电路未被设定为第一扫描模式时,Jmax=1,P=N,于该扫描循环中,轮流触发该第一主扫描线Sa(1)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)->Sb(1)->Sb(2)->Sb(3)直到Sb(N)为止,使该第一主扫描线Sa(1)与该N条次扫描线Sb(1)至Sb(N)中每一条均被触发相同的次数;
    其中当该按键扫描电路被设定为该第一扫描模式时,Jmax>=1,P<N,于该扫描循环中,轮流触发该第一主扫描线Sa(1)与该N条次扫描线Sb(1)至 Sb(N)的顺序为:Sa(1)扫描Jmax次->Sb(1)至Sb(P)扫描一次->Sa(1)扫描Jmax次->Sb(P+1)至Sb(2P)扫描一次直到该N条次扫描线Sb(1)至Sb(N)均被扫描过为止,使该第一主扫描线Sa(1)的被触发次数高于该N条次扫描线Sb(1)至Sb(N)中每一条的被触发次数。
  20. 根据权利要求19所述的输入设备,其特征在于:当Jmax=1且P=1时,于该扫描循环中,轮流触发该第一主扫描线Sa(1)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)->Sb(1)->Sa(1)->Sb(2)->Sa(1)->Sb(3)直到步骤[Sa(1)->Sb(N)]为止。
  21. 根据权利要求18所述的输入设备,其特征在于:M=2,该按键扫描电路具有两条主扫描线,分别为第一主扫描线Sa(1)和第二主扫描线Sa(2),该X个优先按键至少包含“A至Z”26个英文字母键,该X个优先按键电性连接至该两条主扫描线Sa(1)、Sa(2);
    其中当该按键扫描电路未被设定为第二扫描模式时,Jmax=1,P=N,于该扫描循环中,轮流触发该两条主扫描线Sa(1)、Sa(2)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)->Sa(2)->Sb(1)->Sb(2)->Sb(3)直到Sb(N)为止,使该两条主扫描线Sa(1)、Sa(2)中每一条与该N条次扫描线Sb(1)至Sb(N)中每一条均被触发相同的次数;
    其中当该按键扫描电路被设定为该第二扫描模式时,Jmax>=1,P<N,于该扫描循环中,轮流触发该两条主扫描线Sa(1)、Sa(2)与该N条次扫描线Sb(1)至Sb(N)的顺序为:Sa(1)至Sa(2)循环扫描Jmax次->Sb(1)至Sb(P)扫描一次->Sa(1)至Sa(2)循环扫描Jmax次->Sb(P+1)至Sb(2P)扫描一次,直到该N条次扫描线Sb(1)至Sb(N)均被扫描过为止,使该两条主扫描线Sa(1)~Sa(2)中每一条的被触发次数高于该N条次扫描线Sb(1)至Sb(N)中每一条的被触发次数。
  22. 根据权利要求19所述的输入设备,其特征在于:当Jmax=1且P=1时,于该扫描循环中,轮流触发该两条主扫描线Sa(1)、Sa(2)与该N条次扫 描线Sb(1)至Sb(N)的顺序为:Sa(1)->Sa(2)->Sb(1)->Sa(1)->Sa(2)->Sb(2)->Sa(1)->Sa(2)->Sb(3)直到步骤Sa(1)->Sa(2)->Sb(N)为止。
  23. 一种输入设备,其特征在于包括:
    按键扫描电路,该按键扫描电路包括N+1条扫描线Row 0~Row N,与多条感应信号线,N为正整数;
    其中该按键扫描电路执行下列步骤:
    步骤(1),开始扫描循环,判断该输入设备目前是否为第一扫描模式、第二扫描模式或第三扫描模式其中之一,据此分别执行步骤(2)、步骤(3)或步骤(4)其中之一;
    步骤(2),当该输入设备于第一扫描模式时执行:
    该按键扫描电路轮流触发该复数条扫描线Row 0~Row N其中之一直到该复数条扫描线中每一条都被触发过为止,并读取该多条感应信号线的电信号,侦测该输入设备中是否有按键被触发,并结束该扫描循环;
    步骤(3),当该输入设备于第二扫描模式时执行:
    步骤(3a),该按键扫描电路将扫描线Row 0定义为第一主扫描线Sa(1)、并将扫描线Row 1~Row N定义为N条次扫描线Sb(1)至Sb(N);
    步骤(3b),该按键扫描电路将电性连接至该第一主扫描线Sa(1)的X1个按键定义为第一按键组,并将未电性连接至该第一主扫描线Sa(1)的其余Y1个按键定义为第二按键组,X1、Y1为正整数;
    步骤(3c),设定主扫描次数j的初始值为0;
    步骤(3d),判断该主扫描次数j是否等于预设上限值Jmax,其中预设上限值Jmax为正整数;若是,则执行步骤(3g),若否,则执行步骤(3e);
    步骤(3e),触发该第一主扫描线Sa(1),读取该多条感应信号线的该电信号,侦测该X1个优先按键中是否有按键被触发;
    步骤(3f),增加该主扫描次数j的值,其中j=j+1,并回到步骤(3d);
    步骤(3g),轮流触发该N条次扫描线Sb(1)至Sb(N)的其中P条,其中, 该P条次扫描线为耦接到该Y1个次要按键中的Q个次要按键,读取该多条感应信号线的该电信号,侦测该Q个次要按键中是否有按键被触发,其中P<N、Q<Y1,P、Q为正整数;
    步骤(3i),判断该N条次扫描线Sb(1)至Sb(N)是否均被触发过,若否,则设定该主扫描次数j为0,并回到步骤(3d),若是,则结束该扫描循环;
    步骤(4),当该输入设备于第三扫描模式时执行:
    步骤(4a),该按键扫描电路将扫描线Row 0~Row 1定义为两条主扫描线Sa(1)~Sa(2)、并将扫描线Row 2~Row N定义为N-1条次扫描线Sb(1)至Sb(N-1);
    步骤(4b),该按键扫描电路将电性连接至该两条主扫描线Sa(1)~Sa(2)的X2个按键定义为第一按键组,并将未电性连接至该两条主扫描线Sa(1)~Sa(2)的其余Y2个按键定义为第二按键组,X2、Y2为正整数;
    步骤(4c),设定主扫描次数j的初始值为0;
    步骤(4d),判断该主扫描次数j是否等于预设上限值Jmax,其中预设上限值Jmax为正整数,若是,则执行步骤(4g),若否,则执行步骤(4e);
    步骤(4e),轮流触发该两条主扫描线Sa(1)~Sa(2),读取该多条感应信号线的该电信号,侦测该X2个优先按键中是否有按键被触发;
    步骤(4f),增加该主扫描次数j的值,其中j=j+1,并回到步骤(4d);
    步骤(4g),轮流触发该N-1条次扫描线Sb(1)至Sb(N-1)的其中P条,该P条次扫描线是耦接到该Y2个次要按键中的Q个次要按键,并读取该多条感应信号线的该电信号,侦测该Q个次要按键中是否有按键被触发,其中P<N-1、Q<Y2,P、Q为正整数;以及
    步骤(4h),判断该N-1条次扫描线Sb(1)至Sb(N-1)是否均被触发过,若否,则设定该主扫描次数j为0,并回到步骤(4d),若是,则结束该扫描循环。
  24. 根据权利要求23所述的输入设备,其特征在于:该第二扫描模式是为电竞模式,该X1个优先按键至少包含“W”、“A”、“S”、“D”四个英 文字母键与“上”、“下”、“左”、“右”四个箭头键。
  25. 根据权利要求23所述的输入设备,其特征在于:该第三扫描模式是为文书模式,该X2个优先按键的组合至少包含“A至Z”26个英文字母键与“上”、“下”、“左”、“右”四个箭头键。
PCT/CN2019/090357 2019-06-06 2019-06-06 一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备 WO2020243952A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2019/090357 WO2020243952A1 (zh) 2019-06-06 2019-06-06 一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备
EP19932066.4A EP3982543A4 (en) 2019-06-06 2019-06-06 KEY SCANNING METHOD, SCANNING METHOD USED FOR KEY SCANNING CIRCUIT, AND INPUT DEVICE
US17/056,761 US11290126B2 (en) 2019-06-06 2019-06-06 Key scanning method, scan method for key scan circuit, and input device implemented therewith
US17/671,620 US20220171472A1 (en) 2019-06-06 2022-02-15 Key scanning method and input device implemented therewith

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/090357 WO2020243952A1 (zh) 2019-06-06 2019-06-06 一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US17/056,761 A-371-Of-International US11290126B2 (en) 2019-06-06 2019-06-06 Key scanning method, scan method for key scan circuit, and input device implemented therewith
US17/671,620 Continuation-In-Part US20220171472A1 (en) 2019-06-06 2022-02-15 Key scanning method and input device implemented therewith

Publications (1)

Publication Number Publication Date
WO2020243952A1 true WO2020243952A1 (zh) 2020-12-10

Family

ID=73652732

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090357 WO2020243952A1 (zh) 2019-06-06 2019-06-06 一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备

Country Status (3)

Country Link
US (1) US11290126B2 (zh)
EP (1) EP3982543A4 (zh)
WO (1) WO2020243952A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257308A (zh) * 2007-03-01 2008-09-03 达方电子股份有限公司 输入装置及其管理方法
US20150169101A1 (en) * 2013-12-16 2015-06-18 Nvidia Corporation Method and system for reduced power touch input detection on an electronic device using reduced scanning
CN105406875A (zh) * 2014-09-11 2016-03-16 原相科技股份有限公司 按键检测电路

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5936755B2 (ja) * 1976-07-02 1984-09-05 株式会社河合楽器製作所 キ−アサイナ
JPS573131A (en) * 1980-06-09 1982-01-08 Fujitsu Ltd Controlling system for keyboard
DE3023579C2 (de) * 1980-06-24 1984-10-31 Matth. Hohner Ag, 7218 Trossingen Elektronisches Musikinstrument
JPH07109572B2 (ja) * 1984-02-29 1995-11-22 東京プレス工業株式会社 キャパシティブキ−ボ−ド
US5274371A (en) * 1991-01-29 1993-12-28 Industrial Technology Research Institute Extended time-shared scanning keyboard interface
US5430443A (en) * 1993-04-12 1995-07-04 National Semiconductor Corporation Scanned switch matrix
US5534860A (en) * 1994-05-02 1996-07-09 Phillips; Joseph E. Multiple key array
US6191709B1 (en) * 1996-02-09 2001-02-20 Samsung Electronics Co., Ltd. Keyboard with separated keyboard frames and portable computer having the same
TW378769U (en) * 1996-07-16 2000-01-01 Silitek Corp Keyboard with expandable hot keys
US6885315B2 (en) * 2002-04-08 2005-04-26 Peter Chen Keyboard
US7158056B2 (en) * 2004-07-08 2007-01-02 Cypress Semiconductor Corporation Method and apparatus for scanning a key or button matrix
TWI312124B (en) * 2005-04-19 2009-07-11 Wistron Corporatio Electronic device and its keyboard system and key status detecting method thereof
JP4895278B2 (ja) * 2006-10-03 2012-03-14 ルネサスエレクトロニクス株式会社 キー入力装置
CN101686060B (zh) 2008-09-25 2013-06-19 旭丽电子(广州)有限公司 控制电路及配置方法
KR101279029B1 (ko) 2008-11-26 2013-07-02 교세라 가부시키가이샤 키 입력 장치
TWI383293B (zh) 2009-04-14 2013-01-21 Generalplus Technology Inc 睡眠模式省電方法以及使用其之鍵盤控制電路
TWI533118B (zh) 2012-05-02 2016-05-11 凌通科技股份有限公司 超低耗電喚醒電路裝置
US20140176352A1 (en) * 2012-12-21 2014-06-26 Apple Inc. Computer keyboard key scan shared matrix with an individual led per key
TWI568196B (zh) 2015-08-17 2017-01-21 光寶電子(廣州)有限公司 鍵盤掃描電路、鍵盤及其掃描方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257308A (zh) * 2007-03-01 2008-09-03 达方电子股份有限公司 输入装置及其管理方法
US20150169101A1 (en) * 2013-12-16 2015-06-18 Nvidia Corporation Method and system for reduced power touch input detection on an electronic device using reduced scanning
CN105406875A (zh) * 2014-09-11 2016-03-16 原相科技股份有限公司 按键检测电路

Also Published As

Publication number Publication date
US20210266012A1 (en) 2021-08-26
EP3982543A4 (en) 2023-01-18
US11290126B2 (en) 2022-03-29
EP3982543A1 (en) 2022-04-13

Similar Documents

Publication Publication Date Title
US7956771B2 (en) Compact alphanumeric keyboard
US7658562B2 (en) Modified-QWERTY letter layout for rapid data entry
US7216588B2 (en) Modified-qwerty letter layout for rapid data entry
KR100805770B1 (ko) 문자입력장치
JPS6318421A (ja) キ−ボ−ド機能拡充方法及びその装置
JPH10326138A (ja) キー入力装置
CN110266319B (zh) 按键扫描方法、用于按键扫描电路的扫描方法及输入设备
US20140300498A1 (en) Method and Apparatus Pertaining to a Touch Typing-Friendly Grid-Patterned Keyboard
WO2017050048A1 (zh) 用于输入文字的数字键盘、英文输入法和汉字拼音输入法
TWI715061B (zh) 按鍵掃描方法、使用於按鍵掃描電路的掃描方法及輸入裝置
WO2020243952A1 (zh) 一种按键扫描方法、使用于按键扫描电路的扫描方法及输入设备
TWI395116B (zh) 筆記型電腦及其鍵盤控制器
JP4636415B2 (ja) 縮少キーパッドを用いたアルファベット入力の装置および方法
US20220171472A1 (en) Key scanning method and input device implemented therewith
TW201234217A (en) Character input device
CN1265481A (zh) 九方拼音汉字输入法及其键盘
JP2019140527A (ja) 入力受付装置
JP4599430B2 (ja) 情報処理方法及び情報処理装置
TWI806519B (zh) 電子裝置及其按鍵掃描方法
JP3071704B2 (ja) キー入力装置
CN107340872B (zh) 按键系统及其控制方法
TW535097B (en) Method for inputting polysemous word by a single key and device thereof
JP2004145434A (ja) キーボードを用いたアルファベット入力システムと該システムを備えた電子機器
TW521200B (en) Method to replace the keyboard structure
KR100530491B1 (ko) 숫자 키패드를 이용한 한국어 입력 장치 및 그 입력 방법

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: 19932066

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2019932066

Country of ref document: EP