Control circuit and method, embedded device, electronic device and storage medium

By designing the switching module and signal generation module on the embedded CPU, and switching the enable state of the IO pin by resetting the signal, the problem of waste of IO pin resources is solved, and the multiplexing and saving of IO pins is achieved.

CN118963516AInactive Publication Date: 2024-11-15ZHUHAI FEISEN POWER TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411434658.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During power-on reset of the embedded CPU, the IO pin needs to be suspended to avoid affecting the external circuit and causing wasted IO pin resources.

Method used

A control circuit is designed to switch the enable state of the IO pin by switching the module, signal generation module and switching control module using the reset signal, so that it is used for configuration during the CPU reset, and the IO pin is enabled after the reset is completed. Make an external connection.

Benefits of technology

It realizes multiplexing of IO pins, which can not only be used for power-on configuration of the CPU, but also be used as ordinary IO pins, saving IO pin resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963516A_ABST
    Figure CN118963516A_ABST
Patent Text Reader

Abstract

The invention discloses a control circuit and method, embedded equipment, electronic equipment and a storage medium, and relates to the technical field of electronic equipment reset. And when the CPU needs to be reset, the reset signal is in a low level, and the switching control module outputs a first level to the first enabling pin and the second enabling pin according to the reset signal, so that each first IO pin is in an output forbidden state, and each second IO pin is also in the output forbidden state. And after the CPU is reset, the signal generation module enables the reset signal to be a high level, so that the switching control module outputs a second level to the first enabling pin and the second enabling pin according to the reset signal, each first IO pin is in an enabled state, and each second IO pin is also in an enabled state. Therefore, part of IO pins in the CPU can be used for power-on configuration and can also be used as common IO pins, and IO pin resources can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic device resetting, and in particular to a control circuit, method, embedded device, electronic device and storage medium. Background Art

[0002] With the development of embedded CPU manufacturing technology, its functions are becoming increasingly powerful, and its configuration functions are also increasing. Some are configured through its hardware input and output IO pins. When powered on, different startup functions and other function settings are set by setting the high and low levels of related IO pins.

[0003] Since the high and low levels of the relevant IO pins need to be set during power-on reset, if the IO pins are connected to external circuits at this time, it will affect the external circuits. Therefore, in the related art, in order to avoid affecting the external circuits during power-on reset, the pins configured for power-on reset in the CPU chip are usually left floating. The IO pins of the CPU chip cannot be used as ordinary IO pins after being used for power-on configuration, resulting in a waste of IO pin resources. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a control circuit, a control method, an embedded device, an electronic device and a computer-readable storage medium for an embedded device, which can enable some IO pins in a central processing unit CPU to be used for power-on configuration and also as ordinary IO pins, thereby saving IO pin resources.

[0005] The control circuit of the embedded device according to the first aspect of the present application includes: A switching module, wherein the switching module is provided with a first enable pin and a second enable pin, a plurality of first input / output IO pins and a plurality of second IO pins, wherein the first IO pins are connected to the second IO pins in a one-to-one correspondence; when the first enable pin is at a first level, the first IO pin is in an output disabled state, and when the first enable pin is at a second level, the first IO pin is in an enabled state; when the second enable pin is at the first level, the second IO pin is in an output disabled state, and when the second enable pin is at the second level, the second IO pin is in an enabled state; the first IO pin is used to connect to a central processing unit; a switching control module, the switching control module being connected to the first enable pin and the second enable pin respectively, and the switching control module being configured to output the first level or the second level to the first enable pin and the second enable pin according to a reset signal; A signal generating module, wherein the signal generating module is connected to the switching control module, and the signal generating module is used to generate the reset signal and send the reset signal to the switching control module and the central processing unit.

