CN116774617A - Signal output method, signal output device and control system - Google Patents

Signal output method, signal output device and control system Download PDF

Info

Publication number
CN116774617A
CN116774617A CN202210216424.6A CN202210216424A CN116774617A CN 116774617 A CN116774617 A CN 116774617A CN 202210216424 A CN202210216424 A CN 202210216424A CN 116774617 A CN116774617 A CN 116774617A
Authority
CN
China
Prior art keywords
comparison
trigger signal
signal
signal output
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210216424.6A
Other languages
Chinese (zh)
Inventor
杨庆庆
王聪
王智玮
崔介兵
杨甜戈
李龙剑
张伦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhaoyi Innovation Technology Group Co ltd
Original Assignee
Zhaoyi Innovation Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhaoyi Innovation Technology Group Co ltd filed Critical Zhaoyi Innovation Technology Group Co ltd
Priority to CN202210216424.6A priority Critical patent/CN116774617A/en
Publication of CN116774617A publication Critical patent/CN116774617A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Abstract

The invention provides a signal output method, a signal output device and a control system, wherein the signal output method comprises the following steps: the method comprises the steps of obtaining a first trigger signal and a numerical value of a control register output by a counting module by a control module, wherein the first trigger signal is provided with a plurality of level jump nodes, then, determining whether a second trigger signal is needed to be generated according to the first trigger signal by the control module according to the numerical value, wherein the second trigger signal is provided with pulses at positions corresponding to the level jump nodes, and finally, outputting the first trigger signal or the second trigger signal by the control module.

Description

