JP2009245025A - Key detection device and key detection method, and portable electronic equipment - Google Patents

Key detection device and key detection method, and portable electronic equipment Download PDF

Info

Publication number
JP2009245025A
JP2009245025A JP2008088817A JP2008088817A JP2009245025A JP 2009245025 A JP2009245025 A JP 2009245025A JP 2008088817 A JP2008088817 A JP 2008088817A JP 2008088817 A JP2008088817 A JP 2008088817A JP 2009245025 A JP2009245025 A JP 2009245025A
Authority
JP
Japan
Prior art keywords
key
voltage
detection
output
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008088817A
Other languages
Japanese (ja)
Other versions
JP5177511B2 (en
Inventor
Masayuki Takayama
雅之 高山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2008088817A priority Critical patent/JP5177511B2/en
Publication of JP2009245025A publication Critical patent/JP2009245025A/en
Application granted granted Critical
Publication of JP5177511B2 publication Critical patent/JP5177511B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To quickly perform key detection. <P>SOLUTION: A key detection device includes voltage holding circuits (RC11 to RC33) for holding a prescribed voltage for a detection line which is charged from an output line for each combination of output lines and detection lines; and a plurality of key switches (S11 to S33) connected to the voltage holding circuits for permitting charging to the voltage holding circuit in such a state that any key switch operation is not performed, and for inhibiting charging to the voltage holding circuit in such a state that any key switch operation is performed. When the voltage holding state of the voltage holding circuit varies due to presence/no presence of the operation of the key switch, a control circuit 10 detects variation of the voltage in the detection line to detect whether the operation of the key switch is performed or not. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、キー検出装置およびキー検出方法ならびに携帯電子機器に関するものである。   The present invention relates to a key detection device, a key detection method, and a portable electronic device.

図7は、従来のキー検出装置の構成を示す図である。   FIG. 7 is a diagram showing a configuration of a conventional key detection device.

図7に示されるように、キー検出装置は、マイクロコンピュータ(マイコン、CPU20)の他に、キーマトリクス3に接続され、CPU20の制御の下、キースキャンを行う入出力ポート1と、入出力ポート1内の各スキャン結果を取得する入力ポート8と、キーが押されていないとき入出力ポート1を“Low”レベルに固定するプルダウン抵抗2とを備えている。   As shown in FIG. 7, the key detection device is connected to the key matrix 3 in addition to the microcomputer (microcomputer, CPU 20), and the input / output port 1 that performs key scanning under the control of the CPU 20, and the input / output port 1 is provided with an input port 8 for acquiring each scan result, and a pull-down resistor 2 for fixing the input / output port 1 to the “Low” level when the key is not pressed.

入出力ポート1は、互いの入力を出力とする2つのバッファからなる単位回路を複数備え、これらのバッファは、入出力時に応じて一方のバッファのみが動作するように制御される。
また、ここでは、4×4のキーマトリクス3が例示されており、計16個のキー31を検出するために、CPU20は、出力側のポート4個(入出力ポート1)、入力側のポート(入力ポート8)4個の、計8個のポートを用いてスキャンし、押下されたキー31を検出している。
このように、N個のキーを検出するためにキー検出装置を構成する場合、CPU20は、2×√N個のポートを割り当てる必要があり、CPU20のポート数を逼迫させる大きな原因になっている。
The input / output port 1 includes a plurality of unit circuits composed of two buffers whose outputs are the outputs of each other, and these buffers are controlled so that only one buffer operates in accordance with input / output.
In addition, here, a 4 × 4 key matrix 3 is illustrated, and in order to detect a total of 16 keys 31, the CPU 20 has four ports on the output side (input / output port 1) and ports on the input side. (Input port 8) Scanning is performed using a total of four ports, four, and the pressed key 31 is detected.
As described above, when the key detection device is configured to detect N keys, the CPU 20 needs to allocate 2 × √N ports, which is a major cause of squeezing the number of ports of the CPU 20. .

上記したポート数の削減をはかるために、従来、例えば、図8に示されるように、出力側のポートと入力側のポートを共用することにより、合計ポート数を削減するキーマトリクス装置が知られている(例えば、特許文献1参照)。   In order to reduce the number of ports described above, conventionally, for example, as shown in FIG. 8, there is known a key matrix device that reduces the total number of ports by sharing an output side port and an input side port. (For example, refer to Patent Document 1).

この例によれば、上記同様、計16個のキー(キーマトリクス3)を検出しようとした場合、出力側のポート4個と入力側のポート4個とを共用しているため、合計4個のポートで実現できる。このように、半数のポートで同数のキーを検出することができる。
なお、図8中、キャパシタ10は、1個の出力ポートにより制御され、キーマトリクス3の電位を記憶するために用いられる。符号6、9は逆電流防止用のダイオードを示している。
特開平7−152468号公報(段落[0014]、図3)
According to this example, when a total of 16 keys (key matrix 3) are to be detected in the same manner as described above, four ports on the output side and four ports on the input side are shared, so a total of four keys. It can be realized with the port. In this way, the same number of keys can be detected by half of the ports.
In FIG. 8, the capacitor 10 is controlled by one output port, and is used for storing the potential of the key matrix 3. Reference numerals 6 and 9 denote diodes for preventing reverse current.
Japanese Patent Laid-Open No. 7-152468 (paragraph [0014], FIG. 3)

しかしながら、上記した特許文献1に開示された技術によれば、キャパシタ10を必要とし、操作キーを判定するうえで上記したキャパシタの放電時間が必須となるため、キー検出を高速に行うことができない。   However, according to the technique disclosed in Patent Document 1 described above, the capacitor 10 is required, and the discharge time of the capacitor described above is indispensable for determining the operation key. Therefore, key detection cannot be performed at high speed. .

本発明は、高速にキー検出を行うことのできる、キー検出装置およびキー検出方法ならびに携帯電子機器を提供することにある。   An object of the present invention is to provide a key detection device, a key detection method, and a portable electronic device that can perform key detection at high speed.

本発明の第1の観点のキー検出装置は、複数の出力ラインと、複数の検出ラインと、前記出力ラインと前記検出ラインが交差する箇所に接続される複数のキースイッチとを含むキーマトリクスと、前記出力ラインへの電圧印加状態における前記各検出ラインの電圧状態に基づいて、前記キースイッチの操作状態を判別する制御回路と、前記出力ラインと前記検出ラインの組み合わせ毎に、前記出力ラインから充電される前記検出ラインに対する所定の電圧を保持する電圧保持回路と、を有し、前記複数のキースイッチは、前記キースイッチの操作が無い状態では前記電圧保持回路への充電を許可し、前記キースイッチの操作がある状態では前記電圧保持回路への充電を不可とするようそれぞれ個別の前記電圧保持回路に接続され、前記制御回路は、前記キースイッチの操作の有無による前記電圧保持回路での電圧保持状態の電圧変動を、前記検出ラインごとに検知することにより、前記キースイッチそれぞれの操作有無を検出する。   A key detection device according to a first aspect of the present invention includes a key matrix including a plurality of output lines, a plurality of detection lines, and a plurality of key switches connected to the intersections of the output lines and the detection lines. A control circuit for determining an operation state of the key switch based on a voltage state of each detection line in a voltage application state to the output line; and for each combination of the output line and the detection line, from the output line A voltage holding circuit for holding a predetermined voltage with respect to the detection line to be charged, and the plurality of key switches permit charging the voltage holding circuit in a state where the key switch is not operated, Each of the voltage holding circuits is connected to each of the voltage holding circuits so that the voltage holding circuit cannot be charged when the key switch is operated. The voltage change of the voltage holding state in the voltage holding circuit with and without the operation of the key switch, by detecting for each of the detection line, detects the presence or absence of an operation of each of the key switches.

好適には、前記出力ラインは、前記制御回路の複数の出力ポートにそれぞれ接続され、第1の周期で前記各出力ポートから順次検出電圧が印加され、前記検出ラインは、前記電圧状態を前記第1の周期内における第2の周期で順次判定する複数の入力ポートにそれぞれ接続され、前記制御回路は、前記出力ラインの一つへの電圧印加毎に、前記検出ラインのそれぞれの電圧状態を検知して前記キースイッチそれぞれの操作有無の判定を行う。   Preferably, the output line is connected to each of the plurality of output ports of the control circuit, and a detection voltage is sequentially applied from each of the output ports in a first period, and the detection line changes the voltage state to the first state. The control circuit is connected to a plurality of input ports that are sequentially determined in a second cycle within one cycle, and the control circuit detects each voltage state of the detection line every time a voltage is applied to one of the output lines. Then, it is determined whether or not each key switch is operated.

好適には、前記各出力ラインと前記出力ポート間に設けられ、前記複数の出力ラインにおける一つに電圧を印加する際に、他の出力ラインを前記出力ポートから開放するラインを切替えるライン切替え回路を含む。   Preferably, a line switching circuit is provided between each output line and the output port, and switches a line that opens another output line from the output port when a voltage is applied to one of the plurality of output lines. including.

好適には、前記制御回路は、一の出力ラインに電圧を印加する際、前記電圧を印加する出力ライン以外は前記ライン切替え回路により前記出力ポートとの接続を開放し、前記出力ラインにより充電が完了した後に前記ライン切替え回路の状態を維持したまま前記各検出ラインにおける電圧状態を判定する。   Preferably, when the voltage is applied to one output line, the control circuit opens the connection to the output port by the line switching circuit except for the output line to which the voltage is applied, and charging is performed by the output line. After completion, the voltage state in each detection line is determined while maintaining the state of the line switching circuit.

好適には、前記出力ラインと前記検出ラインは、それぞれ出力と検出を切替え可能なポートに接続され、前記第1の周期内において、前記電圧保持回路が充電されるまでは一の出力ラインに対して電圧が印加され、前記制御回路は、前記充電が完了後に電圧印加を解除し、その後検出ラインでの電圧変動を検知する。   Preferably, the output line and the detection line are connected to ports that can switch between output and detection, respectively, and one output line is charged until the voltage holding circuit is charged within the first period. The voltage is applied, and the control circuit releases the voltage application after the charging is completed, and then detects a voltage fluctuation in the detection line.

好適には、前記電圧保持回路による電圧保持は、前記第2の周期を十分保持できる程度の時定数を有する。   Preferably, the voltage holding by the voltage holding circuit has a time constant sufficient to hold the second period.

好適には、前記電圧保持回路は、抵抗とキャパシタを含み、前記抵抗の一端は前記出力ラインに、他端はキャパシタに接続され、前記キャパシタの他端は接地され、前記キースイッチは、前記キャパシタをバイパスして接地させるスイッチである。   Preferably, the voltage holding circuit includes a resistor and a capacitor. One end of the resistor is connected to the output line, the other end is connected to the capacitor, the other end of the capacitor is grounded, and the key switch is connected to the capacitor. This is a switch that bypasses and grounds.

本発明の第2の観点は、複数の出力ラインと、複数の検出ラインと、前記出力ラインと前記検出ラインが交差する箇所に設けられる複数のキースイッチと、前記出力ラインに印加される電圧により充電可能な電圧保持回路とを備えたキーマトリクス回路におけるキー検出方法であって、前記出力ライン毎のキー検出判定を行うキー検出ステップを有し、n番目の出力ラインにおけるキー検出ステップには、前記n番目の出力ラインへの電圧印加を行い、前記電圧保持回路への充電を行う電圧印加ステップと、前記n番目の出力ラインへの電圧印加を停止し、前記各検出ラインでの電圧状態を判定する判定ステップとを有する。   According to a second aspect of the present invention, there is provided a plurality of output lines, a plurality of detection lines, a plurality of key switches provided at locations where the output lines and the detection lines intersect, and a voltage applied to the output lines. A key detection method in a key matrix circuit comprising a chargeable voltage holding circuit, comprising a key detection step for performing key detection determination for each output line, wherein the key detection step in the nth output line includes: Applying voltage to the nth output line and charging the voltage holding circuit, stopping voltage application to the nth output line, and determining the voltage state in each detection line A determination step for determining.

本発明の第3の観点の表示装置は、操作部と、表示部と、制御部と、を備え、前記操作部は、複数の出力ラインと、複数の検出ラインと、前記出力ラインと前記検出ラインが交差する箇所に設けられる複数のキースイッチと、前記出力ラインに印加される電圧により充電可能な電圧保持回路とを備えたキーマトリクス回路を有し、前記制御部は、n(任意の整数)番目の出力ラインにおけるキー検出処理時、前記n番目の出力ラインへの電圧印加により前記電圧保持回路への充電を行い、前記n番目の出力ラインへの電圧印加を停止し、前記各検出ラインでの電圧状態を判定してキースイッチの操作を認識し、当該認識されたキースイッチの種別を前記表示部に表示する。   A display device according to a third aspect of the present invention includes an operation unit, a display unit, and a control unit, and the operation unit includes a plurality of output lines, a plurality of detection lines, the output lines, and the detection. A key matrix circuit including a plurality of key switches provided at the intersections of the lines and a voltage holding circuit that can be charged by a voltage applied to the output line, and the control unit includes n (an arbitrary integer) ) During the key detection process in the nth output line, the voltage holding circuit is charged by applying a voltage to the nth output line, the voltage application to the nth output line is stopped, and each detection line is stopped. The operation of the key switch is recognized and the operation of the key switch is recognized, and the type of the recognized key switch is displayed on the display unit.

