CN109525225A - Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key - Google Patents

Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key Download PDF

Info

Publication number
CN109525225A
CN109525225A CN201811414063.6A CN201811414063A CN109525225A CN 109525225 A CN109525225 A CN 109525225A CN 201811414063 A CN201811414063 A CN 201811414063A CN 109525225 A CN109525225 A CN 109525225A
Authority
CN
China
Prior art keywords
mechanical key
circuit
push button
button signalling
timer
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
CN201811414063.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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811414063.6A priority Critical patent/CN109525225A/en
Publication of CN109525225A publication Critical patent/CN109525225A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/02Generators characterised by the type of circuit or by the means used for producing pulses
    • H03K3/023Generators characterised by the type of circuit or by the means used for producing pulses by the use of differential amplifiers or comparators, with internal or external positive feedback
    • H03K3/0232Monostable circuits
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H9/00Details of switching devices, not covered by groups H01H1/00 - H01H7/00
    • H01H9/54Circuit arrangements not adapted to a particular application of the switching device and for which no provision exists elsewhere

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses preventing jittering circuit, terminal, button processing method and the storage medium of a kind of mechanical key, and the preventing jittering circuit of the mechanical key includes mechanical key circuit and monostable flipflop;The mechanical key circuit, for generating push button signalling in the case where being pressed;The monostable flipflop, the push button signalling generated for obtaining the mechanical key circuit carry out jitter elimination processing to the push button signalling, the push button signalling after output jitter Processing for removing.The embodiment of the present application carries out jitter elimination processing to the push button signalling that mechanical key generates by monostable flipflop;Solve the problem of that the moment that mechanical switch opens or closes can bring multiple switch motion to cause " false triggering " phenomenon;Touch-control sensitivity is improved, and then improves user experience.

