Pulse signal generation apparatus and method

By combining the configuration of the storage unit and the power control module, flexible configuration and low power consumption control of LED lights are achieved, solving the problems of insufficient flexibility in LED light configuration and high power consumption in the existing technology.

WO2026066232A1PCT designated stage Publication Date: 2026-04-02JIAXING HANWEI SEMICONDUCTOR CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

The configuration of LED lights in the existing technology is not flexible enough, and the system power consumption is high, which requires the MCU to remain in operation for a long time.

Method used

A pulse signal generation device is provided, including a configuration module, a pulse signal generation module, and a power control module. The configuration storage unit stores configuration information, the configuration selection unit selects target configuration information, and the signal generation unit generates a pulse signal. The power control module independently controls the power supply to achieve flexible configuration and reduce power consumption.

Benefits of technology

It improves the configuration flexibility of the output node connection load, reduces the overall power consumption of the system, and enables the normal generation of pulse signals even when the MCU is not working.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025099872_02042026_PF_FP_ABST
    Figure CN2025099872_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of signal control, and discloses a pulse signal generation apparatus and method. The apparatus comprises: a configuration module, used for outputting at least one piece of configuration information; a pulse signal generation module, comprising a configuration storage unit for storing the configuration information outputted by the configuration module, a configuration selection unit for sequentially selecting the configuration information as target configuration information in the numbering sequence of the configuration information, and a signal generation unit for generating a pulse signal on the basis of the target configuration information; and a power supply control module, used for controlling the power supply to the pulse signal generation module on the basis of a working state of the pulse signal generation module and controlling the power supply to the configuration module. Each piece of configuration information in a configuration storage unit is sequentially selected as target configuration information, and a corresponding pulse signal is generated, thereby outputting a plurality of configurations, and improving the flexibility of load configuration; and a power supply control module separately controls the power supply to a configuration module and the power supply to a pulse signal generation module, so that the power-off of the configuration module does not affect the operation of the pulse signal generation module, thereby reducing the overall power consumption of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Pulse signal generation device and method

[0001] The present application claims priority to the Chinese patent application No. 202411358823.1, filed on September 27, 2024, and entitled "Pulse signal generation device and method", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] Embodiments of the present application relate to the technical field of signal control, in particular to a pulse signal generation device and method. BACKGROUND

[0003] Light-Emitting Diode Light (LED) is widely used in various lighting and indication scenarios due to its long service life and low energy consumption. However, the control of the LED usually requires the Micro Control Unit (MCU) to be in an active state, which increases the system power consumption. Moreover, the logic control of the LED by the MCU usually has only a fixed configuration, which is not flexible and convenient to use. SUMMARY

[0004] In view of the above problems, embodiments of the present application provide a pulse signal generation device and method to solve the problem of insufficient flexibility in configuring the LED and high system power consumption in the prior art.

[0005] In a first aspect, the present application provides a pulse signal generation device, which is used to control the output of a pulse signal at an output node. The device comprises:

[0006] A configuration module is configured to output at least one set of configuration information. The at least one set of configuration information is used to represent the waveform of the pulse signal.

[0007] A pulse signal generation module comprises a configuration storage unit, a configuration selection unit and a signal generation unit. The configuration storage unit is configured to store the configuration information output by the configuration module. The configuration selection unit is configured to select each set of configuration information in the at least one set of configuration information stored in the configuration storage unit as target configuration information in turn according to the number order of the at least one set of configuration information. The signal generation unit is configured to generate a pulse signal to the output node according to the target configuration information.

[0008] A power supply control module is configured to control the power supply to the pulse signal generation module according to the working state of the pulse signal generation module, and to control the power supply to the configuration module. The working state is used to represent the generation of the pulse signal by the pulse signal generation module based on the configuration information.

[0009] In an optional implementation, the signal generation unit is further configured to return the pulse generation signal to the configuration selection unit after generating the pulse signal corresponding to the target configuration information.

[0010] The configuration selection unit is configured to determine, according to the numbering order, the next group of configuration information corresponding to the target configuration information as a new target configuration information in the at least one group of configuration information after receiving the pulse generation signal.

[0011] In an optional implementation, the power supply control module includes a first control unit and a second control unit.

[0012] The first control unit is configured to control the power supply to the pulse signal generation module according to the first power supply signal and the working state of the pulse signal generation module.

[0013] The second control unit is configured to control the power supply to the configuration module according to the second power supply signal.

[0014] In an optional implementation, the configuration storage unit includes a plurality of configuration storage sub-units, and each configuration storage sub-unit corresponds to a configuration number of the configuration information.

[0015] The configuration storage sub-unit is configured to determine and store a corresponding group of configuration information from the at least one group of configuration information output by the configuration module.

[0016] The configuration storage sub-unit is further configured to update the number of time periods of the corresponding group of configuration information after the configuration selection unit selects the corresponding group of configuration information, and configure the corresponding group of configuration information as invalid when the number of time periods is zero.

[0017] In an optional implementation, the configuration selection unit is further configured to send a configuration completion signal to the first control unit when all the configuration information corresponding to the configuration sub-storage units are configured as invalid; the configuration completion signal is used to indicate that the working state of the pulse signal generation module is to have completed the generation of the pulse signal.

[0018] The first control unit is configured to stop the power supply to the pulse signal generation module in response to the configuration completion signal.