本発明によれば、高速にキー検出を行うことができる。   According to the present invention, key detection can be performed at high speed.

図1は、本発明の実施の形態に係るキー検出装置の回路構成の一例を示す図である。
ここでは、3×3のキーマトリクス30が例示されている。
FIG. 1 is a diagram illustrating an example of a circuit configuration of a key detection device according to an embodiment of the present invention.
Here, a 3 × 3 key matrix 30 is illustrated.

キーマトリクス30は、複数の出力ラインRow1〜Row3と、複数の検出ラインP1〜P3と、出力ラインRow1〜Row3と検出ラインP1〜P3が交差する箇所に接続される複数のキースイッチS11〜S33と、により構成される。
また、キーマトリクス30に接続される制御回路100(CPU)は、入出力ポート11〜13を介し、出力ラインRow1〜Row3への電圧印加状態における各検出ラインP1〜P3の電圧状態に基づいて、キースイッチS11〜S33の操作状態を判別する。
The key matrix 30 includes a plurality of output lines Row1 to Row3, a plurality of detection lines P1 to P3, and a plurality of key switches S11 to S33 connected at the intersections of the output lines Row1 to Row3 and the detection lines P1 to P3. It is comprised by.
Further, the control circuit 100 (CPU) connected to the key matrix 30 is based on the voltage states of the detection lines P1 to P3 in the voltage application state to the output lines Row1 to Row3 via the input / output ports 11 to 13, respectively. The operation state of the key switches S11 to S33 is determined.