Description

Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key
Technical field
The invention relates to field of terminal technology more particularly to a kind of preventing jittering circuit of mechanical key, terminal, press Key processing method and storage medium.
Background technique
With the arrival in 4G epoch, mobile phone has been not only traditional communication tool, even more a kind of collection Amusement, commercial affairs, the intelligent terminal of internet.Requirement of the people for mobile phone is also higher and higher, large screen touch, high score The functions such as resolution camera, massive store space, high speed Internet access, expansible application program become the development trend of 4G cell phone One of.
Cell phone manufacturer starts subdivision field of deep ploughing in recent years, such as: specifically for the safe mobile phone of safety, specifically for trip The game mobile phone etc. of play.Cell phone manufacturer attracts user's note that for more operating handle, very in the foot time under ID design Mechanical key design is added in the ID design of mobile phone in more mobile phone producers, realizes certain operation to enrich mobile phone using mechanical key Function, the advantage of mechanical key it is obvious that but itself the biggest problems are that " flutter effect ".So-called " flutter effect ", refers to Multiple switch motion can be brought in the moment that mechanical switch opens or closes, as shown in figure 3, theoretically when switch is pressed or is moved Open its level change and be that absolute low and high level is not any change, but press or remove in practice mechanical keyswitch its The variation of multiple low and high level can be brought, thus the repeatedly opening and closing of trigger circuit function, as usually said " is missed Triggering " phenomenon.
Summary of the invention
In view of this, the preventing jittering circuit for being designed to provide a kind of mechanical key, terminal, key of the embodiment of the present application Processing method and storage medium can bring multiple switch motion to solve the moment that mechanical switch opens or closes, cause The problem of " false triggering " phenomenon.
It is as follows that the embodiment of the present application solves technical solution used by above-mentioned technical problem:
According to the one aspect of the embodiment of the present application, a kind of preventing jittering circuit of the mechanical key provided is applied to terminal, The preventing jittering circuit of the mechanical key includes mechanical key circuit and monostable flipflop;
The mechanical key circuit, for generating push button signalling in the case where being pressed;
The monostable flipflop, the push button signalling generated for obtaining the mechanical key circuit, believes the key Number carry out jitter elimination processing, the push button signalling after output jitter Processing for removing.
Optionally, the monostable flipflop includes 555 timers, resistance-capacitance circuit and first capacitor;
The first end of 555 timer is connected to ground, and the second end of 555 timer is pressed for obtaining the machinery The push button signalling that key circuit generates, the third end of 555 timer is for the push button signalling after output jitter Processing for removing, institute The 4th end and the 8th end for stating 555 timers connect to power supply, and the 5th end of 555 timer is connected by first capacitor and ground It connects, the 6th end and the 7th end of 555 timer are connect with the resistance-capacitance circuit.
Optionally, the resistance-capacitance circuit includes first resistor and the second capacitor;
One end of the first resistor is connect with the power supply, the other end of the first resistor and second capacitor One end and the 6th end of 555 timer are connected with the 7th end, and the other end of second capacitor is connected to ground.
Optionally, the temporary steady state time of 555 timer is configured by following formula:
Wherein, R1For the resistance value of first resistor, C2For the capacitance of second capacitor, VC(∞)=VDD, VC(0+)=0, VC (TW)=2/3VDD, VDDFor the voltage value of the power supply.
Optionally, the mechanical key circuit includes mechanical key and second resistance;
One end of the second resistance is connect with the power supply, the other end of the second resistance and the mechanical key The connection of the second end of one end and 555 timer, the other end of the mechanical key are connected to ground.
Optionally, the preventing jittering circuit of the mechanical key further includes buffer;The normal phase input end of the buffer with The third end of 555 timer connects, and the negative-phase input of the buffer is connect with the output end of the buffer;
The buffer, jitter elimination for being exported to the monostable flipflop treated push button signalling carries out every Push button signalling from processing, after isolation processing is exported by the output end of the buffer.
Optionally, the preventing jittering circuit of the mechanical key further includes central processing unit;
The central processing unit, the push button signalling after isolation processing for obtaining and responding the buffer output.
According to the other side of the embodiment of the present application, a kind of terminal provided, the terminal include it is above-mentioned it is mechanical by The preventing jittering circuit of key.
According to the other side of the embodiment of the present application, a kind of preventing jittering circuit using above-mentioned mechanical key for providing Button processing method, which comprises
Obtain and respond the push button signalling that the preventing jittering circuit of the mechanical key generates.
According to the other side of the embodiment of the present application, a kind of storage medium provided is stored on the storage medium The step of keystroke handling program, the keystroke handling program realizes above-mentioned button processing method when being executed by the processor.
Preventing jittering circuit, terminal, button processing method and the storage medium of the mechanical key of the embodiment of the present application, pass through Monostable flipflop carries out jitter elimination processing to the push button signalling that mechanical key generates;Solve what mechanical switch opened or closed The problem of moment can bring multiple switch motion, cause " false triggering " phenomenon;Touch-control sensitivity is improved, and then improves user's body It tests.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing the mobile terminal of each embodiment of the application;
Fig. 2 is a kind of communications network system architecture diagram provided by the embodiments of the present application;
Fig. 3 is the theoretical waveform and actual waveform structural schematic diagram of existing mechanical key;
Fig. 4 is existing mechanical key electrical block diagram;
Fig. 5 is the preventing jittering circuit structural schematic diagram of the mechanical key of the application first embodiment;
Fig. 6 is the preventing jittering circuit exemplary construction schematic diagram of the mechanical key of the embodiment of the present application;
Fig. 7 is 555 timer construction schematic diagrames of the preventing jittering circuit of the mechanical key of the embodiment of the present application;
Fig. 8 is the stabilization waveform configuration schematic diagram of the mechanical key of the embodiment of the present application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
In order to be clearer and more clear technical problems to be solved in this application, technical solution and beneficial effect, tie below Drawings and examples are closed, the application is further elaborated.It should be appreciated that specific embodiment described herein is only To explain the application, it is not used to limit the application.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, PDA (Personal Digital Assistant, personal digital assistant), PMP (Portable Media Player, portable media player), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as equal mobile terminals, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
Before illustrating the present embodiment, " flutter effect " existing for existing machinery key circuit is carried out below in conjunction with Fig. 4 Illustrate:
As shown in figure 4, existing mechanical key circuit knot include mechanical key K, resistance R1 and R2, NMOS tube N1 and Processor.The advantages of circuit is that circuit structure is simple, and element is few using number, but can bring serious " flutter effect ", works as machine The moment of tool key K pressed or removed can be multiple opening and closing NMOS tube, cause false triggering phenomenon.
As shown in figure 5, the application first embodiment provides a kind of preventing jittering circuit of mechanical key, it is applied to terminal, institute The preventing jittering circuit for stating mechanical key includes mechanical key circuit 31 and monostable flipflop 32;
The mechanical key circuit 31, for generating push button signalling in the case where being pressed;
The monostable flipflop 32, the push button signalling generated for obtaining the mechanical key circuit 31, is pressed to described Key signals carry out jitter elimination processing, the push button signalling after output jitter Processing for removing.
In order to preferably illustrate the present embodiment, it is illustrated below in conjunction with preventing jittering circuit of the Fig. 6 to mechanical key:
As shown in fig. 6, in the present embodiment, the monostable flipflop 32 includes 555 timers (the NE555 institute in figure Show), resistance-capacitance circuit and first capacitor C1;
The first end (in figure shown in the 1 of NE555) of 555 timer is connected to ground, the second end of 555 timer The push button signalling that (in figure shown in the 2 of NE555) is generated for obtaining the mechanical key circuit 31, the of 555 timer Three ends (in figure shown in the 3 of NE555) are used for the push button signalling after output jitter Processing for removing, the 4th end of 555 timer (in figure shown in the 4 of NE555) and the 8th end (in figure shown in the 8 of NE555) is connect with power vd D, and the 5th of 555 timer the End is connected to ground (in figure shown in the 5 of NE555) by first capacitor C1, the 6th end of 555 timer (the 6 of NE555 in figure It is shown) and the 7th end (in figure shown in the 7 of NE555) connect with the resistance-capacitance circuit.
In the present embodiment, the resistance-capacitance circuit includes first resistor R1 and the second capacitor C2;
One end of the first resistor R1 is connect with the power vd D, the other end of the first resistor R1 and described the The 6th end (in figure shown in the 6 of NE555) and the 7th the end (NE555 in figure of one end of two capacitor C2 and 555 timer 7 shown in) connection, the other end of the second capacitor C2 is connected to ground.
In the present embodiment, the mechanical key circuit includes mechanical key K and second resistance R2;
One end of the second resistance R2 is connect with the power vd D, the other end and the machine of the second resistance R2 The connection of the second end (in figure shown in the 2 of NE555) of one end of tool key K and 555 timer, the mechanical key K's The other end is connected to ground.
In the present embodiment, the preventing jittering circuit of the mechanical key further includes buffer B1;The buffer B1 is just Phase input terminal is connect with the third end (in figure shown in the 3 of NE555) of 555 timer, the negative input of the buffer B1 End is connect with the output end of the buffer B1;
The buffer B1, treated that push button signalling carries out for jitter elimination for exporting to the monostable flipflop Isolation processing, the push button signalling after isolation processing is exported by the output end of the buffer B1.
In the present embodiment, the effect of buffer B1 is influence of the isolated preceding-terminal to rear end, and interference has preferably been isolated, So that the signal integrity of input central processing unit is closer to theoretical value.
In the present embodiment, the preventing jittering circuit of the mechanical key further includes central processing unit;
The central processing unit, the push button signalling after isolation processing for obtaining and responding the buffer B1 output.
In order to preferably illustrate the present embodiment, the combination of 555 timers is illustrated below in conjunction with Fig. 7:
555 timers are a kind of multiduty digital-to-analog hydrid integrated circuits, using flexible, conveniently, 555 timers Waveform generation with exchange, measurement and control, household electrical appliance, electronic toy etc. are applied in many fields.
It may make up Schmidt trigger, monostable flipflop and multivibrator using 555 timers.
Fig. 7 is typical 555 timer design schematic diagrams, and the function of 555 timers is mainly by two comparator (C1 in figure With shown in C2) determine.The output voltage control rest-set flip-flop (shown in the G1 and G2 in figure) and discharge tube of two comparators are (in figure TDIt is shown) state.Voltage, when 5 feet are hanging, the then non-inverting input terminal of voltage comparator C1 are added between power supply and ground Voltage be 2VCC/3, the voltage of the inverting input terminal of C2 is VCC/3.If the voltage for triggering input terminal TR is less than VCC/3, compare Output compared with device C2 is 0, rest-set flip-flop can be made to set 1, make output end OUT=1.If the voltage of threshold value input TH is greater than 2VCC/3, while the voltage at the end TR is greater than VCC/3, then the output that the output of C1 is 0, C2 is 1, rest-set flip-flop can be set 0, made defeated It is out low level.
In order to preferably illustrate the present embodiment, it is illustrated below in conjunction with stabilization process of the Fig. 8 to mechanical key:
As shown in Figure 6 and Figure 7, under original state (when mechanical key K is not closed), 555 timers export low level, i.e. V0 =0;Triode TDConducting.
When mechanical key K closure when, i.e., 2 pins input a failing edge, the failing edge make 555 timers output by Low potential is reversed to high potential, triode TDIt being not turned on, capacitor C2 will be made up of access R1 and charge to 555 timers, VC1End voltage will rise, and work as VC1When end voltage does not rise to 2/3VDD, output will not change;Work as VC1End voltage rises to When 2/3VDD, output low level is judged by 555 timers, i.e. the output of NAND gate G3 is high level, triode TDConducting, VC1 Voltage decline, during capacitor C2 both end voltage rises to 2/3VCC from 0V, output end will be always maintained at high potential, be at this time So that input terminal is had Vibrating pulse input, output end will not also change, reasonably choose voltage rising time (i.e. temporary stable state when Between), the effect of stabilization can be reached.
In the present embodiment, the temporary steady state time of 555 timer is configured by following formula:
Wherein, R1For the resistance value of first resistor, C2For the capacitance of second capacitor, VC(∞)=VDD, VC(0+)=0, VC (TW)=2/3VDD, VDDFor the voltage value of the power supply.
Fig. 8 is the stabilization waveform configuration schematic diagram of mechanical key.As shown in figure 8, when mechanical key K is closed, V1 is in When during shake, by the way that reasonable R is arranged1、C2Value, control VC1The time T of 2/3VDD is risen to from 0VWIt can realize stabilization Dynamic (the V in figureC1、V0Shown in waveform).
The preventing jittering circuit of the mechanical key of the embodiment of the present application presses mechanical key generation by monostable flipflop Key signals carry out jitter elimination processing;Multiple switch motion can be brought by solving the moment that mechanical switch opens or closes, and be caused The problem of " false triggering " phenomenon;Touch-control sensitivity is improved, and then improves user experience.
Second embodiment
The application second embodiment provides a kind of terminal, and the terminal includes the anti-of mechanical key described in first embodiment Dither circuit.
The terminal of the present embodiment belongs to same design with the terminal of first embodiment, and specific implementation process is shown in detail One embodiment, and the technical characteristic in first embodiment is corresponding applicable in the present embodiment, which is not described herein again.
The terminal of the embodiment of the present application carries out shake to the push button signalling that mechanical key generates by monostable flipflop and disappears Except processing;Multiple switch motion can be brought by solving the moment that mechanical switch opens or closes, and cause asking for " false triggering " phenomenon Topic;Touch-control sensitivity is improved, and then improves user experience.
3rd embodiment
The application 3rd embodiment provides a kind of pressing for preventing jittering circuit using mechanical key described in first embodiment Key processing method, which comprises
Obtain and respond the push button signalling that the preventing jittering circuit of the mechanical key generates.
The button processing method of the embodiment of the present application, by touching bleeder circuit, gain amplifying circuit, detection accumulator And the preventing jittering circuit of the mechanical key of reversed level shifting circuit building, push button signalling is generated when user's finger is pressed; The key for solving existing terminal is higher to Structural Design Requirement, cost also higher problem;Structural Design Requirement and cost is relatively low, Reliable performance, high sensitivity.
Fourth embodiment
The application fourth embodiment provides a kind of storage medium, and keystroke handling program, institute are stored on the storage medium The step of stating when keystroke handling program is executed by processor for realizing button processing method described in 3rd embodiment.
It should be noted that the storage medium of the present embodiment, belongs to same design with the method for 3rd embodiment, it is specific Realization process is shown in embodiment of the method in detail, and the technical characteristic in embodiment of the method is corresponding applicable in the present embodiment, here It repeats no more.
The storage medium of the embodiment of the present application, by touch bleeder circuit, gain amplifying circuit, detection accumulator and The preventing jittering circuit of the mechanical key of reversed level shifting circuit building, push button signalling is generated when user's finger is pressed;It solves The key of existing terminal is higher to Structural Design Requirement, cost also higher problem;Structural Design Requirement and cost is relatively low, performance Reliably, high sensitivity.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain objects Reason component or all physical assemblies may be implemented as by processor, such as central processing unit, digital signal processor or micro process The software that device executes, is perhaps implemented as hardware or is implemented as integrated circuit, such as specific integrated circuit.Such software Can be distributed on a computer-readable medium, computer-readable medium may include computer storage medium (or non-transitory be situated between Matter) and communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium includes In any method or skill for storing information (such as computer readable instructions, data structure, program module or other data) The volatile and non-volatile implemented in art, removable and nonremovable medium.Computer storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic Box, tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be visited by computer Any other medium asked.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable Other numbers in the modulated data signal of instruction, data structure, program module or such as carrier wave or other transmission mechanisms etc According to, and may include any information delivery media.
Above by reference to Detailed description of the invention preferred embodiment of the present application, not thereby limit to the interest field of the application.This Field technical staff does not depart from made any modifications, equivalent replacements, and improvements in scope of the present application and essence, should all be at this Within the interest field of application.

