A microcontroller operating state monitoring system
By combining components such as a three-channel voltage monitoring module, a watchdog timer module, and a reset level duration control module, a microcontroller operation status monitoring system was designed. The system utilizes both chips and discrete components to form the monitoring system, solving the problem of excessive reliance on the number of chips and achieving reliable monitoring results.
Patent Information
- Application Number
- CN202311224406.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-19
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-09-19
AI Technical Summary
Existing microcontroller operation status monitoring systems are overly reliant on the number of chips, leading to a decline in system performance when chip supply is limited or reserves are insufficient.
Design a microcontroller operation status monitoring system. By combining a three-channel voltage monitoring module, a watchdog timer module, a reset level duration control module, and an OTP storage module, the monitoring system is constructed using both chips and discrete components, thereby reducing the number of chips.
Under both normal and abnormal signal conditions, the reset level duration control module changes its state, enabling reliable monitoring, reducing the number of chips, and solving the problem of over-reliance on the number of chips.
Smart Images

Figure CN117251339B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microcontrollers, and more particularly to a microcontroller operation status monitoring system. Background Technology
[0002] As a core component of electronic devices, microcontrollers have relatively low hardware costs, providing a favorable market space for domestic manufacturers. To ensure the normal operation of microcontrollers, their peripheral circuitry needs to play a status monitoring role. This status monitoring requires the configuration of multiple chips to ensure reliable monitoring results and prevent the microcontroller from continuing to operate when it should be shut down due to false alarms.
[0003] However, when chip supply is limited or chip reserves are insufficient, the performance of the monitoring system built by engineers will be compromised, causing the existing monitoring system to be overly dependent on the number of chips. Summary of the Invention
[0004] The technical problem to be solved by this invention is: how to design a microcontroller operation status monitoring system. Its advantage is that the monitoring system is composed of chips and discrete devices, which reduces the number of chips in the monitoring system and solves the problem of over-reliance on the number of chips in the scenario of monitoring microcontrollers.
[0005] To address the aforementioned problems, this invention provides a microcontroller operation status monitoring system. In a first aspect, this invention provides a microcontroller operation status monitoring system comprising: a three-channel voltage monitoring module, a watchdog timer module, a reset level duration control module, and an OTP storage module; the three-channel voltage monitoring module is connected to the reset level duration control module and the OTP storage module respectively; the watchdog timer module is connected to the reset level duration control module and the OTP storage module respectively; the reset level duration control module is connected to the OTP storage module; the reset level duration control module receives a first signal sent by the three-channel voltage monitoring module and a second signal sent by the watchdog timer module respectively; when both the first and second signals are normal signals, the state of the reset level duration control module remains unchanged; when at least one of the first and second signals is abnormal, the state of the reset level duration control module changes.
[0006] A further technical solution is that the microcontroller operation status monitoring system further includes a power-on timing control module, which is connected to the OTP storage module; when at least one of the first signal and the second signal is an abnormal signal, after the state of the reset level duration control module changes, the power-on timing control module reads timing parameters and logic values from the OTP storage module, and outputs a logic status signal based on the timing parameters and the logic values.
[0007] A further technical solution is that the three-channel voltage monitoring module includes a reference voltage source unit, a first adjustable potentiometer, a second adjustable potentiometer, a third adjustable potentiometer, a first comparison unit, a second comparison unit, a third comparison unit, and a three-input AND gate unit; the reference voltage source unit is connected to the first comparison unit, the second comparison unit, and the third comparison unit respectively; the first adjustable potentiometer is connected to the first comparison unit, the second adjustable potentiometer is connected to the second comparison unit, and the third adjustable potentiometer is connected to the third comparison unit; the three-input AND gate unit is connected to the first comparison unit, the second comparison unit, the third comparison unit, and the reset level duration control module respectively; the OTP storage module is connected to the first adjustable potentiometer, the second adjustable potentiometer, and the third adjustable potentiometer respectively.
[0008] A further technical solution is that the watchdog timing module includes a first clock source unit, a first numerically controlled frequency divider, a second numerically controlled frequency divider, and a reload counter; the first clock source unit is connected to the first numerically controlled frequency divider, the first numerically controlled frequency divider is connected to the second numerically controlled frequency divider, the second numerically controlled frequency divider is connected to the reload counter, and the reload counter is connected to the reset level duration control module; the OTP storage module is connected to the first numerically controlled frequency divider, the second numerically controlled frequency divider, and the reload counter respectively.
[0009] A further technical solution is that the first digitally controlled frequency divider is an eight-bit digitally controlled frequency divider, the second digitally controlled frequency divider is an eight-bit digitally controlled frequency divider, and the heavy-load counter is a sixteen-bit heavy-load counter.
[0010] A further technical solution is that the reset level duration control module includes a second clock source unit, a frequency divider unit, a first numerically controlled counter, and a first output drive unit; the second clock source unit is connected to the frequency divider unit, the frequency divider unit is connected to the first numerically controlled counter, and the first numerically controlled counter is connected to the first output drive unit; the first numerically controlled counter is connected to the three-channel voltage monitoring module, the watchdog timer module, and the OTP storage module respectively, and the first output drive unit is connected to the OTP storage module.
[0011] A further technical solution is that the first numerically controlled counter is an eight-bit first numerically controlled counter, and the frequency division unit is a 256 frequency divider.
[0012] A further technical solution is that the power-on timing control module includes a third clock source unit, a second numerically controlled counter, a timing controller, and a second output drive unit; the third clock source unit is connected to the second numerically controlled counter, the second numerically controlled counter is connected to the timing controller, and the timing controller is connected to the second output drive unit; the second output drive unit is connected to a first output terminal, a second output terminal, and a third output terminal respectively; the OTP storage module is connected to the second numerically controlled counter, the timing controller, and the second output drive unit respectively.
[0013] A further technical solution is that, among the three voltage sources connected to the first adjustable potentiometer, the second adjustable potentiometer, and the third adjustable potentiometer, the maximum voltage value output by the three voltage sources is the upper limit voltage value, and the upper limit voltage value multiplied by a preset ratio is the lower limit voltage value; the reference voltage value of the reference voltage source unit is determined by a first ratio between the reference voltage value and the lower limit voltage value being greater than or equal to a second ratio between the voltage divider value and the upper limit voltage value.
[0014] In the prior art, in order to ensure the normal operation of the microcontroller, the peripheral circuit of the microcontroller needs to play the role of status monitoring. This status monitoring requires the configuration of multiple chips to ensure that the monitoring results are reliable and that the microcontroller will not continue to run when it needs to be shut down due to false alarms. This application solves the above problems. When both the first signal and the second signal are normal signals, the state remains unchanged. If either of them has an abnormal signal, the state of the reset level duration control module changes. The chip and discrete components together constitute the monitoring system, reducing the number of chips in the monitoring system and solving the current situation of over-reliance on the number of chips in the scenario of monitoring microcontrollers. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is an overall block diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0017] Figure 2 This is a partial block diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0018] Figure 3 This is another partial block diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0019] Figure 4 This is another partial block diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0020] Figure 5 This is another partial block diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0021] Figure 6 This is another partial block diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0022] Figure 7 This is a partial waveform diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0023] Figure 8 This is another partial waveform diagram of the microcontroller operation status monitoring system according to an embodiment of the present invention.
[0024] Figure Labels
[0025] The system includes a three-channel voltage monitoring module 10, a voltage source unit 11, a first adjustable potentiometer 12a, a second adjustable potentiometer 12b, a third adjustable potentiometer 12c, a first comparison unit 13a, a second comparison unit 13b, a third comparison unit 13c, and a three-input AND gate unit 14.
[0026] Watchdog timer module 20, first clock source unit 21, first numerically controlled frequency divider 22a, second numerically controlled frequency divider 22b, heavy-load counter 23;
[0027] The system includes a reset level duration control module 30, a second clock source unit 31, a frequency divider unit 32, a first numerically controlled counter 33, and a first output drive unit 34.
[0028] OTP storage module 40, power-on timing control module 50, third clock source unit 51, second numerical control counter 52, timing controller 53, second output drive unit 54, first output terminal 55a, second output terminal 55b, third output terminal 55c. Detailed Implementation
[0029] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Similar component reference numerals in the drawings represent similar components. Obviously, the embodiments described below are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0030] It should be understood that the terminology used in this specification of embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of the invention. As used in this specification of embodiments of the invention and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0031] Example
[0032] See Figures 1-8 This invention provides a microcontroller operation status monitoring system. The microcontroller operation status monitoring system is connected to the pins of the chip. The system includes: a three-channel voltage monitoring module 10, a watchdog timer module 20, a reset level duration control module 30, and an OTP storage module 40. The three-channel voltage monitoring module 10 is connected to the reset level duration control module 30 and the OTP storage module 40, respectively. The watchdog timer module 20 is connected to the reset level duration control module 30 and the OTP storage module 40, respectively. The reset level duration control module 30 is connected to the OTP storage module 40.
[0033] In the above scheme, the reset level duration control module 30 receives a first signal from the three-channel voltage monitoring module 10 and a second signal from the watchdog timer module 20. When both the first and second signals are normal, the state of the reset level duration control module 30 remains unchanged. When at least one of the first and second signals is abnormal, the state of the reset level duration control module 30 changes. The change in the state of the reset level duration control module 30 is used to monitor the microcontroller's operating status. The OTP storage module 40 contains a controller; different configurations can be programmed into the OTP storage module 40.
[0034] The technical effect of the above solution is that the state remains unchanged when both the first signal and the second signal are normal signals, and the state of the reset level duration control module changes when one of them has an abnormal signal. The chip and discrete components together constitute the monitoring system, which reduces the number of chips in the monitoring system and can solve the current situation of over-reliance on the number of chips in the scenario of monitoring microcontroller.
[0035] Furthermore, the microcontroller operation status monitoring system also includes a power-on timing control module 50, which is connected to the OTP storage module 40. When at least one of the first signal and the second signal is abnormal, after the state of the reset level duration control module 30 changes, the power-on timing control module 50 reads timing parameters and logic values from the OTP storage module 40, and outputs a logic status signal based on the timing parameters and the logic values.
[0036] The timing parameter is time T, see details below. Figure 7 as well as Figure 8 The logical value includes 0 or 1, as is known in the art; the logical state signal can be a digital signal. The specific method of outputting the logical state signal based on the timing parameters and the logical value is known to those skilled in the art. In one embodiment, the third clock source unit 51 is connected to the second numerically controlled counter 52, the second numerically controlled counter 52 is connected to the timing controller 53, the timing controller 53 is connected to the second output drive unit 54, and the second output drive unit 54 includes a first output terminal, a second output terminal, and a third output terminal; furthermore, the first output terminal, the second output terminal, and the third output terminal are all connected to pins of the chip.
[0037] Its beneficial effect is that, after the chip power supply stabilizes, the reset level duration control module 30 reads the required timing duration T and the output logic (high level or low level) from the OTP storage module 40, and then starts timing. After one counting cycle T ends, the first output terminal outputs the corresponding logic (high level or low level). After another time T, the second output terminal outputs the corresponding logic. After another time T, the third output terminal outputs the corresponding logic. Further, see... Figures 7-8 The external circuit will be connected to the switching pins of three different power chips. When the power chips are turned on, they supply power to the CPU. This results in three different power-on sequences for the CPU: first the first output terminal, then the second output terminal, and then the third output terminal.
[0038] Furthermore, the three-channel voltage monitoring module 10 of the microcontroller operation status monitoring system includes a reference voltage source unit 11, a first adjustable potentiometer 12a, a second adjustable potentiometer 12b, a third adjustable potentiometer 12c, a first comparison unit 13a, a second comparison unit 13b, a third comparison unit 13c, and a three-input AND gate unit 14; the reference voltage source unit 11 is connected to the first comparison unit 13a, the second comparison unit 13b, and the third comparison unit 13c respectively; the first adjustable potentiometer 12a is connected to the first... The comparison unit 13a is connected, the second adjustable potentiometer 12b is connected to the second comparison unit 13b, and the third adjustable potentiometer 12c is connected to the third comparison unit 13c; the three-input AND gate unit 14 is connected to the first comparison unit 13a, the second comparison unit 13b, the third comparison unit 13c, and the reset level duration control module 30, respectively; the OTP storage module 40 is connected to the first adjustable potentiometer 12a, the second adjustable potentiometer 12b, and the third adjustable potentiometer 12c, respectively.
[0039] See details Figure 2 The circuit system includes a microprocessor. The first adjustable potentiometer 12a receives a first voltage to be detected sent by the circuit system, the second adjustable potentiometer 12b receives a second voltage to be detected sent by the circuit system, and the third adjustable potentiometer 12c receives a third voltage to be detected sent by the circuit system. In one embodiment, the voltage source unit 11 can be a 1.25V voltage reference source. When any one of the first, second, or third voltages to be detected drops, the voltage division value of that path will be lower than the 1.25V reference, causing the output of the three-input AND gate unit 14 to go low.
[0040] In the above scheme, the first adjustable potentiometer 12a, the second adjustable potentiometer 12b, and the third adjustable potentiometer 12c can be potentiometers, the first comparison unit 13a, the second comparison unit 13b, and the third comparison unit 13c can be comparators, and the three-input AND gate unit 14 can be an AND gate.
[0041] Further, see Figure 3 The watchdog timing module 20 of the microcontroller operation status monitoring system includes a first clock source unit 21, a first numerically controlled frequency divider 22a, a second numerically controlled frequency divider 22b, and a reload counter 23. The first clock source unit 21 is connected to the first numerically controlled frequency divider 22a, the first numerically controlled frequency divider 22a is connected to the second numerically controlled frequency divider 22b, the second numerically controlled frequency divider 22b is connected to the reload counter 23, and the reload counter 23 is connected to the reset level duration control module 30.
[0042] Furthermore, in this microcontroller operation status monitoring system, the first CNC frequency divider 22a is an eight-bit CNC frequency divider, the second CNC frequency divider 22b is an eight-bit CNC frequency divider, and the reload counter 23 is a sixteen-bit reload counter 23. In the above scheme, the timing duration of the reload counter 23 can be a minimum of 30µs and a maximum of 35.5 hours to meet the needs of various application scenarios.
[0043] Furthermore, the reset level duration control module 30 of the microcontroller operation status monitoring system includes a second clock source unit 31, a frequency divider unit 32, a first numerically controlled counter 33, and a first output drive unit 34; the second clock source unit 31 is connected to the frequency divider unit 32, the frequency divider unit 32 is connected to the first numerically controlled counter 33, and the first numerically controlled counter 33 is connected to the first output drive unit 34; the first numerically controlled counter 33 is connected to the three-channel voltage monitoring module 10, the watchdog timer module 20, and the OTP storage module 40 respectively, and the first output drive unit 34 is connected to the OTP storage module 40.
[0044] Among them, see Figure 4 and Figure 8 The second clock source unit 31 can be a 32768Hz clock source, the frequency divider unit 32 can be a fixed 256 frequency divider with a division value of 256, and the first numerically controlled counter 33 can be an 8-bit counter. The first numerically controlled counter 33 receives signals from the watchdog timer module 20 and also receives signals from the OTP storage module 40. When any of the above signals are received, the first output drive unit 34 becomes active, and the first numerically controlled counter 33 starts counting. After the first numerically controlled counter 33 reaches its count value, the first output drive unit 34 returns to its initial state. The specific output logic of the above process can be found in [reference needed]. Figure 8 As shown.
[0045] Furthermore, the power-on timing control module 50 of the microcontroller operation status monitoring system includes a third clock source unit 51, a second numerical control counter 52, a timing controller 53, and a second output drive unit 54; the third clock source unit 51 is connected to the second numerical control counter 52, the second numerical control counter 52 is connected to the timing controller 53, and the timing controller 53 is connected to the second output drive unit 54; the second output drive unit 54 is connected to a first output terminal 55a, a second output terminal 55b, and a third output terminal 55c respectively; the OTP storage module 40 is connected to the second numerical control counter 52, the timing controller 53, and the second output drive unit 54 respectively.
[0046] In the above scheme, the first output driving unit 34 is connected to a pin of the chip; the connection between the entire microcontroller operation status monitoring system and the chip involves a total of four pins of the chip. Specifically, the first output driving unit 34 of the reset level duration control module 30 is connected to one pin of the chip; the second output driving unit 54 of the power-on timing control module 50 is connected to three pins of the chip, namely, the first output terminal 55a, the second output terminal 55b, and the third output terminal 55c are respectively connected to three pins of the chip.
[0047] Among them, see Figure 6 The third clock source unit 51 is a 32768Hz clock source, the second numerically controlled counter 52 is an 8-bit counter, and the second output driver unit 54, i.e., the output driver, can realize three outputs, including output 1, output 2, and output 3. (Continue to see...) Figure 5 and Figure 7 After the power supply stabilizes, i.e., after the third clock source unit 51 stabilizes, the second numerically controlled counter 52 starts working and outputs the set level after the time T set by the second numerically controlled counter 52 is reached. In one embodiment, see [details omitted]. Figure 7 The output logic of the first output terminal 55a, the second output terminal 55b, and the third output terminal 55c is displayed when the level is set to high. The time T is configured and its value ranges from a minimum of 30us to a maximum of 7.6ms.
[0048] Furthermore, among the three voltage sources connected to the first adjustable potentiometer 12a, the second adjustable potentiometer 12b, and the third adjustable potentiometer 12c of the microcontroller operation status monitoring system, the maximum voltage value output by the three voltage sources is the upper limit voltage value, and the upper limit voltage value multiplied by a preset ratio is the lower limit voltage value; the reference voltage value of the reference voltage source unit 11 is determined by a first ratio between the reference voltage value and the lower limit voltage value being greater than or equal to a second ratio between the voltage divider value and the upper limit voltage value. The construction method of the reference voltage source unit 11 is known in the art; for example, it can be output by constructing a circuit, including but not limited to transistors, MOSFETs, or resistors.
[0049] In one embodiment, the maximum voltage output of the three voltage sources is an upper limit voltage of 5.0V. Multiplying the upper limit voltage by a preset ratio of 92% yields a lower limit voltage of 4.6V. The reference voltage value of the reference voltage source unit 11 is determined as follows: a first ratio between the reference voltage value and the lower limit voltage of 4.6V is greater than or equal to a second ratio between the voltage divider value of 1.367 and the upper limit voltage of 5.0V, which is 0.2734. The first adjustable potentiometer 12a, the second adjustable potentiometer 12b, and the third adjustable potentiometer 12c are all 128 taps, meaning the minimum adjustable voltage is 1 / 128 of a voltage divider. Each scale division of 5.0V by 128 equals 0.039V; therefore, a 32 / 128 voltage divider yields 1.25V or 1.248V; further, a 34 / 128 voltage divider yields 1.328V, and a 35 / 128 voltage divider yields 1.367V. Calculations show that the reference voltage value is greater than or equal to 1.257V.
[0050] In one embodiment, the maximum voltage output of the three voltage sources is an upper limit voltage of 5.0V. The upper limit voltage multiplied by a preset ratio of 92% is a lower limit voltage of 4.6V. The reference voltage value of the reference voltage source unit 11 is determined as follows: a first ratio between the reference voltage value and the lower limit voltage of 4.6V is greater than or equal to a first ratio of a second ratio between the voltage divider value of 1.367 and the upper limit voltage of 5.0V; the first ratio is 99%. Calculations show that the reference voltage value is greater than or equal to 1.257V. Calculations also show that the reference voltage value is greater than or equal to 1.245V.
[0051] In one embodiment, the maximum voltage output of the three voltage sources is an upper limit voltage of 5.0V. The upper limit voltage multiplied by a preset ratio of 92% is a lower limit voltage of 4.6V. The reference voltage value of the reference voltage source unit 11 is determined as follows: a first ratio between the reference voltage value and the lower limit voltage of 4.6V is greater than or equal to a second ratio between the voltage divider value of 1.367 and the upper limit voltage of 5.0V; the second ratio is 98%. Calculations show that the reference voltage value is greater than or equal to 1.257V. Calculations also show that the reference voltage value is greater than or equal to 1.232V.
[0052] As a core component of electronic devices, microcontrollers have relatively low hardware costs, providing a favorable market space for domestic manufacturers. To ensure the normal operation of microcontrollers, their peripheral circuitry needs to play a status monitoring role. This status monitoring requires the configuration of multiple chips to ensure reliable monitoring results and prevent the microcontroller from continuing to operate when it should be shut down due to false alarms.
[0053] To ensure the normal and reliable operation of a microcontroller, its peripheral circuitry needs to include power supply voltage monitoring circuitry, watchdog circuitry, and external reset circuitry. System power-on sequence control may also be required in some cases. Currently, these circuits and chips on the market exist primarily to fulfill a single function or are designed for a specific microcontroller. There is no universal single chip that can meet the needs of all users. If a user needs to use multiple microcontroller models, they may need to prepare multiple chips, which is inconvenient for material management. Furthermore, it may not be possible to purchase chips that meet the user's specific requirements on the market, necessitating the use of discrete components to build the circuit independently.
[0054] This application solves the above-mentioned problems. The solution of this application remains unchanged when both the first signal and the second signal are normal signals. If either of them has an abnormal signal, the state of the reset level duration control module changes. The chip and discrete components together constitute the monitoring system, which reduces the number of chips in the monitoring system and can solve the current situation of over-reliance on the number of chips in the scenario of monitoring microcontroller.
[0055] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0056] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0057] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0058] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0059] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. The illustrative expressions of the above terms in this specification should not be construed as necessarily referring to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.
[0060] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.
[0061] The above description describes specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A microcontroller operation status monitoring system, characterized in that, The microcontroller operation status monitoring system includes: The system comprises a three-channel voltage monitoring module, a watchdog timer module, a reset level duration control module, and an OTP storage module; the three-channel voltage monitoring module is connected to the reset level duration control module and the OTP storage module respectively; the watchdog timer module is connected to the reset level duration control module and the OTP storage module respectively; and the reset level duration control module is connected to the OTP storage module. The reset level duration control module receives a first signal sent by the three voltage monitoring modules and a second signal sent by the watchdog timer module. When both the first and second signals are normal signals, the state of the reset level duration control module remains unchanged. When at least one of the first and second signals is abnormal, the state of the reset level duration control module changes. The three-channel voltage monitoring module includes a reference voltage source unit, a first adjustable potentiometer, a second adjustable potentiometer, a third adjustable potentiometer, a first comparison unit, a second comparison unit, a third comparison unit, and a three-input AND gate unit. The reference voltage source unit is connected to the first comparison unit, the second comparison unit, and the third comparison unit, respectively. The first adjustable potentiometer is connected to the first comparison unit, the second adjustable potentiometer is connected to the second comparison unit, and the third adjustable potentiometer is connected to the third comparison unit. The three-input AND gate unit is connected to the first comparison unit, the second comparison unit, the third comparison unit, and the reset level duration control module, respectively. The OTP storage module is connected to the first adjustable potentiometer, the second adjustable potentiometer, and the third adjustable potentiometer, respectively. The watchdog timer module includes a first clock source unit, a first numerically controlled frequency divider, a second numerically controlled frequency divider, and a reload counter; the first clock source unit is connected to the first numerically controlled frequency divider, the first numerically controlled frequency divider is connected to the second numerically controlled frequency divider, the second numerically controlled frequency divider is connected to the reload counter, and the reload counter is connected to the reset level duration control module; the OTP storage module is connected to the first numerically controlled frequency divider, the second numerically controlled frequency divider, and the reload counter respectively; The reset level duration control module includes a second clock source unit, a frequency divider unit, a first numerically controlled counter, and a first output drive unit; the second clock source unit is connected to the frequency divider unit, the frequency divider unit is connected to the first numerically controlled counter, and the first numerically controlled counter is connected to the first output drive unit; the first numerically controlled counter is connected to the three-channel voltage monitoring module, the watchdog timer module, and the OTP storage module respectively, and the first output drive unit is connected to the OTP storage module.
2. The microcontroller operation status monitoring system according to claim 1, characterized in that: The microcontroller operation status monitoring system also includes a power-on timing control module, which is connected to the OTP storage module. When at least one of the first signal and the second signal is abnormal, after the state of the reset level duration control module changes, the power-on timing control module reads timing parameters and logic values from the OTP storage module and outputs a logic status signal based on the timing parameters and logic values.
3. The microcontroller operation status monitoring system according to claim 1, characterized in that: The first CNC frequency divider is an eight-bit CNC frequency divider, the second CNC frequency divider is an eight-bit CNC frequency divider, and the overload counter is a sixteen-bit overload counter.
4. The microcontroller operation status monitoring system according to claim 1, characterized in that: The first numerically controlled counter is an eight-bit first numerically controlled counter, and the frequency division unit is a 256 frequency divider.
5. The microcontroller operation status monitoring system according to claim 2, characterized in that: The power-on timing control module includes a third clock source unit, a second numerical control counter, a timing controller, and a second output drive unit; The third clock source unit is connected to the second numerically controlled counter, the second numerically controlled counter is connected to the timing controller, and the timing controller is connected to the second output drive unit; The second output driving unit is connected to the first output terminal, the second output terminal, and the third output terminal respectively; the OTP storage module is connected to the second numerical control counter, the timing controller, and the second output driving unit respectively.
6. The microcontroller operation status monitoring system according to claim 1, characterized in that: Among the three voltage sources connected to the first adjustable potentiometer, the second adjustable potentiometer, and the third adjustable potentiometer, the maximum voltage value output by the three voltage sources is the upper limit voltage value, and the upper limit voltage value multiplied by a preset ratio is the lower limit voltage value. The reference voltage value of the reference voltage source unit is determined by a first ratio between the reference voltage value and the lower limit voltage value, which is greater than or equal to a second ratio between the voltage divider value and the upper limit voltage value.
Citation Information
Patent Citations
Microprocessor-controlled circuit breaker and system
CA2010491A1
Microprocessor reset with power level detection and watchdog timer
US4586179A