特徴は、キーマトリクス30を構成する出力ラインRow1〜Row3と検出ラインP1〜P3の組み合わせ毎に、電圧検出回路RC11〜RC33と、キースイッチS11〜S33を備えることにある。   A feature is that voltage detection circuits RC11 to RC33 and key switches S11 to S33 are provided for each combination of the output lines Row1 to Row3 and the detection lines P1 to P3 constituting the key matrix 30.

電圧検出回路RC11〜RC33は、出力ラインRow1〜Row3から充電される検出ラインP1〜P3に対する所定の電圧を保持する、それぞれ抵抗RとキャパシタCからなる時定数回路により構成され、キャパシタCには、キースイッチS11〜S33のそれぞれが並列に接続される。
キースイッチS11〜S33は、キースイッチS11〜S33の操作が無い状態では電圧保持回路RC11〜RC33への充電を許可し、キースイッチS11〜S33の操作がある状態では電圧保持回路RC11〜RC33への充電を不可とする。制御回路100は、キースイッチS11〜S33の操作の有無により電圧保持回路RC11〜RC33の電圧保持状態が変動した場合、検出ラインP1〜P3における電圧変動を検知することにより、キースイッチS11〜S33の操作の有無を検出する。
The voltage detection circuits RC11 to RC33 are configured by time constant circuits each including a resistor R and a capacitor C, which hold predetermined voltages for the detection lines P1 to P3 charged from the output lines Row1 to Row3. Each of key switches S11-S33 is connected in parallel.
The key switches S11 to S33 permit charging of the voltage holding circuits RC11 to RC33 when the key switches S11 to S33 are not operated, and to the voltage holding circuits RC11 to RC33 when the key switches S11 to S33 are operated. Disable charging. When the voltage holding state of the voltage holding circuits RC11 to RC33 fluctuates depending on whether or not the key switches S11 to S33 are operated, the control circuit 100 detects the voltage fluctuations in the detection lines P1 to P3, thereby detecting the key switches S11 to S33. Detect the presence or absence of operation.

なお、電圧保持回路RC11〜RC13は、検出ラインP1に、抵抗R1と、逆流防止用ダイオードD11〜D13のそれぞれを介して接続される。そして、電圧保持回路RC21〜RC23は、検出ラインP2に、抵抗R2と、逆流防止用ダイオードD21〜D23のそれぞれを介して接続される。そして、電圧保持回路RC31〜RC33は、検出ラインP3に、抵抗R3と、逆流防止用ダイオードD31〜D33のそれぞれを介して接続される。   The voltage holding circuits RC11 to RC13 are connected to the detection line P1 through the resistor R1 and the backflow prevention diodes D11 to D13, respectively. The voltage holding circuits RC21 to RC23 are connected to the detection line P2 via the resistor R2 and the backflow prevention diodes D21 to D23, respectively. The voltage holding circuits RC31 to RC33 are connected to the detection line P3 via the resistor R3 and the backflow prevention diodes D31 to D33.

更に特徴は、ライン切替え回路40(Srow)が付加されたことにある。このライン切替え回路40は、各出力ラインRow1〜Row3と検出ラインP1〜P3間に設けられ、複数の出力ラインRow1〜Row3における一つに電圧を印加する際に、他の出力ラインを出力ポート(検出ラインP1〜P3)から開放する。   A further feature is that a line switching circuit 40 (Srow) is added. The line switching circuit 40 is provided between each of the output lines Row1 to Row3 and the detection lines P1 to P3. When a voltage is applied to one of the plurality of output lines Row1 to Row3, the other output line is connected to the output port ( Release from detection lines P1-P3).

制御回路100(CPU)は、一の出力ラインに電圧を印加する際、電圧を印加する出力ライン以外はライン切替え回路40により出力ポート(検出ラインP1〜P3)との接続を開放し、出力ラインRow1〜Row3により充電が完了した後にライン切替え回路40の状態を維持したまま各検出ラインP1〜P3における電圧状態を判定する。   When a voltage is applied to one output line, the control circuit 100 (CPU) opens the connection with the output ports (detection lines P1 to P3) by the line switching circuit 40 except for the output line to which the voltage is applied. After the charging is completed by Row1 to Row3, the voltage state in each of the detection lines P1 to P3 is determined while the state of the line switching circuit 40 is maintained.

上記構成とすることで、キーS11〜S33の誤検出が無く、全てのキー押下パターンを検出することを実現する。
また、プルダウン抵抗を必要とせず、電圧保持回路RC11〜RC33を構成するキャパシタへは、キースイッチS11〜S33に接続された抵抗を通して充放電される。また、対グランドに対する電流は、キースイッチS11〜S33が押下されている時にしか流れないため、抵抗値を小さくすることができる。そのためのキャパシタと抵抗による時定数を小さくすることができ、応答の速いキーマトリクス検出を行なうものである。
With the above configuration, it is possible to detect all key pressing patterns without erroneous detection of the keys S11 to S33.
In addition, the pull-down resistor is not required, and the capacitors constituting the voltage holding circuits RC11 to RC33 are charged and discharged through the resistors connected to the key switches S11 to S33. Further, since the current with respect to the ground flows only when the key switches S11 to S33 are pressed, the resistance value can be reduced. Therefore, the time constant due to the capacitor and the resistance can be reduced, and the key matrix detection with quick response is performed.

図2は、本発明の実施の形態に係るキー検出装置のキースキャン動作を示すタイミングチャートである。   FIG. 2 is a timing chart showing a key scan operation of the key detection apparatus according to the embodiment of the present invention.

ここでは、制御回路100(CPU)により生成される制御(Cont)信号と、ポートP1〜P3の各信号波形が、Row1、Row2、Row3のスキャン順に示されている。
以下、図2のタイミングチャートを参照しながら、図1に示す本発明の実施の形態に係るキー検出装置の動作について詳細に説明する。
Here, the control (Cont) signal generated by the control circuit 100 (CPU) and the signal waveforms of the ports P1 to P3 are shown in the scan order of Row1, Row2, and Row3.
Hereinafter, the operation of the key detection apparatus according to the embodiment of the present invention shown in FIG. 1 will be described in detail with reference to the timing chart of FIG.

入出力ポート11〜13、およびライン切替え回路40(Srow)は、いずれも制御回路40(CPU)により生成されるCont信号によって制御され、Cont信号が“Low”レベルの時に出力ポートが設定され、また、スキャンを行うライン切替え回路40(Srow)が、ON状態になる。
キースキャンを開始する前は、全ての入出力ポート11〜13の出力であるP1〜P3は“Low”レベルになっている。いま、Row1をスキャンするために、入出力ポート11のみ“High”レベルに設定して検出ラインP1のみ有効とする。このとき、制御回路100(CPU)は、電圧保持回路RC11、RC21、RC31の各キャパシタの充電電圧がほぼ飽和するまで入出力ポート11に対し、出力レベル“High”を継続して出力する(図2中、A:充電周期)。その後Cont信号を”High”レベルに切り替え、入出力ポート11〜13を入力設定に切替える。この状態で制御回路100(CPU)は、入出力ポートP1〜P3の状態を順次リードし(図5中、B:検出周期)、キースイッチS11、S21、S31のON/OFFを検出する。
The input / output ports 11 to 13 and the line switching circuit 40 (Srow) are all controlled by the Cont signal generated by the control circuit 40 (CPU), and the output port is set when the Cont signal is at the “Low” level. Further, the line switching circuit 40 (Srow) that performs scanning is turned on.
Before the key scan is started, the outputs P1 to P3 of all the input / output ports 11 to 13 are at the “Low” level. Now, in order to scan Row1, only the input / output port 11 is set to "High" level and only the detection line P1 is enabled. At this time, the control circuit 100 (CPU) continuously outputs the output level “High” to the input / output port 11 until the charging voltages of the capacitors of the voltage holding circuits RC11, RC21, and RC31 are substantially saturated (FIG. 2, A: charging cycle). Thereafter, the Cont signal is switched to the “High” level, and the input / output ports 11 to 13 are switched to the input setting. In this state, the control circuit 100 (CPU) sequentially reads the states of the input / output ports P1 to P3 (B: detection cycle in FIG. 5), and detects ON / OFF of the key switches S11, S21, and S31.

