Control circuit, control debugging module and medical equipment

By introducing a reset control circuit into the control circuit, using the burning circuit to output the enable signal to trigger the shutdown, and output the reset signal within the preset time, the problem of low reset switching reliability in the prior art is solved, and the burning is improved The reliability of the process and the normal operation capability of the system.

CN118916208APending Publication Date: 2024-11-08WUHAN ZHONGKE IND RES INST OF MEDICAL SCI CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411283118.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing control circuit has low reliability when the program is burned, upgraded or debugged, which may cause program failure and affect system maintenance.

Method used

A control circuit including a controller, a watchdog circuit and a reset control circuit is designed. The reset control circuit is triggered by outputting the enable signal through the burning circuit, and the reset is output when no dog feeding signal is received within the preset time. Signal to ensure that the system switches to normal state after the burning is completed.

Benefits of technology

Improve the reliability of the burning process, prevent errors caused by inadequate opening and closing of the manual switch or poor contact, and ensure that the system is reset and operated normally in abnormal situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916208A_ABST
    Figure CN118916208A_ABST
Patent Text Reader

Abstract

The invention provides a control circuit, a control debugging module and a medical device.The control circuit comprises a controller, a watchdog circuit and a reset control circuit, during program burning, upgrading or debugging, the burning circuit is connected with the controller and the reset control circuit, the watchdog circuit outputs a first reset signal, the reset control circuit triggers turn-off, and the controller is connected with the controller; the watchdog circuit outputs a first reset signal, the first reset signal is not output to the controller, the controller normally burns a program and outputs a dog feeding signal, after burning is completed, the control circuit works normally, the reset control circuit is kept in a conducting state, and when the controller does not output the dog feeding signal within a preset time, the watchdog circuit outputs the first reset signal; by arranging the reset control circuit, normal burning work of the controller can be guaranteed during burning debugging, the burning reliability is improved, and the control logic and the structure are simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of medical technology, and in particular relates to a control circuit, a control and debugging module and a medical device. Background Art

[0002] The watchdog circuit is a timer circuit. When the program is running normally, the controller will periodically output a dog-feeding signal to the signal input end of the watchdog circuit, that is, clear the timer (commonly known as "feeding the dog"). The timer will not overflow to generate a reset signal to the reset end of the controller. When the controller program fails, the controller will no longer periodically output the dog-feeding signal. The watchdog circuit will overflow and generate a reset signal and reset the controller, restart the system, and prevent the system from working abnormally.

[0003] When burning, upgrading or debugging the program, it is necessary to ensure that the controller continues to work and cannot be reset midway, so the reset output of the watchdog needs to be turned off. After the program burning, upgrading or debugging is completed, the watchdog function needs to be turned on so that the watchdog can normally reset the controller when the system is abnormal to ensure normal operation of the system.

[0004] In the existing scheme, the watchdog reset control method mainly adopts manual method to cut off the connection between the watchdog circuit and the controller, and then manually reconnect it after the program burning, upgrading or debugging is completed. This method has low reliability and the possibility of unsuccessful switching. During the subsequent program optimization, it will cause the program burning, upgrading or debugging to fail, which is not conducive to the subsequent system maintenance. Summary of the invention

[0005] The object of the present invention is to provide a control circuit, aiming to solve the problem of low reliability of resetting and burning switching of the traditional control circuit.

[0006] A first aspect of an embodiment of the present invention provides a control circuit, including:

[0007] Controller, used to burn the program and output the dog feeding signal when connected to the burning circuit;

[0008] A watchdog circuit connected to the controller, the watchdog circuit being configured to trigger and output a first reset signal when the watchdog circuit fails to receive the dog feeding signal within a preset time;

[0009] A reset control circuit is connected between the watchdog circuit and the controller. The reset control circuit is triggered to shut down by an enable signal output by the burning circuit during burning. The reset control circuit maintains an on state when the enable signal output by the burning circuit is not received, so as to output the first reset signal to reset the controller.

[0010] Optionally, the reset control circuit includes:

[0011] A bias circuit, used for outputting a bias voltage;