Signal output method, signal output device and control system
Technical Field
The present invention relates generally to the field of communications technologies, and in particular, to a signal output method, a signal output device, and a control system.
Background
With the continuous development of electronic technology, more and more application scenarios require the use of a trigger signal as a trigger source for initiating an operation. However, some modules and devices controlled by the trigger signal can only respond on a single edge (e.g., rising or falling) of the trigger signal, which affects the efficiency with which these modules and devices operate in response to the trigger signal.
Therefore, how to improve the efficiency of the operation of the modules and devices controlled by the trigger signal in response to the trigger signal is a problem that needs to be solved at present.
Disclosure of Invention
In order to solve the above problems or other problems, the present invention provides the following technical solutions.
In a first aspect, the present invention provides a signal output method, including:
the control module is enabled to acquire a first trigger signal and a numerical value of a control register, wherein the first trigger signal is output by the counting module and is provided with a plurality of level jump nodes;
determining whether a second trigger signal needs to be generated according to the first trigger signal by the control module according to the numerical value, wherein the second trigger signal is provided with a pulse at a position corresponding to the level jump node; the method comprises the steps of,
and enabling the control module to output the first trigger signal or the second trigger signal.
According to an embodiment of the present invention, before the step of enabling the control module to obtain the first trigger signal output by the counting module and the value of the control register, the signal output method further includes:
a comparison circuit of the counting module is enabled to acquire a count value of a counter, a first comparison value of a first comparison register and a second comparison value of a second comparison register;
the counting module generates the first trigger signal according to the count value, the first comparison value and the second comparison value;
and when the count value reaches one of the first comparison value and the second comparison value, the first trigger signal jumps from a first level state to a second level state, or the first trigger signal jumps from the second level state to the first level state.
According to an embodiment of the present invention, the step of causing the counting module to generate the first trigger signal according to the count value, the first comparison value, and the second comparison value specifically includes:
a first comparison unit of the comparison circuit generates a first comparison signal according to the count value and the first comparison value, and a second comparison unit of the comparison circuit generates a second comparison signal according to the count value and the second comparison value;
and enabling a logic operation unit of the counting module to generate the first trigger signal according to the first comparison signal and the second comparison signal.
According to an embodiment of the present invention, in the signal output method, the count value monotonously increases or the count value monotonously decreases or the count value monotonously increases and then monotonously decreases or the count value monotonously decreases and then monotonously increases in one period.
According to an embodiment of the present invention, the first trigger signal is a pulse width modulation signal.
In a second aspect, the present invention provides a signal output apparatus comprising:
a counting module having a first signal output port configured to output a first trigger signal, wherein the first trigger signal has a plurality of level-hopping nodes; the method comprises the steps of,
and a control module coupled to the first signal output port and having a second signal output port, the control module configured to obtain values of the first trigger signal and the control register, and determine whether a second trigger signal is required to be generated according to the first trigger signal according to the values, the second signal output port configured to output the first trigger signal or the second trigger signal, wherein the second trigger signal has a pulse at a node corresponding to the level transition.
According to an embodiment of the present invention, the control module includes a control unit and a pulse generating circuit, wherein:
the control unit is coupled with the first signal output port, the control register, the pulse generation circuit and the second signal output port and is configured to determine whether the first trigger signal needs to be input to the pulse generation circuit according to the numerical value;
the pulse generation circuit is coupled to the second signal output port and configured to generate the second trigger signal based on the first trigger signal.
According to an embodiment of the present invention, the counting module includes a comparing circuit, and a counter, a first comparing register, and a second comparing register coupled to the comparing circuit, wherein:
the comparison circuit is configured to acquire a count value of the counter, a first comparison value of the first comparison register, and a second comparison value of the second comparison register, and generate the first trigger signal according to the count value, the first comparison value, and the second comparison value.
According to an embodiment of the present invention, the counting module includes a comparing circuit, and a counter, a first comparing register, a second comparing register, and a logic operation unit coupled to the comparing circuit, wherein the comparing circuit includes a first comparing unit and a second comparing unit, and wherein:
the first comparison unit is coupled with the counter and the first comparison register and is configured to generate a first comparison signal according to the count value and the first comparison value;
the second comparing unit is coupled with the counter and the second comparing register and is configured to generate a second comparing signal according to the count value and the second comparing value;
the logic operation unit is coupled with the first comparison unit and the second comparison unit and is configured to generate the first trigger signal according to the first comparison signal and the second comparison signal.
In a third aspect, the present invention provides a control system comprising:
control means comprising a signal output device according to any one of the preceding claims.
According to a control system of an embodiment of the invention, the control means comprise an analog-to-digital converter, wherein the analog-to-digital converter is configured to sample in dependence of the first trigger signal or the second trigger signal.
According to one embodiment of the present invention, the control system further includes:
the motor is coupled with a third signal output port of the signal output device and operates according to a signal output by the third signal output port;
wherein the analog-to-digital converter is configured to sample an analog signal output by the motor according to the first trigger signal or the second trigger signal.
According to a control system of an embodiment of the invention, the analog-to-digital converter is triggered to sample at a rising edge and/or a falling edge of the first trigger signal and at a rising edge and/or a falling edge of the second trigger signal.
According to the control system of the embodiment of the invention, the control device is a micro control unit chip, and the signal output device is a timer.
The beneficial effects of the invention are as follows: the invention provides a signal output method, a signal output device and a control system, wherein the signal output method comprises the following steps: the method comprises the steps of obtaining a first trigger signal and a numerical value of a control register output by a counting module by a control module, wherein the first trigger signal is provided with a plurality of level jump nodes, then, determining whether a second trigger signal is needed to be generated according to the first trigger signal by the control module according to the numerical value, wherein the second trigger signal is provided with pulses at positions corresponding to the level jump nodes, and finally, outputting the first trigger signal or the second trigger signal by the control module.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the embodiments according to the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a signal output method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a signal output device according to an embodiment of the present invention.
Fig. 3 is a schematic waveform diagram of a signal generated by a signal output device according to an embodiment of the present invention.
Fig. 4 is a flowchart of a signal output method according to a first embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a signal output device according to a first embodiment of the present invention.
Fig. 6 is a schematic waveform diagram of a signal generated by the signal output apparatus according to the first embodiment of the present invention.
Fig. 7 is a flowchart of a signal output method according to a second embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a signal output device according to a second embodiment of the present invention.
Fig. 9 is a schematic waveform diagram of signals generated by the signal output apparatus according to the second embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a control system according to an embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a control system according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically connected, electrically connected or can be communicated with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.
Referring to fig. 1 to 3, fig. 1 and 2 respectively show a flow chart of a signal output method and a structure diagram of a signal output device 100 according to an embodiment of the present invention, and fig. 3 shows a waveform diagram of a signal generated by the signal output device 100 according to an embodiment of the present invention, as shown in fig. 1 to 3, the signal output method specifically may include the following steps:
acquisition step S101: causing the control module 120 to acquire a first trigger signal and a value of the control register R3 output by the counting module 110, wherein the first trigger signal has a plurality of level hopping nodes (N1 to N4);
determination step S102: causing the control module 120 to determine from the value whether a second trigger signal needs to be generated from the first trigger signal, wherein the second trigger signal has pulses at the corresponding level transition nodes (N1 to N4);
output step S103: causing the control module 120 to output either the first trigger signal or the second trigger signal.
It should be noted that, in operation, the motor needs to be sampled by an analog-to-digital converter (Analog to Digital Converter, ADC) in a micro control unit (Micro controller Unit, MCU) chip, and needs to be controlled by a trigger signal to perform an operation of sampling an analog signal, such as a current or a voltage.
In one embodiment, the signal output by the Timer (Timer module) in the micro control unit chip may be used as a trigger (trigger) signal for sampling the analog signal by the analog-to-digital converter. However, since the analog-to-digital converter is often controlled only by the rising edge of the trigger signal (or only by the falling edge of the trigger signal), in order to ensure the sampling efficiency of the analog signal such as the current/voltage, in this embodiment, the timer is usually caused to output the pulse signal, and the pulse frequency in the pulse signal is set accordingly.
However, adopting the above embodiment may impose a limitation on the types of signals that the timer may output.
Further, with continued reference to fig. 1 to 3, in the embodiment according to the present invention, the signal type of the first trigger signal output by the counting module 110 is not limited, specifically, by making the control module 120 generate the second trigger signal having pulses at the level transition nodes (N1 to N4) corresponding to the first trigger signal, since one level transition node can only be a rising edge or a falling edge of the signals and one pulse has a pair of rising edges and falling edges, the second trigger signal generated by the control module 120 has more rising edges and falling edges than the first trigger signal output by the counting module 110, and the module and device controlled by the second trigger signal can make corresponding operations in response to the rising edges or the falling edges of the pulses in the second trigger signal, so that according to the embodiment of the present invention, it is ensured that the second trigger signal can have higher efficiency than the module and device controlled by the second trigger signal without limiting the signal type of the first trigger signal output by the counting module 110.
In an embodiment according to the present invention, specifically, the first trigger signal output by the counting module 110 has at least one level jump node in one period.
It should be noted that, considering that it is not necessary to make the control module 120 output the trigger signal having more rising edges and falling edges in all cases, in the embodiment according to the present invention, the control module 120 needs to determine whether the second trigger signal needs to be generated and output according to the value of the control register R3, for example, when the control register R3 can store one Bit (Bit) of data, if the value is 1 (corresponding to the data stored in the control register R3 being 1), it indicates that the control module 120 needs to be made to output the second trigger signal, and if the value is 0 (corresponding to the data stored in the control register R3 being 0), it indicates that the control module 120 needs to be made to output the first trigger signal.
In particular, in an embodiment according to the invention, the first trigger signal may be a pulse width modulated (Pulse Width Modulation, PWM) signal.
Referring to fig. 4 to 6, fig. 4 and 5 show a schematic flow chart of a signal output method and a schematic structure of a signal output device 200 according to a first embodiment of the present invention, and fig. 6 shows a schematic waveform chart of a signal generated by the signal output device 200 according to the first embodiment of the present invention, as shown in fig. 4 to 6, the signal output method according to the first embodiment of the present invention may specifically include the following steps:
acquisition step S201: causing the comparison circuit 211 of the counting module 210 to acquire the count value of the counter 212, the first comparison value of the first comparison register R1, and the second comparison value of the second comparison register R2;
generating step S202: causing the counting module 210 to generate a first trigger signal according to the count value, the first comparison value and the second comparison value, wherein the first trigger signal has level jump nodes (N1 to N4) corresponding to the first comparison value and the second comparison value;
determination step S203: causing the control module 220 to acquire the first trigger signal and the value of the control register R3, and determining whether a second trigger signal needs to be generated according to the first trigger signal according to the value, wherein the second trigger signal has pulses at positions corresponding to the level jump nodes (N1 to N4);
output step S204: causing the control module 220 to output either the first trigger signal or the second trigger signal.
Further, referring to fig. 5, in the present embodiment, the signal output apparatus 200 for executing the signal output method includes a counting module 210 and a control module 220, where:
the counting module 210 includes a comparing circuit 211 and a counter 212, a first comparing register R1 and a second comparing register R2 coupled to the comparing circuit 211, and the counting module 210 has a first signal output port a, wherein the comparing circuit 211 is configured to perform the acquiring step S201 and the generating step S202, and the first signal output port a is configured to output a first trigger signal;
the control module 220 is coupled to the first signal output port a, and the control module 220 has a second signal output port B, wherein the control module 220 is configured to perform the determining step S203 and the outputting step S204, and the second signal output port B is configured to output the first trigger signal or the second trigger signal.
In the process of the comparing circuit 211 executing the generating step S202, when the count value of the counter 212 reaches one of the first comparison value and the second comparison value, the first trigger signal generated by the comparing circuit 211 may jump from the first level state to the second level state or from the second level state to the first level state. Specifically, the first level state is one of a high level state and a low level state, and the second level state is the other of the high level state and the low level state.
Specifically, in the present embodiment, the trend of the count value of the counter 212 may include, for example, monotonically increasing, monotonically decreasing after monotonically increasing, monotonically increasing after monotonically decreasing, and the like, and the embodiment according to the present invention is not limited to this trend of change.
Further, referring to fig. 5, in the present embodiment, the control module 220 specifically includes a control unit 221 and a pulse generating circuit 222, wherein:
the control unit 221 is coupled to the first signal output port a, the control register R3, the pulse generating circuit 222, and the second signal output port B, and is configured to determine whether the first trigger signal needs to be input to the pulse generating circuit 222 according to the value of the control register R3;
the pulse generating circuit 222 is coupled to the second signal output port B and configured to generate a second trigger signal according to the first trigger signal.
Specifically, in this embodiment, the control unit 221 may be a switching transistor, and the voltage corresponding to the value of the control register R3 may be controlled to make the first signal output port a and the pulse generating circuit 222 conductive, or to make the first signal output port a and the second signal output port B conductive.
According to the foregoing embodiment, an embodiment according to the present invention provides a signal output method, including: causing the comparison circuit 211 of the counting module 210 to acquire the count value of the counter 212, the first comparison value of the first comparison register R1, and the second comparison value of the second comparison register R2; causing the counting module 210 to generate a first trigger signal according to the count value, the first comparison value and the second comparison value, wherein the first trigger signal has level jump nodes (N1 to N4) corresponding to the first comparison value and the second comparison value; causing the control module 220 to acquire the first trigger signal and the value of the control register R3, and determining whether a second trigger signal needs to be generated according to the first trigger signal according to the value, wherein the second trigger signal has pulses at positions corresponding to the level jump nodes (N1 to N4); the signal output method provided by the invention can enable the control module 220 to generate and output the second trigger signal, compared with the first trigger signal output from the counting module 210, the second trigger signal has more rising edges and falling edges, and the module and the device controlled by the second trigger signal can respond to the rising edges or the falling edges of the pulses in the second trigger signal to perform corresponding operation, so that the module and the device controlled by the second trigger signal can have higher operation efficiency under the condition that the signal type of the first trigger signal output by the counting module 210 is not limited.
Referring to fig. 7 to fig. 9, fig. 7 and fig. 8 respectively show a flow chart of a signal output method and a structure diagram of a signal output apparatus 300 according to a second embodiment of the present invention, fig. 9 shows a waveform diagram of a signal generated by the signal output apparatus 300 according to the second embodiment of the present invention, and as shown in fig. 7 to fig. 9, the signal output method according to the second embodiment of the present invention may specifically include the following steps:
acquisition step S301: the comparison circuit 311 of the counting module 310 is caused to acquire the count value of the counter 312, the first comparison value of the first comparison register R1, and the second comparison value of the second comparison register R2;
a first generation step S302: the first comparing unit 3111 of the comparing circuit 311 generates a first comparison signal based on the count value and the first comparison value, and the second comparing unit 3112 of the comparing circuit 311 generates a second comparison signal based on the count value and the second comparison value;
a second generation step S303: causing the logic operation unit 313 of the counting module 310 to generate a first trigger signal according to the first comparison signal and the second comparison signal, wherein the first trigger signal has level transition nodes (N1 to N4) corresponding to the first comparison value and the second comparison value;
determination step S304: causing the control module 320 to acquire the first trigger signal and the value of the control register R3, and determining whether a second trigger signal needs to be generated according to the first trigger signal according to the value, wherein the second trigger signal has pulses at positions corresponding to the level jump nodes (N1 to N4);
output step S305: causing the control module 320 to output either the first trigger signal or the second trigger signal.
Further, referring to fig. 8, in the present embodiment, the signal output apparatus 300 for executing the signal output method includes a counting module 310 and a control module 320, where:
the counting module 310 includes a comparing circuit 311, and a counter 312, a first comparing register R1, a second comparing register R2 and a logic operation unit 313 coupled to the comparing circuit 311, wherein the comparing circuit 311 includes a first comparing unit 3111 and a second comparing unit 3111, and the first comparing unit 3111 and the second comparing unit 3111 are configured to execute the acquiring step S301 and the first generating step S302, and the logic operation unit 313 is configured to execute the second generating step S303;
the control module 320 is configured to perform the above-described determining step S304 and the above-described outputting step S305, and the control module 320 (including the control unit 321 and the pulse generating unit 322) in the present embodiment is similar in structure and function to the control module 220 (including the control unit 221 and the pulse generating unit 222) in the above-described first embodiment, and therefore, in the present embodiment, a description thereof will not be given.
Note that, in the present embodiment, the logic operation unit 313 configured to perform the second generation step S303 may be an exclusive or gate. Further, in other embodiments according to the present invention, the logic operation unit may be composed of other logic gates, as long as the generated first trigger signal is guaranteed to have a level transition node corresponding to the first comparison value and the second comparison value.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a control system 400 according to an embodiment of the present invention, and the components of the embodiment according to the present invention and the relative positional relationship of the components can be seen in a visual manner.
As shown in fig. 10, the control system 400 comprises a control device 410, wherein the control device 410 comprises the signal output device 200 and an analog-to-digital converter 411 (Analog to Digital Converter, ADC) as described in the first embodiment above, wherein the analog-to-digital converter 411 is coupled to a second signal output port B of the signal output device 200, which is configured to sample according to the first or second trigger signal output by the signal output device 200, and may be a sampling of an analog signal of any module or device.
For example, as shown in fig. 11, the control system 400 includes a control device 410 and a motor 420, wherein the control device 410 includes the signal output device 200 and the analog-to-digital converter 411 as described in the first embodiment above, and the motor 420 is coupled to the third signal output port C of the signal output device 200 and operates according to the signal output by the third signal output port C. In a further embodiment, the signal output apparatus 200 further includes a plurality of other counting modules (not shown) besides the counting module 110 in the first embodiment, the other counting modules and the counting module 110 use the same counting period (e.g. the period in fig. 6 or 9), and the other counting modules can output signals through the third signal output port C to drive and control the motor 420.
Wherein the analog-to-digital converter 411 is configured to sample an analog signal of the motor 420, such as a three-phase current/voltage, according to the first trigger signal or the second trigger signal. Since the driving control signal of the motor 420 is the same as the first trigger signal or the second trigger signal that triggers the ADC sampling, it is possible to sample the analog signal of the motor 420 multiple times in one period. It should be noted that, in other embodiments according to the present invention, the analog-to-digital converter 411 may collect analog signals of other modules or devices.
Referring back to fig. 10, the analog-to-digital converter 411 is triggered to start analog signal sampling under the control of the rising edge of the first trigger signal or the rising edge of the second trigger signal. In other embodiments according to the present invention, the analog-to-digital converter 411 may be triggered to sample the analog signal under the control of the falling edge of the first trigger signal or the falling edge of the second trigger signal, or under the control of the rising edge and the falling edge of the first trigger signal and the rising edge and the falling edge of the second trigger signal, which is not limited in this aspect of the present invention.
It should be noted that, as shown in fig. 5, 6 and 10, in the present embodiment, the first trigger signal generated by the comparing circuit 211 has only two level transition nodes in one period, and the analog-to-digital converter 411 coupled to the signal output device 200 only responds to the rising edge of the signal, so that when the signal output device 200 outputs the first trigger signal from the second signal output port B, the analog-to-digital converter 411 may sample the analog signal once in one period, and when the signal output device 200 outputs the second trigger signal from the second signal output port B, the analog-to-digital converter 411 may sample the analog signal twice in one period.
In the embodiment according to the present invention, the control device 410 is a micro control unit (Micro controller Unit, MCU) chip, and the signal output device 200 is a Timer (Timer module) in the micro control unit chip. Further, in the present embodiment, the control device 410 may be GD32 TM A series of micro-control unit chips.
In addition to the embodiments described above, other embodiments of the invention are possible. All technical schemes adopting equivalent replacement or equivalent replacement fall within the protection scope of the invention.
In summary, although the preferred embodiments of the present invention have been described above, the above preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various modifications and adaptations without departing from the spirit and scope of the present invention, so that the scope of the present invention is defined by the claims.