次に、制御回路100(CPU)は、入出力ポート12を“High”レベルに設定して検出ラインP2のみ有効とすることでRow2をスキャンする。このとき、制御回路100(CPU)は、Row1のスキャン時と同様に、電圧保持回路RC12、RC22、RC32の各キャパシタの充電電圧がほぼ飽和するまで入出力ポート12に対して“High”レベル出力を継続した後、Cont信号を“High”レベルに切り替え、入出力ポート11〜13を入力設定に切替える。この状態で、制御回路100(CPU)は、検出ラインP1〜P3の状態を順次リードし、キースイッチS12、S22、S32のON/OFFを検出する。   Next, the control circuit 100 (CPU) scans Row 2 by setting the input / output port 12 to “High” level and enabling only the detection line P 2. At this time, the control circuit 100 (CPU) outputs “High” level output to the input / output port 12 until the charging voltage of each capacitor of the voltage holding circuits RC12, RC22, and RC32 is almost saturated as in the case of the scan of Row1. Then, the Cont signal is switched to the “High” level, and the input / output ports 11 to 13 are switched to the input setting. In this state, the control circuit 100 (CPU) sequentially reads the states of the detection lines P1 to P3 and detects ON / OFF of the key switches S12, S22, and S32.

次に、制御回路100(CPU)は、入出力ポート13を“High”レベルに設定して検出ラインP3のみ有効とすることでRow3をスキャンする。
このとき、制御回路100(CPU)は、電圧保持回路RC13、RC23、RC33の各キャパシタの充電電圧がほぼ飽和するまで入出力ポート13に対して“High”レベル出力を継続した後、Cont信号を“High”レベルに切り替え、入出力ポート11〜13を入力設定に切替える。この状態で、制御回路100(CPU)は、検出ラインP1〜P3の状態をリードし、キースイッチS13、S23、S33のON/OFFを検出する。
そして、Row1のスキャンに戻り、スキャン動作を継続する。
Next, the control circuit 100 (CPU) scans Row 3 by setting the input / output port 13 to “High” level and enabling only the detection line P 3.
At this time, the control circuit 100 (CPU) continues the “High” level output to the input / output port 13 until the charging voltages of the capacitors of the voltage holding circuits RC13, RC23, and RC33 are almost saturated, and then outputs the Cont signal. The input / output ports 11 to 13 are switched to the input setting by switching to the “High” level. In this state, the control circuit 100 (CPU) reads the states of the detection lines P1 to P3 and detects ON / OFF of the key switches S13, S23, and S33.
Then, the scan operation is continued by returning to the Row 1 scan.

すなわち、制御回路100(CPU)は、一の出力ライン(Row1〜Row3)に電圧を印加する際、電圧を印加する出力ライン以外はライン切替え回路40によりポート(検出ラインP1〜P3)との接続を開放し、出力ラインRow1〜Row3により充電が完了した後にライン切替え回路40の状態を維持したまま各検出ラインP1〜P3における電圧状態を判定している。
このとき、出力ラインRow1〜Row3と検出ラインP1〜P3は、それぞれ出力の検出を切替え可能な入出力ポート11〜13に接続され、第1の周期内(A:充電周期)において、電圧保持回路RC11〜RC33(のキャパシタ)が充電されるまでの一の出力ポートに対して電圧が印加され、充電が完了する程度の時間の印加が完了後に電圧印加が解除され、そのときの検出ラインでの電圧状態が判定される。このとき、電圧保持回路RC11〜RC33による電圧保持は、第2の周期(B:開放周期)を十分保持できる程度の時定数を有するものとする。
That is, when the control circuit 100 (CPU) applies a voltage to one output line (Row 1 to Row 3), the line switching circuit 40 connects to the ports (detection lines P1 to P3) except for the output line to which the voltage is applied. After the charging is completed by the output lines Row1 to Row3, the voltage state in each of the detection lines P1 to P3 is determined while maintaining the state of the line switching circuit 40.
At this time, the output lines Row1 to Row3 and the detection lines P1 to P3 are connected to the input / output ports 11 to 13 that can switch the detection of the outputs, respectively, and within the first period (A: charging period), the voltage holding circuit. A voltage is applied to one output port until the RC11 to RC33 (capacitors thereof) are charged, the voltage application is released after completion of the application for a time to complete charging, and the detection line at that time A voltage state is determined. At this time, voltage holding by the voltage holding circuits RC11 to RC33 has a time constant that can sufficiently hold the second cycle (B: open cycle).

以上説明のように、本発明の実施の形態に係るキー検出装置によれば、電圧を保持するキャパシタ(電圧保持回路RC11〜RC33)をキースイッチS11〜S33毎に備えることで、出力ライン毎に共通化したキャパシタを設けないようにしたものである。これにより、出力ポートを切替えてもキャパシタの放電終了までの時間を待つことか無くなるため、キー応答が速くなる。さらに、出力ライン毎の印加電圧を切替える際にラインを物理的に出力ポートから切り離すことでキースイッチの多重押しによる誤認識にも対応が可能になる。   As described above, according to the key detection device according to the embodiment of the present invention, the capacitors (voltage holding circuits RC11 to RC33) for holding the voltage are provided for each of the key switches S11 to S33, so that each output line is provided. A common capacitor is not provided. As a result, even if the output port is switched, it is not necessary to wait for the time until the capacitor discharge is completed, so that the key response is accelerated. Further, when the applied voltage for each output line is switched, the line is physically separated from the output port, thereby making it possible to cope with erroneous recognition due to multiple pressing of the key switch.

以下に、上記した本発明の実施の形態に係るキー検出装置により、キースイッチの多重押しによる誤認識に対応が可能であり、キーレスポンスが早くなる理由について説明する。   Hereinafter, the reason why the key detection device according to the embodiment of the present invention described above can cope with misrecognition due to multiple pressing of the key switch and the key response is accelerated will be described.