[0012] A switch circuit, wherein the signal input end of the switch circuit is connected to the signal output end of the watchdog circuit, the signal output end of the switch circuit is connected to the reset end of the controller, the enable end of the switch circuit is connected to the bias circuit, the switch circuit is triggered to turn on by the bias voltage when the enable end does not receive the enable signal, and the switch circuit is triggered to turn off when the enable signal is input to the enable end, and the bias voltage and the enable signal are of opposite levels.

[0013] Optionally, the bias voltage includes a first bias voltage and a second bias voltage, and the bias circuit includes a first resistor and a first capacitor;

[0014] The first end of the first resistor is used to input a first bias voltage, the second end of the first resistor, the first end of the first capacitor and the enable end of the switching circuit are connected, the second end of the first capacitor is used to input a second bias voltage, the first bias voltage and the second bias voltage are of opposite levels, and the first bias voltage and the enable signal are of opposite levels.

[0015] Optionally, the reset control circuit further includes:

[0016] a first indication circuit connected to the signal input terminal of the switch circuit, wherein the first indication circuit is used to indicate an input state of the first reset signal;

[0017] The second indication circuit is connected to the signal output end of the switch circuit, and the second indication circuit is used to indicate the output state of the first reset signal.

[0018] Optionally, the watchdog circuit includes a timer, a power supply terminal of the timer is used to input a positive voltage, a signal input terminal of the timer is connected to a signal output terminal of the controller, and a signal output terminal of the timer is connected to a signal input terminal of the reset control circuit.

[0019] Optionally, the watchdog circuit further includes:

[0020] The reset circuit is connected to the reset terminal of the timer. The reset circuit is triggered to output a second reset signal to reset the timer.

[0021] Optionally, the reset circuit includes a button, a second resistor and a second capacitor;

[0022] The first end of the second resistor is connected to the power supply end of the timer, the second end of the second resistor, the first end of the button, the first end of the second capacitor and the reset end of the timer are connected, and the second end of the button and the second end of the second capacitor are grounded.

[0023] Optionally, the control circuit further includes:

[0024] The burning connector is connected to the reset control circuit and the controller respectively. The burning connector is also used to connect the burning circuit to burn the signal and transmit the enable signal.

[0025] A second aspect of an embodiment of the present invention provides a control and debugging module, including a burning circuit and the control circuit as described above, wherein the burning circuit is connected to the control circuit.

[0026] A third aspect of an embodiment of the present invention provides a medical device, comprising the control circuit as described above, or comprising the control and debugging module as described above.

[0027] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the above-mentioned control circuit includes a controller, a watchdog circuit and a reset control circuit. When the program is burned, upgraded or debugged, the burning circuit is connected to the controller and the reset control circuit, the watchdog circuit outputs a first reset signal, the reset control circuit triggers shutdown, the first reset signal is not output to the controller, the controller burns the program normally and outputs a dog feeding signal, after the burning is completed, the control circuit works normally, the reset control circuit maintains a conducting state, when the controller does not output a dog feeding signal within a preset time, the watchdog circuit outputs a first reset signal, and outputs it to the controller via the reset control circuit, and resets the controller, by setting the reset control circuit, the normal burning operation of the controller can be guaranteed during burning and debugging, the burning reliability is improved, and the control logic and structure are simple. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0029] Figure 1 A first structural schematic diagram of a control circuit provided in an embodiment of the present invention;

[0030] Figure 2 A second structural schematic diagram of a control circuit provided by an embodiment of the present invention;

[0031] Figure 3A third structural schematic diagram of a control circuit provided in an embodiment of the present invention;

[0032] Figure 4 A circuit diagram of a reset control circuit provided by an embodiment of the present invention;

[0033] Figure 5 A circuit diagram of a watchdog circuit provided by an embodiment of the present invention;

[0034] Figure 6 A circuit diagram of a controller provided by an embodiment of the present invention;

[0035] Figure 7 A fourth structural schematic diagram of a control circuit provided by an embodiment of the present invention;

[0036] Figure 8 A circuit diagram of a burning connector provided by an embodiment of the present invention;

