CN106325163B - A kind of monitoring switch circuit and electronic equipment - Google Patents
A kind of monitoring switch circuit and electronic equipment Download PDFInfo
- Publication number
- CN106325163B CN106325163B CN201610835546.8A CN201610835546A CN106325163B CN 106325163 B CN106325163 B CN 106325163B CN 201610835546 A CN201610835546 A CN 201610835546A CN 106325163 B CN106325163 B CN 106325163B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- pin
- switch
- chip
- pins
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24024—Safety, surveillance
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electronic Switches (AREA)
Abstract
The invention discloses a kind of monitoring switch circuit and electronic equipments, including the first monitoring chip, first pull down resistor, first switch and diode, first monitoring chip has at least two monitoring pins, each monitoring pin is connect through the first pull down resistor with ground terminal, a first switch is respectively connected between any monitoring pin and any combination of other monitoring pins and other monitoring pins, first switch is connected to other monitoring pins through a diode, wherein, the anode of diode is connect with any monitoring pin, first monitoring chip is arranged to export high level by any monitoring pin, and according to any monitoring pin, and the state of all first switches of level monitoring of other each monitoring pins.In such manner, it is possible to which usage quantity of the effectively save monitoring chip for the I/O pin of pilot switch, can achieve the effect that effective monitoring with few I/O pin monitoring chip of low cost, improve the utilization rate of monitoring chip I/O pin, and reduce cost.
Description
Technical field
The present invention relates to monitoring switch field of circuit technology, more particularly it relates to a kind of monitoring switch circuit and
Electronic equipment.
Background technique
Single chip machine controlling circuit is in existing electronic product such as coded lock or various sensing remote control equipments using suitable
Extensively, the monitoring switch circuit and as man-machine interface is even more varied.A usual switch needs a single-chip processor i/o
Pin is corresponding to it, when switching more, it is necessary to which single-chip microcontroller is with more I/O pin, and the I/O pin of usually single-chip microcontroller
Quantity is very limited, it is therefore desirable to increase hardware and come expansion I/O pin, higher cost.
Summary of the invention
It is an object of the present invention to provide a kind of, and the I/O pin less by single-chip microcontroller monitors the new of more switch states
Technical solution.
According to the first aspect of the invention, a kind of monitoring switch circuit, including the first monitoring chip, the first drop-down are provided
Resistance, first switch and diode, first monitoring chip have at least two monitoring pins, and each monitoring pin is equal
It is connect through the first pull down resistor with ground terminal, any combination of any monitoring pin and other monitoring pins and other monitoring pins
Between be respectively connected with a first switch, the first switch is connected to other described monitoring pins through a diode, wherein institute
The anode for stating diode is connect with any monitoring pin, and first monitoring chip is arranged to through any prison
Control pin output high level simultaneously owns according to the level monitoring of any monitoring pin and each other monitoring pins
The state of the first switch.
Optionally, first monitoring chip is provided by a MCU.
Optionally, the monitoring switch circuit further includes the second monitoring chip and second switch circuit, and each described
Two switching circuits include the second switch and current-limiting resistance being connected in series, and the resistance value of each current-limiting resistance is different;Institute
Stating the second monitoring chip tool, there are two simulation monitoring pins, and a simulation monitoring pin is through the second pull down resistor and ground terminal
Connection, each second switch circuit in parallel are connected between described two simulation monitoring pins, second monitoring chip
It is arranged to export analog voltage by simulation monitoring pin described in another and according between described two simulation monitoring pins
The each second switch of voltage monitoring state.
Optionally, second monitoring chip is provided by a MCU.
Optionally, first monitoring chip and second monitoring chip are identity element.
According to the second aspect of the invention, a kind of electronic equipment is provided, including described according to a first aspect of the present invention
Monitoring switch circuit.
It was found by the inventors of the present invention that in the prior art, there are the I/O number of pins that monitoring switch circuit needs single-chip microcontroller
Measure more the problem of leading to higher cost.Therefore, the technical assignment or technical problem to be solved that the present invention to be realized
Be it is that those skilled in the art never expect or it is not expected that, therefore the present invention is a kind of new technical solution.
A beneficial effect of the invention is, through the invention monitoring switch circuit, being capable of effectively save monitoring chip
The usage quantity of I/O pin for pilot switch can reach effective monitoring with few I/O pin monitoring chip of low cost
Effect, improve the utilization rate of monitoring chip I/O pin, and reduce cost.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Detailed description of the invention
It is combined in the description and the attached drawing for constituting part of specification shows the embodiment of the present invention, and even
With its explanation together principle for explaining the present invention.
Fig. 1 is according to a kind of a kind of circuit diagram of implementation structure of monitoring switch circuit of the present invention;
Fig. 2 is another circuit diagram for implementing structure according to a kind of monitoring switch circuit of the present invention.
Description of symbols:
U1, U2- monitoring chip;GND- ground terminal;
R11, R12, R13, R2- pull down resistor;R21, R22, R23, R24- current-limiting resistance;
A11, A12, A13- monitor pin;A21, A22- simulation monitoring pin;
S111、S112、S113、S121、S122、S123、S131、S132、S133、S21、
S22, S23, S24- switch;
D11、D12、D131、D132、D21、D22、D231、D232、D31、D32、D331、
D332- diode.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
In order to solve switch existing in the prior art it is more when, need single-chip microcontroller that there is more I/O pin, and it is usual
The I/O pin number of single-chip microcontroller is very limited, it is therefore desirable to increase hardware and carry out expansion I/O pin, the problem of higher cost, provide
A kind of monitoring switch circuit, as shown in Figure 1, including the first monitoring chip U1, the first pull down resistor R1, first switch and two poles
Pipe, the first monitoring chip U1 have at least two monitoring pins, and each monitoring pin is through the first pull down resistor and ground terminal GND
Connection, any monitoring pin draw alternately as reference monitor pin, reference monitor pin with other monitoring pins and other monitoring
A first switch is respectively connected between any combination of foot, first switch is connected to other described monitoring through a diode and draws
Foot, wherein the anode of all diodes is connect with reference monitor pin, and the first monitoring chip U1 is arranged to by reference to prison
Control pin output high level and according to all first switches of level monitoring of reference monitor pin and other each monitoring pins
State.
Specifically, being illustrated so that the first monitoring chip tool is there are three monitoring pin A11, A12, A13 as an example below: each
It is connected separately with first pull down resistor R11, R12, R13 to ground terminal GND on monitoring pin A11, A12, A13, series connection
First switch S111 and diode D11 is connected in series between monitoring pin A11 and A12, the first switch S112 of series connection
And diode D12 is connected in series between monitoring pin A11 and A13, the first switch S113 and diode D131 of series connection
It is connected in series between monitoring pin A11 and A12, the first switch S113 and diode D132 of series connection are connected in series in prison
It controls between pin A11 and A13, wherein the anode of diode D11, D12, D131, D132 are connect with monitoring pin A11;Series connection
The first switch S121 and diode D21 of connection are connected in series between monitoring pin A12 and A11, and the first of series connection opens
It closes S122 and diode D22 to be connected in series between monitoring pin A12 and A13, the first switch S123 of series connection and two poles
Pipe D231 is connected in series between monitoring pin A12 and A11, and the first switch S123 and diode D232 of series connection, which connect, to be connected
It connects between monitoring pin A12 and A13, wherein the anode of diode D21, D22, D231, D232 connects with monitoring pin A12
It connects;The first switch S131 and diode D31 of series connection are connected in series between monitoring pin A13 and A11, series connection
First switch S132 and diode D32 is connected in series between monitoring pin A13 and A12, the first switch S133 of series connection
And diode D331 is connected in series between monitoring pin A13 and A11, the first switch S133 and diode D332 of series connection
Be connected in series in monitoring pin A13 and A12 between, wherein the anode of diode D31, D32, D331, D332 with monitoring pin
A13 connection, for example, can be first using monitoring pin A11 as reference monitor pin, the first monitoring chip U1 passes through monitoring pin
A11 exports high level, detects the level of remaining monitoring pin A12, A13, if detecting that monitoring pin A12, A13 are low electricity
It is flat, then it may determine that first switch S111, S112, S113 are off-state, if detecting that monitoring pin A12, A13 are
High level then may determine that first switch S113 is on state;Again will monitoring pin A12 as reference monitor pin, first
Monitoring chip U1 exports high level by detection pin A12, the level of remaining monitoring pin A11, A13 is detected, if only detected
It is high level to monitoring pin A11, then may determine that first switch S121 is on state;It regard monitoring pin A13 as ginseng again
Monitoring pin is examined, the first monitoring chip U1 exports high level by detection pin A13, detects remaining monitoring pin A11, A12
Level may determine that first switch S132 is on state if only detecting monitoring pin A12 is high level.According to
Upper method circulation is detected, and in the case where detecting the conducting of any one first switch, execute preset with the switch
One-to-one feature operation.
For example, in the case where monitoring pin A11 is that reference monitor pin exports high level, if detecting monitoring pin
The level of A12, A13 are respectively (01), wherein 0 represents low level, 1 represents high level, then show first switch S12 for conducting shape
State;In the case where monitoring pin A12 is that reference monitor pin exports high level, if detecting monitoring pin A11, A13
Level is respectively (11), then shows that first switch S23 is on state;It is that the output of reference monitor pin is high in monitoring pin A13
In the case where level, if detecting that the level of monitoring pin A11, A12 are respectively (11), show that first switch S33 is to lead
Logical state shows that first switch S31, S32, S33 are equal if the level for adhering to monitoring pin A11, A12 is respectively (00)
It disconnects, therefore, the first monitoring chip U1 is opened according to the level monitoring all first of reference monitor pin and other monitoring pins
The state of pass.
In this way, passing through N number of monitoring pin of monitoring chip, so that it may realize in the case where only considering single switch triggering
To N × (2N-1- 1) monitoring of a switch, therefore, it will be able to can reach effective with the monitoring chip of few pin of low cost
The effect of monitoring improves the utilization rate of monitoring chip pin, saves the cost of monitoring circuit.
Further, the MCU chip that above-mentioned first monitoring chip U1 can be capable of handling digital signal by one provides, above-mentioned
Pin is monitored to be provided by the I/O pin of the MCU.
In one particular embodiment of the present invention, monitoring switch circuit further includes the second monitoring chip U2 and second switch
Circuit, as shown in Fig. 2, each second switch circuit includes the second switch and current-limiting resistance being connected in series, and each current limliting
The resistance value of resistance is different;There are two simulation monitoring pin A21, A22 for second monitoring chip U2 tool, wherein simulation monitoring pin energy
Analog signal is enough handled, a simulation monitoring pin A22 is connect through the second pull down resistor R2 with ground terminal GND, and all second open
Powered-down road is connected in parallel between two simulation monitoring pins A21, A22, and the second monitoring chip U2 is arranged to pass through another
Simulation monitoring pin A21 export analog voltage and according to the voltage monitoring between two simulation monitoring pins A21, A22 each
The state of second switch.
It is possible to further pre-set two module monitors pins when each corresponding second switch is on state
Between voltage value between relationship and the feature operation that needs to be implemented of corresponding each voltage value between relationship the table of comparisons,
While detecting voltage between two simulation monitoring pins, by searching for the table of comparisons to execute function corresponding with current voltage
Operation.
For example, second switch S21 and current-limiting resistance R21 are connected in series between simulation monitoring pin A21, A22, second is opened
It closes S22 and current-limiting resistance R22 to be connected in series between simulation monitoring pin A21, A22, second switch S23 and current-limiting resistance R23
It is connected in series between simulation monitoring pin A21, A22, second switch S24 and current-limiting resistance R24 are connected in series in simulation monitoring
Between pin A21, A22, as long as guaranteeing that the resistance value for the current-limiting resistance that each second switch is connected in series is different, so that it may pass through this
Two simulation monitoring pins realize the monitoring to numerous switch, in this way, each switch is the corresponding simulation monitoring of closed state
Voltage value between pin A21, A22 is different, so that it may be closed according to the voltage determination between detection simulation monitoring pin A21, A22
The switch of conjunction can be applicable to the case where Multi- Switch is closed at according to the circuit of the present embodiment, at this point, need to only guarantee to appoint
When the second switch for anticipating combined and any second switch closure, the voltage between simulation monitoring pin A21, A22 is different.
Further, the MCU chip that above-mentioned second monitoring chip U2 can be capable of handling analog signal by one provides, above-mentioned
Simulation monitoring pin A21, A22 is provided by the I/O pin of the MCU.
On this basis, above-mentioned first monitoring chip U1 and the second monitoring chip U2 can either handle simulation by one
Signal, the MCU chip for being capable of handling digital signal again provide.
The present invention also provides a kind of electronic equipment, including above-mentioned monitoring switch circuit.The electronic equipment for example can be
Various sensing remote control equipments etc. in coded lock or smart home.
The difference of the various embodiments described above primary focus description and other embodiments, but those skilled in the art should be clear
Chu, the various embodiments described above can according to need exclusive use or are combined with each other.
Although some specific embodiments of the invention are described in detail by example, the skill of this field
Art personnel it should be understood that example above merely to being illustrated, the range being not intended to be limiting of the invention.The skill of this field
Art personnel are it should be understood that can without departing from the scope and spirit of the present invention modify to above embodiments.This hair
Bright range is defined by the following claims.
Claims (6)
1. a kind of monitoring switch circuit, which is characterized in that including the first monitoring chip, the first pull down resistor, first switch and two
Pole pipe, first monitoring chip have an at least two monitoring pins, each monitoring pin through the first pull down resistor and
One the is respectively connected between ground terminal connection, any monitoring pin and other monitoring pins and any combination of other monitoring pins
One switch, the first switch are connected to other described monitoring pins through a diode, wherein the anode of the diode is equal
It is connect with any monitoring pin, first monitoring chip is arranged to through any high electricity of monitoring pin output
All first switches of level monitoring flat and according to any monitoring pin and each other monitoring pins
State;Wherein, it is respectively connected between any monitoring pin and any combination of other monitoring pins and other monitoring pins
One first switch includes: to be connected with a first switch, institute between any monitoring pin and other each described monitoring pins
It states and is connected with a first switch between any monitoring pin and any combination of other monitoring pins.
2. monitoring switch circuit according to claim 1, which is characterized in that first monitoring chip is provided by a MCU.
3. monitoring switch circuit according to claim 1, which is characterized in that the monitoring switch circuit further includes the second prison
Chip and second switch circuit are controlled, each second switch circuit includes the second switch and current-limiting resistance being connected in series,
And the resistance value of each current-limiting resistance is different;There are two simulation monitoring pin, a moulds for the second monitoring chip tool
Quasi- monitoring pin is connect through the second pull down resistor with ground terminal, and each second switch circuit in parallel is connected to described two moulds
Between quasi- monitoring pin, second monitoring chip is arranged to export simulation electricity by simulation monitoring pin described in another
It presses and according to the state of each second switch of voltage monitoring between described two simulation monitoring pins.
4. monitoring switch circuit according to claim 3, which is characterized in that second monitoring chip is provided by a MCU.
5. monitoring switch circuit according to claim 3, which is characterized in that first monitoring chip and second prison
Control chip is identity element.
6. a kind of electronic equipment, which is characterized in that including monitoring switch circuit of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610835546.8A CN106325163B (en) | 2016-09-20 | 2016-09-20 | A kind of monitoring switch circuit and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610835546.8A CN106325163B (en) | 2016-09-20 | 2016-09-20 | A kind of monitoring switch circuit and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106325163A CN106325163A (en) | 2017-01-11 |
CN106325163B true CN106325163B (en) | 2019-09-17 |
Family
ID=57787009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610835546.8A Active CN106325163B (en) | 2016-09-20 | 2016-09-20 | A kind of monitoring switch circuit and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106325163B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1313618A (en) * | 2000-03-10 | 2001-09-19 | 孕龙科技有限公司 | Method, circuit and device for monitoring switch |
CN2669264Y (en) * | 2004-01-02 | 2005-01-05 | 广东科龙电器股份有限公司 | Keyboard scanning circuit |
CN101727188A (en) * | 2008-10-15 | 2010-06-09 | 索尼株式会社 | Switch circuit |
CN103852720A (en) * | 2012-11-29 | 2014-06-11 | 海洋王(东莞)照明科技有限公司 | Switch life test device |
CN206162119U (en) * | 2016-09-20 | 2017-05-10 | 歌尔科技有限公司 | Switch monitor circuit and electronic equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2359171A (en) * | 2000-02-10 | 2001-08-15 | Mitel Corp | Keyboard encoding |
CN1801562A (en) * | 2005-12-12 | 2006-07-12 | 谭启仁 | Current type electricity-proof wall detection chip with transmittal circuit zero earth wire detection interface |
JP4803262B2 (en) * | 2009-01-27 | 2011-10-26 | 株式会社村田製作所 | Isolated switching power supply |
TW201203858A (en) * | 2010-07-08 | 2012-01-16 | Hon Hai Prec Ind Co Ltd | Matrix keyboard circuit and scanning method thereof |
DE102014111335B3 (en) * | 2014-08-08 | 2015-11-19 | Lisa Dräxlmaier GmbH | Monitoring a switch |
-
2016
- 2016-09-20 CN CN201610835546.8A patent/CN106325163B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1313618A (en) * | 2000-03-10 | 2001-09-19 | 孕龙科技有限公司 | Method, circuit and device for monitoring switch |
CN2669264Y (en) * | 2004-01-02 | 2005-01-05 | 广东科龙电器股份有限公司 | Keyboard scanning circuit |
CN101727188A (en) * | 2008-10-15 | 2010-06-09 | 索尼株式会社 | Switch circuit |
CN103852720A (en) * | 2012-11-29 | 2014-06-11 | 海洋王(东莞)照明科技有限公司 | Switch life test device |
CN206162119U (en) * | 2016-09-20 | 2017-05-10 | 歌尔科技有限公司 | Switch monitor circuit and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106325163A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102243279B (en) | Apparatus for monitoring fault current in power system | |
CN105301522B (en) | A kind of detection method of three-phase mains power down | |
US8699192B2 (en) | Method, device and switch for providing short-circuit protection for resistive AC load | |
US20110298302A1 (en) | Toggling Method and Apparatus in Controllers for Home Appliances | |
CN105873312A (en) | Control device using changing conduction angle as control command | |
CN108226839A (en) | The method for detecting abnormality and device of a kind of converter, Hall sensor | |
CN106325163B (en) | A kind of monitoring switch circuit and electronic equipment | |
US20190326899A1 (en) | Protective circuit and wiring accessory | |
US4125794A (en) | Electronic touch key | |
CN105244203A (en) | Apparatus for detecting a switch position | |
CN206162119U (en) | Switch monitor circuit and electronic equipment | |
CN110416009B (en) | Arc-free long-life relay switch circuit and controller | |
CN104753514B (en) | A kind of contact witch controls circuit | |
US9263966B2 (en) | Power supply circuit with low stand-by losses | |
JP2024099504A (en) | Precharging and connecting energy storage system | |
JP6366737B2 (en) | Monitoring circuit and electronic device | |
CN113504406B (en) | Zero-crossing detection method and intelligent switch with zero-crossing detection function | |
CN215526395U (en) | Intelligent switch with zero-crossing detection function | |
CN203631410U (en) | Vacuum circuit breaker controlling circuit and vacuum circuit breaker controlling system | |
CN103681094B (en) | A kind of vacuum circuit breaker control circuit and system | |
CN106558914B (en) | switch control device and method | |
CN103675672A (en) | Pressure switch state detection circuit, circuit board, and electric heating product with circuit board | |
CN110531818A (en) | Sequential control method and circuit | |
CN207691778U (en) | A kind of skin care device | |
US9443667B2 (en) | Touch-sensitive push-button and electronic device using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |