CN108768364A - A kind of power switch button circuit - Google Patents

A kind of power switch button circuit Download PDF

Info

Publication number
CN108768364A
CN108768364A CN201810980035.4A CN201810980035A CN108768364A CN 108768364 A CN108768364 A CN 108768364A CN 201810980035 A CN201810980035 A CN 201810980035A CN 108768364 A CN108768364 A CN 108768364A
Authority
CN
China
Prior art keywords
field
effect tube
resistance
port
key
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
CN201810980035.4A
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.)
Hunan Sonic Measurement And Control Technology Co Ltd
Original Assignee
Hunan Sonic Measurement And Control 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 Hunan Sonic Measurement And Control Technology Co Ltd filed Critical Hunan Sonic Measurement And Control Technology Co Ltd
Priority to CN201810980035.4A priority Critical patent/CN108768364A/en
Publication of CN108768364A publication Critical patent/CN108768364A/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/296Time-programme switches providing a choice of time-intervals for executing more than one switching action and automatically terminating their operation after the programme is completed
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/56Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices
    • H03K17/567Circuits characterised by the use of more than one type of semiconductor device, e.g. BIMOS, composite devices such as IGBT

Landscapes

  • Control Of Resistance Heating (AREA)

Abstract

The present invention proposes a kind of power switch button circuit, circuit setting button module, power supply module and the detection module, reduce the use of button and switch, key circuit cost of manufacture is reduced, in conjunction with microcontroller so that booting, shutdown and custom feature can be realized in a button.

Description