[0037] Fig. 9 A schematic diagram of the structure of a control and debugging module provided in an embodiment of the present invention.

[0038] Among them, the reference numerals in the figures are:

[0039] 1. Control and debugging module; 100. Control circuit; 200. Burning circuit; 10. Controller; 20. Watchdog circuit; 30. Reset control circuit; 40. Burning connector; 31. Bias circuit; 32. Switch circuit; 33. First indication circuit; 34. Second indication circuit; 21. Reset circuit;

[0040] U1, same direction trigger; U2, timer; U3, single chip microcomputer; J1, JTAG burning interface; R1, first resistor; R2, second resistor; C1, first capacitor; C2, second capacitor; SW, button;

[0041] WDI, dog feeding signal; RESET, first reset signal; EN, enable signal; VCC, positive voltage. DETAILED DESCRIPTION

[0042] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0043] 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 one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0044] The embodiment of the present invention provides a control circuit 100 for implementing the reset and program burning operations of an internal controller 10 .

[0045] Among them, Figure 1 As shown, the control circuit 100 includes:

[0046] The controller 10 is used for burning the program and outputting the dog feeding signal WDI when connected to the burning circuit 200;

[0047] The watchdog circuit 20 is connected to the controller 10, and is used for triggering and outputting a first reset signal RESET when the watchdog circuit 20 does not receive the dog feeding signal WDI within a preset time;

[0048] The reset control circuit 30 is connected between the watchdog circuit 20 and the controller 10. The reset control circuit 30 is triggered to shut down by the enable signal EN output by the programming circuit 200 during programming. The reset control circuit 30 maintains the on state when not receiving the enable signal EN output by the programming circuit 200 to output the first reset signal RESET to reset the controller 10.

[0049] In this embodiment, when the dog feeding program has not been burned into the controller 10, the controller 10 will not output the dog feeding signal WDI to the watchdog circuit 20. The watchdog circuit 20 timer overflows and outputs the first reset signal RESET to the reset control circuit 30. At this time, since the reset control circuit 30 is not connected to the burning circuit 200, the reset control circuit 30 maintains the on state, and the first reset signal RESET is output to the controller 10 via the reset control circuit 30. After receiving the first reset signal RESET, the controller 10 resets and restarts the system to prevent the system from working abnormally.

[0050] When burning a program for the controller 10, the burning circuit 200 connects the controller 10 and the reset control circuit 30, the burning circuit 200 outputs an enable signal EN to the enable end of the reset control circuit 30, the reset control circuit 30 enables shutdown, the first reset signal RESET is cut off and output to the controller 10, the controller 10 and the burning circuit 200 perform the burning of the dog feeding program, and the burning of the related control program, and after the burning is completed, the burning circuit 200 is disconnected from the controller 10 and the reset control circuit 30, the controller 10 normally outputs the dog feeding signal WDI to the watchdog circuit 20, and the controller 10 can also normally output related control signals to other hardware circuits, so that the hardware circuits can realize the corresponding functions. At the same time, the reset control circuit 30 triggers the switch to the on state, and the watchdog circuit 20 turns on the watchdog function, so that when the system is abnormal, when the watchdog circuit 20 does not receive the dog feeding signal WDI within the preset time, the first reset signal RESET is normally output to reset the controller 10, so that the system can operate normally.

[0051] And when program upgrade or debugging is required, the burning circuit 200 connects the controller 10 and the reset control circuit 30 again, the burning circuit 200 outputs the enable signal EN to the enable end of the reset control circuit 30, the reset control circuit 30 is enabled and turned off, the first reset signal RESET is cut off and output to the controller 10, the controller 10 and the burning circuit 200 perform the burning work of upgrading the program or debugging the program, and after the program burning is completed, the burning circuit 200 is disconnected from the controller 10 and the reset control circuit 30, the controller 10 normally outputs the dog feeding signal WDI to the watchdog circuit 20, and at the same time, the reset control circuit 30 triggers the switch to the on state, and the watchdog circuit 20 turns on the watchdog function, so that when the system is abnormal, when the watchdog circuit 20 does not receive the dog feeding signal WDI within the preset time, it normally outputs the first reset signal RESET to reset the controller 10, so that the system can operate normally.