[0019] In a second aspect, the present application provides a pulse signal generation method, which is applied to the pulse signal generation module in the pulse signal generation device as described in any of the above embodiments, and the method includes:

[0020] Obtaining at least one group of configuration information from the configuration module; the configuration information is used to represent the waveform of the pulse signal.

[0021] Determining each group of configuration information as target configuration information in turn based on the numbering order of the configuration information.

[0022] Based on the target configuration information, the pulse signal is generated and outputted.

[0023] In an optional implementation, based on the numbering order, each group of configuration information is sequentially determined as the target configuration information, including:

[0024] In response to the reception and storage of at least one group of configuration information, the at least one group of configuration information is queried in the numbering order, and the first group of configuration information queried is determined as the target configuration information.

[0025] Alternatively, in response to the pulse generation signal generated by the signal generation unit of the pulse signal generation module after generating the pulse signal, based on the numbering order, the next group of configuration information corresponding to the target configuration information is determined, and the next group of configuration information corresponding to the target configuration information is determined as the new target configuration information.

[0026] In an optional implementation, the configuration information includes the number of cycles, the cycle length, and the waveform configuration; based on the target configuration information, the pulse signal is generated and outputted, including:

[0027] Based on the waveform configuration and the cycle length, the unit pulse signal corresponding to the pulse signal is determined;

[0028] The number of unit pulse signals is set to the number of cycles, and the pulse signal is generated and outputted.

[0029] In an optional implementation, the configuration information further includes the number of time periods, and the number of time periods is used to represent the number of times of generating the pulse signal corresponding to the configuration information;

[0030] Based on the target configuration information, the pulse signal is generated and outputted, and further including:

[0031] The number of time periods in the target configuration information is reduced by one to update the target configuration information;

[0032] If the number of time periods in the target configuration information is zero, the target configuration information is configured as invalid.

[0033] In an optional implementation, the method further includes:

[0034] If the obtained at least one group of configuration information is all configured as invalid, a configuration completion signal is sent to the power control module to instruct the power control module to cut off the power supply to the pulse signal generation module.

[0035] In a third aspect, the present application also provides an electronic device, including a memory and a processor, the memory and the processor are connected; wherein the memory stores computer instructions; the processor executes the computer instructions to perform the pulse signal generation method of the second aspect or any of the corresponding embodiments thereof.

[0036] Further, the application also provides a computer readable storage medium, which stores computer instructions for making a computer execute the pulse signal generation method of the second aspect or any of the corresponding embodiments thereof.

[0037] The pulse signal generation device and method provided by the application can output multiple sets of configurations to the load connected to the output node, improve the flexibility of the configuration of the load connected to the output node, and control the power supply of the configuration module and the pulse signal generation module by the power supply control module, so that the pulse signal generation module can still work normally after the configuration module is powered off, thereby reducing the overall power consumption of the system. BRIEF DESCRIPTION OF DRAWINGS

[0038] The accompanying drawings are included to provide a further understanding of the application, and are incorporated herein and constitute a part of the detailed description. The same reference numbers in different drawings refer to the same elements throughout the drawings.

[0039] FIG. 1 is a structural schematic diagram of a pulse signal generation device according to an embodiment of the application;

[0040] FIG. 2 is a structural architecture diagram of a pulse signal generation device according to an embodiment of the application;

[0041] FIG. 3 is a flowchart of a pulse signal generation method according to an embodiment of the application;

[0042] FIG. 4 is a schematic diagram of a pulse signal in a pulse signal generation method according to an embodiment of the application;

[0043] FIG. 5 is a schematic diagram of a pulse signal in a pulse signal generation method according to an embodiment of the application. DETAILED DESCRIPTION

[0044] Exemplary embodiments of the application will be described in greater detail below, with reference to the accompanying drawings. Although the exemplary embodiments of the application are shown in the drawings, it should be understood that the application can be implemented in various forms and should not be limited by the embodiments described herein.

[0045] At present, the control of LED lamps, motor and other devices which need to work through pulse signal input, usually needs MCU (Micro Control Unit) to be in working state. The system will lose the control ability of the device after the MCU is powered off, which leads to the increase of system power consumption. And the logic control of MCU to these devices usually only has a fixed configuration, and only one kind of logic pulse signal can be input at a time. If you want to change the logic control of these devices, you need to reissue the control logic by the staff. For some application scenarios that need to switch the control logic repeatedly, such operation mode will be very cumbersome and not flexible and convenient to use.

[0046] Therefore, the embodiment of the present application provides a pulse signal generation device, which is used for controlling the work of a signal lamp connected to an output node, and includes: a configuration module, configured to output at least one set of configuration information; the configuration information is used to represent the waveform of a pulse signal; a pulse signal generation module, including a configuration storage unit, a configuration selection unit and a signal generation unit; wherein the configuration storage unit is configured to store at least one set of configuration information output by the configuration module; the configuration selection unit is configured to select each set of configuration information in the at least one set of configuration information stored in the configuration storage unit as target configuration information in turn according to the number order of the at least one set of configuration information; the signal generation unit is configured to generate a pulse signal to the output node according to the target configuration information; a power control module, configured to control the power supply of the pulse signal generation module according to the working state of the pulse signal generation module, and control the power supply of the configuration module; the working state is used to represent the generation of the pulse signal by the pulse signal generation module based on the configuration information. In this way, the configuration information output by the configuration module is stored in the configuration storage unit, each set of configuration information in the configuration storage unit is selected as target configuration information in turn by the configuration selection unit, and the pulse signal corresponding to the target configuration information is generated by the signal generation unit, so that multiple configurations can be output to the load connected to the output node, and the flexibility of the configuration of the load connected to the output node is improved. At the same time, the power control module controls the power supply of the configuration module and the pulse signal generation module respectively, and the pulse signal generation module can still work normally after the configuration module is powered off, so as to reduce the overall power consumption of the system.