[0006] According to the control circuit of the embedded device of the embodiment of the present application, at least the following beneficial effects are achieved: the reset signal of the CPU is effective at a low level. When the CPU is to be reset, for example, when the embedded device is powered on, the signal generation module generates a reset signal, and at this time the reset signal is at a low level. The switching control module outputs a first level to the first enable pin and the second enable pin according to the reset signal, so that each first IO pin is in an output disabled state, and each second IO pin is also in an output disabled state. Therefore, it is equivalent to disconnecting the first IO pin from the corresponding second IO pin, and the second IO pin cannot affect the first IO pin, so the first IO pin can be used to complete the configuration when the CPU is reset. After the CPU is reset, the signal generation module makes the reset signal high, so that the switching control module outputs a second level to the first enable pin and the second enable pin according to the reset signal, so that each first IO pin is in an enabled state, and each second IO pin is also in an enabled state, so that the second IO pin is connected to the corresponding first IO pin, that is, the second IO pin can be connected to the CPU, and the IO pin connected to the first IO pin in the CPU can be connected to an external device through the second IO pin. Therefore, the present application enables some IO pins in the central processing unit CPU to be used for power-on configuration as well as being used as ordinary IO pins, thereby achieving pin multiplexing and saving IO pin resources.

[0007] According to some embodiments of the present application, the switching control module includes an inverter, an input end of the inverter is connected to the signal generating module, and an output end of the inverter is connected to the first enable pin and the second enable pin, respectively.

[0008] According to some embodiments of the present application, the signal generating module is provided with a reset pin and a dog feeding signal pin, the dog feeding signal pin is used to connect the dog feeding signal, the signal generating module is used to generate the reset signal when the embedded device is powered on, or to generate the reset signal according to the dog feeding signal; the signal generating module is also used to send the reset signal to the switching control module and the central processing unit through the reset pin.

[0009] According to some embodiments of the present application, the switching module adopts the SN74LVCH16T245 chip.

[0010] According to some embodiments of the present application, it also includes an analog switch module, which is provided with a first voltage control end, a second voltage control end, a first common end, a second common end, a first connection end, and a second connection end, and the first voltage control end and the second voltage control end are connected to the reset signal; the first common end is used to connect to the first serial port end of the central processing unit, the second common end is used to connect to the second serial port end of the central processing unit, the first connection end is used to connect to the first external serial port end, and the second connection end is used to connect to the second external serial port end; the analog switch module is used to make the first common end and the first connection end conductive, the second common end and the second connection end conductive, or make the first common end and the first connection end cut off, and the second common end and the second connection end cut off based on the reset signal.

[0011] According to some embodiments of the present application, the signal generation module adopts an IMP706SESA chip.

[0012] A second aspect of the present application provides a control method, which is applied to a control circuit of an embedded device according to any one of the first aspect of the present application. The method includes: In response to a preset condition, controlling the signal generating module to make the reset signal a low level, so that the switching control module outputs the first level to the first enable pin and the second enable pin; After the reset operation is completed, the signal generating module is controlled to make the reset signal high level, so that the switching control module outputs the second level to the first enable pin and the second enable pin.

[0013] A third aspect of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the control method described in the second aspect of the present application when executing the computer program.

[0014] An embodiment of a fourth aspect of the present application provides an embedded device, comprising a control circuit of the embedded device as described in any one of the embodiments of the first aspect of the present application.

[0015] A fifth aspect of the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor according to the control method described in the second aspect of the present application.

[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The present application is further described below with reference to the accompanying drawings and embodiments, wherein: Figure 1 A module block diagram of a control circuit of an embedded device according to an embodiment of the present application; Figure 2 A circuit schematic diagram of the switching module of the present application; Figure 3 A schematic diagram of the circuit structure of a switching control module according to an embodiment of the present application; Figure 4 A schematic diagram of the circuit structure of a signal generating module according to an embodiment of the present application; Figure 5 is a schematic diagram of the circuit structure of the analog switch module of an embodiment of the present application; Figure 6 A schematic diagram of the steps of the control method of an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0018] Reference numerals: Central processing unit 100; switching module 200; signal generating module 300; switching control module 400. DETAILED DESCRIPTION