[0052] Among them, Figure 6 As shown, the controller 10 can be a microprocessor, a single-chip microcomputer U3, etc. for program burning and a structure that requires abnormal reset.

[0053] The reset control circuit 30 may adopt a corresponding switch structure, and be controlled to be turned on and off under different connection modes or different signal types. In an optional embodiment, for example Figure 2 As shown, the reset control circuit 30 includes:

[0054] A bias circuit 31, used for outputting a bias voltage;

[0055] The switch circuit 32 has a signal input terminal connected to a signal output terminal of the watchdog circuit 20, a signal output terminal of the switch circuit 32 connected to a reset terminal of the controller 10, an enable terminal of the switch circuit 32 connected to a bias circuit 31, and when the enable terminal of the switch circuit 32 does not receive an enable signal EN, the switch circuit 32 is triggered to turn on by the bias voltage, and when the enable terminal of the switch circuit 32 receives an enable signal EN, the switch circuit 32 is triggered to turn off, and the bias voltage and the enable signal EN are at opposite levels.

[0056] In this embodiment, the bias circuit 31 performs potential biasing. When the watchdog circuit 20 works normally, that is, when the burning circuit 200 is not connected to perform the burning program, the bias circuit 31 biases the enable end of the switch circuit 32 to the bias voltage. The bias voltage can be a high level or a low level. The bias voltage triggers the switch circuit 32 to turn on. When the controller 10 is abnormal or the program is not burned, the watchdog circuit 20 can normally output the first reset signal RESET to the controller 10.

[0057] When programming the controller 10, the programming circuit 200 connects the controller 10 and the switch circuit 32, and the programming circuit 200 outputs an enable signal EN to the enable end of the switch circuit 32. Since the enable signal EN is at an opposite level to the bias voltage, the switch circuit 32 is enabled and turned off, and the first reset signal RESET is cut off and output to the controller 10. The controller 10 and the programming circuit 200 perform the corresponding program programming work in the dog feeding program, the upgrade program and the debugging program, and after the programming is completed, the programming circuit 200 is disconnected from the controller 10 and the switch circuit 32, and the controller 10 normally outputs the dog feeding signal WDI to the watchdog circuit 20, and the controller 10 can also normally output related control signals to other hardware circuits, so that the hardware circuits can realize the corresponding functions. At the same time, the switch circuit 32 is triggered to switch to the on state under the control of the bias voltage, and the watchdog circuit 20 turns on the watchdog function, so that when the system is abnormal, when the watchdog circuit 20 does not receive the dog feeding signal WDI within the preset time, the first reset signal RESET is normally output to reset the controller 10, so that the system can operate normally.

[0058] The bias circuit 31 can be set according to the type of the switch circuit 32 and the level type of the enable signal EN. In an optional embodiment, Figure 4 As shown, the bias voltage includes a first bias voltage and a second bias voltage, and the bias circuit 31 includes a first resistor R1 and a first capacitor C1;

[0059] The first end of the first resistor R1 is used to input a first bias voltage, the second end of the first resistor R1, the first end of the first capacitor C1 and the enable end of the switch circuit 32 are connected, the second end of the first capacitor C1 is used to input a second bias voltage, the first bias voltage and the second bias voltage are at opposite levels, and the first bias voltage and the enable signal EN are at opposite levels.

[0060] When the enable signal EN is at a high level, the first bias voltage is at a low level, and the corresponding switch circuit 32 is turned on by a low level trigger and turned off by a high level trigger. Conversely, when the enable signal EN is at a low level, the first bias voltage is at a high level, and the corresponding switch circuit 32 is turned on by a high level trigger and turned off by a low level trigger.

[0061] In an optional embodiment, the first bias voltage is a positive voltage VCC, that is, a high level, the second bias voltage is a ground signal, that is, a low level, and the enable signal EN is a low level.

