Control method and device of single-interface detection circuit, chip and household appliance
By connecting the switching device in parallel with the preset resistor and in series with the temperature sensor, the collected value and preset value of the temperature sensor are used to determine the status of the switching device and the preset temperature value set of the temperature sensor, thus solving the waste of interface resources in traditional home appliances. To solve the problem of conflict with detection functions, single interface temperature detection and switch detection are implemented, simplifying the design and reducing costs.
Patent Information
- Application Number
- CN202310379507.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-15
AI Technical Summary
When traditional home appliances perform temperature detection and switch detection, they need to occupy two chip interfaces, resulting in a waste of interface resources and design complexity, and temperature detection cannot continue when the switch device is disconnected.
By connecting the switching device in parallel with the preset resistor and in series with the temperature sensor, the collected value and preset value of the temperature sensor are used to determine the state of the switching device and the preset temperature value set of the temperature sensor, thereby realizing temperature detection and switching of a single interface. detection.
It achieves both temperature detection and switch detection with a single interface, simplifying product design and reducing costs.
Smart Images

Figure CN118778489A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit detection, and in particular to a control method for a single-interface detection circuit, a chip, a household appliance and a control device for a single-interface detection circuit. Background Art
[0002] Normally, household appliances that need to detect temperature usually use temperature sensors for detection. However, the temperature sensor requires a separate interface of the chip. If the switch control is added, the two functions of the household appliance require two interfaces, which affects the interface resources. For example, for a pressure cooker with switch detection such as zero-pressure switch detection and lid opening and closing switch detection, the traditional method is that the lid temperature sensor occupies a separate interface, and the switch detection occupies a separate interface. This method not only has complex wiring design, but also occupies chip port resources. If the switch device is directly connected in series with the temperature sensor, then when the switch device is disconnected, the temperature sensor is also disconnected, and the temperature detection cannot continue, affecting the function of the device. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present invention is to propose a control method for a single-interface detection circuit, which can connect a switch device in parallel with a preset resistor and then connect it in series with a temperature sensor, and then determine the collected temperature of the temperature sensor according to the collected value of the temperature sensor and a preset temperature value set, thereby realizing that the detection circuit uses a single interface while meeting temperature detection and switch detection, simplifying product design and reducing costs.
[0004] The second objective of the present invention is to provide a chip.
[0005] The third objective of the present invention is to provide a household appliance.
[0006] A fourth objective of the present invention is to provide a control device for a single-interface detection circuit.
[0007] In order to achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a control method for a single-interface detection circuit, wherein the detection circuit includes a temperature sensor, a switching device and a preset resistor, wherein the switching device and the preset resistor are connected in parallel to form a branch, one end of the branch is connected to the port of the chip, the other end of the branch is connected to one end of the temperature sensor, and the other end of the temperature sensor is connected to the ground terminal of the chip, and the control method includes: obtaining the collection value and preset value of the temperature sensor; determining the switching state of the switching device according to the collection value and the preset value of the temperature sensor; determining the preset temperature value set of the temperature sensor according to the switching state of the switching device; determining the collection temperature of the temperature sensor according to the collection value of the temperature sensor and the preset temperature value set.
[0008] According to the control method of the single-interface detection circuit in the embodiment of the present invention, the switching device is connected in parallel with a preset resistor and then in series with the temperature sensor, and the collection temperature of the temperature sensor is determined according to the collection value of the temperature sensor and the preset temperature value set. In this way, the detection circuit can use a single interface to meet temperature detection and switch detection at the same time, simplifying product design and reducing costs.
[0009] In addition, the control method of the single interface detection circuit according to the above embodiment of the present invention may also include the following additional technical features:
[0010] According to one embodiment of the present invention, determining the switching state of the switching device based on the collected value of the temperature sensor and the preset value includes: when the collected value of the temperature sensor is less than the preset value, determining that the switching device is in a closed state; when the collected value of the temperature sensor is greater than or equal to the preset value, determining that the switching device is in an off state.
[0011] According to one embodiment of the present invention, determining the preset temperature value set of the temperature sensor according to the switching state of the switching device includes: when the switching device is in the closed state, determining the preset temperature value set of the temperature sensor to be a first preset temperature value set; when the switching device is in the off state, determining the preset temperature value set of the temperature sensor to be a second preset temperature value set.
[0012] According to one embodiment of the present invention, the first preset temperature value set includes multiple first temperature values, the second preset temperature value set includes multiple second temperature values, and the maximum temperature value among the multiple second temperature values is less than or equal to the minimum temperature value among the multiple first temperature values.
[0013] According to an embodiment of the present invention, the minimum temperature value among the plurality of first temperature values is equal to the preset value.
[0014] According to an embodiment of the present invention, the control method further comprises: reacquiring the collected value of the temperature sensor at every preset time interval to update the collected temperature of the temperature sensor.
[0015] According to an embodiment of the present invention, the temperature sensor is an NTC (Negative Temperature Coefficient) thermistor.
[0016] In order to achieve the above-mentioned purpose, the chip proposed in the second aspect of the embodiment of the present invention includes a memory, a processor, and a control program for a single-interface detection circuit stored in the memory and runnable on the processor. When the processor executes the control program, the control method of the single-interface detection circuit mentioned above is implemented.
[0017] According to the chip of the embodiment of the present invention, the processor executes the control program of the single-interface detection circuit stored in the memory, so that the detection circuit can use a single interface to meet temperature detection and switch detection at the same time, simplifying product design and reducing costs.
[0018] In order to achieve the above-mentioned object, a third aspect of the present invention provides a household appliance, comprising the chip of the above-mentioned embodiment.
[0019] The household appliance according to the embodiment of the present invention includes the above chip, which can realize the detection circuit using a single interface to meet the temperature detection and switch detection requirements, thereby simplifying product design and reducing costs.
[0020] In order to achieve the above-mentioned purpose, the fourth aspect of the embodiment of the present invention proposes a control device for a single-interface detection circuit, wherein the detection circuit includes a temperature sensor, a switching device and a preset resistor, wherein the switching device is connected in parallel with the preset resistor to form a branch, one end of the branch is connected to the port of the chip, the other end of the branch is connected to one end of the temperature sensor, and the other end of the temperature sensor is connected to the ground terminal of the chip, and the control device includes: an acquisition module, used to acquire the collection value and preset value of the temperature sensor; a control module, used to determine the switching state of the switching device according to the collection value and preset value of the temperature sensor, and then determine the preset temperature value set of the temperature sensor according to the switching state of the switching device, and determine the collection temperature of the temperature sensor according to the collection value of the temperature sensor and the preset temperature value set.
[0021] According to the control device of the single-interface detection circuit in the embodiment of the present invention, the switch device is connected in parallel with a preset resistor and then in series with the temperature sensor, and then the collection temperature of the temperature sensor is determined according to the collection value of the temperature sensor and the preset temperature value set by the control module. In this way, the detection circuit can use a single interface to meet temperature detection and switch detection at the same time, simplifying product design and reducing costs.
[0022] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a circuit schematic diagram of a single interface detection circuit according to an embodiment of the present invention;
[0024] Figure 2 is a schematic flow chart of a control method for a single-interface detection circuit according to an embodiment of the present invention;
[0025] Figure 3 is a schematic flow chart of a control method for a single-interface detection circuit according to another embodiment of the present invention;
[0026] Figure 4 is a schematic flow chart of a control method for a single-interface detection circuit according to another embodiment of the present invention;
[0027] Figure 5 is a schematic flow chart of a control method for a single-interface detection circuit according to a specific embodiment of the present invention;
[0028] Figure 6 is a block diagram of a chip according to an embodiment of the present invention;
[0029] Figure 7 is a block diagram of a household appliance according to an embodiment of the present invention;
[0030] Figure 8 4 is a block diagram of a control device for a single-interface detection circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0032] The following describes a control method, a chip, a home appliance, and a control device for a single-interface detection circuit according to embodiments of the present invention with reference to the accompanying drawings.
[0033] Before introducing the control method and device of the single-interface detection circuit according to the embodiment of the present invention, the specific circuit structure of the single-interface detection circuit according to the embodiment of the present invention is first described accordingly.
[0034] Specifically, the single-interface detection circuit includes a temperature sensor, a switching device and a preset resistor, wherein the switching device and the preset resistor are connected in parallel to form a branch, one end of the branch is connected to the port of the chip, the other end of the branch is connected to one end of the temperature sensor, and the other end of the temperature sensor is connected to the ground terminal of the chip.
[0035] Specifically, if Figure 1 As shown, the single-interface detection circuit 1 includes a temperature sensor A, a switch device B and a preset resistor R, wherein the first end of the switch device B is connected to the first end of the preset resistor R, the second end of the switch device B is connected to the second end of the preset resistor R, and then the switch device B and the preset resistor R are connected in parallel to form a branch, wherein a 2pin interface at one end of the branch is connected to a port of the chip, and the other end of the branch is connected to one end of the temperature sensor A, and the other end of the temperature sensor A is connected to the ground terminal of the chip.
[0036] When the switch device is in a closed state, the preset resistor R is short-circuited. At this time, one end of the temperature sensor A is connected to the port of the chip, and the other end of the temperature sensor A is connected to the ground terminal of the chip.
[0037] When the switch device is in the off state, since the switch device is disconnected, one end of the preset resistor R is connected to the port of the chip, the other end of the preset resistor R is connected to one end of the temperature sensor A, and the other end of the temperature sensor A is connected to the ground terminal of the chip.
[0038] It should be noted that the selection of the preset resistor R is related to the selection of the temperature sensor A. The switch device may be a zero-pressure switch or an opening and closing cover switch or other switch devices. The present invention may not specifically limit the selection of the switch device.
[0039] Further, in some embodiments of the present invention, Figure 2 As shown, the control method of the single interface detection circuit includes:
[0040] S101, obtaining a collected value and a preset value of a temperature sensor.
[0041] Specifically, in this embodiment, after the circuit is powered on, the AD (Analog-to-Digital) value of the temperature sensor is detected through the ADC (Analog-to-Digital Converter) interface of the chip, and then the collected value At of the temperature sensor can be obtained. The value of the preset value a0 is related to factors such as the type of the temperature sensor. The present invention does not specifically limit the value of the preset value a0.
[0042] S102, determining a switching state of a switching device according to a value collected by a temperature sensor and a preset value.
[0043] Specifically, in this embodiment, the switching state of the switching device includes a closed state and an off state, and the temperature sensor is connected in different circuit structures, and the same temperature collected and the corresponding AD value are different. Therefore, after obtaining the collected value At of the temperature sensor, by comparing the collected value At of the temperature sensor with the preset value a0, it can be determined whether the switching device is in a closed state or an off state.
[0044] S103, determining a preset temperature value set of the temperature sensor according to the switching state of the switching device.
[0045] Specifically, in this embodiment, the preset temperature value set can be divided into a first preset temperature value set and a second preset temperature value set. Different switch states correspond to different preset temperature value sets, and the corresponding preset temperature value set of the temperature sensor needs to be determined according to the switch state.
[0046] S104, determining a collection temperature of the temperature sensor according to the collection value of the temperature sensor and a preset temperature value set.
[0047] Specifically, in this embodiment, the same collection value has different corresponding collection temperatures of the temperature sensor in different preset temperature value sets. For example, when the collection value of the temperature sensor is the same, the collection temperature of the temperature sensor is determined to be 45°C by the first preset temperature value set, while the collection temperature of the temperature sensor is determined to be 35°C by the second preset temperature value set. Therefore, it is necessary to determine the collection temperature of the temperature sensor based on the collection value of the temperature sensor and the preset temperature value set.
[0048] Further, in some embodiments of the present invention, Figure 3 As shown, the switching state of the switching device is determined according to the collected value of the temperature sensor and the preset value, including:
[0049] S1021: When the collected value of the temperature sensor is less than a preset value, determine that the switch device is in a closed state.
[0050] Specifically, in this embodiment, after detecting the AD value of the temperature sensor through the ADC interface of the chip, the acquisition value At of the temperature sensor is obtained, and then when the acquisition value At of the temperature sensor is less than the preset value a0, it is determined that the switch device is in a closed state.
[0051] S1022: When the collected value of the temperature sensor is greater than or equal to a preset value, determine that the switch device is in an off state.
[0052] Specifically, in this embodiment, after detecting the AD value of the temperature sensor through the ADC interface of the chip, the acquisition value At of the temperature sensor is obtained, and then when the acquisition value At of the temperature sensor is greater than or equal to the preset value a0, it is determined that the switch device is in the off state.
[0053] Further, in some embodiments of the present invention, Figure 4 As shown, determining a preset temperature value set of the temperature sensor according to the switching state of the switching device includes:
[0054] S1031, when the switch device is in a closed state, determining that the preset temperature value set of the temperature sensor is a first preset temperature value set.
[0055] Specifically, in this embodiment, when the collected value At of the temperature sensor is less than the preset value a0, it is determined that the switch device is in a closed state, and then the preset temperature value set of the temperature sensor is determined to be the first preset temperature value set.
[0056] S1032: When the switch device is in an off state, determine that the preset temperature value set of the temperature sensor is a second preset temperature value set.
[0057] Specifically, in this embodiment, when the collected value At of the temperature sensor is greater than or equal to the preset value a0, it is determined that the switch device is in the off state, and then the preset temperature value set of the temperature sensor is determined to be the second preset temperature value set.
[0058] Furthermore, in some embodiments of the present invention, the first preset temperature value set includes multiple first temperature values, the second preset temperature value set includes multiple second temperature values, and the maximum temperature value among the multiple second temperature values is less than or equal to the minimum temperature value among the multiple first temperature values.
[0059] Specifically, in this embodiment, the first preset temperature value set includes multiple first temperature values a0, a1, a2, ..., am, where the value of m is generally 0-250 and satisfies a0<a1<a2<…<am, and the second preset temperature value set includes multiple second temperature values ar0, ar1, ar2, ..., arn, where the value of n is generally 0-250 and satisfies ar0<ar1<ar2<…<arn. In addition, the maximum temperature value among the multiple second temperature values is less than or equal to the minimum temperature value among the multiple first temperature values, that is, ar0<ar1<ar2<…<arn≤a0<a1<a2<…<am is satisfied.
[0060] Furthermore, in some embodiments of the present invention, a minimum temperature value among the plurality of first temperature values is equal to a preset value.
[0061] Specifically, in this embodiment, the minimum temperature value a0 among the plurality of first temperature values is equal to the preset value, that is, the value of the minimum value a0 among the plurality of first temperature values is related to factors such as the type of the temperature sensor.
[0062] Furthermore, in some embodiments of the present invention, the control method of the single-interface detection circuit further includes: reacquiring a collection value of the temperature sensor at a preset time interval to update the collection temperature of the temperature sensor.
[0063] Specifically, in this embodiment, the preset time can be 10 milliseconds, 20 milliseconds, 30 milliseconds, etc. For example, the detection circuit can re-acquire the collected value of the temperature sensor every 10 milliseconds, and determine the collected temperature based on the collected value to update the temperature. The present invention may not specifically limit the value of the preset time.
[0064] Furthermore, in some embodiments of the present invention, the temperature sensor is an NTC thermistor.
[0065] Specifically, in this embodiment, the temperature sensor is an NTC thermistor, that is, a sensor resistor whose resistance value decreases as the temperature increases. Of course, in some specific examples, the temperature sensor may also be a PTC (Positive Temperature Coefficient) thermistor or other types of thermistors. It should be noted that when different types of thermistors are used, the corresponding preset temperature value sets will change accordingly.
[0066] The following is combined with Figure 5 In accordance with the specific embodiment of the present invention, the specific process steps of the control method of the single interface detection circuit are described. Figure 5 As shown:
[0067] S1, obtain the collected value and preset value of the temperature sensor.
[0068] S2, when the collected value of the temperature sensor is greater than or equal to the preset value, determine that the switch device is in the off state, and when the collected value of the temperature sensor is less than the preset value, determine that the switch device is in the closed state.
[0069] S3, when the switch device is in a closed state, determining the preset temperature value set of the temperature sensor to be a first preset temperature value set, and when the switch device is in an off state, determining the preset temperature value set of the temperature sensor to be a second preset temperature value set.
[0070] S4, determining the collected temperature of the temperature sensor according to the collected value of the temperature sensor and a preset temperature value set.
[0071] In summary, according to the control method of the single-interface detection circuit of an embodiment of the present invention, the switching device is connected in parallel with a preset resistor and then in series with the temperature sensor, and the collection temperature of the temperature sensor is determined according to the collection value of the temperature sensor and the preset temperature value set. In this way, the detection circuit can use a single interface to meet temperature detection and switch detection at the same time, simplifying product design and reducing costs.
[0072] Figure 6 is a block diagram of a chip according to an embodiment of the present invention.
[0073] Furthermore, if Figure 6 As shown, based on the control method of the single interface detection circuit of the aforementioned embodiment of the present invention, the embodiment of the present invention further proposes a chip 100, the chip 100 includes a memory 101, a processor 102, and a control program for the single interface detection circuit stored in the memory 101 and executable on the processor 102. When the processor 102 executes the control program, the control method of the single interface detection circuit of the aforementioned embodiment of the present invention is implemented.
[0074] In summary, according to the chip of an embodiment of the present invention, wherein the chip includes a memory, a processor, and a control program for a single-interface detection circuit stored in the memory and run on the processor, it is possible to realize that the detection circuit uses a single interface while meeting temperature detection and switch detection, thereby simplifying product design and reducing costs.
[0075] Figure 7 is a block diagram of a household appliance according to an embodiment of the present invention.
[0076] Furthermore, the embodiment of the present invention also provides a household appliance 1000 , which includes the chip 100 of the aforementioned embodiment of the present invention.
[0077] In summary, the household appliance according to the embodiment of the present invention includes the above-mentioned chip, which can realize the detection circuit using a single interface to meet the temperature detection and switch detection requirements, thereby simplifying product design and reducing costs.
[0078] In addition, other structures and functions of the household appliance of the embodiment of the present invention are known to those skilled in the art and will not be described in detail here to reduce redundancy.
[0079] Figure 8 4 is a block diagram of a control device for a single-interface detection circuit according to an embodiment of the present invention.
[0080] like Figure 8 As shown, the control device 200 of the single-interface detection circuit includes an acquisition module 10 and a control module 20 .
[0081] Among them, the detection circuit includes a temperature sensor, a switching device and a preset resistor, wherein the switching device and the preset resistor are connected in parallel to form a branch, one end of the branch is connected to the port of the chip, the other end of the branch is connected to one end of the temperature sensor, and the other end of the temperature sensor is connected to the ground terminal of the chip, and the acquisition module 10 is used to obtain the collection value and preset value of the temperature sensor; the control module 20 is used to determine the switching state of the switching device according to the collection value and preset value of the temperature sensor, and then determine the preset temperature value set of the temperature sensor according to the switching state of the switching device, and determine the collection temperature of the temperature sensor according to the collection value and preset temperature value set of the temperature sensor.
[0082] In some embodiments of the present invention, the control module 20 is specifically used to determine that the switch device is in a closed state when the collected value of the temperature sensor is less than a preset value; and to determine that the switch device is in an off state when the collected value of the temperature sensor is greater than or equal to the preset value.
[0083] In some embodiments of the present invention, the control module 20 is specifically used to determine that the preset temperature value set of the temperature sensor is a first preset temperature value set when the switch device is in a closed state; and to determine that the preset temperature value set of the temperature sensor is a second preset temperature value set when the switch device is in an off state.
[0084] In some embodiments of the present invention, the first preset temperature value set includes multiple first temperature values, the second preset temperature value set includes multiple second temperature values, and the maximum temperature value among the multiple second temperature values is less than or equal to the minimum temperature value among the multiple first temperature values.
[0085] In some embodiments of the present invention, the minimum temperature value among the plurality of first temperature values is equal to a preset value.
[0086] In some embodiments of the present invention, the control module 20 is further configured to re-acquire the collected value of the temperature sensor at a preset time interval to update the collected temperature of the temperature sensor.
[0087] In some embodiments of the present invention, the temperature sensor is an NTC thermistor.
[0088] In summary, according to the control device of the single-interface detection circuit of the embodiment of the present invention, the switching device is connected in parallel with a preset resistor and then in series with the temperature sensor, and then the collection temperature of the temperature sensor is determined according to the collection value of the temperature sensor and the preset temperature value set through the control module. In this way, the detection circuit can use a single interface to meet the temperature detection and switch detection requirements, simplifying product design and reducing costs.
[0089] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0090] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0092] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0093] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0094] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0095] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0096] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A control method for a single interface detection circuit, characterized in that: The detection circuit includes a temperature sensor, a switch device and a preset resistor, wherein the switch device and the preset resistor are connected in parallel to form a branch, one end of the branch is connected to a port of a chip, the other end of the branch is connected to one end of the temperature sensor, and the other end of the temperature sensor is connected to a ground terminal of the chip, and the control method includes: Obtaining a collection value and a preset value of the temperature sensor; Determining the switching state of the switching device according to the collected value of the temperature sensor and the preset value; Determining a preset temperature value set of the temperature sensor according to the switching state of the switching device; The collected temperature of the temperature sensor is determined according to the collected value of the temperature sensor and the preset temperature value set.
2. The control method according to claim 1, characterized in that: The step of determining the switch state of the switch device according to the collected value of the temperature sensor and the preset value includes: When the collected value of the temperature sensor is less than the preset value, determining that the switch device is in a closed state; When the collected value of the temperature sensor is greater than or equal to the preset value, it is determined that the switch device is in the off state.
3. The control method according to claim 2, characterized in that: The step of determining a preset temperature value set of the temperature sensor according to the switching state of the switching device comprises: When the switch device is in the closed state, determining the preset temperature value set of the temperature sensor to be a first preset temperature value set; When the switch device is in the off state, the preset temperature value set of the temperature sensor is determined to be a second preset temperature value set.
4. The control method according to claim 3, characterized in that: The first preset temperature value set includes a plurality of first temperature values, the second preset temperature value set includes a plurality of second temperature values, and a maximum temperature value among the plurality of second temperature values is less than or equal to a minimum temperature value among the plurality of first temperature values.
5. The control method according to claim 4, characterized in that: The minimum temperature value among the plurality of first temperature values is equal to the preset value.
6. The control method according to any one of claims 1 to 5, characterized in that: The control method further comprises: The collected value of the temperature sensor is re-acquired at every preset time to update the collected temperature of the temperature sensor.
7. The control method according to any one of claims 1 to 5, characterized in that: The temperature sensor is an NTC thermistor.
8. A chip, characterized in that: The invention comprises a memory, a processor and a control program of a single interface detection circuit which is stored in the memory and can be run on the processor. When the processor executes the control program, a control method of a single interface detection circuit according to any one of claims 1 to 7 is implemented.
9. A household appliance, characterized in that: Comprising the chip as claimed in claim 8.
10. A control device for a single-interface detection circuit, characterized in that: The detection circuit includes a temperature sensor, a switch device and a preset resistor, wherein the switch device is connected in parallel with the preset resistor to form a branch, one end of the branch is connected to a port of the chip, the other end of the branch is connected to one end of the temperature sensor, and the other end of the temperature sensor is connected to a ground terminal of the chip, and the control device includes: An acquisition module, used to acquire the collected value and preset value of the temperature sensor; A control module is used to determine the switching state of the switching device according to the collected value of the temperature sensor and the preset value, and then determine the preset temperature value set of the temperature sensor according to the switching state of the switching device, and determine the collected temperature of the temperature sensor according to the collected value of the temperature sensor and the preset temperature value set.