図3に示すキー検出装置において、例えば、3個の○枠で示されたキーが押下された場合、□枠で示されたキーが押下されているものと誤検出される。これは、従来例として図6に示したような2×√N本のポートを使用したキー検出装置と共通の課題であり、この課題を回避するためには、円内に拡大表示して示すような、キー31と直列に挿入された逆電流防止用のダイオード32が必要となる。
しかしながらこのダイオード32は、キー31と直列に挿入される必要があることから、各キーの直近に配置されることになり、したがって、キーマトリクス3を、配置、配線する上で自由度を阻害する大きな要因になる。
In the key detection device shown in FIG. 3, for example, when a key indicated by three circles is pressed, it is erroneously detected that the key indicated by a square is pressed. This is a problem common to a key detection device using 2 × √N ports as shown in FIG. 6 as a conventional example, and in order to avoid this problem, it is enlarged and shown in a circle. Such a diode 32 for preventing reverse current inserted in series with the key 31 is required.
However, since the diode 32 needs to be inserted in series with the key 31, it is arranged in the immediate vicinity of each key. Therefore, the degree of freedom is hindered in arranging and wiring the key matrix 3. It becomes a big factor.

また、図4に示すキー検出装置において、例えば、左上の○枠で示された1個と、他の長円形枠で示す3個のキーのいずれかのキーとが押下された場合、□枠で示されたキーが押下されているものと誤検出される。これはキーマトリクス3の入力側とキーマトリクス3の出力側がダイオードの順方向によって接続されているために起こるもので、このキー検出装置特有の誤検出であると言える。   In the key detection device shown in FIG. 4, for example, when one of the upper left circle and one of the three keys indicated by other oval frames are pressed, It is erroneously detected that the key indicated by is pressed. This occurs because the input side of the key matrix 3 and the output side of the key matrix 3 are connected in the forward direction of the diode, and can be said to be a false detection characteristic of this key detection device.

更に、図5に示すキー検出装置のように、○枠で示されるいずれかのキーが押下された場合、○枠で示されたキャパシタ10に充電され、その電圧が入力ポート1に取り込まれることにより検出される。キャパシタ10に充電された電荷は、○枠で示されたプルアップ抵抗2との時定数にしたがい放電される。
したがって、一つの列をスキャンした後、次の列をスキャンするまでの間にこのキャパシタ10が放電されている必要があり、応答性の良いキー検出が困難である。一方、この時定数を小さくするためにプルアップ抵抗2の値を小さくした場合、出力ポートから“High”を出力した場合の消費電流が大きくなってしまう。
Further, as in the key detection device shown in FIG. 5, when any key indicated by a circle is pressed, the capacitor 10 indicated by the circle is charged and the voltage is taken into the input port 1. Is detected. The electric charge charged in the capacitor 10 is discharged according to the time constant with the pull-up resistor 2 indicated by a circle.
Therefore, it is necessary to discharge the capacitor 10 after scanning one column and before scanning the next column, and it is difficult to detect a key with good responsiveness. On the other hand, if the value of the pull-up resistor 2 is reduced in order to reduce this time constant, the current consumption when “High” is output from the output port increases.

このような図3〜5に示す例と比べ、本発明の実施の状態によれば、上記したキー検出回路は、ポート数を減らしながらもキーレスポンスが改善されるため、例えば、携帯電話等の携帯電子機器に用いて顕著な効果が得られる。   Compared with the examples shown in FIGS. 3 to 5, according to the state of implementation of the present invention, the key detection circuit described above improves the key response while reducing the number of ports. A remarkable effect can be obtained when used in a portable electronic device.

図6は、上記した携帯電話の内部構成の一例を示すブロック図である。図6において、携帯電話は、制御部27を制御中枢とし、通信部21、操作部22、音声入出力部23、表示部24、撮像部25、記憶部26、制御部27のそれぞれが、アドレス、データ、コントロールのためのラインが複数本からなるシステムバス30に共通に接続され、構成される。   FIG. 6 is a block diagram showing an example of the internal configuration of the mobile phone described above. In FIG. 6, the mobile phone uses the control unit 27 as a control center, and each of the communication unit 21, the operation unit 22, the voice input / output unit 23, the display unit 24, the imaging unit 25, the storage unit 26, and the control unit 27 has an address. , Data and control lines are commonly connected to a system bus 30 composed of a plurality of lines.

通信部21は、無線通信システムを捕捉し、通信ネットワークに接続される図示しない基地局との間で無線通信を行い、各種データの送受信を行う。
各種データとは、音声通話時の音声データ、メール送受信時のメールデータ、ウェブ閲覧時のウェブページデータ等である。
The communication unit 21 captures a wireless communication system, performs wireless communication with a base station (not shown) connected to the communication network, and transmits and receives various data.
The various data includes voice data at the time of voice call, mail data at the time of mail transmission / reception, web page data at the time of browsing the web, and the like.

操作部22は、例えば、電源キー、通話キー、数字キー、文字キー、方向キー(左右上下)、決定キー、発信キー、ファンクションキーなど、各種の機能が割り当てられたキースイッチを有している。操作部22は、これらのキースイッチが操作者によって操作された場合に、その操作内容に対応する信号を発生し、これを操作者の指示として制御部27に出力する。
操作部22は、図1に示すキー検出装置を含み、ここでキー押下が検出されると、制御部27による制御の下でキーコードに変換され、ここで認識されたデータが後述する表示部24に表示される。
The operation unit 22 includes a key switch to which various functions are assigned such as a power key, a call key, a numeric key, a character key, a direction key (left / right / up / down), a determination key, a call key, and a function key. . When these key switches are operated by the operator, the operation unit 22 generates a signal corresponding to the operation content and outputs the signal to the control unit 27 as an instruction from the operator.
The operation unit 22 includes the key detection device shown in FIG. 1. When a key press is detected here, the operation unit 22 is converted into a key code under the control of the control unit 27, and the recognized data is a display unit described later. 24.

音声入出力部23は、スピーカから出力される音声信号やマイクロフォンにおいて入力される音声信号の入出力処理を行う。すなわち、マイクロフォンから入力された音声を増幅し、アナログ−デジタル変換を行い、更に符号化等の信号処理を施し、デジタルの音声データに変換して制御部27に出力する。また、制御部27により生成される音声データに復号化、デジタル−アナログ変換、増幅等の信号処理を施し、アナログの音声信号に変換してスピーカに出力する。   The audio input / output unit 23 performs input / output processing of an audio signal output from a speaker or an audio signal input from a microphone. That is, the sound input from the microphone is amplified, subjected to analog-to-digital conversion, further subjected to signal processing such as encoding, converted into digital sound data, and output to the control unit 27. In addition, the audio data generated by the control unit 27 is subjected to signal processing such as decoding, digital-analog conversion, amplification, and the like, converted into an analog audio signal, and output to a speaker.

表示部24は、多数の画素(複数色の発光素子の組み合わせ)を縦横に配して構成される、例えばLCD(Liquid Crystal Display Device)や有機EL(Electro-Luminescence)
を用いて構成されており、制御部27により生成され記憶部26の所定の領域(VRAM領域)に書き込まれた表示データに応じた画像を表示する。
The display unit 24 is configured by arranging a large number of pixels (a combination of light emitting elements of a plurality of colors) vertically and horizontally, for example, an LCD (Liquid Crystal Display Device) or an organic EL (Electro-Luminescence).
And displays an image corresponding to the display data generated by the control unit 27 and written in a predetermined area (VRAM area) of the storage unit 26.

撮像部25は、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)イメージセンサ等の光電変換素子とその制御回路等により構成されるカメラである。   The imaging unit 25 is a camera configured by a photoelectric conversion element such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) image sensor, a control circuit thereof, and the like.