[0062] When the watchdog circuit 20 works normally, that is, when the burning circuit 200 is not connected to perform the burning program, the first resistor R1 biases the enable end of the switch circuit 32 to a high level, and the switch circuit 32 is triggered to turn on. When the controller 10 is abnormal or the program is not burned, the watchdog circuit 20 can normally output the first reset signal RESET to the controller 10.

[0063] When burning a program for the controller 10, the burning circuit 200 connects the controller 10 and the switch circuit 32, and the burning circuit 200 outputs a low-level enable signal EN to the enable end of the switch circuit 32, and the switch circuit 32 is enabled and turned off, and the first reset signal RESET is cut off and output to the controller 10, and the controller 10 and the burning circuit 200 perform the corresponding program burning work in the dog feeding program, the upgrade program and the debugging program, and after the burning is completed, the burning circuit 200 is disconnected from the controller 10 and the switch circuit 32, and the controller 10 normally outputs the dog feeding signal WDI to the watchdog circuit 20, and the controller 10 can also normally output related control signals to other hardware circuits, so that the hardware circuits can realize the corresponding functions. At the same time, the switch circuit 32 is triggered to switch to the on state under the control of the first bias voltage, and the watchdog circuit 20 turns on the watchdog function, so that when the system is abnormal, when the watchdog circuit 20 does not receive the dog feeding signal WDI within the preset time, it normally outputs the first reset signal RESET to reset the controller 10, so that the system can operate normally.

[0064] The switch circuit 32 may use a switch device with controlled on and off. In an optional embodiment, the switch circuit 32 includes a trigger and a controllable switch. The trigger may be a same-direction trigger U1, a reverse trigger, etc. The controllable switch may be a switch tube, a relay, etc., such as a triode, a MOS tube, etc. The corresponding type of relay and controllable switch may be selected according to the type of the bias voltage and the enable signal EN. For example, when the bias voltage is at a high level and the enable signal EN is at a low level, the trigger may be selected as follows: Figure 4 The same-direction trigger U1 shown, the controllable switch can be selected from NPN transistors, NMOS transistors, etc.

[0065] By using bias voltage and enable signal EN to control the on and off of the switch circuit 32, automatic switching of the switch during burning and normal operation and output control of the first reset signal RESET are achieved. Compared with the manual switch, the control convenience and reliability are improved, and problems such as inadequate on and off of the manual switch and poor contact can be prevented. When applied to the field of medical equipment, the safety of medical equipment and the reliability of medical operations can be improved.

[0066] Furthermore, in order to determine the input and output state of the first reset signal RESET to determine whether the switch circuit 32 is normally turned on and off, in an optional embodiment, as shown in FIG. Figure 3 As shown, the reset control circuit 30 also includes:

[0067] A first indication circuit 33 is connected to the signal input terminal of the switch circuit 32, and the first indication circuit 33 is used to indicate the input state of the first reset signal RESET;

[0068] The second indication circuit 34 is connected to the signal output terminal of the switch circuit 32 . The second indication circuit 34 is used to indicate the output state of the first reset signal RESET.

[0069] In this embodiment, when the switch circuit 32 inputs the first reset signal RESET, the first indication circuit 33 indicates corresponding indication information, and when the switch circuit 32 outputs the first reset signal RESET, the second switch circuit 32 indicates corresponding indication information. In an optional embodiment, the first indication circuit 33 and the second indication circuit 34 are LED lights. The LED lights of the first indication circuit 33 and the second indication circuit 34 display different brightness and / or colors to determine whether the switch circuit 32 is normally on and off.

[0070] For example, when the watchdog circuit 20 normally outputs the first reset signal RESET, the first indicator circuit 33 lights up, and when the burning circuit 200 is not connected, the switch circuit 32 is controlled to be turned on and outputs the first reset signal RESET. When the second indicator circuit 34 lights up, it indicates that the switch circuit 32 is normally turned on. When the second indicator circuit 34 does not light up, it indicates that the switch circuit 32 is abnormal. When the current signal light is identified, the operation of the relevant equipment can be stopped.