[0019] The embodiments of the present application are described in detail below, and examples of the embodiments 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 only used to explain the present application, and cannot be understood as limiting the present application.

[0020] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0021] In the description of this application, "several" means more than one, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0022] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0023] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "illustrative 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 application. 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.

[0024] The first aspect of the present application provides a control circuit for an embedded device. Figure 1 , Figure 1 The module block diagram of the control circuit of the embedded device of the embodiment of the present application. The control circuit includes a switching module 200, a switching control module 400, and a signal generating module 300. The switching module 200 is provided with a first enable pin and a second enable pin, a plurality of first input and output IO pins and a plurality of second IO pins, and the first IO pin is connected to the second IO pin in a one-to-one correspondence; when the first enable pin is at a first level, the first IO pin is in an output disabled state, and when the first enable pin is at a second level, the first IO pin is in an enabled state; when the second enable pin is at a first level, the second IO pin is in an output disabled state, and when the second enable pin is at a second level, the second IO pin is in an enabled state; the first IO pin is used to connect to the central processing unit 100; the switching control module 400 is connected to the first enable pin and the second enable pin respectively, and the switching control module 400 is used to output the first level or the second level to the first enable pin and the second enable pin according to the reset signal; the signal generating module 300 is connected to the switching control module 400, and the signal generating module 300 is used to generate a reset signal and send the reset signal to the switching control module 400 and the central processing unit 100.

[0025] According to the control circuit of the embedded device of the embodiment of the present application, at least the following beneficial effects are achieved: the reset signal of the CPU is low level effective, when the CPU is to be reset, for example, when the embedded device is powered on, the signal generation module 300 generates a reset signal, and at this time the reset signal is low level, the switching control module 400 outputs the first level to the first enable pin and the second enable pin according to the reset signal, so that each first IO pin is in an output disabled state, and each second IO pin is also in an output disabled state, therefore, it is equivalent to disconnecting the first IO pin from the corresponding second IO pin, and the second IO pin cannot affect the first IO pin, so the first IO pin can be used to complete the configuration when the CPU is reset. After the CPU is reset, the signal generation module 300 makes the reset signal high level, so that the switching control module 400 outputs the second level to the first enable pin and the second enable pin according to the reset signal, so that each first IO pin is in an enabled state, and each second IO pin is also in an enabled state, so the second IO pin is connected to the corresponding first IO pin, that is, the second IO pin can be connected to the CPU, and the IO pin connected to the first IO pin in the CPU can be connected to an external device through the second IO pin. Therefore, the present application enables some IO pins in the central processing unit 100 to be used for power-on configuration as well as being used as ordinary IO pins, thereby achieving pin multiplexing and saving IO pin resources.

[0026] It should be noted that the present application does not specifically limit the number of the first IO pins and the second IO pins, and those skilled in the art may set the number of the first IO pins and the second IO pins according to actual conditions.

[0027] Reference Figure 2 , Figure 2 The switching module 200 of the present application is a circuit schematic diagram. The switching module 200 of the embodiment of the present application adopts the SN74LVCH16T245 chip. Among them, the 1A0 pin to the 1A7 pin and the 2A0 pin to the 2A7 pin are the first IO pins; the 1B0 pin to the 1B7 pin and the 2B0 pin to the 2B7 pin are the second IO pins. The 1A0 pin to the 1A7 pin are connected to the 1B0 pin to the 1B7 pin in a one-to-one correspondence, and the 2A0 pin to the 2A7 pin are connected to the 2B0 pin to the 2B7 pin in a one-to-one correspondence. The first level is a high level, and the second level is a low level. SYSBOOT0 to SYSBOOT15 represent IO pins connected to the CPU. Figure 2, the SYS_RESETn_OE signal is a signal output by the switching control module 400. When the CPU is reset, the SYS_RESETn_OE signal is a high-level signal, at which time the 1A0 pin to the 1A7 pin, the 2A0 pin to the 2A7 pin, the 1B0 pin to the 1B7 pin, and the 2B0 pin to the 2B7 pin are all in an output disabled state, and the external circuit connected to the 1B0 pin to the 1B7 pin and the 2B0 pin to the 2B7 pin cannot affect the 1A0 pin to the 1A7 pin and the 2A0 pin to the 2A7 pin, that is, the external circuit cannot affect the IO pins of the CPU, and the CPU can use the IO pins to complete the reset power-on configuration. After the reset is completed, the SYS_RESETn_OE signal is at a low level. At this time, pins 1A0 to 1A7, pins 2A0 to 2A7, pins 1B0 to 1B7, and pins 2B0 to 2B7 are all in an enabled state, that is, SYSBOOT0 to SYSBOOT15 can be connected to external devices through the SN74LVCH16T245 chip, that is, the SYSBOOT0 to SYSBOOT15 pins of the CPU can not only be used for power-on configuration during reset, but also can be used as ordinary IO ports to interact with external devices.