記憶部26は、携帯電話の各種処理に利用される各種データを記憶する。
記憶部26は、例えば、制御部27が実行するコンピュータのプログラム(OS(Operating System)やアプリケーションプログラム)の他に、撮像部15により撮影された画像ファイル、通信部21を介して不図示の外部接続サーバから取得したダウンロードファイルが記憶されている。
また、記憶部26には、通信相手の電話番号や電子メールアドレス等の個人情報を管理するアドレス帳、着信音やアラーム音を再生するための音声ファイル、待ち受け画面用の画像ファイル、各種の設定データ、プログラムの処理過程で利用される一時的なデータ等も記憶されている。
なお、記憶部26は、例えば、不揮発性の記憶デバイス(不揮発性半導体メモリ、ハードディスク装置、光ディスク装置など)やランダムアクセス可能な記憶デバイス(例えばSRAM、DRAM)などによって構成される。
The storage unit 26 stores various data used for various processes of the mobile phone.
The storage unit 26 is, for example, a computer program (OS (Operating System) or application program) executed by the control unit 27, an image file captured by the imaging unit 15, an external unit (not shown) via the communication unit 21. A download file acquired from the connection server is stored.
The storage unit 26 also has an address book for managing personal information such as the telephone number and e-mail address of the communication partner, a voice file for playing ringtones and alarm sounds, an image file for a standby screen, and various settings. Data, temporary data used in the process of the program, and the like are also stored.
The storage unit 26 includes, for example, a nonvolatile storage device (nonvolatile semiconductor memory, hard disk device, optical disk device, etc.), a random accessible storage device (eg, SRAM, DRAM), or the like.

制御部27は、携帯電話の全体的な動作を統括的に制御する。
すなわち、制御部27は、携帯電話の各種処理(回線交換網を介して行われる音声通話、電子メールの作成と送受信、インターネットのWeb(World Wide Web)サイトの閲覧など)が操作部22の操作に応じて適切な手順で実行されるように、上述した各ブロックの動作(通信部21における信号の送受信、音声入出力部23における音声入出力、表示部24における画像の表示、撮像部25における撮像処理等)を制御する。
そして制御部27は、図1に示したキー検出装置の制御部100を有している。つまり、図2に示した方法により、キースイッチ全ての操作検出を行うことが可能である。さらに制御部27は、検出したキー操作に応じて演算処理を行い、その結果を表示部24に出力することを行う。
制御部27は、記憶部27に格納されたプログラムに基づいて処理を実行するコンピュータ(マイクロプロセッサ)を備えており、このプログラムにおいて指示された手順に従って上述した制御を実行する。すなわち、制御部27は、記憶部26に格納されるOSやアプリケーションプログラム等のプログラムから命令コードを順次読み込んで処理を実行する。
なお、図2の「B:検出周期」において、入出力ポートP1〜P3のリードについてはそれぞれ順次行うという例を示したが、全入出力ポートの状態を一度にリードできる構成であれば、P1〜P3を順次リードせずとも良い。
The control unit 27 comprehensively controls the overall operation of the mobile phone.
That is, the control unit 27 performs various operations of the mobile phone (voice calls performed via a circuit switching network, creation and transmission / reception of e-mail, browsing of the Internet Web (World Wide Web) site, etc.). The operation of each block described above (transmission / reception of signals in the communication unit 21, audio input / output in the audio input / output unit 23, image display in the display unit 24, Control the imaging process).
And the control part 27 has the control part 100 of the key detection apparatus shown in FIG. That is, it is possible to detect the operation of all the key switches by the method shown in FIG. Further, the control unit 27 performs arithmetic processing in accordance with the detected key operation and outputs the result to the display unit 24.
The control unit 27 includes a computer (microprocessor) that executes processing based on a program stored in the storage unit 27, and executes the above-described control according to a procedure instructed in this program. That is, the control unit 27 sequentially reads instruction codes from programs such as the OS and application programs stored in the storage unit 26 and executes processing.
In the example of “B: detection cycle” in FIG. 2, the reading of the input / output ports P1 to P3 is sequentially performed. However, if the configuration is such that the states of all the input / output ports can be read at a time, ˜P3 may not be read sequentially.

なお、上記した携帯電話において、操作部22に割当てられたキーマトリクスのスキャン、およびキースイッチの判定は、制御部27が有するCPUが行なうとしたが、あるいは操作部22に負荷分散され内蔵されるCPUが行なって、その検出結果を制御部27が受けとるようにしてもよい。
また、携帯電子機器として、携帯電話のみ例示したが、携帯電話に限らず、PDA(Personal Digital Assistants)、やゲーム機等にも同様に適用が可能である。
In the above-described mobile phone, scanning of the key matrix assigned to the operation unit 22 and determination of the key switch are performed by the CPU included in the control unit 27. Alternatively, the load is distributed and incorporated in the operation unit 22. The detection result may be received by the CPU, and the control unit 27 may receive the detection result.
Further, although only a mobile phone is illustrated as a portable electronic device, the present invention is not limited to a mobile phone, and can be similarly applied to a PDA (Personal Digital Assistants), a game machine, and the like.

以上説明のように本発明の実施の形態に係るキー検出装置によれば、出力側のポートと入力側のポートを共用することにより、トータル使用ポート数の削減を維持したまま、キーの多重押しを検出可能とすることができる。
また、各キーに電圧保持回路を持たせることにより、全てのキー押下の組合せに対して検出が可能になる。更に、キーの多重押しによる誤検出を回避するために、従来、直列に挿入された逆電流防止用のダイオードを必要とし、また、逆電流防止用のダイオードがキーに直列に挿入され、キーマトリクスを配置、配線する上で自由度を阻害する大きな要因となっていたが、ここでは、いずれも不要となるため、部品点数の削減にも寄与し、安価にキーレスポンスの向上がはかることができる。
As described above, according to the key detection device of the embodiment of the present invention, by sharing the output side port and the input side port, it is possible to press the key multiple times while maintaining the reduction in the total number of ports used. Can be detected.
Further, by providing each key with a voltage holding circuit, it becomes possible to detect all combinations of key presses. Further, in order to avoid erroneous detection due to multiple pressing of the key, conventionally, a reverse current prevention diode inserted in series is required, and a reverse current prevention diode is inserted in series with the key, and the key matrix. This is a major factor that hinders the degree of freedom in placing and wiring, but it is unnecessary here, so it contributes to a reduction in the number of parts and can improve key response at low cost. .

また、従来、キャパシタに充電された電荷はプルダウン抵抗によってのみ放電され、消費電流の観点で抵抗値を小さくできないために大きい時定数を持つことになり、一つの列をスキャンした後、次の列をスキャンするまでにこのキャパシタが放電するのを待つ必要があり、応答性の良いキー検出が困難であったのに対し、本発明の実施の形態に係るキー検出装置によれば、プルダウン抵抗を必要とせず、キャパシタへはキースイッチに接続された抵抗を通して充放電され、対グランドに対する電流はキースイッチが押下されている時にしか流れないため、抵抗値を小さくすることができ、そのため、キャパシタと抵抗による時定数を小さくすることができ、応答の速いキーマトリクス検出が可能である。このように、部品点数の削減がはかれ、安価にキーレスポンスの向上がはかれるため、薄型化や低廉化を目指す携帯電話等の携帯電子機器に用いて顕著な効果が得られる。   Also, conventionally, the charge charged in the capacitor is discharged only by the pull-down resistor, and since the resistance value cannot be reduced from the viewpoint of current consumption, it has a large time constant, and after scanning one column, the next column The key detection device according to the embodiment of the present invention has a pull-down resistor, whereas it is difficult to detect the key with good responsiveness. The capacitor is charged and discharged through a resistor connected to the key switch, and the current to the ground flows only when the key switch is pressed, so that the resistance value can be reduced. The time constant due to the resistance can be reduced, and key matrix detection with a quick response is possible. In this way, the number of parts can be reduced, and the key response can be improved at a low cost, so that a remarkable effect can be obtained when used for portable electronic devices such as a mobile phone aiming at a reduction in thickness and cost.

