CN112398081A - Control circuit protection method and device and control circuit - Google Patents

Control circuit protection method and device and control circuit Download PDF

Info

Publication number
CN112398081A
CN112398081A CN202011250106.9A CN202011250106A CN112398081A CN 112398081 A CN112398081 A CN 112398081A CN 202011250106 A CN202011250106 A CN 202011250106A CN 112398081 A CN112398081 A CN 112398081A
Authority
CN
China
Prior art keywords
signal
control circuit
input
current
switching value
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
CN202011250106.9A
Other languages
Chinese (zh)
Other versions
CN112398081B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011250106.9A priority Critical patent/CN112398081B/en
Publication of CN112398081A publication Critical patent/CN112398081A/en
Application granted granted Critical
Publication of CN112398081B publication Critical patent/CN112398081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/08Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection responsive to excess current

Landscapes

  • Electronic Switches (AREA)
  • Emergency Protection Circuit Devices (AREA)

Abstract

The invention relates to a protection method and a protection device for a control circuit and the control circuit, wherein the protection method for the control circuit comprises the following steps: judging whether a universal interface on the control circuit has signal input; when the general interface has signal input, judging the type of the signal; and controlling whether to close the current detection function or not according to the type of the signal. The protection method can automatically close the current detection mode when detecting that large current such as switching value input and the like is input, thereby avoiding using excessive current signal interfaces simultaneously, avoiding the overcurrent phenomenon, achieving the effect of protecting a logic chip and being beneficial to improving the reliability of a control circuit.

Description