[0047] In one aspect, the embodiment of the present application provides a pulse signal generation device, which can be used to control the pulse signal output of an output node. Specifically, the pulse signal generation device is provided with an output node for external output. The pulse signal generation device is connected with a load through the output node, and outputs a pulse signal to the load, so as to control the operation of the load. Optionally, the load connected with the output node can be any device which operates through pulse signal input, such as a signal lamp, a motor, etc. In the embodiment of the present application, the pulse signal generation device is explained by taking a signal lamp, in particular, a three-color signal lamp, as an example. It should be noted that the above is only an example for explanation, and does not constitute a specific limitation on the load connected with the output node. FIG. 1 is a structural schematic diagram of a pulse signal generation device provided by the embodiment of the present application. As shown in FIG. 1, the device comprises a configuration module, a pulse signal generation module, and a power control module. The configuration module is in communication connection with the pulse signal generation module, and the power control module is connected with the configuration module and the pulse signal generation module respectively.

[0048] In the embodiment of the present application, the configuration module is used to output at least one set of configuration information, wherein the at least one set of configuration information is used to represent the waveform of the pulse signal, that is, to represent the operation mode of the load connected with the output node. For example, the operation mode of the signal lamp is represented, which is the specific configuration of the light waveform of the signal lamp, such as the light color, the light flashing mode, the light duration, etc. The configuration module can be realized by a related function or a related module in a computing module with operation and information processing capability, such as a computer system. That is, the configuration module can be integrated in a certain computing module.

[0049] In an optional implementation, the configuration module is provided with a configuration register unit. A user can write the configuration information into the configuration register unit through a bus interface according to the application requirement. The configuration register unit can be provided with a plurality of sets of waveform configuration registers and general registers, such as a clock division coefficient register, etc. Each set of waveform configuration registers in the plurality of sets of waveform configuration registers can store a set of configuration information. The configuration information can record and correspond to the waveform configuration register where it is located by setting a configuration number. The number of the waveform configuration registers can be adjusted according to the user requirement. The user can complete the configuration of all the configuration information at one time, and then generate the corresponding pulse signal through the pulse signal generation module, or can add or modify the configuration information in the process of generating the pulse signal by the pulse signal generation module, so as to realize multiple configurations.

[0050] In the embodiment of the present application, as shown in FIG. 1, the pulse signal generation module includes a configuration storage unit, a configuration selection unit and a signal generation unit. The configuration storage unit is configured to store at least one set of configuration information output by the configuration module, and is in communication connection with the configuration module to receive the at least one set of configuration information output by the configuration module. The configuration selection unit is in communication connection with the configuration storage unit, and is configured to select each set of configuration information stored in the configuration storage unit as target configuration information in turn according to the numbering order of the configuration information, so as to realize multiple configurations of the signal lamp without modifying the configuration information. The signal generation unit is in communication connection with the configuration selection unit, and is configured to generate corresponding pulse signals to the output node according to the target configuration information selected by the configuration selection unit, so as to output the pulse signals to the signal lamp connected to the pulse signal generation device through the output node to control the operation of the signal lamp.

[0051] In an alternative embodiment, the pulse signal generation module is an LPWM module, which can further control the brightness and color of the signal lamp based on the PWM technology, in combination with components such as memory and timer, to mix various colors by controlling the brightness of various colors of the signal lamp, so as to meet the user's demand for the color of the signal lamp and improve the richness and flexibility of the configuration of the signal lamp.

[0052] In the embodiment of the present application, as shown in FIG. 1, the power control module is connected with the pulse signal generation module and the configuration module respectively, and controls the power supply of the pulse signal generation module and the configuration module respectively, that is, the power supply of the pulse signal generation module and the configuration module is independent and does not affect each other. Specifically, the power control module is configured to control the power supply of the pulse signal generation module according to the working state of the pulse signal generation module, and to control the power supply of the configuration module, wherein the working state is used to represent the generation of the pulse signal by the pulse signal generation module based on the configuration information.

[0053] In an alternative embodiment, corresponding to the multiple sets of waveform configuration registers provided in the configuration module, the configuration storage unit is provided with configuration storage sub-units equal in number to the waveform configuration registers, and each configuration storage sub-unit includes a register configured to store a set of configuration information. Specifically, the configuration storage sub-unit corresponds to the configuration number of the configuration information one by one, and the configuration number of the configuration information corresponds to the waveform configuration register where the configuration information is located one by one, so that the one-to-one correspondence of the configuration storage sub-unit-configuration information-waveform configuration register is realized through multiple corresponding relationships, so as to maintain consistency within the pulse signal generation device and avoid errors. Correspondingly, the configuration storage sub-unit is configured to determine a corresponding set of configuration information from the configuration information output by the configuration module and store the corresponding set of configuration information.

