CN108988843A - A kind of more key trigger switch electromechanics roads - Google Patents
A kind of more key trigger switch electromechanics roads Download PDFInfo
- Publication number
- CN108988843A CN108988843A CN201810641370.1A CN201810641370A CN108988843A CN 108988843 A CN108988843 A CN 108988843A CN 201810641370 A CN201810641370 A CN 201810641370A CN 108988843 A CN108988843 A CN 108988843A
- Authority
- CN
- China
- Prior art keywords
- key
- circuit
- resistance
- key trigger
- port
- 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
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/96—Touch switches
- H03K17/9618—Touch switches using a plurality of detectors, e.g. keyboard
Landscapes
- Electronic Switches (AREA)
Abstract
The present invention discloses a kind of more key trigger switch electromechanics roads, if including MCU chip, switch triggering circuit and main line key trigger mechanism circuit;MCU chip has IO voltage port VDDIO, circuit voltage port VCC, sample port AD_IO and control signal output mouth GPIO_CRL;Switch triggering circuit is mainly made of triode Q1 and PMOS tube Q2;Every road key trigger mechanism circuit includes the key trigger circuit by divider resistance R, sampling resistor Rn, diode Dna and key Sn the sample circuit formed and being made of diode Dnb and key Sn.More key trigger switch electromechanics roads provided by the invention can be with the port resource of effectively save MCU chip.
Description
Technical field
The present invention relates to electronic circuit technology fields, and in particular to a kind of more key trigger switch electromechanics roads.
Background technique
Fig. 1 show a kind of most common more key trigger switch electromechanics roads, wherein PMOS tube Q2 and NPN triode
Q1 forms switch triggering circuit, first via key trigger mechanism circuit is formed by resistance R1, R5 and switch S1, by resistance R2, R6
The second road key trigger mechanism circuit is formed with switch S2, if main line key trigger mechanism circuit forms entire trigger mechanism.
The power-on operation of foregoing circuit: when entire circuit is in off-mode, PMOS tube is because be the touching of grid low level
Hair conducting, and the current potential of node a and node b at this time are in high level, therefore PMOS tube is in off state;The section of triode
Point c is in low level state, and triode is in off state.
When pressing the button S1, the voltage of triode Q1 node c reaches triode ON voltage, makes triode ON, node b
Current potential be pulled low, PMOS tube conducting, MCU input voltage reaches open state;Meanwhile GPIO1 detects high electricity inside MCU
It is flat, identify that S1 key is pressed.After S1 be pressed the duration reach the available machine time require after, pass through control MCU GPIO_
CRL exports high level, so that the level of triode node c is maintained triode ON voltage, realizes soft power-on operation.
The power-off operation of foregoing circuit: when pressing the button S1, GPIO1 detects high level inside MCU, identifies S1 key
It is pressed.After S1 be pressed the duration reach the unused time require after, by control MCU GPIO_CRL export low level,
Making triode node c is low level, and triode is by realization soft-off operation.
The technical solution mainly passes through corresponding GPIO mouthfuls of the chip (such as the corresponding GPIO2 of S2) of a key, makes
Circuit system realizes triggering booting or shutdown.
The defect of above-mentioned prior art includes:
1, the I/O port for occupying chip is more, can not economize on resources, each key needs a detection I/O port;
2, it is external VBAT voltage value or its partial pressure value that the voltage value that IO is detected is detected in circuit, this voltage is to be not fixed
Value, it may be possible to cell voltage, it is also possible to which high pressure, the variation of voltage value easily cause detection and be not allowed, and cause circuit malfunction.
Summary of the invention
The object of the present invention is to provide a kind of more key trigger switch electromechanics roads, can be with the port of effectively save MCU chip
Resource.The present invention is realized by the following technical scheme:
A kind of more key trigger switch electromechanics roads, if including MCU chip, switch triggering circuit and main line key trigger mechanism
Circuit;It is characterized in that, MCU chip has IO voltage port VDDIO, circuit voltage port VCC, sample port AD_IO and control
Signal output port GPIO_CRL processed;The input terminal of the switch triggering circuit connects the control signal output mouth GPIO_
CRL;Every road key trigger mechanism circuit includes being adopted by what divider resistance R, sampling resistor Rn, diode Dna and key Sn were formed
Sample circuit and the key trigger circuit being made of diode Dnb and key Sn, the one end sampling resistor Rn connect the sample port
AD_IO and through the divider resistance R connection IO voltage port VDDIO, the other end connects the anode of diode Dna, diode Dnb
The cathode of the output end of the anode connection switch triggering circuit, diode Dna and diode Dnb are all connected with the one of key Sn
End, the other end ground connection of key Sn.
As a specific technical scheme, the switch triggering circuit includes triode Q1, PMOS tube Q2, resistance R5, resistance
The base stage of R6 and resistance R7, triode Q1 are through the resistance R6 connection control signal output mouth GPIO_CRL, and base stage is through resistance
R7 ground connection, emitter ground connection, collector connect the grid of PMOS tube Q2, and the source electrode of PMOS tube Q2 meets supply voltage VBAT, PMOS
The source electrode of pipe Q2 connects the circuit voltage port VCC, the grid of PMOS tube Q2 through resistance R5 connection grid, the drain electrode of PMOS tube Q2
Output end of the pole as the switch triggering circuit.
As a specific technical scheme, if the main line key trigger mechanism circuit shares a divider resistance R.
As a specific technical scheme, when the key trigger mechanism circuit is more than or equal to two-way, per sampling electricity all the way
Resistance Rn resistance value differs.
More key trigger switch electromechanics roads provided by the invention compared with prior art the advantages of be:
(1) the trigger mechanism circuit of the prior art is carried out using the base terminal in triode by key control, Er Qieshi
Belong to high level triggering booting;Trigger mechanism circuit of the invention is carried out using the gate terminal in metal-oxide-semiconductor by key control, and
It and is to belong to low level triggering booting.
(2) it is that key trigger switch machine that the sample circuit of the prior art is identified using level detection mode;
The present invention uses AD sample mode, inside MCU AD sampling module according to the voltage value sampled identify specifically by that by
Key trigger switch machine.
(3) prior art is per the key for more increasing a trigger switch machine, it is necessary to and it is increase an I/O port detection more, it is easy
MCU chip port resource is caused to waste;The present invention only needs a sampled I O regardless of needing how many a key trigger switch machines
Mouthful, number of keys number depend on AD sampling precision.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, simple Jie is done to attached drawing needed in the embodiment below
It continues.The accompanying drawings in the following description is only that the embodiment in the present invention is not being paid for those of ordinary skill in the art
Out under the premise of creative work, it can also be obtained according to these attached drawings other accompanying drawings.
Fig. 1 is the schematic diagram on more key trigger switch electromechanics roads disclosed in the prior art.
Fig. 2 is the schematic diagram on more key trigger switch electromechanics roads provided in an embodiment of the present invention.
Specific embodiment
In order to which the purpose of the present invention, technical solution, advantage is more clearly understood, with reference to the accompanying drawings and embodiments to this
Invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, not
For limiting the present invention.
As described in Figure 2, more key trigger switch electromechanics roads provided in this embodiment, including MCU chip, switch triggering circuit
And if main line key trigger mechanism circuit;MCU chip has IO voltage port VDDIO, circuit voltage port VCC, sample port
AD_IO and control signal output mouth GPIO_CRL;Switch triggering circuit includes triode Q1, PMOS tube Q2, resistance R5, resistance
The base stage of R6 and resistance R7, triode Q1 are through the resistance R6 connection control signal output mouth GPIO_CRL, and base stage is through resistance
R7 ground connection, emitter ground connection, collector connect the grid of PMOS tube Q2, and the source electrode of PMOS tube Q2 meets supply voltage VBAT, PMOS
The source electrode of pipe Q2 connects the circuit voltage port VCC through resistance R5 connection grid, the drain electrode of PMOS tube Q2.
Illustrate the construction of each road key trigger mechanism circuit and the connection relationship with other circuits by taking the first via as an example herein,
Other each road key trigger mechanism circuits are identical as the first via, do not repeating.First via key trigger mechanism circuit includes by dividing
Piezoresistance R, sampling resistor R1, diode D1a and key S1 composition sample circuit and be made of diode D1b and key S1
Key trigger circuit, the one end sampling resistor R1 connect the sample port AD_IO and through the divider resistance R connection IO voltage ends
Mouthful VDDIO, the other end connect the anode of diode D1a, and diode D1b anode connects the grid of PMOS tube Q2, diode D1a and
The cathode of diode D1b is all connected with one end of key S1, the other end ground connection of key S1.
In order to simplify circuit structure, if main line key trigger mechanism circuit shares a divider resistance R.
The mode of operation on more key trigger switch electromechanics roads provided in this embodiment is as follows:
Power-on operation: when circuit is in off-mode, node a, node b, node d are high level, and node c is low electricity
It is flat.Triode Q1 and PMOS tube Q2 is in off state, and MCU is in power-down state.
When pressing the button S1, node b current potential is pulled low, and PMOS tube Q2 conducting, MCU input voltage reaches open state;
Meanwhile the current potential of node d is clamped at a certain fixed value, MCU has been in power supply state at this time, and MCU monitors d point voltage value,
Internal A/D module identifies that S1 key is pressed by analysis comparison.To S1 be pressed the duration reach the available machine time require
Afterwards, high level is exported by controlling the GPIO_CRL of MCU, the level of triode Q1 node c is made to maintain triode ON voltage,
Realize soft power-on operation.
Power-off operation: when pressing the button S1, the current potential of node d is clamped at a certain fixed value, and MCU monitors d point electricity
Pressure value, internal A/D module identify that S1 key is pressed by analysis comparison.Reach the unused time to S1 duration that is pressed
After it is required that, the GPIO_CRL by controlling MCU exports low level, makes triode Q1 node c low level, triode is by real
Existing soft-off operation.
Wherein, the resistance value of the resistance R1 of each key trigger mechanism circuit, resistance R2, resistance Rn-1 and resistance Rn cannot one
It causes, otherwise sample circuit is difficult to be which key is pressed.VDDIO is a constant voltage of LDO output inside MCU.
The technical solution on more key trigger switch electromechanics roads provided in this embodiment technical detail point most outstanding mainly wraps
It includes:
Minutiae point 1: by wherein all the way for: form the R1 and D1a of sample circuit, with composition trigger mechanism circuit D1b
Parallel connection, the parallel circuit are connected with key S1 ground connection again.That is: trigger mechanism circuit and sample circuit share a key.
Minutiae point 2: regardless of how many road sample circuit, power input endpoint d can be together in parallel, node in parallel
The connection of the port of d and MCU chip;Its equal earth of key other end.
Minutiae point 3: regardless of how many road key trigger circuit, the triggering end connecting with PMOS tube grid in parallel can connect
It connects, the equal earth of the key other end.
Minutiae point 4: the base stage end node c of triode is not involved in key triggering control, connect, belongs to the port of MCU chip
In independent control system.
Minutiae point 5: technical solution triggers booting using low level mode.
It is constructed using foregoing circuit, so that more key trigger switch electromechanics roads provided in this embodiment have below beneficial to effect
Fruit: the port resource of MCU chip has effectively been saved;The stability of circuit is improved, is not influenced by external power supply variation, only
Precision depending on A/D module inside MCU.
The above is only the preferred embodiment of the present invention, and protection scope of the present invention is not limited merely to above-mentioned implementation
Example, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art
Those of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (4)
1. a kind of more key trigger switch electromechanics roads, if including MCU chip, switch triggering circuit and main line key trigger mechanism electricity
Road;It is characterized in that, MCU chip has IO voltage port VDDIO, circuit voltage port VCC, sample port AD_IO and control
Signal output port GPIO_CRL;The input terminal of the switch triggering circuit connects the control signal output mouth GPIO_
CRL;Every road key trigger mechanism circuit includes being adopted by what divider resistance R, sampling resistor Rn, diode Dna and key Sn were formed
Sample circuit and the key trigger circuit being made of diode Dnb and key Sn, the one end sampling resistor Rn connect the sample port
AD_IO and through the divider resistance R connection IO voltage port VDDIO, the other end connects the anode of diode Dna, diode Dnb
The cathode of the output end of the anode connection switch triggering circuit, diode Dna and diode Dnb are all connected with the one of key Sn
End, the other end ground connection of key Sn.
2. more key trigger switch electromechanics roads according to claim 1, which is characterized in that the switch triggering circuit includes
The base stage of triode Q1, PMOS tube Q2, resistance R5, resistance R6 and resistance R7, triode Q1 are believed through the resistance R6 connection control
Number output port GPIO_CRL, base stage are grounded through resistance R7, and emitter ground connection, collector connects the grid of PMOS tube Q2, PMOS
The source electrode of pipe Q2 meets supply voltage VBAT, and for the source electrode of PMOS tube Q2 through resistance R5 connection grid, the drain electrode of PMOS tube Q2 connects institute
State circuit voltage port VCC, output end of the grid of PMOS tube Q2 as the switch triggering circuit.
3. more key trigger switch electromechanics roads according to claim 2, which is characterized in that if the main line key triggers machine
Circuit processed shares a divider resistance R.
4. more key trigger switch electromechanics roads according to claim 2 or 3, which is characterized in that the key trigger mechanism
When circuit is more than or equal to two-way, differed per sampling resistor Rn resistance value all the way.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810641370.1A CN108988843A (en) | 2018-06-21 | 2018-06-21 | A kind of more key trigger switch electromechanics roads |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810641370.1A CN108988843A (en) | 2018-06-21 | 2018-06-21 | A kind of more key trigger switch electromechanics roads |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108988843A true CN108988843A (en) | 2018-12-11 |
Family
ID=64541610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810641370.1A Pending CN108988843A (en) | 2018-06-21 | 2018-06-21 | A kind of more key trigger switch electromechanics roads |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108988843A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110429928A (en) * | 2019-07-30 | 2019-11-08 | 北京超维世纪科技有限公司 | A kind of on/off circuit of low-pressure system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202083915U (en) * | 2011-02-28 | 2011-12-21 | 广州视源电子科技有限公司 | Button switch control circuit with zero standby power consumption |
CN203537358U (en) * | 2013-10-31 | 2014-04-09 | 河南东陆高科实业有限公司 | One-key switching circuit |
CN105099415A (en) * | 2015-09-16 | 2015-11-25 | 成都锐奕信息技术有限公司 | Complete power-off opening/closing circuit |
-
2018
- 2018-06-21 CN CN201810641370.1A patent/CN108988843A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202083915U (en) * | 2011-02-28 | 2011-12-21 | 广州视源电子科技有限公司 | Button switch control circuit with zero standby power consumption |
CN203537358U (en) * | 2013-10-31 | 2014-04-09 | 河南东陆高科实业有限公司 | One-key switching circuit |
CN105099415A (en) * | 2015-09-16 | 2015-11-25 | 成都锐奕信息技术有限公司 | Complete power-off opening/closing circuit |
Non-Patent Citations (1)
Title |
---|
李学海著: "《IC单片机实用教程 提高篇 第2版》", 28 February 2007, 北京航空航天大学出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110429928A (en) * | 2019-07-30 | 2019-11-08 | 北京超维世纪科技有限公司 | A kind of on/off circuit of low-pressure system |
CN110429928B (en) * | 2019-07-30 | 2023-01-24 | 北京超维世纪科技有限公司 | Startup and shutdown circuit of low-voltage system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203537358U (en) | One-key switching circuit | |
CN205986102U (en) | Protection circuit for power supply | |
CN108768364A (en) | A kind of power switch button circuit | |
CN107168452B (en) | A kind of key-press input processing circuit | |
CN207398814U (en) | Undervoltage overvoltage protection circuit and power supply system | |
CN108988843A (en) | A kind of more key trigger switch electromechanics roads | |
CN111934666B (en) | Key circuit with system wake-up function | |
CN210780130U (en) | Power-off control circuit | |
CN206270863U (en) | Cmos data remove device and computer | |
CN105897240A (en) | Single-button soft on-off circuit with hardware forced power-off function | |
CN202906437U (en) | Input undervoltage protection circuit | |
CN208636739U (en) | The precision current source circuit of multiple bit digital control | |
CN207265995U (en) | It is a kind of to use the key switch electromechanics road with ena-bung function linear voltage regulator | |
CN108955930B (en) | Temperature measuring circuit | |
CN206697912U (en) | A kind of overvoltage crowbar of Switching Power Supply | |
CN213585734U (en) | Circuit for realizing synchronous switch of equipment following host | |
CN205265655U (en) | Stand -by power consumption is zero single bond switching on and shutting down circuit | |
CN110554173B (en) | Blood glucose meter device | |
CN103164008A (en) | Complementary metal oxide semiconductor (CMOS) password eliminating circuit | |
CN108519892B (en) | Start mode selection circuit and electronic equipment | |
CN113783160A (en) | Undervoltage protection circuit and power module | |
CN207752370U (en) | Reset circuit and measuring instrument including the reset circuit | |
CN201754176U (en) | Battery detection circuit and device thereof | |
CN207896706U (en) | Farad capacitor charging circuit and electronic equipment | |
CN203086437U (en) | Level switching 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 519000 No. 333, Kexing Road, Xiangzhou District, Zhuhai City, Guangdong Province Applicant after: ZHUHAI JIELI TECHNOLOGY Co.,Ltd. Address before: 519015 Building 9, Jinshiyuan, No. 107, Shihua West Road, Jida, Zhuhai, Guangdong Applicant before: ZHUHAI JIELI TECHNOLOGY Co.,Ltd. |
|
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181211 |