Control circuit protection method and device and control circuit
Technical Field
The invention relates to the technical field of circuit protection, in particular to a protection method and a protection device for a control circuit and the control circuit.
Background
In an electronic circuit, for some general controllers, one interface can be compatible with multiple input/output functions, such as 4-20 mA input/output, 0-10V input/output, switching value input, and the like. For these compatible interfaces (universal interfaces), when the interfaces with excessive current signals are used at the same time, multiple current signals are input at the same time, and there is a risk of overcurrent, which may cause damage to the universal controller.
Disclosure of Invention
In view of the above, the present invention provides a protection method and apparatus for a control circuit, and a control circuit.
In order to achieve the purpose, the invention adopts the following technical scheme: a protection method of a control circuit, comprising:
judging whether a universal interface on the control circuit has signal input;
when the general interface has signal input, judging the type of the signal;
and controlling whether to close the current detection function or not according to the type of the signal.
Optionally, the types of the signals include:
a voltage signal, a current signal, or a switching value input signal.
Optionally, the voltage signal is a 0-10V input/output signal;
the current signal is 4 mA-20 mA input/output signal.
Optionally, the controlling whether to turn off the current detection function according to the type of the signal includes:
and when the universal interface has signal input and the type of the signal is a switching value input signal, the current detection function is closed.
Optionally, the protection method further includes:
and when the universal interface has signal input and the type of the signal is a switching value input signal, starting a voltage detection function.
Optionally, the controlling whether to turn off the current detection function according to the type of the signal includes:
and when the universal interface has no switching value input signal, starting the current detection function and the voltage detection function.
The present invention also provides a protection device for a control circuit, comprising:
the first judgment module is used for judging whether a universal interface on the control circuit has signal input;
the second judging module is used for judging the type of the signal when the signal is input into the universal interface;
and the control module is used for controlling whether to close the current detection function or not according to the type of the signal.
The present invention also provides a control circuit comprising:
the device comprises a controller, a switching value detection module, a current detection module and a voltage detection module;
the controller is provided with a universal interface;
the switching value detection module, the current detection module and the voltage detection module are respectively electrically connected with the controller;
the switching value detection module is used for detecting whether a switching value input signal exists on the general interface;
the current detection module is used for detecting whether a current signal exists on the universal interface;
the voltage detection module is used for detecting whether a voltage signal exists on the universal interface.
Optionally, the switching value detecting module includes: the optical coupler and the current limiting resistor are connected in series.
Optionally, the controller is a DG409 chip.
By adopting the technical scheme, the protection method of the control circuit comprises the following steps: judging whether a universal interface on the control circuit has signal input; when the general interface has signal input, judging the type of the signal; and controlling whether to close the current detection function or not according to the type of the signal. The protection method can automatically close the current detection mode when detecting large current input such as switching value input and the like, thereby avoiding using excessive current signal interfaces simultaneously, avoiding the overcurrent phenomenon, achieving the effect of protecting a logic chip (controller) and being beneficial to improving the reliability of a control circuit.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a control circuit according to an embodiment of the present invention;
FIG. 2 is a control logic schematic of the DG409 chip;
FIG. 3 is a flow chart of a protection method for a control circuit according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram provided by an embodiment of a protection device of a control circuit according to the present invention.
In the figure: 1. a switching value detection module; 2. a current detection module; 3. a voltage detection module; 4. a general purpose interface; 5. a DG409 chip; 6. a first judgment module; 7. a second judgment module; 8. and a control module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a schematic structural diagram provided by an embodiment of a control circuit of the present invention.
As shown in fig. 1, the control circuit according to this embodiment includes:
the device comprises a controller, a switching value detection module 1, a current detection module 2 and a voltage detection module 3;
the controller is provided with a universal interface 4;
the switching value detection module 1, the current detection module 2 and the voltage detection module 3 are respectively electrically connected with the controller;
the switching value detection module 1 is used for detecting whether a switching value input signal exists on the universal interface 4;
the current detection module 2 is used for detecting whether a current signal exists on the universal interface 4;
the voltage detection module 3 is configured to detect whether there is a voltage signal on the universal interface 4.
Further, the controller is a DG409 chip 5.
In fig. 1, a current detection module 2 in the control circuit includes a sampling resistor R2(4.7k Ω) and a sampling resistor R3(2.2k Ω), a voltage detection module 3 includes a sampling resistor R1(150 Ω), and the current detection module 2 is mainly used for detecting a current signal of 4mA to 20 mA; the voltage detection module 3 is mainly used for detecting a 0-10V voltage signal; the switching value detection module 1 comprises an optocoupler U2 and a current limiting resistor R4 which are connected in series, and is mainly used for switching value detection. The control circuit further comprises a logic chip U1, a general interface J1, a sensor U3 and a switching device SW 1. The logic chip is exemplified by DG409, and the chip includes 8 switches S1A, S2A, S3A, S4A, S1B, S2B, S3B, S4B, 2-way input/output DA, DB, 2 gates a1, a0, an enable pin EN, and power supply pins V +, V-, and GND, and the operation mode thereof is as the control logic diagram of fig. 2, the chip is a switch, and signals can flow from S1A to S4B to DA, DB, and also can flow from DA, DB to S1A to S4B. The U3 can be some temperature and humidity sensors as long as the signal type is 4 mA-20 mA or 0-10V.
The working mode of the control circuit is as follows: firstly, when a switch device of SW1 is connected and a closing condition is met, under a general condition, a 5mA conduction current meets the conduction of an optical coupler, the maximum conduction current of the optical coupler is 50mA, but a continuous current which can be borne by DG409 is 30mA, so that in the design, the conduction current of the optical coupler is generally designed to be 5 mA-21 mA, and a channel (a current detection function) where AI1 is located is closed, and sampling cannot be performed; since the path where the AI2 is located is a voltage signal sampling of 0-10V, and is not a current signal, the sampling can be performed at this time, which means that when the SW1 has a signal access, the U3 can only access the voltage signal, and the access current signal is invalid (i.e., the U3 accesses the current signal, and the AI2 cannot detect); and secondly, when the SW1 is not connected with any switching device, the U3 can be connected with a voltage signal of 0-10V or a current signal of 4-20 mA, and a channel (voltage detection function) where the AI2 is located and a channel (current detection function) where the AI1 is located can work. The above control manner can be realized by controlling the states of the gating ports A1 and A0 through software programming.
The control circuit described in this embodiment has the following advantages: the method has high universality, and can be compatible with 0-10V, 4-20 mA and switching value input detection; secondly, the mode without detecting current can be automatically switched to achieve the effect of protecting the logic chip.
Fig. 3 is a schematic flow chart of a protection method for a control circuit according to an embodiment of the present invention.
As shown in fig. 3, the protection method for a control circuit according to this embodiment includes:
s31: judging whether a universal interface on the control circuit has signal input;
s32: when the general interface has signal input, judging the type of the signal;
further, the types of the signals include:
a voltage signal, a current signal, or a switching value input signal.
Further, the voltage signal is a 0-10V input/output signal;
the current signal is 4 mA-20 mA input/output signal.
S33: and controlling whether to close the current detection function or not according to the type of the signal.
Further, the controlling whether to turn off the current detection function according to the type of the signal includes:
and when the universal interface has signal input and the type of the signal is a switching value input signal, the current detection function is closed.
The method further comprises the following steps:
and when the universal interface has signal input and the type of the signal is a switching value input signal, starting a voltage detection function.
Further, the controlling whether to turn off the current detection function according to the type of the signal further includes:
and when the universal interface has no switching value input signal, starting the current detection function and the voltage detection function.
The protection method of the embodiment can automatically close the current detection mode when detecting large current input such as switching value input, thereby avoiding using excessive current signal interfaces simultaneously, avoiding overcurrent phenomenon, achieving the effect of protecting a logic chip (controller), and being beneficial to improving the reliability of a control circuit.
Fig. 4 is a schematic structural diagram provided by an embodiment of a protection device of a control circuit according to the present invention.
As shown in fig. 4, the protection device for a control circuit according to this embodiment includes:
the first judging module 6 is used for judging whether a universal interface on the control circuit has signal input;
the second judging module 7 is used for judging the type of the signal when the signal is input into the universal interface;
and the control module 8 is used for controlling whether to close the current detection function or not according to the type of the signal.
The working principle of the protection device of the control circuit in this embodiment is the same as that of the protection method of the control circuit described above, and is not described herein again.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method of protecting a control circuit, comprising:
judging whether a universal interface on the control circuit has signal input;
when the general interface has signal input, judging the type of the signal;
and controlling whether to close the current detection function or not according to the type of the signal.
2. The protection method according to claim 1, wherein the type of the signal comprises:
a voltage signal, a current signal, or a switching value input signal.
3. The protection method according to claim 2, wherein the voltage signal is a 0-10V input/output signal;
the current signal is 4 mA-20 mA input/output signal.
4. The protection method according to any one of claims 1 to 3, wherein the controlling whether to turn off the current detection function according to the type of the signal comprises:
and when the universal interface has signal input and the type of the signal is a switching value input signal, the current detection function is closed.
5. The protection method according to claim 4, further comprising:
and when the universal interface has signal input and the type of the signal is a switching value input signal, starting a voltage detection function.
6. The protection method according to any one of claims 1 to 3, wherein the controlling whether to turn off the current detection function according to the type of the signal comprises:
and when the universal interface has no switching value input signal, starting the current detection function and the voltage detection function.
7. A protection device for a control circuit, comprising:
the first judgment module is used for judging whether a universal interface on the control circuit has signal input;
the second judging module is used for judging the type of the signal when the signal is input into the universal interface;
and the control module is used for controlling whether to close the current detection function or not according to the type of the signal.
8. A control circuit, comprising:
the device comprises a controller, a switching value detection module, a current detection module and a voltage detection module;
the controller is provided with a universal interface;
the switching value detection module, the current detection module and the voltage detection module are respectively electrically connected with the controller;
the switching value detection module is used for detecting whether a switching value input signal exists on the general interface;
the current detection module is used for detecting whether a current signal exists on the universal interface;
the voltage detection module is used for detecting whether a voltage signal exists on the universal interface.
9. The control circuit of claim 8, wherein the switching value detection module comprises: the optical coupler and the current limiting resistor are connected in series.
10. The control circuit of claim 8 or 9, wherein the controller is a DG409 chip.
CN202011250106.9A 2020-11-11 2020-11-11 Control circuit protection method and device and control circuit Active CN112398081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011250106.9A CN112398081B (en) 2020-11-11 2020-11-11 Control circuit protection method and device and control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011250106.9A CN112398081B (en) 2020-11-11 2020-11-11 Control circuit protection method and device and control circuit