[0071] Furthermore, when the watchdog normally outputs the first reset signal RESET, the first indicator circuit 33 lights up, and when the burning circuit 200 is connected, the switch circuit 32 is controlled to be turned off and the output of the first reset signal RESET is stopped. When the second indicator circuit 34 does not light up, it indicates that the switch circuit 32 is turned off normally. When the second indicator circuit 34 lights up, it indicates that the switch circuit 32 is still in the on state and is not turned off normally. At this time, the operation of the relevant equipment can be stopped.

[0072] The watchdog circuit 20 can use a common watchdog. In an optional embodiment, Figure 5 As shown, the watchdog circuit 20 includes a timer U2, a power supply terminal of the timer U2 is used to input a positive voltage VCC, a signal input terminal of the timer U2 is connected to a signal output terminal of the controller 10, and a signal output terminal of the timer U2 is connected to a signal input terminal of the reset control circuit 30.

[0073] In this embodiment, the signal input end of the timer U2 is used to input the dog feeding signal WDI, and the signal output end of the timer U2 is used to output the first reset signal RESET. When the controller 10 is working normally, the controller 10 will periodically output the dog feeding signal WDI to the input end of the timer U2, that is, clear the timer U2, and the timer U2 will not overflow and stop generating the first reset signal RESET.

[0074] When the program of the controller 10 is abnormal, the controller 10 will not periodically output the dog feeding signal WDI, the timer U2 will overflow, and generate a first reset signal RESET to the reset control circuit 30. When the burning circuit 200 is not connected, the reset control circuit 30 is triggered to turn on. When the controller 10 is abnormal or the program is not burned, the timer U2 can normally output the first reset signal RESET to the controller 10.

[0075] When burning a program for the controller 10, the burning circuit 200 connects the controller 10 and the reset control circuit 30, the burning circuit 200 outputs an enable signal EN to the enable end of the reset control circuit 30, the reset control circuit 30 is enabled and turned off, and the first reset signal RESET output by the timer U2 is cut off and output to the controller 10, the controller 10 and the burning circuit 200 perform the corresponding program burning work in the dog feeding program, the upgrade program and the debugging program, and after the burning is completed, the burning circuit 200 is disconnected from the controller 10 and the switch circuit 32, the controller 10 normally outputs the dog feeding signal WDI to the timer U2, and the timer U2 turns on the watchdog function, so that when the system is abnormal, when the watchdog circuit 20 does not receive the dog feeding signal WDI within the preset time, it normally outputs the first reset signal RESET to reset the controller 10, so that the system can operate normally.

[0076] Among them, both the controller 10 and the timer U2 may be in an abnormal state. The controller 10 can be reset and restarted by the first reset signal RESET output by the timer U2, and the timer U2 needs to be provided with an additional reset circuit. In an optional embodiment, Figure 5 As shown, the watchdog circuit 20 further includes:

[0077] The reset circuit 21 is connected to the reset terminal MR of the timer U2. The reset circuit 21 is triggered to output a second reset signal to reset the timer U2.

[0078] When an abnormality occurs in the timer U2, that is, it is unable to time normally and output or cut off the output of the first reset signal RESET, the reset circuit 21 can be manually operated, and the reset circuit 21 outputs a second reset signal to reset the timer U2, thereby restoring the timer U2 to its initial state to complete normal timing and output control of the first reset signal RESET.

[0079] The reset circuit 21 can be a key SW, a touch screen, etc. In order to simplify the structure of the reset circuit 21, in an optional embodiment, as shown in FIG. Figure 5 As shown, the reset circuit 21 includes a button SW, a second resistor R2 and a second capacitor C2;

[0080] A first end of the second resistor R2 is connected to a power supply end of the timer U2, a second end of the second resistor R2, a first end of the button SW, a first end of the second capacitor C2 and a reset end MR of the timer U2 are connected, and a second end of the button SW and a second end of the second capacitor C2 are grounded.

[0081] In this embodiment, the second reset signal is a ground signal input to the second end of the button SW. When the button SW is pressed, the ground signal is output to the reset end MR of the timer U2 through the button SW, and the timer U2 is reset and restarted. The timer U2 is restored to its initial state. When the reset is completed, the button SW pops up, and the second resistor R2 acts as a potential bias and biases the reset end MR of the timer U2 to a high level to stop resetting.

