CN109639263A - A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal - Google Patents

A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal Download PDF

Info

Publication number
CN109639263A
CN109639263A CN201910100925.6A CN201910100925A CN109639263A CN 109639263 A CN109639263 A CN 109639263A CN 201910100925 A CN201910100925 A CN 201910100925A CN 109639263 A CN109639263 A CN 109639263A
Authority
CN
China
Prior art keywords
input
nand gate
key
circuit
matrix keyboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910100925.6A
Other languages
Chinese (zh)
Inventor
李光平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanning University
Nanning Institute
Original Assignee
Nanning Institute
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 Nanning Institute filed Critical Nanning Institute
Priority to CN201910100925.6A priority Critical patent/CN109639263A/en
Publication of CN109639263A publication Critical patent/CN109639263A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/965Switches controlled by moving an element forming part of the switch
    • H03K17/967Switches controlled by moving an element forming part of the switch having a plurality of control members, e.g. keyboard
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/125Discriminating pulses
    • H03K5/1252Suppression or limitation of noise or interference
    • H03K5/1254Suppression or limitation of noise or interference specially adapted for pulses generated by closure of switches, i.e. anti-bouncing devices
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21157Broken, open line, cable, circuit, faulty connection
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Nonlinear Science (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The present invention provides a kind of matrix keyboard circuit for eliminating key jitter and interrupt signal output with hardware, which is made of disappear twitter circuit, four input nand gates and Schmidt's NAND gate of matrix keyboard, the RC of 4x5.When key is not pressed, H1 to the H4 of key keeps weak pull-up state, and L1 to L5 keeps strong pull-down state, when pressing key pressing, weak pull-up is pulled low, the reversion of NAND gate output level, the charging of RC circuit is given, band is formed after Schmidt's NAND gate and disappears the interrupt signal trembled.Circuit changes classical matrix keyboard using the method for largely consuming single-chip microcontroller or other microcontroller resources in software timing scanning and software for jitters elimination.Single-chip microcontroller or other microcontroller resources have largely been saved, the consumption of electric energy is thereby reduced.

Description

A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal
Technical field
The present invention relates to a kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal belongs to application electric technology neck Domain.
Background technique
Matrix keyboard circuit is very widely used in daily life, with the improvement of living standards, various intelligence Energy product appears in our life.For intellectual product, the quantity of key sometimes requires that comparison is more.But in order to save Cost, is generally used that port is less, the less single-chip microcontroller of resource or other microcontrollers.For meet key demand it is more, The less single-chip microcontroller of resource or other microcontroller controlling function products devise a kind of band hardware for jitters elimination and interrupt signal Matrix keyboard circuit solve the problems, such as that key is more, resource is few.
Summary of the invention
The object of the present invention is to provide a kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal, for key compared with In the circuit of more, the less single-chip microcontroller of resource or other microcontrollers.
Specific technical solution adopted by the present invention is as follows:
A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal, it is characterized in that: the circuit include 4x5 matrix keyboard, Resistance R1, capacitor C1, four input nand gate U1, two input Schmidt's NAND gate U2, connecting terminal H1 to H4, connecting terminal L1 are arrived L5, connecting terminal INT.Wherein the left end of 4x5 key is connected to capable connecting terminal H, and the right end of key is connected to respective column Connecting terminal L;Input terminal H1 to the H4 of Input terminal block is connected to the input terminal of four input nand gate U1;Resistance R1 and C1 goes here and there Join stroke RC filter circuit, R1 input four input nand gate output end U1 of termination, the other end is connected with C1, the one end C1 ground connection, separately Outer one end is connected with R1;Two input terminals of input nand gate two are connected with the concatenated node of RC, and output point connects output terminal INT。
Detailed description of the invention
Fig. 1 is a kind of circuit diagram of the matrix keyboard circuit with hardware for jitters elimination and interrupt signal of this patent.
Specific embodiment
The present invention will be further described with reference to the accompanying drawing.
Application method of the invention are as follows: under normal circumstances, H1 to H4 is made using single-chip microcontroller or other microcontrollers Port is in weak pull-up state;L1 to L5 is connected to single-chip microcontroller or the I/O port of other microcontrollers, makes to keep under by force Tension state.In no key-press input, single-chip microcontroller or other microcontrollers may be at that standby or other are not related to And the work of key.When occurring by key pressing, since the impedance of key is very low, the weak pull-up of the wherein single line of H1 to H4 is straight It is connected in the wherein single line of L1 to L5 in succession.The wherein single line level of H1 to H4 is pulled low.After input variation, due to four defeated The input terminal for entering NAND gate is not all of high level, and the level of output end becomes high level by original low level;NAND gate is defeated Outlet is by R1 resistance to capacitor charging.When shaking input, since shaky time is short, capacitor charging can not be made all electric enough Pressure.When being only more than RC time constant by the key pressing time, the reversion of Schmidt's NAND gate U2 output level has reached the mesh for disappearing and trembling 's.The interruptive port that U2 output end is connected to single-chip microcontroller perhaps other microcontrollers can wake up single-chip microcontroller or other are micro- Type controller allows program to enter and interrupts keystroke handling program.Finally reach eliminate key jitter and save single-chip microcontroller or other The purpose of microcontroller resource.
This using new-type circuit it is characterized in that: the circuit include the matrix keyboard of 4x5, electronics R1, capacitor C1,4 input with NOT gate U1, two input Schmidt's NAND gate U2, connecting terminal H1 to H4, connecting terminal L1 to L5, connecting terminal INT.Wherein 4x5 The left end of key is connected to capable connecting terminal H, and the right end of key is connected to the connecting terminal L of respective column;Input terminal block Input terminal H1 to H4 be connected to the input terminal of four input nand gate U1;Resistance R1 connects stroke RC filter circuit with C1, and R1 is defeated Enter four input nand gate output end U1 of termination, the other end is connected with C1, and the one end C1 ground connection, other end is connected with R1;Two inputs Two input terminals of NAND gate are connected with the concatenated node of RC, and output point connects output terminal INT.

Claims (2)

1. a kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal, it is characterized in that: the circuit includes the matrix key of 4x5 Disk, resistance R1, capacitor C1, four input nand gate U1, two input Schmidt's NAND gate U2, connecting terminal H1 to H4, connecting terminal L1 to L5, connecting terminal INT, wherein the left end of 4x5 key is connected to capable connecting terminal H, and the right end of key is connected to pair The connecting terminal L that should be arranged;Input terminal H1 to the H4 of Input terminal block is connected to the input terminal of four input nand gate U1;Resistance R1 with C1 series connection stroke RC filter circuit, R1 input four input nand gate output end U1 of termination, the other end are connected with C1, and C1 mono- is terminated Ground, other end are connected with R1;Two input terminals of input nand gate two are connected with the concatenated node of RC, and output point connects output end Sub- INT.
2. a kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal according to claim 1, it is characterized in that: circuit Parameter U1 uses 4 input nand gates, and U2 exports NAND gate using Schmidt's type two, and R1 resistance uses 10k valued resistor, and C1 is adopted With 10uF non-polar capacitor.
CN201910100925.6A 2019-02-01 2019-02-01 A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal Pending CN109639263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100925.6A CN109639263A (en) 2019-02-01 2019-02-01 A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100925.6A CN109639263A (en) 2019-02-01 2019-02-01 A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal

Publications (1)

Publication Number Publication Date
CN109639263A true CN109639263A (en) 2019-04-16

Family

ID=66064578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100925.6A Pending CN109639263A (en) 2019-02-01 2019-02-01 A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal

Country Status (1)

Country Link
CN (1) CN109639263A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971052A (en) * 2024-03-28 2024-05-03 深圳市达沃电子有限公司 Control circuit and method for mining keyboard and mouse

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789793A (en) * 2010-01-15 2010-07-28 电子科技大学中山学院 Determinant linear array coordinate scanning circuit
CN201774635U (en) * 2010-01-26 2011-03-23 深圳市同洲电子股份有限公司 Circuit for eliminating jitter of key switch and device thereof
CN106067789A (en) * 2016-06-15 2016-11-02 湖南工业大学 Preventing jittering circuit
CN106100614A (en) * 2016-06-15 2016-11-09 湖南工业大学 Button disappears twitter circuit
CN106130516A (en) * 2016-06-15 2016-11-16 湖南工业大学 Mechanical switch disappears twitter circuit
CN106504416A (en) * 2017-01-04 2017-03-15 广西安辰信息产业股份有限公司 The anti-pry Orderless keyboards of ATM and method
CN108227940A (en) * 2017-12-12 2018-06-29 天津津航计算技术研究所 A kind of ultralow radiation keyboard
CN209170335U (en) * 2019-02-01 2019-07-26 南宁学院 A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789793A (en) * 2010-01-15 2010-07-28 电子科技大学中山学院 Determinant linear array coordinate scanning circuit
CN201774635U (en) * 2010-01-26 2011-03-23 深圳市同洲电子股份有限公司 Circuit for eliminating jitter of key switch and device thereof
CN106067789A (en) * 2016-06-15 2016-11-02 湖南工业大学 Preventing jittering circuit
CN106100614A (en) * 2016-06-15 2016-11-09 湖南工业大学 Button disappears twitter circuit
CN106130516A (en) * 2016-06-15 2016-11-16 湖南工业大学 Mechanical switch disappears twitter circuit
CN106504416A (en) * 2017-01-04 2017-03-15 广西安辰信息产业股份有限公司 The anti-pry Orderless keyboards of ATM and method
CN108227940A (en) * 2017-12-12 2018-06-29 天津津航计算技术研究所 A kind of ultralow radiation keyboard
CN209170335U (en) * 2019-02-01 2019-07-26 南宁学院 A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨伟: "单片机按键消抖技术及其扩展应用", 《电子测试》, pages 96 - 97 *
聂丽文: "一种单片机键盘的实现方法", 《深圳职业技术学院学报》, no. 1, pages 1 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971052A (en) * 2024-03-28 2024-05-03 深圳市达沃电子有限公司 Control circuit and method for mining keyboard and mouse
CN117971052B (en) * 2024-03-28 2024-06-07 深圳市达沃电子有限公司 Control circuit and method for mining keyboard and mouse

Similar Documents

Publication Publication Date Title
CN101699691B (en) Multi-order multi-parameter adjustable electrical load device
CN204180043U (en) Button Anti-shaking circuit and electronic installation
CN208461792U (en) A kind of key applied to FPGA/CPLD, which disappears, trembles logic circuit
CN109639263A (en) A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal
CN209170335U (en) A kind of matrix keyboard circuit with hardware for jitters elimination and interrupt signal
CN102833649B (en) A kind of earphone interface circuit and mobile communication equipment
CN109739146A (en) Pen starting or the control method and circuit closed
CN204463019U (en) A kind of power-supplying circuit
CN206003410U (en) A kind of disappearing for button trembles the circuit module of experimental demonstration teaching
CN103095257A (en) Anti-shake circuit
CN108319186B (en) Overcurrent protection device and method for USB equipment
CN109743040A (en) A kind of rest-set flip-flop and controller
CN208128219U (en) Multifunction push key circuit
CN203645819U (en) Volume adjusting circuit
CN209897021U (en) Circuit structure for reducing rise time of digital signal
CN107027163A (en) TypeC earphones wake up mobile phone circuit
CN205158342U (en) HDMI interface multiplex circuit
CN202916806U (en) Keyboard port switching device
CN104980134B (en) A kind of reset circuit and electronic equipment with the circuit
TW202322510A (en) Negative pressure massage apparatus
CN212850440U (en) Anti-interference circuit device for key input
CN108710755B (en) BMC (baseboard management controller) transmitter
CN104883164B (en) A kind of reset circuit and electronic equipment with the circuit
CN209419589U (en) A kind of noiseproof circuit
CN203445851U (en) Reset circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190416

WD01 Invention patent application deemed withdrawn after publication