Publications (2)

Publication Number Publication Date
CN112398081A true CN112398081A (en) 2021-02-23
CN112398081B CN112398081B (en) 2021-10-22

Family

ID=74600660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011250106.9A Active CN112398081B (en) 2020-11-11 2020-11-11 Control circuit protection method and device and control circuit

Country Status (1)

Country Link
CN (1) CN112398081B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107966923A (en) * 2017-11-13 2018-04-27 珠海格力电器股份有限公司 Sensor interface circuitry and data channel system of selection, storage medium, data collecting system
CN109639265A (en) * 2019-01-14 2019-04-16 浙江源创建筑智能科技有限公司 A kind of universal input circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107966923A (en) * 2017-11-13 2018-04-27 珠海格力电器股份有限公司 Sensor interface circuitry and data channel system of selection, storage medium, data collecting system
CN109639265A (en) * 2019-01-14 2019-04-16 浙江源创建筑智能科技有限公司 A kind of universal input circuit

Also Published As

Publication number Publication date
CN112398081B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US9319042B2 (en) Sensor with concurrent autosensing of output mode and manual selection
CN107992143B (en) Multiplexing acquisition port circuit, controller, analog input acquisition method and system
US5672917A (en) Semiconductor power switch system
CN207352398U (en) General digital input and output multiplex circuit and input-output control unit
CN101334651B (en) Programable controller and its channel selection method
CN112104303A (en) Fault detection method of control circuit, motor controller and servo control system
US5896057A (en) Diagnostic power driver circuit
CN104834246A (en) Automobile controller and state synchronization method applied to automobile controller
CN112398081B (en) Control circuit protection method and device and control circuit
US9602101B2 (en) Integrated device with auto configuration
CN103364742B (en) Sub-circuit board of testing and monitoring system of aged vehicle
KR100851147B1 (en) a dual power system using smart junction box and a line short detection method of the system
KR20120079261A (en) Apparatus and method for detecting a switch fault
CN110673572A (en) User programmable universal industrial controller device
EP0063611B1 (en) Electric power source for a control unit
CN209946646U (en) Redundant circuit switching system for single-loop control instrument
JP3196726B2 (en) Disk array connection system, fault occurrence device detection method thereof, and recording medium recording control program therefor
JP4802971B2 (en) Analog output device
JP2000165420A (en) Bus system
JP4788569B2 (en) Output device
CN109782660B (en) Control circuit and device compatible with voltage-type and current-type analog input
JP6976235B2 (en) System switching control system
CN214333895U (en) Humiture monitoring system based on multiple single-chip microcomputers
JP3838037B2 (en) Communication slave station and control device
CN218352160U (en) Temperature protection circuit and data processing equipment

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
GR01 Patent grant
GR01 Patent grant