A pulse generation method and apparatus, an electronic device, and a storage medium
By acquiring the attribute values of the target pulse signal and generating the corresponding pulse, a general pulse generation circuit is designed, which solves the problems of complex pulse generation circuit design and poor versatility, and achieves the effect of simplifying design and improving versatility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-28
- Publication Date
- 2026-04-07
AI Technical Summary
In existing technologies, the main control chip needs to output a variety of different pulse signals to peripheral devices, which makes the design and application of pulse generation circuits complex and its versatility poor.
By acquiring the attribute values of the target pulse signal and generating the corresponding pulse according to the preset attributes, a general pulse generation circuit is designed that can generate the corresponding pulse according to the attribute values of the target pulse signal.
It simplifies the design and application complexity of pulse generation circuits and improves their versatility.
Smart Images

Figure CN121585143B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit system control technology, specifically to a pulse generation method, apparatus, electronic device, and storage medium. Background Technology
[0002] In some circuit systems, there are typically a main control chip and several peripheral devices. The main control chip and the peripheral devices are connected. In practical applications, the main control chip often needs to output pulse signals to the peripheral devices to control their operation, enabling the peripheral controller to output target data as required. However, in some applications, the main control chip may need to output multiple different pulse signals to the peripheral devices.
[0003] Therefore, pulse generation methods are typically designed for different pulse signals. However, the circuits corresponding to the pulse generation methods for different pulse signals are usually different. Consequently, multiple pulse generation circuits often need to be designed in hardware, and each pulse generation circuit needs to be understood in software development. This can lead to the design and application of pulse generation circuits becoming quite complex, resulting in poor versatility.
[0004] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0005] This application provides a pulse generation method, apparatus, electronic device, and storage medium to address the problem in related technologies where designing different pulse generation circuits for different pulse signals can lead to complex design and application of pulse generation circuits, resulting in poor versatility of pulse generation circuits.
[0006] In a first aspect, embodiments of this application provide a pulse generation method, including:
[0007] Obtain the attribute value corresponding to the target pulse signal, the attribute value corresponding to the preset attribute, and used to characterize the time domain characteristics of the target pulse signal;
[0008] Based on the attribute value corresponding to the preset attribute, a pulse corresponding to the target pulse signal is generated.
[0009] In one possible implementation, generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes:
[0010] Based on the attribute value corresponding to the preset attribute and the reference clock, a pulse corresponding to the target pulse signal is generated, and the reference clock is used to control the generation timing of the pulse corresponding to the target pulse signal.
[0011] In one possible implementation, the preset attributes include a pulse enable flag and a first pulse delay time, and the step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attributes includes:
[0012] When the attribute value corresponding to the pulse enable flag is the first enable flag, the timing starts;
[0013] If the timing time reaches the attribute value corresponding to the delay time of the first pulse, then the first pulse corresponding to the target pulse signal is generated.
[0014] In one possible implementation, the preset attribute includes a pulse active level, and the step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes:
[0015] When the attribute value corresponding to the pulse effective level is a first level, a first pulse corresponding to the target pulse signal is generated. The first pulse is a pulse that is active at a high level and inactive at a low level.
[0016] When the attribute value corresponding to the effective level of the pulse is the second level, a second pulse corresponding to the target pulse signal is generated. The second pulse is a pulse that is active at low level and inactive at high level.
[0017] In one possible implementation, the preset attributes further include pulse effective level width and pulse ineffective level width. The attribute value corresponding to the pulse effective level width is used to specify the duration of the effective level of the first pulse or the second pulse, and the attribute value corresponding to the pulse ineffective level width is used to specify the duration of the ineffective level of the first pulse or the second pulse.
[0018] In one possible implementation, the preset attribute includes the number of pulses, and the step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes:
[0019] When the attribute value corresponding to the number of pulses is greater than the preset pulse number threshold, a pulse corresponding to the target pulse signal is generated based on the attribute value corresponding to the number of pulses.
[0020] In one possible implementation, generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes:
[0021] When the attribute value corresponding to the number of pulses is less than or equal to the preset number of pulses threshold, the continuous generation mode is entered, which is a mode that continuously generates pulses corresponding to the target pulse signal.
[0022] In one possible implementation, the preset attribute further includes a pulse idle time;
[0023] When the attribute value corresponding to the pulse idle time is less than or equal to the preset pulse idle time threshold, the number of pulses corresponding to the target pulse signal is the attribute value corresponding to the number of pulses.
[0024] In one possible implementation, the method further includes:
[0025] If the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, then the target pulse idle time is determined to be the attribute value corresponding to the pulse idle time.
[0026] At each interval of the target pulse idle time, a pulse group corresponding to the target pulse signal is generated, and the number of pulses included in the pulse group is the attribute value corresponding to the number of pulses.
[0027] Secondly, embodiments of this application provide a pulse generation device, comprising:
[0028] An acquisition module is used to acquire attribute values corresponding to a target pulse signal. The attribute values correspond to preset attributes and are used to characterize the time-domain characteristics of the target pulse signal.
[0029] The pulse generation module is used to generate a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute.
[0030] Thirdly, embodiments of this application provide an electronic device, including:
[0031] processor;
[0032] Memory;
[0033] And a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, causes the electronic device to perform the method described in any one of the first aspects.
[0034] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any one of the first aspects.
[0035] In this embodiment, the attribute value corresponding to the target pulse signal can first be obtained, and the attribute value corresponds to a preset attribute. Then, a pulse corresponding to the target pulse signal can be generated based on the attribute value corresponding to the preset attribute. It is understood that a universal pulse generation circuit can be designed to generate a pulse corresponding to the target pulse signal based on its attribute value. When it is necessary to generate pulses corresponding to other target pulse signals, only the attribute values of the other target pulse signals need to be input into the pulse generation circuit to generate the corresponding pulses, thereby greatly simplifying the design and application complexity of the pulse generation circuit and improving its versatility to a certain extent. Attached Figure Description
[0036] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application.
[0038] Figure 2 A schematic diagram of the structure of a control circuit system for an image forming apparatus provided in the embodiments of this application.
[0039] Figure 3 This is a schematic flowchart of a pulse generation method provided in an embodiment of this application.
[0040] Figure 4 This is a schematic diagram of a general pulse generation system provided in an embodiment of this application.
[0041] Figure 5 This is a schematic diagram of another image forming apparatus control circuit system provided in an embodiment of this application.
[0042] Figure 6 This is a schematic diagram of another general pulse generation system provided in an embodiment of this application.
[0043] Figures 7A-7C This is a schematic diagram illustrating the generation of a pulse signal according to an embodiment of this application.
[0044] Figure 8 This is a schematic diagram of a pulse generation device provided in an embodiment of this application.
[0045] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0046] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0047] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0048] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0049] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0050] See Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. Figure 1 The diagram shows a main control chip 101 and peripheral devices 102. The main control chip 101 can output control pulse signals to the peripheral devices 102, thereby controlling the operation of the peripheral devices 102 and enabling the peripheral devices 102 to output target data to the main control chip 101 as required.
[0051] It should be pointed out that, Figure 1 This is merely an illustrative description and should not be construed as limiting the scope of protection of this application. For example, the main control chip 101 includes, but is not limited to, scanning control chips, print driver chips, etc., in the image forming apparatus control circuit system; peripheral devices 102 include, but are not limited to, contact image sensors (CIS), analog front ends (AFE), etc., in the image forming apparatus control circuit system.
[0052] An image forming apparatus is a device that forms an image on an imaging medium using imaging principles, such as a printer, copier, fax machine, multi-function image making and copying apparatus, electrostatic printing apparatus, and any other similar apparatus.
[0053] In some applications, the main control chip typically needs to output multiple different pulse signals to peripheral devices. (See also...) Figure 2 This is a schematic diagram of the structure of a control circuit system for an image forming apparatus according to an embodiment of this application. Figure 2 As shown, the image forming apparatus control circuit system 200 includes a scan control chip 201, a CIS 202, and an AFE 203. The scan controller 204 inside the scan control chip 201 may need to output CIS control pulses to the CIS 202, causing the CIS 202 to operate according to certain requirements. The scan controller 204 may also need to output AFE control pulses to the AFE 203, causing the AFE 203 to operate according to certain requirements and sending image data to the data sampling module 209 inside the scan controller 204. The scan controller 204 may also need to generate internal sampling pulses to accurately use the image data in the data sampling module 209.
[0054] Therefore, different pulse generation methods are typically designed for different pulse signals. However, the circuits corresponding to the pulse generation methods for different pulse signals are usually different. For example... Figure 2 As shown, the pulse generator 205 inside the scan controller 204 includes a CIS pulse generation circuit 206, an AFE pulse generation circuit 207, and a sampling pulse generation circuit 208. Specifically, the CIS pulse generation circuit 206 generates CIS control pulses output to the CIS 202; the AFE pulse generation circuit 207 generates AFE control pulses output to the AFE 203; and the sampling pulse generation circuit 208 generates sampling pulses output to the data sampling module 209.
[0055] Therefore, hardware design often requires designing multiple pulse generation circuits, and software development also requires understanding each pulse generation circuit. This can lead to a more complex design and application of pulse generation circuits, resulting in poor versatility.
[0056] To address the aforementioned problems, this application provides a pulse generation method. This method first obtains attribute values corresponding to a target pulse signal, where each attribute value corresponds to a preset attribute. Then, it generates a pulse corresponding to the target pulse signal based on the attribute values corresponding to the preset attributes. It is understood that a universal pulse generation integrated circuit can be designed and manufactured to generate a pulse corresponding to the target pulse signal based on its attribute values. When it is necessary to generate pulses corresponding to other target pulse signals, only the attribute values of those other target pulse signals need to be input into the pulse generation integrated circuit to generate the corresponding pulses. This greatly simplifies the design and application complexity of the pulse generation integrated circuit and improves its versatility to a certain extent.
[0057] Specifically, the following detailed description is provided in conjunction with the accompanying drawings and specific embodiments.
[0058] See Figure 3 This is a schematic flowchart illustrating a pulse generation method provided in an embodiment of this application. This method can be applied to... Figure 1 In the application scenarios shown, such as Figure 3 As shown, it specifically includes steps S301 to S302.
[0059] Step S301: Obtain the attribute value corresponding to the target pulse signal. The attribute value corresponds to the preset attribute.
[0060] In the embodiments of this application, the target pulse signal is used to control peripheral devices to perform related operations. For example, in the control circuit system of an image forming apparatus, if the target pulse signal is a CIS row synchronization pulse signal, the target pulse signal is used to control the CIS to trigger a new row scanning operation; if the target pulse signal is an AFE sampling pulse signal, the target pulse signal is used to control the AFE to convert the analog signal output by the CIS into a digital signal.
[0061] As mentioned above, different pulse signals correspond to different pulse generation methods and circuits, which may make the design and application of pulse generation circuits more complex and reduce their versatility.
[0062] Therefore, the pulse attributes of multiple pulse signals can be extracted and summarized to obtain preset attributes. When a target pulse signal needs to be generated, the attribute values corresponding to the target pulse signal and the preset attributes can be configured through relevant software, so that the system can obtain the attribute values corresponding to the target pulse signal and generate the pulse corresponding to the target pulse signal.
[0063] It is understandable that the attribute values corresponding to the target pulse signal are used to characterize the time-domain characteristics of the target pulse signal.
[0064] In the embodiments of this application, the preset attributes include, but are not limited to, pulse enable flag, pulse start generation flag, first pulse delay time, pulse effective level, pulse effective level width, pulse ineffective level width, number of pulses, and pulse idle time. For ease of understanding, the above preset attributes will be described in detail below.
[0065] (1) Pulse generate enable (GE): The pulse generate enable flag indicates whether the pulse generation function is enabled. It can be understood as a switch. When the attribute value corresponding to the pulse generate enable flag is the first enable flag, the switch is considered open, meaning the pulse generation function is enabled. In this case, the system can generate the pulse corresponding to the target pulse signal, enabling the peripheral device receiving the pulse to respond to the corresponding operation. When the attribute value corresponding to the pulse generate enable flag is the second enable flag, the switch is considered closed, meaning the pulse generation function is disabled. In this case, the system cannot generate the pulse corresponding to the target pulse signal, preventing the peripheral device receiving the pulse from responding to the corresponding operation.
[0066] The first enable flag and the second enable flag are preset values. For example, the first enable flag is 0 and the second enable flag is 1; or, the first enable flag is 1 and the second enable flag is 0. Of course, those skilled in the art can set other first enable flags and second enable flags according to actual needs, and the embodiments of this application do not impose specific limitations on this.
[0067] (2) Pulse start flag (PS): The pulse start flag indicates that the trigger signal for pulse generation is valid. That is, when the pulse generation function is enabled, if the system receives a valid trigger signal, the system can start generating the first pulse corresponding to the target pulse signal.
[0068] (3) First pulse delay (FD): The first pulse delay is used to control the timing of the generation of the first pulse corresponding to the target pulse signal. It can be understood that when the pulse generation function is enabled and the trigger signal for pulse generation is valid, the system begins generating the first pulse corresponding to the target pulse signal after the first pulse delay. For ease of explanation, the times mentioned below are in clock cycles.
[0069] For example, when the system receives the trigger signal corresponding to the pulse start generation flag in the second clock cycle, if the attribute value corresponding to the first pulse delay time is 0 clock cycles (i.e., FD=0), then after an interval of 0 clock cycles, the first pulse corresponding to the target pulse signal is generated in the third clock cycle; if the attribute value corresponding to the first pulse delay time is 1 clock cycle (i.e., FD=1), then after an interval of 3 clock cycles, the first pulse corresponding to the target pulse signal is generated in the fourth clock cycle; if the attribute value corresponding to the first pulse delay time is 2 clock cycles (i.e., FD=2), then after an interval of 3 and 4 clock cycles, the first pulse corresponding to the target pulse signal is generated in the fifth clock cycle, and so on. The embodiments of this application will not be described in detail.
[0070] (4) Pulse active status (AS): The pulse active status is used to characterize the level state of the pulse corresponding to the target pulse signal. It can be understood that when the attribute value corresponding to the pulse active status is the first level, the pulse corresponding to the target pulse signal is considered to be at a high level when active and at a low level when inactive. When the attribute value corresponding to the pulse active status is the second level, the pulse corresponding to the target pulse signal is considered to be at a low level when active and at a high level when inactive.
[0071] The first level and the second level are preset level values. For example, the first level is 1 and the second level is 0; or, the first level is 0 and the second level is 1.
[0072] It is understandable that if the first level is 1 and the second level is 0, then when the attribute value corresponding to the pulse effective level is 1 (i.e., AS=1), the pulse corresponding to the target pulse signal is at a high level when it is effective and at a low level when it is ineffective; when the attribute value corresponding to the pulse effective level is 0 (i.e., AS=0), the pulse corresponding to the target pulse signal is at a low level when it is effective and at a high level when it is ineffective.
[0073] Conversely, if the first level is 0 and the second level is 1, then when the attribute value corresponding to the pulse effective level is 0 (i.e., AS=0), the pulse corresponding to the target pulse signal is at a high level when it is effective and at a low level when it is ineffective; when the attribute value corresponding to the pulse effective level is 1 (i.e., AS=1), the pulse corresponding to the target pulse signal is at a low level when it is effective and at a high level when it is ineffective.
[0074] Of course, those skilled in the art can set other first and second levels according to actual needs, and the embodiments of this application do not impose specific limitations on this.
[0075] (5) Active pulse width (AW): The active pulse width specifies the duration of the active pulse level corresponding to the target pulse signal. For ease of explanation, the width mentioned below is in clock cycles.
[0076] For example, the attribute value corresponding to the pulse effective level width is 2 clock cycles (i.e., AW=2). If the pulse corresponding to the target pulse signal is at a high level when it is active and at a low level when it is inactive, the duration of the high level is 2 clock cycles; if the pulse corresponding to the target pulse signal is at a low level when it is active and at a high level when it is inactive, the duration of the low level is 2 clock cycles.
[0077] (6) Inactive width (IAW): The inactive width is used to specify the duration of the inactive level of the pulse corresponding to the target pulse signal.
[0078] For example, the attribute value corresponding to the pulse invalid level width is 3 clock cycles (i.e., IAW=3). If the pulse corresponding to the target pulse signal is at a high level when it is valid and at a low level when it is invalid, the duration of the low level is 3 clock cycles; if the pulse corresponding to the target pulse signal is at a low level when it is valid and at a high level when it is invalid, the duration of the high level is 3 clock cycles.
[0079] (7) Pulse number (PN): The pulse number specifies the number of pulses corresponding to the target pulse signal, or the number of pulses in the pulse group corresponding to the target pulse signal. For example, if the attribute value corresponding to the pulse number is 2, it can be assumed that 2 pulses corresponding to the target pulse signal need to be generated, or the number of pulses in the pulse group corresponding to the target pulse signal is 2.
[0080] It should be noted that when the attribute value corresponding to the number of pulses is less than or equal to the preset pulse number threshold, the system enters continuous generation mode. Continuous generation mode is a mode that continuously generates pulses corresponding to the target pulse signal. Furthermore, the generation of pulses corresponding to the target pulse signal stops when the first preset termination condition is met.
[0081] The first preset termination condition is: the attribute value corresponding to the pulse enable flag becomes the second enable flag. This means that during the generation of the pulse corresponding to the target pulse signal, if the attribute value corresponding to the pulse enable flag changes to the second enable flag, the generation of the pulse corresponding to the target pulse signal can be considered complete. At this point, there is no need to continue generating the pulse corresponding to the target pulse signal.
[0082] Furthermore, when the attribute value corresponding to the number of pulses is greater than the preset pulse count threshold, the system enters the first counting mode. This means that when the system enters the first counting mode, the first count is incremented by 1 for each pulse corresponding to the target pulse signal generated. Further, when the second preset termination condition is met, the generation of pulses corresponding to the target pulse signal stops and the first count is reset to 0; alternatively, when the preset pulse generation condition is met, the pulse idle time is delayed before continuing to generate pulses corresponding to the target pulse signal.
[0083] In this embodiment, the second preset end condition and the preset pulse generation condition are related to the pulse idle time. The specific details of the "second preset end condition" and the "preset pulse generation condition" are described in detail below and will not be repeated here.
[0084] It should be noted that the preset pulse count threshold is a predefined value, such as 0, 1, 2, 3, etc. However, in practical applications, it may be necessary to generate any number of pulses corresponding to the target pulse signal. If the preset pulse count threshold is a number greater than 0, it may be necessary to set up redundant pulse count processing logic for the system (e.g., pulse count conversion), enabling the system to generate any number of pulses corresponding to the target pulse signal. This may increase the system's data processing volume and delay the system's response time. In addition, it also increases the system's design complexity.
[0085] To address the aforementioned issues, in one possible implementation, the preset pulse count threshold is typically set to 0. It can be understood that when the attribute value corresponding to the pulse count is less than or equal to 0 (i.e., PN ≤ 0), the system enters continuous generation mode. When the attribute value corresponding to the pulse count is greater than 0 (i.e., PN > 0), the system enters the first counting mode.
[0086] At this point, the system can obtain the number of pulses corresponding to the target pulse signal simply by reading the attribute value corresponding to the pulse count. Since no additional pulse count processing logic is required, the system's data processing volume is reduced and the system's response time is improved to some extent. Furthermore, the elimination of unnecessary pulse count processing logic reduces the system's design complexity.
[0087] (8) Pulse idle time (PI): Pulse idle time is used to specify the generation interval between pulse groups corresponding to the target pulse signal.
[0088] For example, if the attribute value corresponding to the pulse idle time is 2 clock cycles (i.e., PI=2), it means that after generating a pulse group corresponding to the target pulse signal, another pulse group corresponding to the target pulse signal will be generated after a 2-clock-cycle interval.
[0089] Among them, the number of pulses in the pulse group corresponding to the target pulse signal matches the attribute value corresponding to the number of pulses.
[0090] It should be noted that the pulse idle time only takes effect when the system enters the first counting mode (i.e., PN > preset pulse count threshold). If the preset pulse count threshold is set to 0, the pulse group corresponding to the target pulse signal includes PN pulses corresponding to the target pulse signal; if the preset pulse count threshold is set to a value greater than 0, the number of pulses included in the pulse group corresponding to the target pulse signal is the number of pulses after processing by the pulse count processing logic.
[0091] In this embodiment, when the system enters continuous generation mode, the effect of pulse idle time is ignored. When the system enters the first counting mode, if the attribute value corresponding to the pulse idle time is less than or equal to a preset pulse idle time threshold, it means that the interval between pulse groups is infinitely long. At this time, after generating a pulse group corresponding to the target pulse signal, the system stops generating pulses corresponding to the target pulse signal.
[0092] Therefore, the second preset termination condition as described above includes: the attribute value corresponding to the pulse idle time is less than or equal to the preset pulse idle time threshold, and the first count is equal to the pulse count value that matches the attribute value corresponding to the number of pulses.
[0093] Of course, the second preset termination condition also includes the attribute value corresponding to the pulse enable flag being the second enable flag. It can be understood that when the system enters the first counting mode, it stops generating the pulse corresponding to the target pulse signal when any one of the second preset termination conditions is met.
[0094] In addition, when the system enters the first counting mode, if the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, it means that a pulse group corresponding to the target pulse signal is generated every pulse idle time interval until the third preset end condition is met and the generation of the pulse group corresponding to the target pulse signal stops.
[0095] Therefore, as described above, the preset pulse generation condition is: the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold. In other words, when the attribute value corresponding to the number of pulses is greater than the preset number of pulses threshold, if the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, pulse groups corresponding to the target pulse signal will continue to be generated after the pulse idle time interval. The specific details of the "third preset termination condition" will be described in detail below and will not be repeated here.
[0096] It should be noted that the preset pulse idle time threshold is a preset value, such as 0 clock cycles, 1 clock cycle, 2 clock cycles, 3 clock cycles, etc. However, in practical applications, it may be necessary to generate pulse groups corresponding to the target pulse signal at arbitrary clock cycle intervals. If the preset pulse idle time threshold is a number greater than 0, it may be necessary to set up redundant pulse idle time processing logic for the system (e.g., pulse idle time conversion), so that the system can generate pulse groups corresponding to the target pulse signal at arbitrary clock cycle intervals. This may increase the system's data processing volume and delay the system's response time. In addition, it also increases the system's design complexity.
[0097] To address the aforementioned issues, in one possible implementation, the preset pulse idle time threshold is typically set to 0. It can be understood that when the system enters the first counting mode, if the attribute value corresponding to the pulse idle time is less than or equal to 0 (i.e., PI ≤ 0), the system stops generating pulses corresponding to the target pulse signal after generating one pulse group corresponding to the target pulse signal; if the attribute value corresponding to the pulse idle time is greater than 0 (i.e., PI > 0), then one pulse group corresponding to the target pulse signal is generated every PI clock cycles.
[0098] At this point, the system can obtain the interval time between pulse groups corresponding to the target pulse signal simply by reading the attribute value corresponding to the pulse idle time. Since no other redundant pulse idle time processing logic is required, the system's data processing volume is reduced to some extent, and the system's response time is improved. Furthermore, the elimination of unnecessary pulse idle time processing logic reduces the system's design complexity to some extent.
[0099] For example, the preset pulse idle time threshold is 0 clock cycles. When the system enters the first counting mode, if the attribute value corresponding to the pulse idle time is -1 clock cycles (i.e., PI=-1), since PI≤0, PN pulses corresponding to the target pulse signal are generated, and then the generation of pulses corresponding to the target pulse signal stops. If the attribute value corresponding to the pulse idle time is 3 clock cycles (i.e., PI=3), since PI>0, a pulse group corresponding to the target pulse signal is generated every 3 clock cycles until the third preset termination condition is met, at which point the generation of pulse groups corresponding to the target pulse signal stops.
[0100] The third preset termination condition includes at least one of the following conditions: the attribute value corresponding to the pulse enable flag is the second enable flag, and the number of generated pulse groups is equal to the attribute value corresponding to the number of pulse groups.
[0101] It is understandable that during the generation of the pulse group corresponding to the target pulse signal, if the attribute value corresponding to the pulse enable flag changes to the second enable flag, the generation of the pulse group corresponding to the target pulse signal can be considered complete. At this point, there is no need to continue generating the pulse or pulse group corresponding to the target pulse signal.
[0102] In addition, in this embodiment, the number of pulse groups is also one of the preset attributes, which is used to specify the number of pulse groups corresponding to the target pulse signal. The attribute value corresponding to the number of pulse groups is usually greater than 0. For example, if the attribute value corresponding to the number of pulse groups is 2 and the attribute value corresponding to the pulse idle time is 2 clock cycles, it can be considered that 2 pulse groups corresponding to the target pulse signal need to be generated, and the generation interval between the two pulse groups is the attribute value corresponding to the pulse idle time, that is, after generating one pulse group, there is a 2-clock-cycle interval before generating another pulse group.
[0103] It should be noted that the pulse group count only takes effect when the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold. That is, when the pulse idle time is active (i.e., when entering the first counting mode), if the attribute value corresponding to the pulse idle time is less than or equal to the preset pulse idle time threshold, the effect of the pulse group count is ignored; when the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, the system enters the second counting mode.
[0104] Understandably, when the system enters the second counting mode, the second count increments by 1 for each pulse group corresponding to the target pulse signal generated. Furthermore, when the number of generated pulse groups (i.e., the second count) equals the attribute value corresponding to that number of pulse groups, it can be considered that the generation of pulse groups corresponding to the target pulse signal has been completed. At this point, there is no need to continue generating pulse groups corresponding to the target pulse signal. Therefore, the generation of pulse groups corresponding to the target pulse signal can be stopped, and the second count can be reset to 0.
[0105] Step S302: Generate a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute.
[0106] To achieve more precise control over the generation of pulses corresponding to the target pulse signal, one possible implementation is to generate pulses corresponding to the target pulse signal based on attribute values corresponding to preset attributes and a reference clock. The reference clock is used to control the timing of pulse generation corresponding to the target pulse signal.
[0107] See Figure 4 This is a schematic diagram of a general pulse generation system provided in an embodiment of this application. Figure 4As shown, the general-purpose pulse generation system 400 includes a pulse parameter parsing unit 401 and a pulse synthesis unit 402. When a target pulse signal needs to be generated, the attribute value corresponding to the target pulse signal and a reference clock can be input to the pulse parameter parsing unit 401 first. Then, the pulse parameter parsing unit 401 can parse the pulse attribute parameters (i.e., the attribute values corresponding to the target pulse signal) based on the reference clock and output several intermediate pulses. Then, the intermediate pulses are input to the pulse synthesis unit 402, so that the pulse synthesis unit 402 combines the intermediate pulses to form the target pulse signal. It can be understood that an intermediate pulse is a pulse corresponding to the target pulse signal. The pulse synthesis unit 402 can combine multiple intermediate pulses to form the target pulse signal. For example, in hardware design, a general-purpose pulse generation circuit can be generated using Electronic Design Automation (EDA) tools based on the pulse generation method and the structure of the general-purpose pulse generation system. Of course, a general-purpose pulse generation integrated circuit can also be manufactured based on the pulse generation method and the structure of the general-purpose pulse generation system.
[0108] See Figure 5 This is a schematic diagram of another image forming apparatus control circuit system provided in an embodiment of this application. Figure 5 As shown, the image forming apparatus control circuit system 200 includes a scan control chip 201, a CIS 202, and an AFE 203. The scan controller 204 inside the scan control chip 201 includes a pulse generator 205 and a data sampling module 209.
[0109] The pulse generator 205 includes a general-purpose pulse generation circuit 500. This circuit can generate pulses corresponding to target pulse signals based on pulse generation methods. For example, it can generate CIS control pulses output to CIS 202, AFE control pulses output to AFE 203, sampling pulses output to data sampling module 209, and other types of pulses corresponding to target pulse signals.
[0110] In the embodiments of this application, there is no need to design corresponding pulse generation circuits for different pulse signals. Based on the pulse generation method and the general pulse generation circuit, pulses corresponding to other target pulse signals can be generated, which greatly simplifies the design and application complexity of the pulse generation circuit and improves the versatility of the pulse generation circuit to a certain extent.
[0111] As mentioned above, the preset attributes include a pulse enable flag, a pulse start generation flag, an initial pulse delay time, a pulse effective level, a pulse effective level width, a pulse ineffective level width, a number of pulses, and a pulse idle time. In practical applications, there may be multiple schemes for "generating pulses corresponding to the target pulse signal". For ease of understanding, this application provides seven implementation methods for "generating pulses corresponding to the target pulse signal", which will be described below.
[0112] In one possible implementation, the preset attributes include a pulse enable flag and a first pulse delay time. When the attribute value corresponding to the pulse enable flag is the first enable flag, timing begins; if the timing time reaches the attribute value corresponding to the first pulse delay time, the first pulse corresponding to the target pulse signal is generated.
[0113] In this embodiment, when the attribute value corresponding to the pulse enable flag is the first enable flag, it can be considered that the pulse generation function is enabled and the trigger signal for pulse generation is valid. At this time, timing can begin. Furthermore, the system can determine in real time whether the timing time is the same as the attribute value corresponding to the first pulse delay time, thereby enabling more precise control over the generation of the first pulse corresponding to the target pulse signal.
[0114] It is understood that when the timing reaches the attribute value corresponding to the delay time of the first pulse, it means that the generation of the first pulse corresponding to the target pulse signal can begin. Specific details regarding the embodiments of this application can be found in the description of the above method embodiments; for the sake of brevity, they will not be repeated here.
[0115] In one possible implementation, the preset attributes include the pulse effective level. When the attribute value corresponding to the pulse effective level is a first level, a first pulse corresponding to the target pulse signal is generated; when the attribute value corresponding to the pulse effective level is a second level, a second pulse corresponding to the target pulse signal is generated.
[0116] The first pulse is a pulse that is active high and inactive low; the second pulse is a pulse that is active low and inactive high.
[0117] In this embodiment, when the attribute value corresponding to the pulse effective level is a first level, it can be assumed that the pulse to be generated corresponding to the target pulse signal is at a high level when it is effective and at a low level when it is invalid. When the attribute value corresponding to the pulse effective level is a second level, it can be assumed that the pulse to be generated corresponding to the target pulse signal is at a low level when it is effective and at a high level when it is invalid.
[0118] Therefore, by using the attribute values corresponding to the effective level of the pulse, the effective level of the pulse corresponding to the target pulse signal can be determined, thereby generating a more accurate pulse corresponding to the target pulse signal and improving the reliability of the target pulse signal to a certain extent.
[0119] To further improve the reliability of the target pulse signal, in one possible implementation, the preset attributes also include pulse effective level width and pulse ineffective level width. In this embodiment, the attribute value corresponding to the pulse effective level width is used to specify the duration of the effective level of the first pulse or the second pulse; the attribute value corresponding to the pulse ineffective level width is used to specify the duration of the ineffective level of the first pulse or the second pulse. Specific details related to this embodiment can be found in the description of the above method embodiments, and for the sake of brevity, will not be repeated here.
[0120] In one possible implementation, the preset attribute includes the number of pulses. When the attribute value corresponding to the number of pulses is greater than the preset pulse count threshold, a pulse corresponding to the target pulse signal can be generated based on the attribute value corresponding to the number of pulses.
[0121] It is understandable that when the attribute value corresponding to the number of pulses is greater than the preset pulse number threshold, it can be assumed that a fixed number of pulses corresponding to the target pulse signal need to be generated. At this time, the attribute value corresponding to the number of pulses is the number of pulses in the target pulse signal to be generated. When the number of generated pulses equals the attribute value corresponding to the number of pulses, the generation of pulses corresponding to the target pulse signal stops.
[0122] In one possible implementation, when the attribute value corresponding to the number of pulses is less than or equal to a preset pulse count threshold, the system enters continuous generation mode. As mentioned above, continuous generation mode is a mode that continuously generates pulses corresponding to the target pulse signal.
[0123] Understandably, when the attribute value corresponding to the number of pulses is less than or equal to the preset pulse number threshold, it means that the system needs to continuously output pulses corresponding to the target pulse signal. In this case, there is no need to analyze the attribute value corresponding to the pulse idle time, which reduces the system's data processing load to some extent, thereby improving the system's response performance.
[0124] Furthermore, when the first preset termination condition is met, the generation of the pulse corresponding to the target pulse signal stops. For specific details regarding the embodiments of this application, please refer to the description of the above method embodiments; for the sake of brevity, these details will not be repeated here.
[0125] In practical applications, the system may only need to continuously generate PN pulses corresponding to the target pulse signal, or it may need to generate a pulse group corresponding to the target pulse signal and then generate another pulse group corresponding to the target pulse signal after a certain time interval.
[0126] Therefore, to meet practical needs, in one possible implementation, the preset attribute also includes a pulse idle time. In the embodiments of this application, the pulse idle time is used, on the one hand, to distinguish whether a certain time interval is needed before generating the pulse group corresponding to the target pulse signal; on the other hand, it is used to specify the generation interval time between the pulse groups corresponding to the target pulse signal.
[0127] It is understandable that when the attribute value corresponding to the number of pulses is greater than the preset pulse number threshold, and the attribute value corresponding to the pulse idle time is less than or equal to the preset pulse idle time threshold, the number of pulses corresponding to the target pulse signal is the attribute value corresponding to the number of pulses. In this case, it can be considered that only one pulse group corresponding to the target pulse signal needs to be generated.
[0128] Furthermore, when the first count equals the number of pulses corresponding to the target pulse signal, or when the attribute value corresponding to the pulse enable flag is the second enable flag, the generation of pulses corresponding to the target pulse signal stops and the first count is reset to 0. Specific details related to the embodiments of this application can be found in the description of the above method embodiments; for the sake of brevity, they will not be repeated here.
[0129] In addition, if the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, the target pulse idle time is determined to be the attribute value corresponding to the pulse idle time; every time the target pulse idle time is intermittent, a pulse group corresponding to the target pulse signal is generated, and the number of pulses included in the pulse group is the attribute value corresponding to the number of pulses.
[0130] It is understood that when the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, it can be considered that multiple pulse groups corresponding to the target pulse signal need to be generated, and the generation time interval between two pulse groups is the target pulse idle time. Furthermore, the generation of pulse groups corresponding to the target pulse signal stops when the third preset termination condition is met. For specific details related to the embodiments of this application, please refer to the description of the above method embodiments; for the sake of brevity, further elaboration is not provided here.
[0131] In the embodiments of this application, by combining the number of pulses and the pulse idle time, more different target pulse signals can be defined, thereby generating pulses corresponding to different target pulse signals more accurately, which to a certain extent improves the versatility of the pulse generation circuit designed based on the above pulse generation method and general pulse generation system.
[0132] To improve the efficiency of pulse generation in a pulse generation system, the function of the pulse parameter analysis unit can be separated into multiple processing units. Each processing unit has a clear functional positioning and simple logic, allowing for rapid analysis of pulse attribute information corresponding to the target pulse signal through the cooperation of multiple processing units, thereby generating a pulse that corresponds to the target pulse signal.
[0133] See Figure 6 This is a schematic diagram of another general pulse generation system provided in an embodiment of this application. Figure 6 As shown, the general-purpose pulse generation system 400 includes a delay unit 601, a pulse generation unit 602, a pulse idle time control unit 603, and a pulse synthesis unit 402. The delay unit 601 processes information related to the initial pulse delay time to control the timing of the generation of the first pulse corresponding to the target pulse signal. The pulse generation unit 602 processes information related to the pulse effective level, pulse effective level width, and pulse ineffective level width to control the specific form of the pulse corresponding to the target pulse signal. The pulse idle time control unit 603 processes information related to the number of pulses and pulse idle time to control the interval time between pulse groups corresponding to the target pulse signal. The pulse synthesis unit 402 combines intermediate pulses to form the target pulse signal. For example, during hardware design, a general-purpose pulse generation circuit can be generated using Electronic Design Automation (EDA) tools based on the pulse generation method and the structure of the general-purpose pulse generation system. Alternatively, a general-purpose pulse generation integrated circuit can be manufactured based on the pulse generation method and the structure of the general-purpose pulse generation system.
[0134] In this embodiment, the pulse parameter parsing unit is divided into a delay unit, a pulse generation unit, and a pulse idle time control unit to improve the efficiency of pulse generation in the pulse generation system. Of course, those skilled in the art can further divide the pulse parameter parsing unit into other numbers and types of processing units according to actual needs; this embodiment does not impose specific limitations in this regard.
[0135] Other contents involved in the embodiments of this application can be found in the description of the above method embodiments, and will not be repeated here for the sake of brevity.
[0136] The pulse generation method described above can cover the functional requirements of different pulse signals. For example, CIS line synchronization pulse signals, AFE sampling pulse signals, etc. To facilitate understanding of the above pulse generation method, embodiments of this application provide three examples of pulse signal generation.
[0137] See Figures 7A-7C This is a schematic diagram illustrating the generation of a pulse signal according to an embodiment of this application. Figure 7A As shown, clock is the reference clock; pls_start is used to indicate that the trigger signal for starting pulse generation mentioned above is valid; tr is used to characterize the pulse corresponding to the CIS row synchronization pulse signal; pls_done is used to indicate the cessation of pulse generation corresponding to tr. Figure 7A The pulse shown can be applied to the CIS line synchronization pulse signal (i.e., tr).
[0138] It should be noted that in this embodiment, both the preset pulse count threshold and the preset pulse idle time threshold are set to 0.
[0139] like Figure 7A As shown, the attribute values corresponding to tr are configured as follows: AS=1, FD=2, AW=2, IAW=4, PN=N, and PI=0. It can be understood that AS=1 indicates that the pulse corresponding to tr is active high and inactive low; FD=2 indicates that the pulse corresponding to tr generates its first pulse after a 2-clock-cycle interval following the activation of the trigger signal at the start of pulse generation; AW=2 indicates that the duration of the active level of the pulse corresponding to tr is 2 clock cycles; IAW=4 indicates that the duration of the inactive level of the pulse corresponding to tr is 4 clock cycles; since N is greater than the preset pulse number threshold of 0, PN=N indicates that the number of pulses corresponding to tr is N; since PI is equal to the preset pulse idle time threshold of 0, PI=0 indicates that no more pulses are generated after N pulses corresponding to tr.
[0140] like Figure 7A As shown, `pls_start` indicates that the trigger signal for pulse generation is valid in the second clock cycle, and the FD corresponding to `tr` is 2. Therefore, after the third and fourth clock cycles, the first pulse corresponding to `tr` is generated starting in the fifth clock cycle. `pls_done` indicates that the generation of the pulse corresponding to `tr` will stop in the 22nd clock cycle, at which point the generation of the pulse corresponding to `tr` is complete.
[0141] like Figure 7B As shown, vsmp is used to characterize the AFE sampling pulse signal; pls_done is used to count the number of pulse groups generated corresponding to vsmp. Figure 7B The pulse shown can be applied to the AFE sampling pulse signal (i.e., vsmp). The attribute values corresponding to vsmp are configured as follows: AS=1, FD=1, AW=1, IAW=2, PN=N, and PI=1.
[0142] It is understandable that AS=1 indicates that the pulse corresponding to vsmp is active high and inactive low; FD=1 indicates that the pulse corresponding to vsmp starts generating the first pulse after a 1-clock-cycle interval following the activation of the trigger signal at the start of pulse generation; AW=1 indicates that the duration of the active level of the pulse corresponding to vsmp is 1 clock cycle; IAW=2 indicates that the duration of the inactive level of the pulse corresponding to vsmp is 2 clock cycles; since N is greater than the preset pulse number threshold of 0, PN=N indicates that the number of pulses corresponding to vsmp is N; since PI is greater than the preset pulse idle time threshold of 0, PI=1 indicates that the pulse group corresponding to vsmp includes N pulses, and the generation interval between the pulse groups corresponding to vsmp is 1 clock cycle.
[0143] like Figure 7B As shown, `pls_start` indicates that the trigger signal for pulse generation is valid in the second clock cycle, and FD=1 for `vsmp`. Therefore, after a third clock cycle, the first pulse corresponding to `vsmp` is generated in the fourth clock cycle. `pls_done` indicates that the first pulse group corresponding to `vsmp` has been generated in the twelfth clock cycle. Since PI=1, after a thirteenth clock cycle, the first pulse in the second pulse group corresponding to `vsmp` is generated in the fourteenth clock cycle. `pls_done` indicates that the second pulse group corresponding to `vsmp` has been generated in the twenty-second clock cycle.
[0144] like Figure 7C As shown, `vsmp_` is used to characterize the inverse pulse signal corresponding to the AFE sampling pulse signal; `pls_done` is used to count the number of pulse groups generated corresponding to `vsmp_`. Figure 7C The pulse shown can be applied to the inverse pulse signal of the AFE sampling pulse signal (i.e., vsmp_). For example... Figure 7CAs shown, the attribute values corresponding to vsmp_ are configured as follows: AS=0, FD=1, AW=1, IAW=2, PN=N, and PI=1. It can be understood that AS=0 indicates that the pulse corresponding to vsmp_ is active low and inactive high; FD=1 indicates that the pulse corresponding to vsmp_ generates its first pulse after a one-clock-cycle interval following the activation of the trigger signal at the start of pulse generation; AW=1 indicates that the duration of the active level of the pulse corresponding to vsmp_ is one clock cycle; IAW=2 indicates that the duration of the inactive level of the pulse corresponding to vsmp_ is two clock cycles; since N is greater than the preset pulse count threshold of 0, PN=N indicates that the number of pulses corresponding to vsmp_ is N; since PI is greater than the preset pulse idle time threshold of 0, PI=1 indicates that the pulse group corresponding to vsmp_ includes N pulses, and the generation interval between pulse groups corresponding to vsmp_ is one clock cycle.
[0145] like Figure 7C As shown, `pls_start` indicates that the trigger signal for pulse generation is valid in the second clock cycle, and FD=1 for `vsmp_`. Therefore, after a third clock cycle, the first pulse corresponding to `vsmp_` is generated starting in the fourth clock cycle. `pls_done` indicates that the first pulse group corresponding to `vsmp_` has been generated by the twelfth clock cycle. Since PI=1, after a thirteenth clock cycle, the first pulse in the second pulse group corresponding to `vsmp_` is generated starting in the fourteenth clock cycle. `pls_done` indicates that the second pulse group corresponding to `vsmp_` has been generated by the twenty-second clock cycle.
[0146] In this embodiment, the attribute value corresponding to the target pulse signal can first be obtained, and the attribute value corresponds to a preset attribute. Then, a pulse corresponding to the target pulse signal can be generated based on the attribute value corresponding to the preset attribute. It is understood that a universal pulse generation circuit can be designed to generate a pulse corresponding to the target pulse signal based on its attribute value. When it is necessary to generate pulses corresponding to other target pulse signals, only the attribute values of the other target pulse signals need to be input into the pulse generation circuit to generate the corresponding pulses, thereby greatly simplifying the design and application complexity of the pulse generation circuit and improving its versatility to a certain extent.
[0147] Corresponding to the above embodiments, this application also provides a pulse generation device.
[0148] See Figure 8 This is a schematic diagram of a pulse generation device provided in an embodiment of this application. Figure 8 As shown, the pulse generation device 700 includes an acquisition module 701 and a pulse generation module 702.
[0149] Specifically, the acquisition module 701 is used to acquire the attribute value corresponding to the target pulse signal. The attribute value corresponds to a preset attribute and is used to characterize the time-domain characteristics of the target pulse signal. The pulse generation module 702 is used to generate a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute.
[0150] For details regarding the specific content involved in the embodiments of this application, please refer to the description of the above method embodiments. For the sake of brevity, these details will not be repeated here.
[0151] Corresponding to the above embodiments, this application also provides an electronic device.
[0152] See Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 9 As shown, the electronic device 800 may include a processor 801, a memory 802, and a communication unit 803. These components communicate via one or more buses. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the embodiments of this application. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0153] The communication unit 803 is used to establish a communication channel, thereby enabling the electronic device to communicate with other devices.
[0154] The processor 801 serves as the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 802, and calls data stored in the memory to perform various functions and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 801 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.
[0155] Memory 802 is used to store the execution instructions of processor 801. Memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0156] When the execution instructions in memory 802 are executed by processor 801, the electronic device 800 is able to perform some or all of the steps in the above method embodiments.
[0157] Corresponding to the above embodiments, this application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, wherein when the program runs, it can control the device where the computer-readable storage medium is located to execute some or all of the steps in the above method embodiments. In specific implementation, the computer-readable storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0158] Corresponding to the above embodiments, this application also provides a computer program product containing executable instructions that, when executed on a computer, cause the computer to perform some or all of the steps in the above method embodiments.
[0159] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects have an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0160] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0161] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0162] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0163] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A pulse generation method, characterized in that, include: Obtain the attribute value corresponding to the target pulse signal, the attribute value corresponding to the preset attribute, and used to characterize the time domain characteristics of the target pulse signal; Based on the attribute value corresponding to the preset attribute, a pulse corresponding to the target pulse signal is generated; The preset attributes include a pulse enable flag and a first pulse delay time. Generating a pulse corresponding to the target pulse signal based on the attribute values corresponding to the preset attributes includes: When the attribute value corresponding to the pulse enable flag is the first enable flag, the timing starts; If the timing time reaches the attribute value corresponding to the delay time of the first pulse, then the first pulse corresponding to the target pulse signal is generated; The step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes: Based on the attribute value corresponding to the preset attribute and the reference clock, a pulse corresponding to the target pulse signal is generated, and the reference clock is used to control the generation timing of the pulse corresponding to the target pulse signal.
2. The method according to claim 1, characterized in that, The preset attribute includes a pulse effective level, and the step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes: When the attribute value corresponding to the pulse effective level is a first level, a first pulse corresponding to the target pulse signal is generated. The first pulse is a pulse that is active at a high level and inactive at a low level. When the attribute value corresponding to the effective level of the pulse is the second level, a second pulse corresponding to the target pulse signal is generated. The second pulse is a pulse that is active at low level and inactive at high level.
3. The method according to claim 2, characterized in that, The preset attributes also include pulse effective level width and pulse ineffective level width. The attribute value corresponding to the pulse effective level width is used to specify the duration of the effective level of the first pulse or the second pulse, and the attribute value corresponding to the pulse ineffective level width is used to specify the duration of the ineffective level of the first pulse or the second pulse.
4. The method according to claim 1, characterized in that, The preset attribute includes the number of pulses, and the step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes: When the attribute value corresponding to the number of pulses is greater than the preset pulse number threshold, a pulse corresponding to the target pulse signal is generated based on the attribute value corresponding to the number of pulses.
5. The method according to claim 4, characterized in that, The step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes: When the attribute value corresponding to the number of pulses is less than or equal to the preset number of pulses threshold, the continuous generation mode is entered, which is a mode that continuously generates pulses corresponding to the target pulse signal.
6. The method according to claim 4, characterized in that, The preset attribute also includes pulse idle time; When the attribute value corresponding to the pulse idle time is less than or equal to the preset pulse idle time threshold, the number of pulses corresponding to the target pulse signal is the attribute value corresponding to the number of pulses.
7. The method according to claim 6, characterized in that, The method further includes: If the attribute value corresponding to the pulse idle time is greater than the preset pulse idle time threshold, then the target pulse idle time is determined to be the attribute value corresponding to the pulse idle time. At each interval of the target pulse idle time, a pulse group corresponding to the target pulse signal is generated, and the number of pulses included in the pulse group is the attribute value corresponding to the number of pulses.
8. A pulse generating device, characterized in that, include: An acquisition module is used to acquire attribute values corresponding to a target pulse signal. The attribute values correspond to preset attributes and are used to characterize the time-domain characteristics of the target pulse signal. The pulse generation module is used to generate a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute. The preset attributes include a pulse enable flag and a first pulse delay time. Generating a pulse corresponding to the target pulse signal based on the attribute values corresponding to the preset attributes includes: When the attribute value corresponding to the pulse enable flag is the first enable flag, the timing starts; If the timing time reaches the attribute value corresponding to the delay time of the first pulse, then the first pulse corresponding to the target pulse signal is generated; The step of generating a pulse corresponding to the target pulse signal based on the attribute value corresponding to the preset attribute includes: Based on the attribute value corresponding to the preset attribute and the reference clock, a pulse corresponding to the target pulse signal is generated, and the reference clock is used to control the generation timing of the pulse corresponding to the target pulse signal.
9. An electronic device, characterized in that, include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, causes the electronic device to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Pulse generation method and device
CN102315840A
Pulse generator
CN110402541A