Claims (14)

1. A signal output method, comprising:
the control module is enabled to acquire a first trigger signal and a numerical value of a control register, wherein the first trigger signal is output by the counting module and is provided with a plurality of level jump nodes;
determining whether a second trigger signal needs to be generated according to the first trigger signal by the control module according to the numerical value, wherein the second trigger signal is provided with a pulse at a position corresponding to the level jump node; the method comprises the steps of,
and enabling the control module to output the first trigger signal or the second trigger signal.
2. The signal output method according to claim 1, further comprising, before the step of causing the control module to acquire the first trigger signal output by the counting module and the value of the control register:
a comparison circuit of the counting module is enabled to acquire a count value of a counter, a first comparison value of a first comparison register and a second comparison value of a second comparison register;
the counting module generates the first trigger signal according to the count value, the first comparison value and the second comparison value;
and when the count value reaches one of the first comparison value and the second comparison value, the first trigger signal jumps from a first level state to a second level state, or the first trigger signal jumps from the second level state to the first level state.
3. The signal output method according to claim 2, wherein the step of causing the counting module to generate the first trigger signal according to the count value, the first comparison value, and the second comparison value specifically includes:
a first comparison unit of the comparison circuit generates a first comparison signal according to the count value and the first comparison value, and a second comparison unit of the comparison circuit generates a second comparison signal according to the count value and the second comparison value;
and enabling a logic operation unit of the counting module to generate the first trigger signal according to the first comparison signal and the second comparison signal.
4. The signal output method according to claim 2, wherein the count value monotonously increases or the count value monotonously decreases or the count value monotonously increases and then monotonously decreases or the count value monotonously decreases and then monotonously increases in one period.
5. The signal output method according to claim 1, wherein the first trigger signal is a pulse width modulated signal.
6. A signal output apparatus, comprising:
a counting module having a first signal output port configured to output a first trigger signal, wherein the first trigger signal has a plurality of level-hopping nodes; the method comprises the steps of,
and a control module coupled to the first signal output port and having a second signal output port, the control module configured to obtain values of the first trigger signal and the control register, and determine whether a second trigger signal is required to be generated according to the first trigger signal according to the values, the second signal output port configured to output the first trigger signal or the second trigger signal, wherein the second trigger signal has a pulse at a node corresponding to the level transition.
7. The signal output device of claim 6, wherein the control module comprises a control unit and a pulse generation circuit, wherein:
the control unit is coupled with the first signal output port, the control register, the pulse generation circuit and the second signal output port and is configured to determine whether the first trigger signal needs to be input to the pulse generation circuit according to the numerical value;
the pulse generation circuit is coupled to the second signal output port and configured to generate the second trigger signal based on the first trigger signal.
8. The signal output device of claim 6, wherein the counting module comprises a comparison circuit, and a counter, a first comparison register, and a second comparison register coupled to the comparison circuit, wherein:
the comparison circuit is configured to acquire a count value of the counter, a first comparison value of the first comparison register, and a second comparison value of the second comparison register, and generate the first trigger signal according to the count value, the first comparison value, and the second comparison value.
9. The signal output device of claim 6, wherein the counting module comprises a comparison circuit, and a counter, a first comparison register, a second comparison register, and a logic operation unit coupled to the comparison circuit, the comparison circuit comprising a first comparison unit and a second comparison unit, wherein:
the first comparison unit is coupled with the counter and the first comparison register and is configured to generate a first comparison signal according to the count value and the first comparison value;
the second comparing unit is coupled with the counter and the second comparing register and is configured to generate a second comparing signal according to the count value and the second comparing value;
the logic operation unit is coupled with the first comparison unit and the second comparison unit and is configured to generate the first trigger signal according to the first comparison signal and the second comparison signal.
10. A control system, comprising:
control means comprising a signal output device as claimed in any one of claims 6 to 9.
11. The control system of claim 10, wherein the control device comprises an analog-to-digital converter, wherein the analog-to-digital converter is configured to sample in accordance with the first trigger signal or the second trigger signal.
12. The control system of claim 11, wherein the control system further comprises:
the motor is coupled with a third signal output port of the signal output device and operates according to a signal output by the third signal output port;
wherein the analog-to-digital converter is configured to sample an analog signal output by the motor according to the first trigger signal or the second trigger signal.
13. Control system according to claim 11, characterized in that the analog-to-digital converter is triggered to sample on the rising and/or falling edge of the first trigger signal and on the rising and/or falling edge of the second trigger signal.
14. The control system of claim 10, wherein the control device is a micro control unit chip and the signal output device is a timer.
CN202210216424.6A 2022-03-07 2022-03-07 Signal output method, signal output device and control system Pending CN116774617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210216424.6A CN116774617A (en) 2022-03-07 2022-03-07 Signal output method, signal output device and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210216424.6A CN116774617A (en) 2022-03-07 2022-03-07 Signal output method, signal output device and control system