[0028] In one embodiment, referring to Figure 2 , Figure 2 In the embodiment, the 1DIR pin and the 2DIR pin of the SN74LVCH16T245 chip are both connected to 3.3V, at which time the 1A0 pin to the 1A7 pin, the 2A0 pin to the 2A7 pin are inputs, and the 1B0 pin to the 1B7 pin, the 2B0 pin are outputs. In another embodiment, the 1DIR pin and the 2DIR pin are both connected to a low level, at which time the 1A0 pin to the 1A7 pin, the 2A0 pin to the 2A7 pin are outputs, and the 1B0 pin to the 1B7 pin, the 2B0 pin are inputs.

[0029] It is understandable that, referring to Figure 3 , Figure 3 Schematic diagram of the circuit structure of the switching control module 400 of the embodiment of the present application. The switching control module 400 includes an inverter, the input end of the inverter is connected to the signal generating module 300, and the output end of the inverter is respectively connected to the first enable pin and the second enable pin. The model of the inverter is 74HC04TA14, and the SYS_RESETn signal is a reset signal. During reset, the SYS_RESETn signal is at a low level, and after passing through the inverter, the SYS_RESETn_OE signal is at a high level. After the reset is completed, the SYS_RESETn signal is at a high level, and after passing through the inverter, the SYS_RESETn_OE signal is at a low level.

[0030] It is understandable that, referring to Figure 4 , Figure 4The circuit structure diagram of the signal generation module 300 of the embodiment of the present application is shown in FIG. The signal generation module 300 is provided with a reset pin and a dog feeding signal pin. The dog feeding signal pin is used to receive the dog feeding signal. The signal generation module 300 is used to generate a reset signal when the embedded device is powered on, or to generate the reset signal according to the dog feeding signal. The signal generation module 300 is also used to send the reset signal to the switching control module 400 and the central processing unit 100 through the reset pin. The signal generation module 300 uses the IMP706SESA chip. Figure 4 The diagram shows the peripheral circuits of the IMP706SESA chip. Figure 4 In the example, the WDI pin of the IMP706SESA chip is connected to the dog feeding signal. The WDI pin is the dog feeding signal pin. The dog feeding signal is a signal sent by the CPU. The CPU periodically sends a signal to the watchdog timer (Watchdog Timer) built into the IMP706SESA chip to reset the timer to prevent it from timing out and performing a system reset operation. When the WDI pin of the IMP706SESA chip does not receive the dog feeding signal within the preset time, for example, when the level of the dog feeding signal does not change within 1.6 seconds, the watchdog timer will time out and trigger a reset operation, and the reset pin of the IMP706SESA chip will output a low-level SYS_RESETn signal.