[0054] In an optional implementation, as shown in FIG. 1, after the pulse signal corresponding to the target configuration information is generated, the signal generation unit can further be configured to return a pulse generation signal (auto_down) to the configuration selection unit, so as to indicate that the pulse signal corresponding to the target configuration information currently selected by the configuration selection unit has been generated. After receiving the pulse generation signal (auto_down) sent by the signal generation unit, the configuration selection unit selects new target configuration information for the next set of configuration of the signal lamp. Specifically, the configuration selection unit is configured to determine the next set of configuration information corresponding to the target configuration information as the new target configuration information in the numbering order after receiving the pulse generation signal.

[0055] In an optional implementation, the configuration information includes a time period number, which is used to represent the number of times of generation of the pulse signal corresponding to the set of configuration information. Correspondingly, the configuration storage subunit is further configured to update the time period number in the set of configuration information corresponding to the configuration storage subunit after the configuration selection unit selects the set of configuration information, i.e., to decrease the time period number in the set of configuration information by one, so as to keep the number of times of generation of the pulse signal represented by the time period number consistent with the actual number of times of generation. If the time period number becomes zero after the update, it indicates that the pulse signal corresponding to the set of configuration information has been completely generated, and therefore the set of configuration information can be configured to be invalid when the time period number is zero.

[0056] In an optional implementation, the configuration selection unit can also count the configuration number corresponding to the target configuration information after selecting the target configuration information, and compare the time period number in the configuration information with the count value stored in the configuration selection unit each time the target configuration information is selected. If the time period number is greater than the count value, the configuration information can be used as the target configuration information. If the time period number is equal to the count value, it indicates that the configuration storage unit configures the set of configuration information to be invalid.

[0057] In an alternative embodiment, Fig. 2 is a structural schematic diagram of a pulse signal generation device according to an embodiment of the present application. As shown in Fig. 2, the power supply control module includes a first control unit and a second control unit. The first control unit is configured to control the power supply to the pulse signal generation module according to the first power supply signal and the working state of the pulse signal generation module. The second control unit is configured to control the power supply to the configuration module according to the second power supply signal. The first power supply signal and the second power supply signal are power supply signals accessed from outside. The first power supply signal is used to indicate the power supply to the pulse signal generation module, and the second power supply signal is used to indicate the power supply to the configuration module. Thus, the power supply to the pulse signal generation module and the configuration module is independent. The first control unit and the second control unit control the pulse signal generation module and the configuration module respectively and independently. Thus, the power supply to the configuration module and the pulse signal generation module is isolated. In this way, on the one hand, the configuration module can be powered off after inputting the configuration information to the pulse signal generation module, without affecting the generation of the pulse signal by the pulse signal generation module, and the overall power consumption of the system can be reduced. On the other hand, the first control unit controls the power supply to the pulse signal generation module according to the first power supply signal and the working state of the pulse signal generation module. When the working state of the pulse signal generation module is that the generation of the pulse signal is completed, i.e., the current working task is completed, the first control unit can cut off the power supply to the pulse signal generation module. Thus, the pulse signal generation module can be powered off automatically after the working task is completed, and the power consumption is further reduced.

[0058] In an alternative embodiment, if all the group configuration information stored in the configuration storage unit is configured as invalid, it indicates that the pulse information corresponding to the current input configuration information is generated, and the current working task of the pulse signal generation module is completed. Accordingly, the configuration selection unit is further configured to send a configuration completion signal (lpwm_down) to the power supply control module, specifically to the first control unit in the power supply control module, after all the configuration information stored in the configuration storage unit is configured as invalid. The configuration completion signal (lpwm_down) is used to indicate that the working state of the pulse signal generation module is that the generation of the pulse signal is completed. The first control unit is configured to determine that the working state of the pulse signal generation module is that the generation of the pulse signal is completed in response to the configuration completion signal (lpwm_down), and stop the power supply to the pulse signal generation module.

[0059] The pulse signal generation device provided by the embodiment of the present application comprises: a configuration module configured to output at least one set of configuration information, wherein the configuration information is used to represent the waveform of the pulse signal; a pulse signal generation module comprising a configuration storage unit, a configuration selection unit and a signal generation unit, wherein the configuration storage unit is configured to store the at least one set of configuration information output by the configuration module; the configuration selection unit is configured to sequentially select each set of configuration information in the at least one set of configuration information stored in the configuration storage unit as target configuration information according to the numbering order of the configuration information; and the signal generation unit is configured to generate a pulse signal to an output node according to the target configuration information; and a power supply control module configured to control the power supply to the pulse signal generation module according to the working state of the pulse signal generation module, and control the power supply to the configuration module, wherein the working state is used to represent the generation of the pulse signal by the pulse signal generation module based on the configuration information. In this way, the configuration information output by the configuration module is stored in the configuration storage unit, each set of configuration information in the configuration storage unit is sequentially selected as the target configuration information by the configuration selection unit, and the pulse signal corresponding to the target configuration information is generated by the signal generation unit, so that the complex output of multiple sets of configuration information connected to the output node can be realized, and the flexibility of the configuration of the load connected to the output node is improved. Meanwhile, the power supply control module controls the power supply to the configuration module and the pulse signal generation module respectively, and the pulse signal generation module can still work normally after the power supply of the configuration module is cut off, so that the overall power consumption of the system is reduced.