A kind of power switch button circuit
Technical field
The present invention relates to technical field of circuit control, more particularly, to a kind of power switch button circuit.
Background technology
Currently, the power switch and function button of most of embedded electronic product are all separately independent mutually, it will not It influences each other.Problems with is deposited in this design:One, power switch takes the mechanical switch such as rocker type switch or toggle switch, opens Power supply must be manually closed after power supply, if forgetting to close power supply, product by continue working until battery exhausts, though product Supply voltage can be so monitored, but actively close power supply without any method;Two, power switch is worked normally in product Period is in idle state, can not provide multiplexing function, to realize that required function can only additionally increase button;Three, it cannot achieve This function of preventing user misoperation of long-press switching on and shutting down, certain products are once switched on, it may be undesirable to which user is because of maloperation And shut down suddenly, this will lead to the generation for the situations such as measurement is interrupted or data are not come and preserved.
Invention content
The technical problem to be solved by the present invention is to be directed to prior art deficiency and defect, a kind of power switch button electricity is provided Road.
To achieve the above object, the present invention uses following technical scheme:
A kind of power switch button circuit, including key-press module, power supply module, detection module, concrete structure are as follows:
Key-press module, including first port, for being electrically connected with power supply module and detection module.
Power supply module is specially power supply chip(U1)Connect the first field-effect tube(Q1)Drain electrode, the first field-effect tube(Q1)Grid The first capacitance is connected between pole and ground(C1), the first field-effect tube(Q1)First resistor is connected between grid and source electrode(R1), the One field-effect tube(Q1)Source electrode is sequentially connected second resistance(R2), the second field-effect tube(Q2)Collector, the second field-effect tube (Q2)Emitter is grounded, the second field-effect tube(Q2)Base stage is sequentially connected the 4th resistance(R4), 3rd resistor(R3), 3rd resistor (R3)The other end is connected to positive supply, the second field-effect tube(Q2)Base stage is also connected with the 5th resistance(R5), the 5th resistance(R5)Separately One end is grounded, 3rd resistor(R3)With the 4th resistance(R4)Between draw wiring be connected to microcontroller switching signal pin(ON- OFF), key-press module first port is connected to the second field-effect tube(Q2)Collector.
Detection module is specially third field-effect tube(Q3)Emitter the 6th resistance of series connection(R6)It is connected to key-press module Single port, third field-effect tube(Q3)The 7th resistance is connected between emitter and collector(R7), third field-effect tube(Q3)Collection Electrode connects the 8th resistance(R8)After be grounded, third field-effect tube(Q3)Collector and the 8th resistance(R8)Between draw wiring connect It is connected to monolithic machine testing pin(KEY_CPW).
Further, the key-press module further includes button(S1)And second port, second port ground connection, button(S1)With In the connected state of control first port and second port.
Further, first field-effect tube is P-channel metal-oxide-semiconductor, and the second field-effect tube is NPN type triode, the Three field-effect tube are PNP type triode.
Further, monolithic machine testing pin detection level signal is high level and lasting certain time length, then controls list Piece machine switch pin exports high level signal, and otherwise switch pin exports low level.
Further, further include the first diode(D1)With the second diode(D2), first diode(D1)String It is coupled to key-press module first port and NPN type triode(Q2)Between collector, second diode(D2)It is series at button Module first port and the 6th resistance(R6)Between.
Further, the operating voltage that the power supply chip provides is+3.3V.
The present invention power switch button circuit setting button module, power supply module and detection module, reduce button and The use of switch reduces key circuit cost of manufacture, in conjunction with microcontroller so that a button can be realized booting, shut down and make by oneself Adopted function.
Description of the drawings
Fig. 1 is circuit diagram in embodiment.
Specific implementation mode
The present invention is further illustrated With reference to embodiment.
A kind of power switch button circuit, concrete structure are as follows:
Key-press module, including button S1, first port and second port, second port ground connection, wherein button S1 is for controlling the The connected state of Single port and second port;Power supply chip U1 connection P-channel metal-oxide-semiconductors Q1 drain electrode, P-channel metal-oxide-semiconductor Q1 grids with Capacitance C1 is connected between ground, resistance R1 is connected between P-channel metal-oxide-semiconductor Q1 grids and source electrode, and P-channel metal-oxide-semiconductor Q1 source electrodes connect successively Connecting resistance R2, NPN type triode Q2 collectors, NPN type triode Q2 emitters ground connection, NPN type triode Q2 base stages connect successively Connecting resistance R4, resistance R3, the resistance R3 other ends are connected to positive supply, and NPN type triode Q2 base stages are also connected with resistance R5, resistance R5 The other end is grounded, and wiring is drawn between resistance R3 and resistance R4 and is connected to microcontroller switching signal pin ON-OFF, key-press module First port is connected to NPN type triode Q2 collectors;PNP type triode Q3 emitter series resistances R6 is connected to key-press module First port connects resistance R7, PNP type triode Q3 collectors connection electricity between PNP type triode Q3 emitters and collector It is grounded after resistance R8, wiring is drawn between PNP type triode Q3 collectors and resistance R8 and is connected to monolithic machine testing pin KEY_ CPW。
Circuit further includes diode D1 and diode D2, and diode D1 is series at key-press module first port and NPN type three Between pole pipe Q2 collectors, diode D2 is series between key-press module first port and resistance R6.Diode D1 and diode D2's is oppositely arranged for ensureing the mutually not shadow of the level signal between pin KEY_CPW detection level signal and pin ON-OFF It rings.
The circuit concrete operating principle is:Q1 uses the metal-oxide-semiconductor of P-channel, is not keyed up under state, due to the presence of R1, makes Its grid is in high level state always, and entire subsequent conditioning circuit is in off-position.Once button S1 is pressed, make the grid of Q1 In low level state, the source electrode and drain electrode of Q1 is in the conduction state at this time, and VIN is no better than VBAT.Power supply chip U1 is immediately Offer+3.3V operating voltages make microcontroller start to start work.When microcontroller pin ON_OFF temporary no initializtions, due to Resistance R3 forces pull-up by+3.3V, so soon unclamping S1 at this time, entire circuit is also still in power supply state.Microcontroller KEY_CPW pins detect high level, if the duration be more than defined length temporally(Such as 3s), then make ON_OFF defeated Go out high level to maintain power supply state, otherwise persistently export low level, until S1 buttons unclamp.At this time due to the effect of Q2, Q1 Grid again be in high level state so that the source electrode and drain electrode of Q1 is no longer on conducting state, at this time subsequent conditioning circuit again into Enter off-position.After product normal operation, as long as detecting that S1 buttons have short-press behavior, then respond thereto.If inspection Measuring S1 has long-press phenomenon, then according to circumstances decides whether to shut down at once, if necessary to shut down, then only needs as described above, to ON_ OFF pins persistently export low level.