[0082] In order to facilitate the connection of the burning circuit 200, in an optional embodiment, as Figure 7 As shown, the control circuit 100 further includes:

[0083] The burning connector 40 is connected to the reset control circuit 30 and the controller 10 respectively. The burning connector 40 is also used to connect the burning circuit 200 to burn the signal and transmit the enable signal EN.

[0084] In this embodiment, the bias circuit 31 performs potential biasing. When the watchdog circuit 20 works normally, that is, when the burning connector 40 is not connected to the burning circuit 200 for burning program, the reset control circuit 30 maintains the conductive state. When the controller 10 is abnormal or the program is not burned, the watchdog circuit 20 can normally output the first reset signal RESET to the controller 10.

[0085] When burning a program for the controller 10, the burning circuit 200 is connected to the burning connector 40, and then connected to the controller 10 and the switch circuit 32. The burning circuit 200 outputs an enable signal EN to the reset control circuit 30 through the burning connector 40. The reset control circuit 30 enables shutdown, and the first reset signal RESET is cut off and output to the controller 10. The controller 10 and the burning circuit 200 burn the corresponding programs in the dog feeding program, the upgrade program and the debugging program. After the burning is completed, the burning circuit 200 is disconnected from the burning connector 40.

[0086] The burning connector 40 can select different connector ports according to different burning modes, for example Figure 8 The JTAG burning interface J1 or the SMD burning interface shown, etc., correspondingly, the burning method can correspond to the JTAG burning method, the SMD burning method or other burning methods.

[0087] Compared with the prior art, the embodiment of the present invention has the following beneficial effects: the control circuit 100 includes a controller 10, a watchdog circuit 20 and a reset control circuit 30; when the program is burned, upgraded or debugged, the burning circuit 200 is connected to the controller 10 and the reset control circuit 30; the watchdog circuit 20 outputs a first reset signal RESET; the reset control circuit 30 triggers shutdown; the first reset signal RESET is not output to the controller 10; the controller 10 burns the program normally and outputs a dog-feeding signal WDI; after the burning is completed, the control circuit 100 works normally; the reset control circuit 30 maintains a conducting state; when the controller 10 does not output the dog-feeding signal WDI within a preset time, the watchdog circuit 20 outputs a first reset signal RESET, and outputs it to the controller 10 via the reset control circuit 30, and resets the controller 10; by setting the reset control circuit 30, the normal burning operation of the controller 10 can be guaranteed during burning and debugging, the burning reliability is improved, and the control logic and structure are simple.

[0088] The present invention also provides a control and debugging module 1, such as Fig. 9 As shown, the control and debugging module 1 includes a burning circuit 200 and a control circuit 100. The specific structure of the control circuit 100 refers to the above embodiment. Since the control and debugging module 1 adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here. Among them, the burning circuit 200 is connected to the control circuit 100.

[0089] In this embodiment, the burning circuit 200 can be used to burn dog feeding programs, upgrade programs, debugging programs, control programs, etc., so that the control circuit 100 has the control function of the controller 10 circuit work, self-restart and reset, upgrade, and debugging functions.

[0090] The present invention also proposes a medical device, which includes a control circuit 100 or a control and debugging module 1. The specific structure of the control circuit 100 or the control and debugging module 1 refers to the above-mentioned embodiment. Since the medical device adopts all the technical solutions of all the above-mentioned embodiments, it has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described one by one here.

[0091] In this embodiment, the medical device adopts the above-mentioned control circuit 100 or control debugging module 1. When the program is burned, upgraded or debugged, the normal program burning, upgrading and debugging of the internal controller 10 can be realized to prevent the controller 10 from being reset repeatedly. At the same time, after stopping the burning, it can switch to the normal watchdog function to improve the burning reliability, and the control logic and structure are simple.

[0092] In addition, the control circuit 100 or the control and debugging module 1 adopts an electrically controlled reset control circuit 30, which improves the control convenience and reliability compared to the manual switch, and can prevent problems such as the manual switch not being in place or poor contact. When applied to the field of medical equipment, it can improve the safety of medical equipment and the reliability of medical operations.

[0093] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A control circuit, It is characterized in that include: A controller (10) is used to burn a program and output a dog feeding signal when connected to a burning circuit (200); A watchdog circuit (20) connected to the controller (10), the watchdog circuit (20) being configured to trigger output of a first reset signal when the watchdog circuit (20) fails to receive the dog feeding signal within a preset time; A reset control circuit (30) is connected between the watchdog circuit (20) and the controller (10). The reset control circuit (30) is triggered to shut down by an enable signal output by the programming circuit (200) during programming. When the reset control circuit (30) does not receive the enable signal output by the programming circuit (200), it maintains a conducting state to output the first reset signal to reset the controller (10).

2. The control circuit according to claim 1, It is characterized in that The reset control circuit (30) comprises: A bias circuit (31) for outputting a bias voltage; A switch circuit (32), wherein a signal input end of the switch circuit (32) is connected to a signal output end of the watchdog circuit (20), a signal output end of the switch circuit (32) is connected to a reset end of the controller (10), and an enable end of the switch circuit (32) is connected to the bias circuit (31); when the enable end does not receive the enable signal, the switch circuit (32) is triggered to turn on by the bias voltage, and when the enable end receives the enable signal, the switch circuit (32) is triggered to turn off, and the bias voltage and the enable signal are at opposite levels.

3. The control circuit according to claim 2, It is characterized in that The bias voltage includes a first bias voltage and a second bias voltage, and the bias circuit (31) includes a first resistor (R1) and a first capacitor (C1); The first end of the first resistor (R1) is used to input a first bias voltage, the second end of the first resistor (R1), the first end of the first capacitor (C1) and the enable end of the switch circuit (32) are connected, the second end of the first capacitor (C1) is used to input a second bias voltage, the first bias voltage and the second bias voltage are of opposite levels, and the first bias voltage and the enable signal are of opposite levels.

4. The control circuit according to claim 2, It is characterized in that The reset control circuit (30) further includes: A first indication circuit (33) connected to a signal input terminal of the switch circuit (32), the first indication circuit (33) being used to indicate an input state of the first reset signal; The second indicating circuit (34) is connected to the signal output end of the switch circuit (32), and the second indicating circuit (34) is used to indicate the output state of the first reset signal.

5. The control circuit according to claim 1, It is characterized in that The watchdog circuit (20) comprises a timer (U2), a power supply end of the timer (U2) being used to input a positive voltage, a signal input end of the timer (U2) being connected to a signal output end of the controller (10), and a signal output end of the timer (U2) being connected to a signal input end of the reset control circuit (30).

6. The control circuit according to claim 5, It is characterized in that The watchdog circuit (20) further comprises: The reset circuit (21) is connected to the reset end of the timer (U2), and the reset circuit (21) outputs a second reset signal when triggered to reset the timer.

7. The control circuit according to claim 6, It is characterized in that The reset circuit (21) comprises a button (SW), a second resistor (R2) and a second capacitor (C2); The first end of the second resistor (R2) is connected to the power supply end of the timer (U2), the second end of the second resistor (R2), the first end of the button (SW), the first end of the second capacitor (C2) and the reset end of the timer (U2) are connected, and the second end of the button and the second end of the second capacitor are grounded.

8. The control circuit according to claim 1, It is characterized in that The control circuit (100) further includes: The burning connector (40) is connected to the reset control circuit (30) and the controller (10) respectively. The burning connector (40) is also used to connect to the burning circuit (200) to burn the signal and transmit the enable signal.

9. A control and debugging module, It is characterized in that It comprises a burning circuit (200) and a control circuit (100) according to any one of claims 1 to 8, wherein the burning circuit (200) is connected to the control circuit (100).

10. A medical device, It is characterized in that It comprises the control circuit (100) as claimed in any one of claims 1 to 8, or comprises the control and debugging module (1) as claimed in claim 9.

Citation Information

Cited By

  • SOC forced downloading control circuit and method for vehicle-mounted electronic product

    CN121187165A