Publications (1)

Publication Number Publication Date
CN116774617A true CN116774617A (en) 2023-09-19

Family

ID=87990016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210216424.6A Pending CN116774617A (en) 2022-03-07 2022-03-07 Signal output method, signal output device and control system

Country Status (1)

Country Link
CN (1) CN116774617A (en)

Similar Documents

Publication Publication Date Title
US7015716B2 (en) Method for detecting a power load of a power supply module according to duty cycle detection, and related device
JP5708605B2 (en) PWM duty converter
EP2626714A1 (en) System and method for verifying the operating frequency of digital control circuitry
US20160204774A1 (en) Pulse width modulation signal generation circuit and method
JP2006502626A (en) Pulse width modulation analog to digital conversion
JP2013141385A (en) Controller for dc/dc converter
CN105553444A (en) Adaptive filter
CN116774617A (en) Signal output method, signal output device and control system
JP5764517B2 (en) Switching power supply device and power supply system using the same
CN115528896B (en) Control method and structure of interleaved parallel topology and AC/DC power supply
CN111404517A (en) Pulse cancellation circuit, voltage detection circuit, and detection method
US11238910B2 (en) Control signal generator and driving method thereof
US7940136B2 (en) Oscillator
CN103869856A (en) Multi-voltage time sequence control circuit
JP2013158197A (en) Motor drive circuit
JP4573096B2 (en) Temperature sensor and analog / digital converter
JP2008245241A (en) Data communication apparatus, data communication system, and data communication method
US9106144B2 (en) Voltage converting apparatus and sub-harmonic detector thereof
CN110308347B (en) Self-detection and self-correction system and method of frequency converter and frequency converter
CN113381742B (en) Oscillator for outputting multiple duty ratio signals and minimum turn-off time signal
JP2008004713A (en) Light-emitting element driving-signal detector
US7071744B2 (en) Apparatus and method for detecting a phase difference
CN111756221B (en) Method and circuit for inhibiting generation of over-high voltage during starting
US20240088876A1 (en) Controller with protection against cross-conduction for an electronic circuit including a pair of switches and related control method
CN109859671B (en) Clock signal overcurrent protection method and array substrate row driving circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination