CN106325163A - Switch monitoring circuit and electronic device - Google Patents

Switch monitoring circuit and electronic device Download PDF

Info

Publication number
CN106325163A
CN106325163A CN201610835546.8A CN201610835546A CN106325163A CN 106325163 A CN106325163 A CN 106325163A CN 201610835546 A CN201610835546 A CN 201610835546A CN 106325163 A CN106325163 A CN 106325163A
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.)
Granted
Application number
CN201610835546.8A
Other languages
Chinese (zh)
Other versions
CN106325163B (en
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201610835546.8A priority Critical patent/CN106325163B/en
Publication of CN106325163A publication Critical patent/CN106325163A/en
Application granted granted Critical
Publication of CN106325163B publication Critical patent/CN106325163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, 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 switch monitoring circuit and an electronic device. The switch monitoring circuit comprises a first monitoring chip, first pull-down resistors, first switches, and diodes. The first monitoring chip has at least two monitoring pins. Each monitoring pin is connected with a ground terminal through one first pull-down resistor. One first switch is connected between any monitoring pin and the other monitoring pins and any combination of the other monitoring pins, each switch is connected to the other monitoring pins through one diode, and the anode of each diode is connected with any monitoring pin. The first monitoring chip is set to output a high level through any monitoring pin and monitor the states of all the first switches according to the levels of any monitoring pin and each of the other monitoring pins. Thus, the number of I/O pins of a monitoring chip for switch monitoring is reduced effectively, effective monitoring can be achieved with a low-cost monitoring chip with fewer I/O pins, the utilization rate of the I/O pins of a monitoring chip is improved, and the cost is reduced.

Description

A kind of monitoring switch circuit and electronic equipment
Technical field
The present invention relates to monitoring switch circuit engineering field, more particularly it relates to an monitoring switch circuit and Electronic equipment.
Background technology
Single chip machine controlling circuit is applied quite in existing electronic product such as coded lock or various sensing remote control equipment Extensively, the monitoring switch circuit and as man-machine interface is the most varied.A usual switch needs a single-chip processor i/o Pin is the most corresponding, when switching more, it is necessary to single-chip microcomputer has a more I/O pin, and the I/O pin of usual single-chip microcomputer Quantity is very limited, it is therefore desirable to increases hardware and carrys out expansion I/O pin, relatively costly.
Summary of the invention
It is an object of the present invention to provide a kind of by single-chip microcomputer less I/O pin monitor more on off states new Technical scheme.
According to the first aspect of the invention, it is provided that a kind of monitoring switch circuit, including the first monitoring chip, first drop-down Resistance, the first switch and diode, described first monitoring chip has at least two monitoring pin, and each described monitoring pin is equal It is connected with earth terminal through the first pull down resistor, arbitrary monitoring pin and other monitoring pins and the combination in any of other monitoring pins Between be respectively connected with one first switch, described first switch is all connected to described other through a diode and monitors pins, wherein, institute The anode stating diode is all connected with described arbitrary monitoring pin, and described first monitoring chip is arranged by described arbitrary prison Control pin output high level the level monitoring according to described arbitrary monitoring pin and each other monitoring pins described own The state of described first switch.
Optionally, described first monitoring chip is provided by a MCU.
Optionally, described monitoring switch circuit also includes the second monitoring chip and second switch circuit, each described Two on-off circuits all include second switch and the current-limiting resistance being connected in series, and the resistance of each described current-limiting resistance is different;Institute Stating the second monitoring chip and have two simulation monitoring pins, a described simulation monitoring pin is through the second pull down resistor and earth terminal Connecting, each described second switch circuit in parallel is connected between said two simulation monitoring pin, described second monitoring chip Be arranged by another described simulation monitoring pin output analog voltage and according to said two simulation monitoring pin between The state of each described second switch of voltage monitoring.
Optionally, described second monitoring chip is provided by a MCU.
Optionally, described first monitoring chip and described second monitoring chip are identity element.
According to the second aspect of the invention, it is provided that a kind of electronic equipment, 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 is monitoring switch circuit needs the I/O number of pins of single-chip microcomputer Measure and more cause relatively costly problem.Therefore, the present invention is to be realized technical assignment or technical problem to be solved Be that those skilled in the art never expect or it is not expected that, therefore the present invention is a kind of new technical scheme.
One of the present invention has the beneficial effects that, by monitoring switch circuit of the present invention, it is possible to effectively save monitoring chip For the usage quantity of the I/O pin of pilot switch, effective monitoring just can be reached 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 detailed description to the exemplary embodiment of the present invention referring to the drawings, the further feature of the present invention and Advantage will be made apparent from.
Accompanying drawing explanation
Combined in the description and the accompanying drawing of the part that constitutes description shows embodiments of the invention, and even With its explanation together for explaining the principle of the present invention.
Fig. 1 is a kind of circuit theory diagrams implementing structure according to the present invention a kind of monitoring switch circuit;
Fig. 2 is the another kind of circuit theory diagrams implementing structure according to the present invention a kind of monitoring switch circuit.
Description of reference numerals:
U1, U2-monitoring chip;GND-earth 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.
Detailed description of the invention
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should also be noted that unless additionally have Body illustrates, the parts illustrated the most in these embodiments and positioned opposite, the numerical expression of step and numerical value are not intended to this The scope of invention.
Description only actually at least one exemplary embodiment is illustrative below, never as to the present invention And any restriction applied or use.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of when, described technology, method and apparatus should be considered a part for description.
It is shown here that any occurrence should be construed as merely exemplary with in all examples discussed, and not It is as restriction.Therefore, other example of exemplary embodiment can have different values.
It should also be noted that similar label and letter represent similar terms, therefore, the most a certain Xiang Yi in following accompanying drawing Individual accompanying drawing is defined, then need not it is further discussed in accompanying drawing subsequently.
During in order to solve to switch more present in prior art, single-chip microcomputer is needed to have more I/O pin, and usual The I/O pin number of single-chip microcomputer is very limited, it is therefore desirable to increases hardware and comes expansion I/O pin, relatively costly problem, it is provided that A kind of monitoring switch circuit, as it is shown in figure 1, include the first monitoring chip U1, the first pull down resistor R1, the first switch and two poles Pipe, the first monitoring chip U1 has at least two monitoring pin, and each monitoring pin is all through the first pull down resistor and earth terminal GND Connecting, arbitrary monitoring pin draws with other monitoring pins and other monitoring alternately as reference monitor pin, reference monitor pin Being respectively connected with one first switch between the combination in any of foot, the first switch is all connected to other monitoring described through a diode and draws Foot, wherein, the anode of all diodes is all connected with reference monitor pin, and the first monitoring chip U1 is arranged by with reference to prison Control pin output high level all first switches of level monitoring according to reference monitor pin and other monitoring pins each State.
Concrete, have as a example by three monitoring pin A11, A12, A13 by the first monitoring chip below and illustrate: be each It is connected to first pull down resistor R11, R12, R13 to earth terminal GND on monitoring pin A11, A12, A13, is connected in series First switch S111 and diode D11 is connected in series between monitoring pin A11 and A12, the first switch S112 being connected in series With diode D12 is connected in series between monitoring pin A11 and A13, the first switch S113 and diode D131 being connected in series Being connected in series between monitoring pin A11 and A12, the first switch S113 and diode D132 being connected in series is connected in series in prison Between control pin A11 and A13, wherein, the anode of diode D11, D12, D131, D132 is all connected with monitoring pin A11;Series connection The the first switch S121 and diode D21 connected is connected in series between monitoring pin A12 and A11, and first be connected in series opens Close S122 and diode D22 to be connected in series between monitoring pin A12 and A13, the first switch S123 and two poles being connected in series Pipe D231 is connected in series between monitoring pin A12 and A11, and the first switch S123 and the diode D232 series connection being connected in series is even Being connected between monitoring pin A12 and A13, wherein the anode of diode D21, D22, D231, D232 is all with monitoring pin A12 even Connect;The the first switch S131 and diode D31 being connected in series is connected in series between monitoring pin A13 and A11, is connected in series First switch S132 and diode D32 is connected in series between monitoring pin A13 and A12, the first switch S133 being connected in series With diode D331 is connected in series between monitoring pin A13 and A11, the first switch S133 and diode D332 being connected in series Be connected in series in monitoring pin A13 and A12 between, wherein, the anode of diode D31, D32, D331, D332 all with monitor pin A13 connects, for example, it is possible to first by monitoring pin A11 as reference monitor pin, the first monitoring chip U1 is by monitoring pin A11 exports high level, detects the level of remaining monitoring pin A12, A13, if be detected that monitoring pin A12, A13 are low electricity Flat, then may determine that first switch S111, S112, S113 is off-state, if be detected that monitoring pin A12, A13 are High level, then may determine that the first switch S113 is conducting state;Again by monitoring pin A12 as reference monitor pin, first Monitoring chip U1 exports high level by detection pin A12, detects the level of remaining monitoring pin A11, A13, if only detected It is high level to monitoring pin A11, then may determine that the first switch S121 is conducting state;Pin A13 will be monitored again as ginseng Examining monitoring pin, the first monitoring chip U1 exports high level by detection pin A13, detects remaining monitoring pin A11, A12 Level, if only detecting monitoring pin A12 is high level, then may determine that the first switch S132 is conducting state.According to The circulation of upper method detects, and in the case of any one first switch conduction being detected, perform to preset with this switch Feature operation one to one.
Such as, in the case of monitoring pin A11 is reference monitor pin output high level, if be detected that monitoring pin The level of A12, A13 is respectively (01), wherein 0 represents low level, 1 represents high level, then shows that the first switch S12 is for conducting shape State;In the case of monitoring pin A12 is reference monitor pin output high level, if be detected that monitoring pin A11, A13 Level is respectively (11), then show that the first switch S23 is conducting state;It is reference monitor pin output height at monitoring pin A13 In the case of level, if be detected that the level of monitoring pin A11, A12 is respectively (11), then show that the first switch S33 is for leading Logical state, if adhering to that the level monitoring pin A11, A12 is respectively (00), then shows that first switch S31, S32, S33 is equal Disconnecting, therefore, the first monitoring chip U1 is that the level monitoring all first according to reference monitor pin and other monitoring pins is opened The state closed.
So, in the case of only considering that Single switch triggers, by N number of monitoring pin of monitoring chip, it is possible to realize To N × (2N-1-1) monitoring of individual switch, therefore, it becomes possible to just 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 supervisory circuit.
Further, above-mentioned first monitoring chip U1 can be provided by a MCU chip that can process digital signal, above-mentioned Monitoring pin is provided by the I/O pin of this MCU.
In one particular embodiment of the present invention, monitoring switch circuit also includes the second monitoring chip U2 and second switch Circuit, as in figure 2 it is shown, each second switch circuit all includes second switch and the current-limiting resistance being connected in series, and each current limliting The resistance of resistance is different;Second monitoring chip U2 has two simulation monitorings pin A21, A22, wherein, simulation monitoring pin energy Enough processing analogue signal, a simulation monitoring pin A22 is connected with earth terminal GND through the second pull down resistor R2, and all second opens Closing circuit to be connected in parallel between two simulation monitorings pin A21, A22, the second monitoring chip U2 is arranged by another Simulation monitoring pin A21 output analog voltage and according to the voltage monitoring between two simulation monitorings pin A21, A22 each The state of second switch.
It is possible to further pre-set two module monitors pins when each second switch corresponding is conducting state Between magnitude of voltage between relation and corresponding each magnitude of voltage need the synopsis of relation between the feature operation performed, Between two simulation monitoring pins of detection while voltage, by searching synopsis to perform the function corresponding with current voltage Operation.
Such as, second switch S21 and current-limiting resistance R21 is connected in series between simulation monitoring pin A21, A22, and second opens Close 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 Being connected in series between simulation monitoring pin A21, A22, second switch S24 and current-limiting resistance R24 is connected in series in simulation monitoring Between pin A21, A22, as long as ensureing that the resistance of the current-limiting resistance that each second switch is connected in series is different, it is possible to by this Two simulation monitoring pins realize the monitoring to numerous switch, and so, each switch is the simulation monitoring that closure state is corresponding Magnitude of voltage between pin A21, A22 is different, it is possible to determines according to the voltage detected between simulation monitoring pin A21, A22 and closes The switch closed, according to the circuit of the present embodiment, it is also possible to is applicable to the situation that Multi-Switch is closed at, now, only need to ensure to appoint When the second switch of meaning combination and any second switch Guan Bi, the voltage difference between simulation monitoring pin A21, A22.
Further, above-mentioned second monitoring chip U2 can be provided by a MCU chip that can process analogue signal, above-mentioned Simulation monitoring pin A21, A22 are provided by the I/O pin of this MCU.
On this basis, above-mentioned first monitoring chip U1 and the second monitoring chip U2 can either be processed simulation by one Signal, can process again digital signal MCU chip provide.
Present invention also offers a kind of electronic equipment, including above-mentioned monitoring switch circuit.This electronic equipment can be such as Various sensing remote control equipments etc. in coded lock or Smart Home.
The various embodiments described above primary focus describes the difference with other embodiments, but those skilled in the art should be clear Chu, the various embodiments described above can be used alone as required or be combined with each other.
Although by example, some specific embodiments of the present invention have been described in detail, but the skill of this area Art personnel are it should be understood that example above is merely to illustrate rather than in order to limit the scope of the present invention.The skill of this area Art personnel are it should be understood that can modify to above example without departing from the scope and spirit of the present invention.This Bright scope is defined by the following claims.

Claims (6)

1. a monitoring switch circuit, it is characterised in that include the first monitoring chip, the first pull down resistor, the first switch and two Pole manage, described first monitoring chip have at least two monitoring pin, each described monitoring pin all through the first pull down resistor with Earth terminal connects, and is respectively connected with one the between the combination in any of arbitrary monitoring pin and other monitoring pins and other monitoring pins One switch, described first switch is all connected to other monitoring pins described through a diode, and wherein, the anode of described diode is equal Being connected with described arbitrary monitoring pin, described first monitoring chip is arranged by the high electricity of described arbitrary monitoring pin output Flat and according to described arbitrary monitoring pin and each other monitoring pins described level monitoring all described first switchs State.
Monitoring switch circuit the most according to claim 1, it is characterised in that described first monitoring chip is provided by a MCU.
Monitoring switch circuit the most according to claim 1, it is characterised in that described monitoring switch circuit also includes the second prison Control chip and second switch circuit, each described second switch circuit all includes second switch and the current-limiting resistance being connected in series, And the resistance of each described current-limiting resistance is different;Described second monitoring chip has two simulation monitoring pins, a described mould Intending monitoring pin to be connected with earth terminal through the second pull down resistor, each described second switch circuit in parallel is connected to said two mould Intending between monitoring pin, described second monitoring chip is arranged by another described simulation monitoring pin output simulation electricity Pressure the state according to each described second switch of the voltage monitoring between said two simulation monitoring pin.
Monitoring switch circuit the most according to claim 3, it is characterised in that described second monitoring chip is provided by a MCU.
Monitoring switch circuit the most according to claim 3, it is characterised in that described first monitoring chip and described second prison Control chip is identity element.
6. an electronic equipment, it is characterised in that include the monitoring switch circuit according to any one of claim 1-5.
CN201610835546.8A 2016-09-20 2016-09-20 A kind of monitoring switch circuit and electronic equipment Active CN106325163B (en)

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 true CN106325163A (en) 2017-01-11
CN106325163B 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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010013860A1 (en) * 2000-02-10 2001-08-16 Gancarcik Edward Peter Keyboard matrix expansion
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
CN1801562A (en) * 2005-12-12 2006-07-12 谭启仁 Current type electricity-proof wall detection chip with transmittal circuit zero earth wire detection interface
US20100090746A1 (en) * 2008-10-15 2010-04-15 Sony Corporation Switch circuit
US20100188872A1 (en) * 2009-01-27 2010-07-29 Murata Manufacturing Co., Ltd. Isolated switching power supply device
TW201203858A (en) * 2010-07-08 2012-01-16 Hon Hai Prec Ind Co Ltd Matrix keyboard circuit and scanning method thereof
CN103852720A (en) * 2012-11-29 2014-06-11 海洋王(东莞)照明科技有限公司 Switch life test device
CN205333803U (en) * 2014-08-08 2016-06-22 利萨·德雷克塞迈尔有限责任公司 For circuit of monitor switch's on off state and including motor vehicle of said circuit
CN206162119U (en) * 2016-09-20 2017-05-10 歌尔科技有限公司 Switch monitor circuit and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010013860A1 (en) * 2000-02-10 2001-08-16 Gancarcik Edward Peter Keyboard matrix expansion
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
CN1801562A (en) * 2005-12-12 2006-07-12 谭启仁 Current type electricity-proof wall detection chip with transmittal circuit zero earth wire detection interface
US20100090746A1 (en) * 2008-10-15 2010-04-15 Sony Corporation Switch circuit
CN101727188A (en) * 2008-10-15 2010-06-09 索尼株式会社 Switch circuit
US20100188872A1 (en) * 2009-01-27 2010-07-29 Murata Manufacturing Co., Ltd. Isolated switching power supply device
TW201203858A (en) * 2010-07-08 2012-01-16 Hon Hai Prec Ind Co Ltd Matrix keyboard circuit and scanning method thereof
CN103852720A (en) * 2012-11-29 2014-06-11 海洋王(东莞)照明科技有限公司 Switch life test device
CN205333803U (en) * 2014-08-08 2016-06-22 利萨·德雷克塞迈尔有限责任公司 For circuit of monitor switch's on off state and including motor vehicle of said circuit
CN206162119U (en) * 2016-09-20 2017-05-10 歌尔科技有限公司 Switch monitor circuit and electronic equipment

Also Published As

Publication number Publication date
CN106325163B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN102576998B (en) Overcurrent protection device and overcurrent protection system
US9651602B2 (en) Device and method for monitoring and switching a load circuit
CN108051719A (en) Power tube test circuit and power tube test device
CN108055029A (en) A kind of on-off circuit and the electronic equipment with the on-off circuit
CN113454475B (en) Method and apparatus for automatically inspecting switching devices
CN108141910A (en) Household appliance
US8699192B2 (en) Method, device and switch for providing short-circuit protection for resistive AC load
CN105743476B (en) A kind of on/off circuit
CN206162119U (en) Switch monitor circuit and electronic equipment
CN106325163A (en) Switch monitoring circuit and electronic device
CN104539274A (en) Reset circuit and WiFi communication system
CN203261308U (en) Multiple contact switch
CN102761324A (en) Electric delay switch
CN205003650U (en) Capacitive discharge circuit
CA1086823A (en) Solid-state delay timed switching circuit
CN102487277B (en) Induction installation and inducing method
GB2341929A (en) Position detection
CN110190841A (en) I/O port multiplexing control circuit and electronic equipment
CN203133150U (en) Voltage sampling circuit and electric heater provided therewith
CN206224281U (en) Exchange 24V switches have the SSR controllers of the type that is galvanically isolated
CN110531818A (en) Sequential control method and circuit
CN106953300A (en) A kind of protective circuit of switch power source and display device
CN107332568B (en) Key coding circuit and keyboard scanning circuit
CN207995245U (en) The start control circuit and television set of television set
CN203631410U (en) Vacuum circuit breaker controlling circuit and vacuum circuit breaker controlling system

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