[0060] In another aspect, the embodiment of the present application provides a pulse signal generation method, which can be applied to the pulse signal generation module of any of the pulse signal generation devices described above. The specific embodiment of the pulse signal generation method of the present application is introduced below, and FIG. 3 is a flowchart of the pulse signal generation method provided by the embodiment of the present application. The present specification provides method operation steps as the embodiment or flowchart, but more or fewer operation steps can be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one of the many execution orders, and does not represent the only execution order. In actual system or server product execution, the method order shown in the embodiment or the drawing can be executed in sequence or in parallel (for example, in a parallel processor or multi-thread processing environment). Specifically, as shown in FIG. 3, the method can comprise:

[0061] Step 310: obtaining at least one set of configuration information from the configuration module.

[0062] In the embodiment of the present application, the configuration information is used to represent the waveform of the pulse signal, that is, to represent the working mode of the load connected to the output node. For example, the working mode of the signal lamp is represented, which is the specific configuration of the light waveform of the signal lamp, such as light color, light flickering mode, light duration, etc. After obtaining the configuration information from the configuration module, the configuration storage unit in the pulse signal generation module stores the corresponding configuration storage subunit according to the configuration number in the configuration information. For example, the configuration storage unit is provided with 8 configuration storage subunits, which are configuration storage subunit 0 to configuration storage subunit 7, and the corresponding configuration number of the configuration information is 0 to 7. When the configuration information with configuration number 0 is obtained, it is stored in configuration storage subunit 0. When the configuration information with configuration number 1 is obtained, it is stored in configuration storage subunit 1, and so on. When the configuration information with configuration number n is obtained, it is stored in configuration storage subunit n.

[0063] Step 320: sequentially determine each group of configuration information as target configuration information based on the number order of the configuration information.

[0064] In the embodiment of the present application, the number order of the configuration information is a cyclic order with the order of the configuration number in the configuration information as a period. For example, the configuration storage unit is provided with 8 configuration storage subunits, which are cyclically polled in the order of 0 to 7. It should be noted that although the cyclic polling is performed according to the number order of the configuration information in this step, the pulse signal generation module does not need to obtain all the configuration information corresponding to the configuration numbers, but can only obtain one or several groups of configuration information, for example, only the configuration information with configuration number 2.

[0065] In the embodiment of the present application, the configuration selection unit in the pulse signal generation module queries at least one group of configuration information according to the number order of each group of configuration information, and sequentially determines the queried configuration information as target configuration information. Specifically, it can be divided into the following two cases:

[0066] In the first case, the configuration selection unit queries at least one group of configuration information according to the number order in response to receiving and storing the at least one group of configuration information, and determines the first group of queried configuration information as target configuration information. This case corresponds to the idle working state of the pulse signal generation module. At this time, the pulse signal generation module has not started to generate the pulse signal, and the configuration storage unit receives and stores each group of configuration information. At this time, the configuration selection unit queries the configuration information corresponding to each configuration number according to the number order, and determines the first group of queried configuration information as target configuration information. For example, 8 groups of configuration information are queried in the order of 0 to 7 by the configuration selection unit, until the first group of configuration information is found, which is determined as target configuration information.

[0067] In the second case, the configuration selection unit determines the next group of configuration information corresponding to the target configuration information based on the numbering order and determines the next group of configuration information corresponding to the target configuration information as the new target configuration information in response to a pulse generation signal (auto_down) generated by the signal generation unit after the generation of the pulse signal, where the pulse generation signal (auto_down) is generated by the signal generation unit after the generation of the pulse signal and returned to the configuration selection unit to indicate that the configuration selection unit has generated the pulse signal. This case corresponds to the working state of the pulse signal generation module in the working state, at this time, the pulse signal generation module has been generating the pulse signal, and the signal generation unit returns the pulse generation signal (auto_down) to the configuration selection unit after generating the pulse signal corresponding to a group of configuration information to indicate the configuration selection unit to continue to select the target configuration information; at this time, the configuration selection unit starts from the target configuration information and sequentially queries the configuration information corresponding to each configuration number according to the numbering order, and the first group of configuration information queried is the next group of configuration information corresponding to the target configuration information, and the group of configuration information is determined as the new target configuration information. Taking 8 groups of configuration information and the number information of the target configuration information as N for example, the target configuration information is queried from the target configuration information according to the numbering order of the numbering 0-7, i.e. according to the order of N+1, N+2, …, 7, 0, 1, …, N, until the first group of configuration information is found, which is determined as the target configuration information. In particular, if N is exactly 7, i.e. the target configuration information is exactly the last group of configuration information, the query is performed according to the order of 0-7.

[0068] In an optional embodiment, when the configuration selection unit queries the configuration information, it sequentially queries the corresponding configuration storage sub-unit according to the numbering order, and if the configuration storage sub-unit does not store the configuration information, all information related to the configuration information is 0 or other invalid values. Correspondingly, the configuration information includes enable information, and when the enable information is 1, it indicates that the group of configuration information is valid, and when the enable information is 0 or other invalid values, it indicates that the group of configuration information is invalid. When the configuration selection unit queries, it can sequentially query the enable information of each group of configuration information according to the numbering order, and determine the first group of configuration information with enable information of 1 as the target configuration information.

[0069] Step 330: generating and outputting the pulse signal based on the target configuration information.

[0070] In the embodiment, the signal generation unit in the pulse signal generation module obtains the target configuration information selected from the configuration selection unit, and generates a pulse signal according to the configuration corresponding to the target configuration information, and outputs the generated pulse signal to a load connected to the pulse signal generation device, i.e., a signal lamp, to control the signal lamp to work according to the indication of the pulse signal.