Claims (10)

1. a kind of preventing jittering circuit of mechanical key is applied to terminal, which is characterized in that the preventing jittering circuit of the mechanical key Including mechanical key circuit and monostable flipflop;
The mechanical key circuit, for generating push button signalling in the case where being pressed;
The monostable flipflop, the push button signalling generated for obtaining the mechanical key circuit, to the push button signalling into Row jitter elimination is handled, the push button signalling after output jitter Processing for removing.
2. the preventing jittering circuit of mechanical key according to claim 1, which is characterized in that the monostable flipflop includes 555 timers, resistance-capacitance circuit and first capacitor;
The first end of 555 timer is connected to ground, and the second end of 555 timer is returned for obtaining the mechanical key The push button signalling that road generates, the third end of 555 timer are described for the push button signalling after output jitter Processing for removing 4th end of 555 timers and the 8th end connect to power supply, and the 5th end of 555 timer is connected by first capacitor and ground It connects, the 6th end and the 7th end of 555 timer are connect with the resistance-capacitance circuit.
3. the preventing jittering circuit of mechanical key according to claim 2, which is characterized in that the resistance-capacitance circuit includes first Resistance and the second capacitor;
One end of the first resistor is connect with the power supply, and the one of the other end of the first resistor and second capacitor End and the 6th end of 555 timer are connected with the 7th end, and the other end of second capacitor is connected to ground.
4. the preventing jittering circuit of mechanical key according to claim 3, which is characterized in that be configured by following formula The temporary steady state time of 555 timer:
Wherein, R1For the resistance value of first resistor, C2For the capacitance of second capacitor, VC(∞)=VDD, VC(0+)=0, VC(TW) =2/3VDD, VDDFor the voltage value of the power supply.
5. the preventing jittering circuit of mechanical key according to claim 2, which is characterized in that the mechanical key circuit includes Mechanical key and second resistance;
One end of the second resistance is connect with the power supply, one end of the other end of the second resistance and the mechanical key And the second end connection of 555 timer, the other end of the mechanical key are connected to ground.
6. the preventing jittering circuit of mechanical key according to claim 2, which is characterized in that the stabilization of the mechanical key Circuit further includes buffer;The normal phase input end of the buffer is connect with the third end of 555 timer, the buffer Negative-phase input connect with the output end of the buffer;
The buffer, treated that push button signalling carries out at isolation for jitter elimination for exporting to the monostable flipflop Reason, the push button signalling after isolation processing is exported by the output end of the buffer.
7. the preventing jittering circuit of mechanical key according to claim 6, which is characterized in that the stabilization of the mechanical key Circuit further includes central processing unit;
The central processing unit, the push button signalling after isolation processing for obtaining and responding the buffer output.
8. a kind of terminal, which is characterized in that the terminal includes the anti-of mechanical key as described in any one of claim 1 to 7 Dither circuit.
9. a kind of button processing method of the preventing jittering circuit of mechanical key of application as described in claim 1 to 7 is any, described Method includes:
Obtain and respond the push button signalling that the preventing jittering circuit of the mechanical key generates.
10. a kind of storage medium, which is characterized in that be stored with keystroke handling program, the keystroke handling on the storage medium The step of program realizes button processing method as claimed in claim 9 when being executed by the processor.
CN201811414063.6A 2018-11-26 2018-11-26 Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key Pending CN109525225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811414063.6A CN109525225A (en) 2018-11-26 2018-11-26 Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811414063.6A CN109525225A (en) 2018-11-26 2018-11-26 Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key

Publications (1)

Publication Number Publication Date
CN109525225A true CN109525225A (en) 2019-03-26

Family

ID=65778803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811414063.6A Pending CN109525225A (en) 2018-11-26 2018-11-26 Preventing jittering circuit and its processing method, terminal, the storage medium of mechanical key

Country Status (1)

Country Link
CN (1) CN109525225A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173391A1 (en) * 2011-08-11 2014-06-19 Balluff Gmbh Measured value transmitting device
CN104799986A (en) * 2015-04-17 2015-07-29 东南大学 Wearable device for cervical vertebra protection
CN105450203A (en) * 2015-11-13 2016-03-30 得理电子(上海)有限公司 Interference filtering device and interference filtering method for rapid on-off mechanical switches
CN206489664U (en) * 2017-02-17 2017-09-12 广州市三蓝电子科技有限公司 A kind of keyboard of cashier's machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173391A1 (en) * 2011-08-11 2014-06-19 Balluff Gmbh Measured value transmitting device
CN104799986A (en) * 2015-04-17 2015-07-29 东南大学 Wearable device for cervical vertebra protection
CN105450203A (en) * 2015-11-13 2016-03-30 得理电子(上海)有限公司 Interference filtering device and interference filtering method for rapid on-off mechanical switches
CN206489664U (en) * 2017-02-17 2017-09-12 广州市三蓝电子科技有限公司 A kind of keyboard of cashier's machine