Claims (6)

1. a kind of power switch button circuit, including key-press module, power supply module, detection module, it is characterised in that:Button mould Block, including first port, for being electrically connected with power supply module and detection module;
Power supply module is specially power supply chip(U1)Connect the first field-effect tube(Q1)Drain electrode, the first field-effect tube(Q1)Grid with The first capacitance is connected between ground(C1), the first field-effect tube(Q1)First resistor is connected between grid and source electrode(R1), first Effect pipe(Q1)Source electrode is sequentially connected second resistance(R2), the second field-effect tube(Q2)Collector, the second field-effect tube(Q2)Hair Emitter grounding, the second field-effect tube(Q2)Base stage is sequentially connected the 4th resistance(R4), 3rd resistor(R3), 3rd resistor(R3)Separately One end is connected to positive supply, the second field-effect tube(Q2)Base stage is also connected with the 5th resistance(R5), the 5th resistance(R5)Another termination Ground, 3rd resistor(R3)With the 4th resistance(R4)Between draw wiring be connected to microcontroller switching signal pin(ON-OFF), press Key module first port is connected to the second field-effect tube(Q2)Collector;
Detection module is specially third field-effect tube(Q3)Emitter the 6th resistance of series connection(R6)It is connected to key-press module first end Mouthful, third field-effect tube(Q3)The 7th resistance is connected between emitter and collector(R7), third field-effect tube(Q3)Collector Connect the 8th resistance(R8)After be grounded, third field-effect tube(Q3)Collector and the 8th resistance(R8)Between draw wiring be connected to Monolithic machine testing pin(KEY-CPW).
2. a kind of power switch button circuit according to claim 1, it is characterised in that:The key-press module further include by Key(S1)And second port, second port ground connection, button(S1)Connected state for controlling first port and second port.
3. a kind of power switch button circuit according to claim 2, it is characterised in that:First field-effect tube is P Channel MOS tube, the second field-effect tube are NPN type triode, and third field-effect tube is PNP type triode.
4. a kind of power switch button circuit according to claim 3, it is characterised in that:Monolithic machine testing pin detection electricity Ordinary mail number is high level and lasting certain time length, then control single chip computer switch pin exports high level signal, otherwise switch pin Export low level.
5. a kind of power switch button circuit according to claim 4, it is characterised in that:It further include the first diode(D1) With the second diode(D2), first diode(D1)It is series at key-press module first port and NPN type triode(Q2)Collection Between electrode, second diode(D2)It is series at key-press module first port and the 6th resistance(R6)Between.
6. a kind of power switch button circuit according to claim 5, it is characterised in that:The work that the power supply chip provides It is+3.3V to make voltage.
CN201810980035.4A 2018-08-27 2018-08-27 A kind of power switch button circuit Pending CN108768364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810980035.4A CN108768364A (en) 2018-08-27 2018-08-27 A kind of power switch button circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810980035.4A CN108768364A (en) 2018-08-27 2018-08-27 A kind of power switch button circuit

Publications (1)

Publication Number Publication Date
CN108768364A true CN108768364A (en) 2018-11-06

Family

ID=63966417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810980035.4A Pending CN108768364A (en) 2018-08-27 2018-08-27 A kind of power switch button circuit

Country Status (1)