[0031] It can be understood that the control circuit of the embodiment of the present application also includes an analog switch module, the analog switch module is provided with a first voltage control terminal, a second voltage control terminal, a first common terminal, a second common terminal, a first connection terminal, and a second connection terminal, and the first voltage control terminal and the second voltage control terminal are connected to a reset signal; the first common terminal is used to connect to the first serial port terminal of the central processing unit 100, the second common terminal is used to connect to the second serial port terminal of the central processing unit 100, the first connection terminal is used to connect to the first external serial port terminal, and the second connection terminal is used to connect to the second external serial port terminal; the analog switch module is used to make the first common terminal and the first connection terminal conductive, the second common terminal and the second connection terminal conductive, or make the first common terminal and the first connection terminal cut off, and the second common terminal and the second connection terminal cut off based on the reset signal.

[0032] Specifically, refer to Figure 5 , Figure 5: It is a schematic diagram of the circuit structure of the analog switch module of the embodiment of the present application. The analog switch module adopts the SGM3005C chip. The IN1 pin is the first voltage control terminal, the IN2 pin is the second voltage control terminal, the COM1 pin is the first common terminal, the COM2 pin is the second common terminal, the NO1 pin is the first connection terminal, and the NO2 pin is the second connection terminal. During reset, the SYS_RESETn signal is a low-level signal. At this time, the COM1 pin and the NO1 pin in the SGM3005C chip are cut off, and the COM2 pin and the NO2 pin are cut off, so as to avoid the first external serial port and the second external serial port from affecting the reset of the CPU. After the reset is completed, the SYS_RESETn signal is a high-level signal. At this time, the COM1 pin and the NO1 pin in the SGM3005C chip are connected, and the COM2 pin and the NO2 pin are connected, so that the CPU can be connected to the first external serial port and the second external serial port. It should be noted that the first external serial port and the second external serial port refer to the serial port connection terminals of the external device.

[0033] The second aspect of the present application provides a control method, which is applied to the control circuit of the embedded device in the above embodiment. Figure 6 , Figure 6 The following is a flow chart of the control method according to an embodiment of the present application. The method comprises the following steps: Step S610, in response to a preset condition, the control signal generation module makes the reset signal a low level, so that the switching control module outputs a first level to the first enable pin and the second enable pin; It is worth noting that, in one embodiment, when a program error occurs, the CPU stops sending a dog feeding signal to the IMP706SESA chip, so that the IMP706SESA chip generates a low-level reset signal.

[0034] In one embodiment, the preset condition is one of the following: Embedded device power on; A CPU program error caused the level of the dog feeding signal to not change within 1.6 seconds.

[0035] Step S620: After the reset operation is completed, the control signal generation module makes the reset signal a high level, so that the switching control module outputs a second level to the first enable pin and the second enable pin.

[0036] In the embodiment of the present application, through step S610 to step S620, when the CPU is to be reset, the signal generation module 300 generates a reset signal, and the reset signal is at a low level at this time, and the switching control module 400 outputs a first level to the first enable pin and the second enable pin according to the reset signal, so that each first IO pin is in an output disabled state, and each second IO pin is also in an output disabled state, therefore, it is equivalent to disconnecting the first IO pin from the corresponding second IO pin, and the second IO pin cannot affect the first IO pin, so the first IO pin can be used to complete the configuration when the CPU is reset. After the CPU is reset, the signal generation module 300 makes the reset signal a high level, so that the switching control module 400 outputs a second level to the first enable pin and the second enable pin according to the reset signal, so that each first IO pin is in an enabled state, and each second IO pin is also in an enabled state, so the second IO pin is connected to the corresponding first IO pin, that is, the second IO pin can be connected to the CPU, and the IO pin in the CPU connected to the first IO pin can be connected to an external device through the second IO pin. Therefore, the present application enables some IO pins in the central processing unit 100 to be used for power-on configuration as well as being used as ordinary IO pins, thereby achieving pin multiplexing and saving IO pin resources.

[0037] The third aspect of the present application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the control method of the second aspect when executing the computer program.

[0038] Reference Figure 7 , Figure 7 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The electronic device includes: The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes the control method of the embodiment of this application; Input / output interface 703, used to implement information input and output; Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); A bus 705 that transmits information between various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704); The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .

[0039] An embodiment of a fourth aspect of the present application provides an embedded device, comprising a control circuit of an embedded device as in any one of the embodiments of the first aspect of the present application.

[0040] The fifth aspect embodiment of the present application provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is executed by a processor according to the control method of the second aspect embodiment.

[0041] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0042] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0043] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0044] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0045] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0046] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0047] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the mapping relationship of the mapping objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next mapping objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0048] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0049] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0050] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0051] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0052] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A control circuit for an embedded device, characterized in that: include: A switching module, wherein the switching module is provided with a first enable pin and a second enable pin, a plurality of first input / output IO pins and a plurality of second IO pins, wherein the first IO pins are connected to the second IO pins in a one-to-one correspondence; when the first enable pin is at a first level, the first IO pin is in an output disabled state, and when the first enable pin is at a second level, the first IO pin is in an enabled state; when the second enable pin is at the first level, the second IO pin is in an output disabled state, and when the second enable pin is at the second level, the second IO pin is in an enabled state; the first IO pin is used to connect to a central processing unit; a switching control module, the switching control module being connected to the first enable pin and the second enable pin respectively, and the switching control module being configured to output the first level or the second level to the first enable pin and the second enable pin according to a reset signal; A signal generating module, wherein the signal generating module is connected to the switching control module, and the signal generating module is used to generate the reset signal and send the reset signal to the switching control module and the central processing unit.

2. The control circuit of the embedded device according to claim 1, characterized in that: The switching control module includes an inverter, an input end of the inverter is connected to the signal generating module, and an output end of the inverter is connected to the first enable pin and the second enable pin respectively.

3. The control circuit of the embedded device according to claim 1, characterized in that: The signal generating module is provided with a reset pin and a dog feeding signal pin, the dog feeding signal pin is used to access the dog feeding signal, the signal generating module is used to generate the reset signal when the embedded device is powered on, or to generate the reset signal according to the dog feeding signal; the signal generating module is also used to send the reset signal to the switching control module and the central processing unit through the reset pin.

4. The control circuit of the embedded device according to claim 1, characterized in that: The switching module adopts SN74LVCH16T245 chip.

5. The control circuit of the embedded device according to claim 1, characterized in that: It also includes an analog switch module, which is provided with a first voltage control end, a second voltage control end, a first common end, a second common end, a first connection end, and a second connection end, wherein the first voltage control end and the second voltage control end are connected to the reset signal; the first common end is used to connect to the first serial port end of the central processing unit, the second common end is used to connect to the second serial port end of the central processing unit, the first connection end is used to connect to the first external serial port end, and the second connection end is used to connect to the second external serial port end; the analog switch module is used to connect the first common end and the first connection end, connect the second common end and the second connection end, or cut off the first common end and the first connection end, and cut off the second common end and the second connection end based on the reset signal.

6. The control circuit of the embedded device according to claim 1, characterized in that: The signal generation module adopts IMP706SESA chip.

7. A control method, characterized in that: A control circuit for an embedded device according to any one of claims 1 to 6, wherein the method comprises: In response to a preset condition, controlling the signal generating module to make the reset signal a low level, so that the switching control module outputs the first level to the first enable pin and the second enable pin; After the reset operation is completed, the signal generating module is controlled to make the reset signal high level, so that the switching control module outputs the second level to the first enable pin and the second enable pin.

8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the control method of claim 7 when executing the computer program.

9. An embedded device, characterized in that: A control circuit comprising the embedded device as claimed in any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the control method according to claim 7 is implemented.

Citation Information

Patent Citations

  • Watchdog reset control system

    CN102214124A

  • Control circuit for computer system multiplexing pins

    CN102478940A

  • Embedded platform TPCM access system and control method thereof

    CN115658369A

  • External watchdog enabling and disabling circuit and control method thereof

    CN118113520A

  • Reset-out circuit with feed back capability

    US6188256B1