[0071] In an optional embodiment, as shown in Table 1 below, a set of configuration information includes a configuration number, enabling information, color enabling information, a time period number, a cycle number, a cycle length, and waveform configuration; wherein the configuration number is the number of the set of configuration information; the enabling information is used to indicate whether the set of configuration information is valid; the color enabling information is used to indicate whether various colors are valid, which is specifically embodied as whether the generated pulse signal is sent to the control pin of the corresponding color; the time period number is used to represent the number of times of generating the pulse signal corresponding to the configuration information; the cycle number is used to represent the number of signal cycles contained in the pulse signal corresponding to a time period; the cycle length is used to represent the clock length of a signal cycle; and the waveform configuration is the specific configuration information of the waveform in a signal cycle.

[0072] Table 1

[0073] In an optional embodiment, as shown in Table 1, the color enabling information can include enabling information of multiple colors. Taking a three-color signal lamp as an example, the color enabling information can include red enabling information, green enabling information, and blue enabling information. When the enabling information is 1, it indicates that the corresponding color is valid, and the generated pulse signal is sent to the control pin of the corresponding color. When the enabling information is 0, it indicates that the corresponding color is invalid, and the generated pulse signal is not sent to the control pin of the corresponding color. Correspondingly, the pulse signal generation module finally outputs three pulse signals, which are respectively output to the control pins of the corresponding colors of the signal lamp.

[0074] In an optional embodiment, as shown in Table 1, the waveform configuration can include a first pulse starting point, a second pulse starting point, and a high-level duration. The first pulse starting point represents the starting point of the first high level in a signal cycle, the second pulse starting point represents the starting point of the second high level in a signal cycle, and the high-level duration represents the duration of the high level in a signal cycle.

[0075] In an alternative embodiment, Fig. 4 is a schematic diagram of a pulse signal in a pulse signal generation method provided by the embodiments of the present application. The method of generating a pulse signal based on target configuration information is explained below in combination with Fig. 4 and the setting of configuration information in Table 1. As shown in Fig. 4, a pulse signal includes a plurality of signal periods, and a pulse signal corresponding to a signal period is a unit pulse signal. Each unit pulse signal corresponding to a signal period is identical. In generating a pulse signal, first, a unit pulse signal corresponding to the pulse signal is determined based on the waveform configuration and the period length, and then the number of unit pulse signals is set as the number of periods to generate and output the pulse signal. Referring to Table 1, the period length is 100, the first pulse starting point and the second pulse starting point are both 0, and the high-level time length is 40. The corresponding unit pulse signal is shown in Fig. 4, which is a length of 100, and the signal consists of a high-level signal of 40 clock lengths and a low-level signal of 60 clock lengths. At the same time, the number of periods is 10. The above unit pulse signal is repeated 10 times to obtain the corresponding pulse signal. The time length of the final pulse signal is 1000, which is the product of the number of periods and the period length.

[0076] In an alternative embodiment, after generating a pulse signal based on target configuration information, the configuration storage unit updates the number of time periods in the target configuration information to make the number of pulse signals to be generated represented by the number of time periods consistent with the actual number of pulse signals to be generated. Specifically, the number of time periods in the target configuration information is reduced by one to update the target configuration information. If the number of time periods in the target configuration information is zero, it indicates that the current is the last pulse signal corresponding to the target configuration information. Therefore, the target configuration information is configured to be invalid. Alternatively, the configuration selection unit can count the configuration number corresponding to the target configuration information after selecting the target configuration information. At the same time, the configuration selection unit compares the number of time periods in the configuration information with the count value stored in the configuration selection unit each time the target configuration information is selected. If the number of time periods is greater than the count value, the configuration information can be used as the target configuration information. If the number of time periods is equal to the count value, the configuration storage unit is instructed to configure the configuration information to be invalid. Taking Fig. 4 and Table 1 as an example, the number of time periods in Table 1 is 2, indicating that the pulse signal corresponding to the configuration information needs to be generated for two periods. However, only one set of configuration information is configured in Table 1. Therefore, after generating the pulse signal for the first time, the number of time periods is updated to 1, and the configuration information can only be found according to the order of the number after the first generation. At this time, the pulse signal corresponding to the configuration information is generated again, and the number of time periods is updated to 0. Since the number of time periods is 0 at this time, the configuration information is configured to be invalid, and the enable information corresponding to the configuration information is modified to the value corresponding to the invalid. There is no valid configuration information in the configuration storage unit, and the pulse signal generation module stops working. Finally, two pulse signals are generated.

[0077] The example of FIG. 4 and Table 1 corresponds to the case of one group of configuration information. The following further describes the embodiments of the present application by taking the case of multiple groups of configuration information as an example. As shown in FIG. 5 and Table 2, the configuration storage unit stores configuration information with number information 2 and number information 5. First, according to the number order, starting from number 0-7, the configuration information with number information 2 is found, and a pulse signal is generated according to the configuration information, corresponding to phase 1 in FIG. 5, and the number of time periods in the configuration information with number information 2 is updated to 1. After the pulse signal corresponding to phase 1 is generated, according to the number order, the configuration information with number information 5 is found from the configuration information with number information 2, and a pulse signal is generated according to the configuration information, corresponding to phase 2 in FIG. 5, and the number of time periods in the configuration information with number information 5 is updated to 4. After the pulse signal corresponding to phase 2 is generated, according to the number order, the configuration information with number information 2 is found from the configuration information with number information 5, and a pulse signal corresponding to phase 1 is generated according to the configuration information, and the number of time periods in the configuration information with number information 2 is updated to 0. At this time, since the number of time periods in the configuration information with number information 2 is 0, the configuration information with number information 2 is configured to be invalid. Thereafter, only the configuration information with number information 5 exists, and the above steps are repeated, and the specific process is not described again. Finally, three pulse signals corresponding to the configuration information with number information 5 are generated, and the pulse signals shown in FIG. 5 are obtained.