本発明の実施の形態に係るキー検出装置の回路構成の一例を示す図である。It is a figure which shows an example of the circuit structure of the key detection apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係るキー検出装置のキースキャン動作を示すタイミングチャートである。It is a timing chart which shows the key scan operation | movement of the key detection apparatus which concerns on embodiment of this invention. キー検出装置の動作(1)を説明するために示した図である。It is the figure shown in order to demonstrate operation | movement (1) of a key detection apparatus. キー検出装置の動作(2)を説明するために示した図である。It is the figure shown in order to demonstrate operation | movement (2) of a key detection apparatus. キー検出装置の動作(3)を説明するために示した図である。It is the figure shown in order to demonstrate operation | movement (3) of a key detection apparatus. 本発明の実施の形態に係る携帯電子機器の内部構成の一例を示すブロック図である。It is a block diagram which shows an example of the internal structure of the portable electronic device which concerns on embodiment of this invention. 従来のキー検出装置の回路構成の一例を示す図である。It is a figure which shows an example of the circuit structure of the conventional key detection apparatus. 従来のキー検出装置の他の回路構成の一例を示す図である。It is a figure which shows an example of the other circuit structure of the conventional key detection apparatus.

符号の説明Explanation of symbols

11〜13…入出力ポート、30…キーマトリクス(電圧保持回路RC11〜33、キースイッチS11〜S33)、40…ライン切替え回路、100…制御回路(CPU)、22…操作部、27…制御部。   DESCRIPTION OF SYMBOLS 11-13 ... Input / output port, 30 ... Key matrix (Voltage holding circuit RC11-33, Key switch S11-S33), 40 ... Line switching circuit, 100 ... Control circuit (CPU), 22 ... Operation part, 27 ... Control part .

Claims (9)

複数の出力ラインと、複数の検出ラインと、前記出力ラインと前記検出ラインが交差する箇所に接続される複数のキースイッチとを含むキーマトリクスと、
前記出力ラインへの電圧印加状態における前記各検出ラインの電圧状態に基づいて、前記キースイッチの操作状態を判別する制御回路と、
前記出力ラインと前記検出ラインの組み合わせ毎に、前記出力ラインから充電される前記検出ラインに対する所定の電圧を保持する電圧保持回路と、を有し、
前記複数のキースイッチは、
前記キースイッチの操作が無い状態では前記電圧保持回路への充電を許可し、前記キースイッチの操作がある状態では前記電圧保持回路への充電を不可とするようそれぞれ個別の前記電圧保持回路に接続され、
前記制御回路は、
前記キースイッチの操作の有無による前記電圧保持回路での電圧保持状態の電圧変動を、前記検出ラインごとに検知することにより、前記キースイッチそれぞれの操作有無を検出する
ことを特徴とするキー検出装置。
A key matrix including a plurality of output lines, a plurality of detection lines, and a plurality of key switches connected to the intersections of the output lines and the detection lines;
A control circuit for determining an operation state of the key switch based on a voltage state of each detection line in a voltage application state to the output line;
A voltage holding circuit for holding a predetermined voltage for the detection line charged from the output line for each combination of the output line and the detection line;
The plurality of key switches are
When the key switch is not operated, charging to the voltage holding circuit is permitted, and when the key switch is operated, charging to the voltage holding circuit is disabled. And
The control circuit includes:
A key detection device that detects whether or not each key switch is operated by detecting, for each detection line, voltage fluctuation in a voltage holding state in the voltage holding circuit depending on whether or not the key switch is operated. .
前記出力ラインは、前記制御回路の複数の出力ポートにそれぞれ接続され、第1の周期で前記各出力ポートから順次検出電圧が印加され、
前記検出ラインは、前記電圧状態を前記第1の周期内における第2の周期で順次判定する複数の入力ポートにそれぞれ接続され、
前記制御回路は、
前記出力ラインの一つへの電圧印加毎に、前記検出ラインのそれぞれの電圧状態を検知して前記キースイッチそれぞれの操作有無の判定を行う
ことを特徴とする請求項1に記載のキー検出装置。
The output lines are respectively connected to a plurality of output ports of the control circuit, and a detection voltage is sequentially applied from each of the output ports in a first period,
The detection lines are respectively connected to a plurality of input ports that sequentially determine the voltage state in a second period within the first period,
The control circuit includes:
2. The key detection device according to claim 1, wherein each time a voltage is applied to one of the output lines, the voltage state of the detection line is detected to determine whether or not each of the key switches is operated. .
前記各出力ラインと前記出力ポート間に設けられ、前記複数の出力ラインにおける一つに電圧を印加する際に、他の出力ラインを前記出力ポートから開放するラインを切替えるライン切替え回路を含む
ことを特徴とする請求項2または請求項3に記載のキー検出装置。
A line switching circuit that is provided between each output line and the output port, and switches a line that opens another output line from the output port when a voltage is applied to one of the plurality of output lines. The key detection device according to claim 2, wherein the key detection device is a key detection device.
前記制御回路は、
一の出力ラインに電圧を印加する際、前記電圧を印加する出力ライン以外は前記ライン切替え回路により前記出力ポートとの接続を開放し、前記出力ラインにより充電が完了した後に前記ライン切替え回路の状態を維持したまま前記各検出ラインにおける電圧状態を判定する
ことを特徴とする請求項3に記載のキー検出装置。
The control circuit includes:
When a voltage is applied to one output line, the line switching circuit opens the connection to the output port except for the output line to which the voltage is applied, and the state of the line switching circuit after charging is completed by the output line The key detection device according to claim 3, wherein the voltage state in each of the detection lines is determined while maintaining the key.
前記出力ラインと前記検出ラインは、それぞれ出力と検出を切替え可能なポートに接続され、前記第1の周期内において、前記電圧保持回路が充電されるまでは一の出力ラインに対して電圧が印加され、
前記制御回路は、
前記充電が完了後に電圧印加を解除し、その後検出ラインでの電圧変動を検知する
ことを特徴とする請求項1から請求項4のいずれか1項に記載のキー検出装置。
The output line and the detection line are connected to ports that can switch between output and detection, respectively, and a voltage is applied to one output line until the voltage holding circuit is charged within the first period. And
The control circuit includes:
The key detection device according to any one of claims 1 to 4, wherein the voltage application is released after the charging is completed, and then a voltage fluctuation in the detection line is detected.
前記電圧保持回路による電圧保持は、前記第2の周期を十分保持できる程度の時定数を有する
ことを特徴とする請求2に記載のキー検出装置。
The key detection apparatus according to claim 2, wherein the voltage holding by the voltage holding circuit has a time constant sufficient to hold the second period.
前記電圧保持回路は、抵抗とキャパシタを含み、
前記抵抗の一端は前記出力ラインに、他端はキャパシタに接続され、前記キャパシタの他端は接地され、
前記キースイッチは、前記キャパシタをバイパスして接地させるスイッチである
ことを特徴とする請求項1から請求項6のいずれか1項に記載のキー検出装置。
The voltage holding circuit includes a resistor and a capacitor,
One end of the resistor is connected to the output line, the other end is connected to a capacitor, the other end of the capacitor is grounded,
The key detection device according to any one of claims 1 to 6, wherein the key switch is a switch that bypasses the capacitor and grounds the capacitor.
複数の出力ラインと、複数の検出ラインと、前記出力ラインと前記検出ラインが交差する箇所に設けられる複数のキースイッチと、前記出力ラインに印加される電圧により充電可能な電圧保持回路とを備えたキーマトリクス回路におけるキー検出方法において、
前記出力ライン毎のキー検出判定を行うキー検出ステップを有し、
n番目の出力ラインにおけるキー検出ステップには、前記n番目の出力ラインへの電圧印加を行い、前記電圧保持回路への充電を行う電圧印加ステップと、
前記n番目の出力ラインへの電圧印加を停止し、前記各検出ラインでの電圧状態を判定する判定ステップと
を有することを特徴とするキー検出方法。
A plurality of output lines; a plurality of detection lines; a plurality of key switches provided at locations where the output lines and the detection lines intersect; and a voltage holding circuit that can be charged by a voltage applied to the output lines. In the key detection method in the key matrix circuit,
A key detection step for performing key detection determination for each output line;
The key detection step in the nth output line includes applying a voltage to the nth output line and charging the voltage holding circuit;
A key detection method comprising: determining a voltage state in each detection line by stopping voltage application to the nth output line.
操作部と、
表示部と、
制御部と、を備え、
前記操作部は、
複数の出力ラインと、複数の検出ラインと、前記出力ラインと前記検出ラインが交差する箇所に設けられる複数のキースイッチと、前記出力ラインに印加される電圧により充電可能な電圧保持回路とを備えたキーマトリクス回路を有し、
前記制御部は、
n(任意の整数)番目の出力ラインにおけるキー検出処理時、前記n番目の出力ラインへの電圧印加により前記電圧保持回路への充電を行い、前記n番目の出力ラインへの電圧印加を停止し、前記各検出ラインでの電圧状態を判定してキースイッチの操作を認識し、当該認識されたキースイッチの種別を前記表示部に表示する
ことを特徴とする携帯電子機器。
An operation unit;
A display unit;
A control unit,
The operation unit is
A plurality of output lines; a plurality of detection lines; a plurality of key switches provided at locations where the output lines and the detection lines intersect; and a voltage holding circuit that can be charged by a voltage applied to the output lines. A key matrix circuit,
The controller is
During key detection processing on the nth (any integer) output line, the voltage holding circuit is charged by applying a voltage to the nth output line, and the voltage application to the nth output line is stopped. A portable electronic device characterized by determining a voltage state in each detection line, recognizing an operation of a key switch, and displaying the type of the recognized key switch on the display unit.
JP2008088817A 2008-03-28 2008-03-28 Key detection device and portable electronic device Expired - Fee Related JP5177511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008088817A JP5177511B2 (en) 2008-03-28 2008-03-28 Key detection device and portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008088817A JP5177511B2 (en) 2008-03-28 2008-03-28 Key detection device and portable electronic device