Country Link
CN (1) CN108768364A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669158A (en) * 2020-05-19 2020-09-15 浙江工业大学 Portable multifunctional switch circuit
CN112558655A (en) * 2020-12-07 2021-03-26 东莞圣柏电子有限公司 Control circuit of warmer and warmer thereof
CN113391580A (en) * 2021-05-24 2021-09-14 沈阳格林豪森物业管理有限公司 Standby energy-saving circuit system based on single chip microcomputer, control method and remote controller
CN115425618A (en) * 2022-10-24 2022-12-02 东莞市森威电子有限公司 Automatic shutdown circuit of non-resilient switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699199A (en) * 2013-12-20 2014-04-02 青岛歌尔声学科技有限公司 Electronic device on-off control device and electronic device
CN106814841A (en) * 2016-11-30 2017-06-09 佛山市兴华源机械设备有限公司 A kind of power control circuit for saving electric energy
CN209046611U (en) * 2018-08-27 2019-06-28 湖南声仪测控科技有限责任公司 A kind of power switch button circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699199A (en) * 2013-12-20 2014-04-02 青岛歌尔声学科技有限公司 Electronic device on-off control device and electronic device
CN106814841A (en) * 2016-11-30 2017-06-09 佛山市兴华源机械设备有限公司 A kind of power control circuit for saving electric energy
CN209046611U (en) * 2018-08-27 2019-06-28 湖南声仪测控科技有限责任公司 A kind of power switch button circuit

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669158A (en) * 2020-05-19 2020-09-15 浙江工业大学 Portable multifunctional switch circuit
CN111669158B (en) * 2020-05-19 2023-03-21 浙江工业大学 Portable multifunctional switch circuit
CN112558655A (en) * 2020-12-07 2021-03-26 东莞圣柏电子有限公司 Control circuit of warmer and warmer thereof
CN113391580A (en) * 2021-05-24 2021-09-14 沈阳格林豪森物业管理有限公司 Standby energy-saving circuit system based on single chip microcomputer, control method and remote controller
CN115425618A (en) * 2022-10-24 2022-12-02 东莞市森威电子有限公司 Automatic shutdown circuit of non-resilient switch
EP4362334A1 (en) * 2022-10-24 2024-05-01 Sndway Technology (Guangdong) Co., Ltd. Automatic power off circuit of non-rebound switches

Similar Documents

Publication Publication Date Title
CN108768364A (en) A kind of power switch button circuit
CN202841089U (en) Power on-off circuit and electronic device having power on-off circuit
CN102231087B (en) Keyboard
CN101191825B (en) Direct-current power supply detection device
CN102147670B (en) Mouse device
CN101150249A (en) Method for restraining late-class circuit hot swap impact current and its buffering asynchronous start circuit
CN103605017A (en) Detection method of vehicle switch quantity signal
CN206077348U (en) A kind of on/off circuit and its device of mobile terminal
CN209046611U (en) A kind of power switch button circuit
CN206270863U (en) Cmos data remove device and computer
CN210780130U (en) Power-off control circuit
CN103376748A (en) Electronic device
CN104076899A (en) Energy-saving circuit
CN207265995U (en) It is a kind of to use the key switch electromechanics road with ena-bung function linear voltage regulator
CN202551001U (en) Electronic switching circuit
CN210572482U (en) Power supply voltage detection circuit
CN102857231A (en) Key testing circuit
CN206564463U (en) A kind of arc-suppression circuit and the small household appliances equipment containing the circuit
CN210157162U (en) Key combined circuit for realizing hardware reset
CN204794936U (en) Reset circuit and electronic equipment
CN212726976U (en) Display outage system and display
CN206348631U (en) The many touch-switch start-up circuits of low-power consumption
CN103164008A (en) Complementary metal oxide semiconductor (CMOS) password eliminating circuit
CN206532281U (en) Can a key enter reforestation practices E-book reader
CN105911904A (en) Touch switch device circuit, control circuit and control method

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