[0078] Table 2

[0079] In an optional embodiment, in the process of generating the pulse signal by the pulse signal generation module, the pulse signal generation module can be stopped by software or the like, so as to stop the pulse signal generation module from generating the pulse signal. After the pulse signal generation module is stopped, if it does not acquire new configuration information, the information in the configuration information stored in the configuration storage unit remains unchanged except the number of time periods, and the remaining number of time periods is all cleared, and the calculation is restarted when the pulse signal generation module is started again, that is, the number of time periods is initialized to the number set in the original configuration information, and the pulse signal is regenerated from the number of time periods at the beginning.

[0080] In an optional embodiment, during the generation of the pulse signal by the pulse signal generation module, the waveform of the pulse signal can be flexibly adjusted and configured according to the current pulse signal generation condition without affecting the generation and output of the current pulse signal, and new configuration or adjustment of the configuration can be added on the basis of the current configuration. Specifically, when the pulse signal corresponding to the current target configuration information is output, the new set of configuration information can be stored in the corresponding configuration storage subunit according to the number information of the configuration information. If no valid configuration information has been previously stored in the corresponding configuration storage subunit, the addition of the configuration is implemented at this time. If valid configuration information has been previously stored in the corresponding configuration storage subunit, the new configuration information will overwrite the previously stored configuration information in the storage subunit, and the modification and adjustment of the configuration are implemented. Taking the pulse signal corresponding to the configuration information with the number information 2 as an example, the configuration information with the number information 3 is newly written. If no valid configuration information is stored in the configuration storage subunit corresponding to the number information 3, the new configuration information is written into the corresponding configuration storage subunit, and the addition of the configuration information is implemented. After the generation of the pulse signal corresponding to the configuration information with the number information 2 is completed, the pulse signal corresponding to the newly written configuration information with the number information 3 is generated. If valid configuration information is stored in the configuration storage subunit corresponding to the number information 3, the new configuration information is written into the corresponding configuration storage subunit, and the previously stored configuration information in the configuration storage subunit is overwritten, and the modification and adjustment of the configuration information are implemented. After the generation of the pulse signal corresponding to the configuration information with the number information 2 is completed, the pulse signal corresponding to the newly written configuration information with the number information 3 is generated.

[0081] In an optional embodiment, if all the obtained configuration information is configured as invalid, a configuration completion signal (lpwm_down) is sent to the power control module to instruct the power control module to cut off the power supply to the pulse signal generation module. Optionally, the lpwm_down signal can also be used as a signal indicating the working state of the pulse signal generation module. At this time, the pulse signal generation module feeds back the lpwm_down signal to the power control module in real time. If the lpwm_down signal is 0, it indicates that the pulse signal generation module is in an idle working state. If the lpwm_down signal is 1, it indicates that the pulse signal generation module is in a working working state. If all the obtained configuration information is removed, the lpwm_down signal is switched from 1 to 0, indicating that the pulse signal generation module is switched to an idle state, and the power control module is triggered to cut off the power supply to the pulse signal generation module.

[0082] The application further provides an electronic device, comprising a memory and a processor, which are connected; the memory stores computer instructions; and the processor executes the pulse signal generation method according to the above-mentioned embodiments by executing the computer instructions.

[0083] Specifically, the processor can be a central processing unit. The processor can also be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic gate array, a general array logic, or any combination thereof.

[0084] The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the pulse signal generation method according to the above-mentioned embodiments.

[0085] The memory can include a volatile memory, such as a random access memory, and can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid state disk, and can also include a combination of the above-mentioned memories.

[0086] The electronic device further comprises a communication interface for communication between the electronic device and other devices or networks.

[0087] Optionally, the electronic device can be the pulse signal generation apparatus according to the above-mentioned embodiments.

[0088] The embodiments of the application further provide a computer readable storage medium, and the method according to the embodiments of the application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium and downloaded to a local storage medium through network, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special hardware.

[0089] The storage medium can be a disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid state disk, and the like. Further, the storage medium can also include a combination of the above-mentioned memories. It can be understood that the computer, the processor, the microprocessor controller, or the programmable hardware includes a storage component that can store or receive software or computer code, which, when accessed and executed by the computer, the processor, or the hardware, implements the method according to the above-mentioned embodiments.

[0090] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other apparatus. In addition, the embodiments of the application are not described with reference to any particular programming language.

[0091] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been described in detail in order to not obscure the understanding of this description. Like reference numerals refer to like elements throughout. Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring such order because the

[0092] It is appreciated by those skilled in the art that the modules in the apparatuses in the embodiments can be changed adaptively and arranged in one or more apparatuses different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and furthermore can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive.