Publications (2)

Publication Number Publication Date
JP2009245025A true JP2009245025A (en) 2009-10-22
JP5177511B2 JP5177511B2 (en) 2013-04-03

Family

ID=41306862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008088817A Expired - Fee Related JP5177511B2 (en) 2008-03-28 2008-03-28 Key detection device and portable electronic device

Country Status (1)

Country Link
JP (1) JP5177511B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111159A (en) * 2010-12-27 2011-06-29 青岛文达通科技发展有限公司 Keyboard scanning circuit and scanning method thereof
JP2015075527A (en) * 2013-10-07 2015-04-20 ヤマハ株式会社 Switch scan device of electronic musical instrument
CN109302188A (en) * 2017-07-25 2019-02-01 厦门雅迅网络股份有限公司 A kind of detection method and circuit of the line control push-button of electric resistance partial pressure type
CN114899024A (en) * 2022-04-13 2022-08-12 中山亿联智能科技有限公司 Environment-friendly intelligent panel identification equipment capable of automatically identifying multi-way switch and method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05119910A (en) * 1991-04-17 1993-05-18 Philips Gloeilampenfab:Nv Optical-touch type input device
JP2007011233A (en) * 2005-07-04 2007-01-18 Toshiba Matsushita Display Technology Co Ltd Flat display device and imaging method using same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05119910A (en) * 1991-04-17 1993-05-18 Philips Gloeilampenfab:Nv Optical-touch type input device
JP2007011233A (en) * 2005-07-04 2007-01-18 Toshiba Matsushita Display Technology Co Ltd Flat display device and imaging method using same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111159A (en) * 2010-12-27 2011-06-29 青岛文达通科技发展有限公司 Keyboard scanning circuit and scanning method thereof
JP2015075527A (en) * 2013-10-07 2015-04-20 ヤマハ株式会社 Switch scan device of electronic musical instrument
CN109302188A (en) * 2017-07-25 2019-02-01 厦门雅迅网络股份有限公司 A kind of detection method and circuit of the line control push-button of electric resistance partial pressure type
CN114899024A (en) * 2022-04-13 2022-08-12 中山亿联智能科技有限公司 Environment-friendly intelligent panel identification equipment capable of automatically identifying multi-way switch and method thereof
CN114899024B (en) * 2022-04-13 2023-10-27 中山亿联智能科技有限公司 Environment-friendly intelligent panel identification equipment capable of automatically identifying multiple switches and method thereof

Also Published As

Publication number Publication date
JP5177511B2 (en) 2013-04-03

Similar Documents

Publication Publication Date Title
US9703403B2 (en) Image display control apparatus and image display control method
CN110368676B (en) Touch information control method and device, storage medium and electronic equipment
JP5177511B2 (en) Key detection device and portable electronic device
US20080125184A1 (en) Electronic device, incoming call notification control method, and incoming call notification control program
US20100123684A1 (en) Sensing circuit, display device, and electronic apparatus
JP4954931B2 (en) Key detection device and portable electronic device
US8421651B2 (en) Mobile phone with improved keyboard scanning and component reduction and method
US20070072651A1 (en) Information terminal controller and information terminal control method
US20090227294A1 (en) Electronic apparatus
WO2022042485A1 (en) Control method and apparatus for near-field communication module, and electronic device
JP4638522B2 (en) Portable electronic devices
JP5185880B2 (en) Communication terminal and incoming call control method
CN110889102B (en) Image unlocking method and device, computer readable storage medium and terminal
JP5583316B2 (en) Key scan circuit, electronic device, and key scan method
EP1715420A1 (en) A method and computer program for switching on a portable telephone
CN112415367A (en) Drive chip abnormality detection method and device, electronic equipment and readable storage medium
JP5160294B2 (en) Portable electronic devices
US9900426B2 (en) Electronic apparatus, method for controlling the same and processor for the same
JP5463977B2 (en) Electronic device, input detection circuit, and input detection method
US20040104904A1 (en) Image display system and display device
JP5995405B2 (en) Portable electronic device, display switching method, and display switching program
JP2009230631A (en) Portable terminal device
CN110941473B (en) Preloading method, preloading device, electronic equipment and medium
KR101402798B1 (en) Portable terminal and method for recognizing key data thereof
KR20040010910A (en) Key scan apparatus and method for mobile communication terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111027

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120220

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121226

LAPS Cancellation because of no payment of annual fees