Similar Documents

Publication Publication Date Title
CN109542689A (en) Applied program processing method, terminal and computer readable storage medium
CN108052302A (en) Association display methods, terminal and the computer readable storage medium of double-sided screen
CN107463481A (en) Data interactive method, mobile terminal and storage medium
CN109725866A (en) Application interface display methods, terminal and computer readable storage medium
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN108391190B (en) A kind of noise-reduction method, earphone and computer readable storage medium
CN109684023A (en) Multi-screen display method, terminal and the storage medium of application program
CN109901980A (en) Serial ports log grabs circuit, method, terminal and computer readable storage medium
CN109327581A (en) A kind of downloading switching device and mobile terminal
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109726156A (en) OTG equipment, charge control method, terminal and storage medium
CN109783370A (en) A kind of log grasping means, terminal and computer readable storage medium
CN109151216A (en) Using starting method, mobile terminal, server and computer readable storage medium
CN110064196A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108769534A (en) A kind of focalization method and terminal
CN109739517A (en) Printed circuit board, terminal, firmware burning method and readable storage medium storing program for executing
CN109714460A (en) Press key expansion device, terminal, key expansion method and storage medium
CN110083423A (en) Interface jump method, terminal and computer readable storage medium
CN107396226B (en) A kind of earphone compatible circuit, mobile terminal and electronic system
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN110175052A (en) A kind of method, apparatus and computer readable storage medium of file opening
CN109660907A (en) Reducing fan noise processing method, terminal, intelligent sound box and readable storage medium
CN108833687A (en) Terminal prot open method, terminal and computer readable storage medium
CN109151163A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108650404A (en) Port start-up circuit, device and mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326