[0093] It is noted that the above-mentioned embodiments illustrate rather than limit the application, and that one skilled in the art will be able to design many alternative embodiments without departing from the scope of the application. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of both hardware and software, and any combination thereof. In the embodiments using a plurality of devices, these devices can be implemented by one and the same item of hardware. The use of the word at least one and the word comprising do not exclude the presence of zero or more of the elements specified. The words first, second and third can not imply any order. The terms first, second and third are used to distinguish elements with respect to each other. The above-described embodiments are not to be understood as being restricted to the examples described above. Rather, various modifications and improvements can be made to the embodiments and combinations of parts of the embodiments can also be made to those skilled in the art without departing from the scope of the application.

Claims

1. A pulse signal generating device, characterized by comprising: The device is used for controlling pulse signal output of an output node, and comprises: a configuration module, configured to output at least one set of configuration information; the at least one set of configuration information is used for representing a waveform of the pulse signal; a pulse signal generation module, comprising a configuration storage unit, a configuration selection unit and a signal generation unit; the configuration storage unit is configured to store the at least one set of configuration information output by the configuration module; the configuration selection unit is configured to sequentially select each set of configuration information in the at least one set of configuration information stored in the configuration storage unit as target configuration information according to a number order of the at least one set of configuration information; and the signal generation unit is configured to generate the pulse signal for the output node according to the target configuration information; a power supply control module, configured to control power supply to the pulse signal generation module according to a working state of the pulse signal generation module, and to control power supply to the configuration module; the working state is used for representing a generation condition of the pulse signal by the pulse signal generation module based on the at least one set of configuration information.

2. The apparatus of claim 1, wherein, The signal generation unit is further configured to return a pulse generation signal to the configuration selection unit after generating the pulse signal corresponding to the target configuration information; The configuration selection unit is configured to determine a next set of configuration information corresponding to the target configuration information in the at least one set of configuration information as new target configuration information according to the number order after receiving the pulse generation signal.

3. The apparatus of claim 1, wherein, The power supply control module comprises a first control unit and a second control unit; The first control unit is configured to control power supply to the pulse signal generation module according to a first power supply signal and the working state of the pulse signal generation module; The second control unit is configured to control power supply to the configuration module according to a second power supply signal.

4. The apparatus of claim 1, wherein, The configuration storage unit comprises a plurality of configuration storage sub-units, which are in one-to-one correspondence with configuration numbers of the configuration information; The configuration storage sub-unit is configured to determine and store a corresponding set of configuration information from the at least one set of configuration information output by the configuration module; The configuration storage sub-unit is further configured to update a time period number of the corresponding set of configuration information after the configuration selection unit selects the corresponding set of configuration information of the configuration storage sub-unit, and to configure the corresponding set of configuration information as invalid when the time period number is zero.

5. The apparatus of claim 3 or 4, wherein, The configuration selection unit is further configured to send a configuration completion signal to the first control unit when all configuration information corresponding to the configuration sub-storage units are configured as invalid; the configuration completion signal is used for indicating that the working state of the pulse signal generation module is that the generation of the pulse signal is completed; The first control unit is configured to stop power supply to the pulse signal generation module in response to the configuration completion signal.

6. A method of generating a pulse signal, characterized by, The pulse signal generation module is applied to the pulse signal generation device in any one of claims 1 to 5, and the method comprises: obtaining at least one set of configuration information from a configuration module; the configuration information is used for representing a waveform of a pulse signal; determine each group of the configuration information as target configuration information in sequence based on a number order of the configuration information; generate and output a pulse signal based on the target configuration information.

7. The method of claim 6, wherein, The determining each group of the configuration information as target configuration information in sequence based on a number order of the configuration information comprises: in response to the receiving and storing of the at least one group of configuration information, querying the at least one group of configuration information according to the number order, and determining the first group of configuration information queried as the target configuration information; or, in response to a pulse generation signal generated by a signal generation unit of the pulse signal generation module after the pulse signal is generated, determining a next group of configuration information corresponding to the target configuration information based on the number order, and determining the next group of configuration information corresponding to the target configuration information as new target configuration information.

8. The method of claim 6, wherein, The configuration information comprises a cycle number, a cycle length and a waveform configuration; and the generating and outputting a pulse signal based on the target configuration information comprises: determining a unit pulse signal corresponding to the pulse signal based on the waveform configuration and the cycle length; setting a number of the unit pulse signal as the cycle number to generate and output the pulse signal.

9. The method according to claim 7 or 8, characterized in that, The configuration information further comprises a time period number, which is used to represent a number of times of generating the pulse signal corresponding to the configuration information; after the generating and outputting a pulse signal based on the target configuration information, the method further comprises: decreasing the time period number in the target configuration information by one to update the target configuration information; if the time period number in the target configuration information is zero, configuring the target configuration information as invalid.

10. The method of claim 6, wherein, The method further comprises: if the at least one group of configuration information obtained are all configured as invalid, sending a configuration completion signal to a power control module to instruct the power control module to cut off power supply to the pulse signal generation module.

11. An electronic device, comprising: comprise a memory and a processor, the memory and the processor are connected; wherein the memory stores computer instructions; the processor executes the computer instructions to perform the pulse signal generation method in any one of claims 6 to 10.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions are used to make a computer execute the pulse signal generation method in any one of claims 6 to 10.

Citation Information

Patent Citations

  • Pulse wave generating device, vehicle and method

    CN108512531A

  • Pulse ablation device, control method thereof and storage medium

    CN114145841A

  • Driving circuit, target voltage signal generation method and display device

    CN115731844A

  • Pulse signal generation device and method

    CN118870600A

  • Equipment used for required sequence change pulse width modulation

    CN1353503A