CN108551336A - The computational methods and counting circuit of pulse signal duty ratio - Google Patents

The computational methods and counting circuit of pulse signal duty ratio Download PDF

Info

Publication number
CN108551336A
CN108551336A CN201810252025.9A CN201810252025A CN108551336A CN 108551336 A CN108551336 A CN 108551336A CN 201810252025 A CN201810252025 A CN 201810252025A CN 108551336 A CN108551336 A CN 108551336A
Authority
CN
China
Prior art keywords
signal
clock signal
pulse signal
clock
duty ratio
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.)
Granted
Application number
CN201810252025.9A
Other languages
Chinese (zh)
Other versions
CN108551336B (en
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.)
Nanjing Xilijie Semiconductor Technology Co Ltd
Nanjing Silergy Semiconductor Technology Co Ltd
Original Assignee
Nanjing Xilijie Semiconductor Technology 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 Nanjing Xilijie Semiconductor Technology Co Ltd filed Critical Nanjing Xilijie Semiconductor Technology Co Ltd
Priority to CN202111024193.0A priority Critical patent/CN113676162B/en
Priority to CN201810252025.9A priority patent/CN108551336B/en
Publication of CN108551336A publication Critical patent/CN108551336A/en
Application granted granted Critical
Publication of CN108551336B publication Critical patent/CN108551336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/01Details
    • H03K3/017Adjustment of width or dutycycle of pulses
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/13Arrangements having a single output and transforming input signals into pulses delivered at desired time intervals
    • H03K5/133Arrangements having a single output and transforming input signals into pulses delivered at desired time intervals using a chain of active delay devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/13Arrangements having a single output and transforming input signals into pulses delivered at desired time intervals
    • H03K5/135Arrangements having a single output and transforming input signals into pulses delivered at desired time intervals by the use of time reference signals, e.g. clock signals

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Pulse Circuits (AREA)

Abstract

The invention discloses a kind of computational methods and counting circuit of pulse signal duty ratio.The technical solution of the embodiment of the present invention passes through when pulse signal level changes, detect the state of clock signal, then in the next period of the pulse signal, according to the state of detected clock signal, control the triggering of clock signal delay different time, from the clock signal triggering moment, the clock signal in the first level and current period is in the pulse signal respectively and counts the first count value of acquisition and the second count value, and obtains the duty ratio of the pulse signal accordingly.Therefore the duty ratio numerical value obtained in this way all same within each period of the pulse signal can effectively eliminate counting error, improve duty ratio precision, eliminate screen flicker.

Description

The computational methods and counting circuit of pulse signal duty ratio
Technical field
The present invention relates to power electronic technique, more particularly, to a kind of computational methods and meter of pulse signal duty ratio Calculate circuit.
Background technology
LED backlight simulates light regulating technology, it usually needs the duty cycle information of pwm signal is obtained, and it is most widely used at present Be counter process.For example, using reference clock signal Clock as sampled signal, high level time Ton to pwm signal and Whole cycle T distinguishes sample count, and duty ratio is the count ratio of Ton and T.The frequency of reference clock signal Clock is higher, The duty ratio being then calculated is more accurate.
But pwm signal may not be synchronous with reference clock signal Clock.As shown in Figure 1, being counter process meter Calculate the signal timing diagram of pwm signal duty ratio.In Fig. 1, since the high level time Ton of pwm signal and the length of cycle T differ Surely it is the integral multiple of reference clock signal Clock, therefore in different PWM cycles, the meter of high level time Ton and cycle T Number may be different.In this case, the accuracy of duty ratio calculating can be reduced.
In order to improve the accuracy of duty ratio calculating, one of the methods is pwm signal and reference clock signal Clock is same Step.As shown in Fig. 2, calculating the signal timing diagram of pwm signal duty ratio using Synchronos method.In fig. 2, pwm signal and when benchmark Clock signal Clock is synchronized.In the failing edge of the high level time Ton of a cycle pwm signal, reference clock signal is detected Clock is high level, and the rising edge because of the failing edge apart from reference clock signal Clock is close, in noise and signal jitter Under the influence of, in the failing edge of next PWM cycle high level time Ton, detect that reference clock signal Clock is low electricity It is flat.In this way, just having 1 error to the counting of high level time Ton in the two PWM cycles.High level time Ton is got over It is small, because the change in duty cycle in different cycles caused by error is bigger.If using on the screen of the electronic device, work as duty The phenomenon that variation of ratio reaches certain value, and human eye will observe flicker.
Invention content
In view of this, an embodiment of the present invention provides a kind of computational methods and counting circuit of pulse signal duty ratio, with Counting error is effectively eliminated, duty ratio precision is improved, eliminates screen flicker.
According to a first aspect of the embodiments of the present invention, a kind of computational methods of pulse signal duty ratio are provided, including with Lower step:
1) when receiving the first detection signal for characterizing the pulse signal level saltus step, characterization clock signal shape is generated The status signal of state;
2) it generates trigger signal according to the status signal in the next period of the pulse signal and controls the clock The different delay time triggering of signal delay;
3) trigger signal to the clock signal between the first detection signal is counted, to obtain in terms of first Numerical value;
4) to the trigger signal to characterize the pulse signal level saltus step second detection signal between it is described when Clock signal-count, to obtain second value;
5) according to first count value and second count value, the duty ratio of the pulse signal is obtained.
Preferably, step 2) includes:
If the status signal characterizes the clock signal and is in first state, in the next week of the pulse signal Phase triggers the first delay time of the clock signal delay;
If the status signal characterizes the clock signal and is in the second state, in the next week of the pulse signal Phase triggers the second delay time of the clock signal delay.
Preferably, first count value, second count value and the duty ratio are in each of described pulse signal All same in period.
Preferably, it is second electrical level that the first detection signal, which characterizes the pulse signal by the first level saltus step, described Pulse signal described in second detection characterization is the first level by second electrical level saltus step.
Preferably, in a cycle of the pulse signal, the first delay time of the clock signal delay is triggered.
Preferably, the delay time is the integral multiple of the clock signal period.
Preferably, step 5) includes:The arteries and veins is obtained according to the ratio of first count value and second count value Rush the duty ratio of signal.
Preferably, first delay time is more than second delay time.
According to a second aspect of the embodiments of the present invention, a kind of counting circuit of pulse signal duty ratio, the electricity are provided Road includes:
Clock signal detection module for receiving the first detection signal for characterizing the pulse signal level variation, and produces The status signal of raw characterization clock signal state;
Time-delayed trigger module, in the next period of the pulse signal, triggering letter to be generated according to the status signal Number different delay time triggering of the control clock signal delay;
Counter module, based on to the trigger signal to the clock signal between the first detection signal Number, to obtain the first count value;And the trigger signal to the clock signal between the second detection signal is counted, with Obtain second value;
Duty ratio computing module, for according to first count value and second count value, obtaining the pulse letter Number duty ratio.
Preferably, if the state of the clock signal detected is first state, in the next of the pulse signal Period, the trigger signal control the first delay time of clock signal delay triggering;
If the state of the clock signal detected is the second state, in the next period of the pulse signal, institute It states trigger signal and controls the second delay time of clock signal delay triggering.
Preferably, the circuit further includes:Pulse signal detection module, the level for detecting the pulse signal become Change, and generates the first detection signal for characterizing the pulse signal level variation and the second detection signal.
Preferably, it is second electrical level that the first detection signal, which characterizes the pulse signal by the first level saltus step, described Pulse signal described in second detection characterization is the first level by second electrical level saltus step.
Preferably, the circuit further includes:Clock signal generating module for receiving the trigger signal, and generates institute State clock signal.
The technical solution of the embodiment of the present invention is by when pulse signal level changes, detecting the state of clock signal, so Afterwards in the next period of the pulse signal, according to the state of detected clock signal, control clock signal delay is different Time triggered is respectively in the first level and current period the pulse signal from the clock signal triggering moment Clock signal count and obtain the first count value and the second count value, and obtain the duty ratio of the pulse signal accordingly.Pass through Therefore the duty ratio numerical value that this mode obtains all same within each period of the pulse signal can effectively eliminate meter Number error, improves duty ratio precision, eliminates screen flicker.
Description of the drawings
By referring to the drawings to the description of the embodiment of the present invention, the above and other purposes of the present invention, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the existing signal timing diagram that pwm signal duty ratio is calculated using counter process;
Fig. 2 is the existing signal timing diagram that pwm signal duty ratio is calculated using Synchronos method;
Fig. 3 is a kind of flow chart of the computational methods of pulse signal duty ratio of embodiment according to the present invention;
Fig. 4 is the signal timing diagram using computational methods shown in Fig. 3;
Fig. 5-Fig. 7 is respectively illustrated using the stable state sequential for corresponding to 3 kinds of different pwm signals when calculation shown in Fig. 3 Figure;
Fig. 8 is a kind of block diagram of pulse signal duty ratio counting circuit of embodiment according to the present invention;
Fig. 9 is a kind of schematic diagram of Time-delayed trigger module of embodiment according to the present invention.
Specific implementation mode
Below based on embodiment, present invention is described, but the present invention is not restricted to these embodiments.Under Text to the present invention datail description in, it is detailed to describe some specific detail sections.Do not have for a person skilled in the art The description of these detail sections can also understand the present invention completely.In order to avoid obscuring the essence of the present invention, well known method, mistake There is no narrations in detail for journey, flow, element and circuit.
In addition, it should be understood by one skilled in the art that provided herein attached drawing be provided to explanation purpose, and What attached drawing was not necessarily drawn to scale.
It will also be appreciated that in the following description, " circuit " refer to passed through by least one element or sub-circuit it is electrical The galvanic circle that connection or electromagnetism connect and compose.It " is connected when claiming element or another element of circuit " being connected to " or element/circuit " between two nodes when, it can be directly coupled or connected another element or may exist intermediary element, element it Between connection can be physically, in logic or its combination.On the contrary, when claiming element " being directly coupled to " or " directly connecting Be connected to " another element when, it is meant that the two be not present intermediary element.
Unless the context clearly requires otherwise, "include", "comprise" otherwise throughout the specification and claims etc. are similar Word should be construed as the meaning for including rather than exclusive or exhaustive meaning;That is, being containing for " including but not limited to " Justice.
In the description of the present invention, it is to be understood that, term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indicating or implying relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple " It is two or more.
Fig. 3 is a kind of flow chart of the computational methods of pulse signal duty ratio of embodiment according to the present invention.Such as Fig. 3 institutes Show, the computational methods include:
Step S100:When receiving the first detection signal for characterizing the pulse signal level saltus step, when generating characterization The status signal of clock signal condition.
Step S200:It generates trigger signal according to the status signal in the next period of the pulse signal and controls institute State the different delay time triggering of clock signal delay.
Step S200 is specifically included:
Step S201:If the status signal characterizes the clock signal and is in first state, in the pulse signal The next period, by the first delay time of clock signal delay Tdelay1 trigger;
Step S202:If the status signal characterizes the clock signal and is in the second state, in the pulse signal The next period, by the second delay time of clock signal delay Tdelay2 trigger.
First delay time is more than second delay time.In one example, first delay time Tdelay1 and the second delay time Tdelay2 meets:Tnoise<Tdelay1-Tdelay2<N/2Tclock-Tnoise, Tnoise is the influence time that noise and shake generate the pulse signal and the clock signal, and Tclock is the clock The period of signal, n are natural number.
Step S300:The trigger signal to the clock signal between the first detection signal is counted, to obtain Obtain the first count value.
Step S400:To the trigger signal between the second detection signal for characterizing the pulse signal level saltus step The clock signal counts, to obtain second value;
Step S500:According to first count value and second count value, the duty ratio of the pulse signal is obtained.
Specifically, in step S500, due to delay time very little, the precision of the duty ratio is not interfered with, it therefore, can To obtain the duty ratio of the pulse signal according to the ratio of first count value and second count value.In an example In, first delay time and second delay time could be provided as the integral multiple of the clock signal period, and set Timing is set since the integral multiple of the clock signal period so that keep one with the trigger signal at the time of timing starts It causes.
In above-mentioned or following embodiments, the pulse signal, which can be that pwm signal is either other, has varying level Pulse signal;First level can be high level, and second electrical level can be correspondingly low level;Or first level can be with For low level, and second electrical level can be correspondingly high level;The clock signal is high-frequency signal, has and is higher than the pulse The frequency of signal.Certainly, it is not limited to the above example for the form of pulse signal and clock signal.The first state can be low Level state, second state can be high level state;Or the first state can be low level state, described the Two-state can be high level state.Certainly, it is not limited to the above example for the form of first state and the second state.
Computational methods in Fig. 3 in order to better understand are specifically described with reference to Fig. 4.
For clarity, the pwm signal is characterized by height by pwm signal and first detection signal of pulse signal below Level saltus step be low level, second detection characterization described in pwm signal by low transition be high level and clock signal First state be low level state, the second state be high level state for illustrate.
As shown in figure 4, for using computational methods shown in Fig. 3 signal timing diagram, wherein clock signal Clock1 and Clock2 indicates the sequential of two kinds of different situations (i.e. delay time is respectively the first delay time and the second delay time) respectively.
First, when it is low level (i.e. failing edge) that pwm signal is by high level saltus step, the clock signal Clock is detected State.
It, will be described in the next period of pwm signal if the clock signal Clock1 detected is low level state Clock signal Clock1 delay the first delay time Tdelay1 triggerings.
It, will in the next period of the pwm signal if the clock signal Clock2 detected is high level state The clock signal Clock2 delays the second delay time Tdelay2 triggerings.
Before, it is once mentioned in the description to Fig. 2, it is assumed that when noise is with the influence to pwm signal and Clock signals is shaken Between be Tnoise, when the rising edge of clock signal Clock is fallen in the sections Tnoise, count value just has 1 error.And it adopts After computational methods shown in Fig. 3, as shown in figure 4, no matter delay time be the first delay time or the second delay time, when The rising edge of clock signal Clock will not be fallen in the sections Tnoise, thereby eliminate the turn-on time to pwm signal, period Counting error.
Fig. 5-Fig. 7 is respectively illustrated using the stable state sequence diagram for corresponding to 3 kinds of different pwm signals shown in Fig. 3 when calculation.
As shown in figure 5, in the failing edge of each pwm signal, detect that the clock signal Clock is low level, Therefore, in the next period of each pwm signal, the clock signal Clock postpones the first delay time Tdelay1 and touches Hair.Clock signal counting between when to the failing edge of the triggering moment from the clock signal to the pwm signal is obtained The first count value be N1, when occurring rising edge again to the triggering moment from the clock signal to the pwm signal between Clock signal to count obtained the second count value be N2, it is known that, the high level time of pwm signal is N1*Tclock+ Tdelay1, period N2*Tclock+Tdelay1, therefore duty ratio D=(N1*Tclock+Tdelay1)/(N2*Tclock+ Tdelay1), because of the first delay time Tdelay1 very littles, can be neglected, therefore duty ratio D calculating can be reduced to D=N1* Tclock/N2*Tclock=N1/N2, you can according to the acquisition of the ratio of first count value and second count value The duty ratio of pwm signal.In this case, for the turn-on time of pwm signal and period count value in each period All it is inside identical.
As shown in fig. 6, in the failing edge of each pwm signal, detect that the clock signal Clock is high level, Therefore, in the next period of each pwm signal, the clock signal Clock postpones the second delay time Tdelay2 and touches Hair.Clock signal counting between when to the failing edge of the triggering moment from the clock signal to the pwm signal is obtained The first count value be N1 ', when occurring rising edge again to the triggering moment from the clock signal to the pwm signal between Clock signal to count obtained the second count value be N2 ', it is known that, the high level time of pwm signal is N1 ' * Tclock+ Tdelay2, period N2 ' * Tclock+Tdelay2, therefore duty ratio D=(N1 ' * Tclock+Tdelay2)/(N2 ' * Tclock+ Tdelay2), similarly, because of the second delay time Tdelay2 very littles, can be neglected, therefore duty ratio D calculating can be reduced to D= N1 ' * Tclock/N2 ' * Tclock=N1 '/N2 ', you can obtained according to the ratio of first count value and second count value Obtain the duty ratio of the pwm signal.Equally, in this case, exist for the count value of the turn-on time of pwm signal and period It is identical in each period.
As shown in fig. 7, the failing edge of a cycle in pwm signal, detects that the clock signal Clock is low electricity Level state, then in the second period of pwm signal, the first delay time of clock signal Clock delays Tdealy1 is triggered, And at the end of second period, and detect that the clock signal Clock is high level state, at this point, the clock is believed Number Clock delay the second delay time Tdelay2 triggerings.Later, in the third of pwm signal, the 4th ... n-th period It is interior, the work in meeting constantly repeatedly first, second period, when the clock signal Clock meetings alternating delay first is delayed Between Tdelay1 and the second delay time Tdelay2 triggerings.In the figure 7, in a cycle of the pwm signal, to from institute Clock signal between when stating the failing edge of the triggering moment of clock signal to the pwm signal counts obtained first and counts Value is N1 ", when occurring rising edge again to the triggering moment from the clock signal to the pwm signal between clock signal It is N2 " to count the second obtained count value, it is known that, the high level time of pwm signal is N1 " * Tclock+Tdelay1, period For N2 " * Tclock+Tdelay1, therefore duty ratio D=(N1 " * Tclock+Tdelay1)/(N2 " * Tclock+Tdelay1), together Sample, because of delay time Tdelay1 very littles, can be neglected, therefore in a cycle of the pwm signal, duty ratio D meters Calculation can be reduced to D=N1 " * Tclock/N2 " * Tclock=N1 "/N2 ".And in the second period of the pwm signal, though Right delay time becomes Tdelay2, but the calculation basis aforesaid way of duty ratio D, after simplified, remain as D=N1 "/ N2”.Therefore, either delay time is the first delay time Tdelay1 or the second delay time Tdelay2, can basis The ratio of first count value and second count value obtains the duty ratio of the pwm signal.Equally, in such case Under, the count value of turn-on time and period for pwm signal is identical within each period.
Fig. 8 is a kind of block diagram of pulse signal duty ratio counting circuit of embodiment according to the present invention.As shown in figure 8, institute Stating pulse signal duty ratio counting circuit 800 includes:
Clock signal detection module 801, for receiving the first detection signal for characterizing the pulse signal level variation VT1, and generate the status signal VS of characterization clock signal state;
Time-delayed trigger module 802, in the next period of the pulse signal, being generated and being touched according to the status signal VS Signalling Trigger controls the different delay time triggering of the clock signal delay;
Counter module 803, for the trigger signal Trigger to the institute between the first detection signal VT1 Clock signal counting is stated, to obtain the first count value N1;And to the trigger signal Trigger to second detection signals VT2 Between the clock signal count, to obtain second value N2;
Duty ratio computing module 804, for according to the first count value N1 and the second count value N2, described in acquisition The duty ratio D of pulse signal.
In one embodiment, the pulse signal duty ratio counting circuit 800 further includes:Pulse signal detection module 805, it is used for return pulse signal, and generate the first detection signal VT1 for characterizing the pulse signal level variation and institute State the second detection signal VT2.
It is second electrical level that the first detection signal, which characterizes the pulse signal by the first level saltus step, second detection Pulse signal described in characterization is the first level by second electrical level saltus step.
Wherein, pulse signal can be generated by the external equipment of chip, such as pwm signal generation circuit, using chip PWM pins be converted to internal pwm signal;Or it can be directly given by the pwm signal generation circuit of chip interior.When So, the generation of pulse signal is not limited to aforesaid way.
In one embodiment, the pulse signal duty ratio counting circuit 800 further includes:Clock signal generating module 806, for receiving the trigger signal Trigger, and generate the clock signal Clock.
In one embodiment, the concrete operating principle of the Time-delayed trigger module 802 includes:If for example, the state Signal VS characterizes the clock signal Clock and is in first state, then in the next period of the pulse signal, that is, receives the When two detection signal VT2, the trigger signal Trigger controls the relatively described second detection signals of the clock signal Clock VT2 delay the first delay time Delay1 triggerings;If the status signal VS characterizes the clock signal Clock and is in the second shape State, then in the next period of the pulse signal, that is, when receiving the second detection signal VT2, the trigger signal Trigger controls Make relatively described second detection signal VT2 delays the second delay time Delay2 triggerings of the clock signal Clock.
Fig. 9 is a kind of schematic diagram of Time-delayed trigger module of embodiment according to the present invention.As shown in figure 9, the delay is touched It includes switch Switch, the second delay time generation circuit and third delay time generation circuit to send out module 802.
Wherein, the second delay time generation circuit is connected in series with the third delay time generation circuit, described The input terminal of second delay time generation circuit receives the second detection signal VT2, the output end of the third delay time The trigger signal Trigger is generated, the switch Switch is in parallel with the third delay time generation circuit, the switch The control terminal of Switch is controlled by the status signal VS.
If the status signal VS characterizes the clock signal Clock and is in first state, in the pulse signal Next period, the status signal VS control the switch Switch and disconnect, and the trigger signal Trigger controls the clock Relatively described second detection signal VT2 delays the first delay time Delay1 triggerings of signal Clock, wherein first delay When time Delay1 is the second delay time Delay2 that the second delay time generation circuit generates and the third is delayed Between the sum of the third delay time Delay3 that generates of generation circuit;If the status signal VS characterizes the clock signal Clock In the second state, then in the next period of the pulse signal, the status signal VS controls the switch Switch and is closed Make the third delay time generation circuit short circuit, the trigger signal Trigger controls the clock signal Clock as a result, Relatively described second detection signal VT2 delays the second delay time Delay2 triggerings.
It is as a preferred mode, described in a cycle of the pulse signal in above each embodiment The first delay time of clock signal delay triggers.Certainly, the clock signal can also postpone the triggering of the second delay time.
The technical solution of the embodiment of the present invention is by when pulse signal level changes, detecting the state of clock signal, so Afterwards in the next period of the pulse signal, according to the state of detected clock signal, control clock signal delay is different Time triggered is respectively in the first level and current period the pulse signal from the clock signal triggering moment Clock signal count and obtain the first count value and the second count value, and obtain the duty ratio of the pulse signal accordingly.Pass through Therefore the duty ratio numerical value that this mode obtains all same within each period of the pulse signal can effectively eliminate meter Number error, improves duty ratio precision, eliminates screen flicker.
The foregoing is merely the preferred embodiment of the present invention, are not intended to restrict the invention, for those skilled in the art For, the present invention can have various modifications and changes.It is all within spirit and principles of the present invention made by any modification, equivalent Replace, improve etc., it should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of computational methods of pulse signal duty ratio, which is characterized in that include the following steps:
1) when receiving the first detection signal for characterizing the pulse signal level saltus step, characterization clock signal state is generated Status signal;
2) it generates trigger signal according to the status signal in the next period of the pulse signal and controls the clock signal Postpone different delay time triggerings;
3) trigger signal to the clock signal between the first detection signal is counted, is counted with obtaining first Value;
4) trigger signal to the clock between the second detection signal for characterizing the pulse signal level saltus step is believed Number count, to obtain second value;
5) according to first count value and second count value, the duty ratio of the pulse signal is obtained.
2. computational methods according to claim 1, which is characterized in that step 2) includes:
It, will in the next period of the pulse signal if the status signal characterizes the clock signal and is in first state The first delay time of the clock signal delay triggers;
It, will in the next period of the pulse signal if the status signal characterizes the clock signal and is in the second state The second delay time of the clock signal delay triggers.
3. computational methods according to claim 1, which is characterized in that first count value, second count value and Duty ratio all same within each period of the pulse signal.
4. computational methods according to claim 1, which is characterized in that the first detection signal characterizes the pulse signal It is second electrical level by the first level saltus step, pulse signal described in the second detection characterization is first by second electrical level saltus step Level.
5. computational methods according to claim 1, which is characterized in that in a cycle of the pulse signal, to institute State the triggering of the first delay time of clock signal delay.
6. computational methods according to claim 1, which is characterized in that the delay time is the clock signal period Integral multiple.
7. computational methods according to claim 1, which is characterized in that step 5) includes:According to first count value and The ratio of second count value obtains the duty ratio of the pulse signal.
8. computational methods according to claim 2, which is characterized in that first delay time is more than described second and is delayed Time.
9. a kind of counting circuit of pulse signal duty ratio, which is characterized in that the circuit includes:
Clock signal detection module for receiving the first detection signal for characterizing the pulse signal level variation, and generates table Levy the status signal of clock signal state;
Time-delayed trigger module, in the next period of the pulse signal, trigger signal control to be generated according to the status signal Make the different delay time triggering of the clock signal delay;
Counter module, for being counted to the trigger signal to the clock signal between the first detection signal, with Obtain the first count value;And the trigger signal to the clock signal between the second detection signal is counted, to obtain Second value;
Duty ratio computing module, for according to first count value and second count value, obtaining the pulse signal Duty ratio.
10. counting circuit according to claim 8, which is characterized in that
It is described tactile in the next period of the pulse signal if the state of the clock signal detected is first state It signals to control the first delay time of clock signal delay triggering;
It is described tactile in the next period of the pulse signal if the state of the clock signal detected is the second state It signals to control the second delay time of clock signal delay triggering.
11. counting circuit according to claim 8, which is characterized in that the circuit further includes:
Pulse signal detection module, the level change for detecting the pulse signal, and generate for characterizing the pulse letter The first detection signal of number level change and the second detection signal.
12. counting circuit according to claim 8, which is characterized in that the first detection signal characterizes the pulse letter Number it is second electrical level by the first level saltus step, pulse signal described in the second detection characterization is the by second electrical level saltus step One level.
13. counting circuit according to claim 8, which is characterized in that the circuit further includes:
Clock signal generating module for receiving the trigger signal, and generates the clock signal.
CN201810252025.9A 2018-03-26 2018-03-26 Pulse signal duty ratio calculation method and calculation circuit Active CN108551336B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111024193.0A CN113676162B (en) 2018-03-26 2018-03-26 Pulse signal level calculating method and circuit
CN201810252025.9A CN108551336B (en) 2018-03-26 2018-03-26 Pulse signal duty ratio calculation method and calculation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810252025.9A CN108551336B (en) 2018-03-26 2018-03-26 Pulse signal duty ratio calculation method and calculation circuit

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202111024193.0A Division CN113676162B (en) 2018-03-26 2018-03-26 Pulse signal level calculating method and circuit

Publications (2)

Publication Number Publication Date
CN108551336A true CN108551336A (en) 2018-09-18
CN108551336B CN108551336B (en) 2022-01-18

Family

ID=63517021

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810252025.9A Active CN108551336B (en) 2018-03-26 2018-03-26 Pulse signal duty ratio calculation method and calculation circuit
CN202111024193.0A Active CN113676162B (en) 2018-03-26 2018-03-26 Pulse signal level calculating method and circuit

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202111024193.0A Active CN113676162B (en) 2018-03-26 2018-03-26 Pulse signal level calculating method and circuit

Country Status (1)

Country Link
CN (2) CN108551336B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110261673A (en) * 2019-05-14 2019-09-20 哈尔滨工业大学 It is a kind of based on voltage, the dummy burst power measuring system of electric current dipulse signal and method
WO2020098557A1 (en) * 2018-11-14 2020-05-22 Changxin Memory Technologies, Inc. Method and apparatus for determining jitter, storage medium and electronic device
CN111614345A (en) * 2020-07-16 2020-09-01 杭州瑞盟科技有限公司 Integrated circuit and method for measuring PWM duty ratio
WO2020233250A1 (en) * 2019-05-17 2020-11-26 珠海赛纳三维科技有限公司 Servo motor drive circuit and 3d printing device
CN112782487A (en) * 2019-11-08 2021-05-11 航天科工惯性技术有限公司 Duty ratio detection system
CN113068291A (en) * 2021-03-30 2021-07-02 重庆长安汽车股份有限公司 Welcome and welcome lamp control method and system based on PWM (pulse width modulation) signal and automobile
CN114157145A (en) * 2021-11-30 2022-03-08 东南大学 Inductive current estimation method of DC-DC switching power supply
CN114785658A (en) * 2022-03-28 2022-07-22 上海峰飞航空科技有限公司 Data synchronization system, method and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415060A (en) * 2022-01-26 2022-04-29 天津天元海科技开发有限公司 Lamp quality detection device and outdoor detector for lamp quality of beacon light
CN117240263A (en) * 2023-09-28 2023-12-15 成都利普芯微电子有限公司 PWM generation circuit and motor control chip

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050007168A1 (en) * 2003-07-10 2005-01-13 Postech Foundation Digital duty cycle correction circuit and method for multi-phase clock
US20080290920A1 (en) * 2007-05-24 2008-11-27 Nanya Technology Corporation Duty cycle correction circuit and method thereof
CN101789774A (en) * 2009-01-22 2010-07-28 中芯国际集成电路制造(上海)有限公司 All-digital pulse width control circuit
US20110102038A1 (en) * 2009-11-03 2011-05-05 Advantest Corporation Duty ratio control apparatus and duty ratio control method
CN102832913A (en) * 2012-08-21 2012-12-19 上海新进半导体制造有限公司 Method and circuit for eliminating errors and duty ratio detection circuit
CN103176059A (en) * 2011-12-21 2013-06-26 北京普源精电科技有限公司 Method, device and frequency meter for measuring pulse width
CN104158605A (en) * 2014-07-30 2014-11-19 华南理工大学 PWM-code-based method capable of realizing self-adaption simultaneous wireless information and power transfer (SWIPT) frequency
CN105577142A (en) * 2016-02-26 2016-05-11 昆腾微电子股份有限公司 Clock duty cycle adjusting device and method
CN106374890A (en) * 2016-09-08 2017-02-01 电子科技大学 Clock duty ratio correction circuit

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564284B2 (en) * 2007-03-26 2009-07-21 Infineon Technologies Ag Time delay circuit and time to digital converter
CN102025276B (en) * 2010-11-11 2013-07-31 东南大学 Clock domain crossing controller of digital control switch power supply and control method thereof
CN103713171B (en) * 2012-10-08 2017-08-25 北京普源精电科技有限公司 It is a kind of that there is the oscillograph for postponing Trigger Function
CN103780064B (en) * 2014-02-14 2016-06-29 成都启臣微电子有限公司 Possesses the switching power source control circuit of secondary side feedback current detecting
CN104202040B (en) * 2014-09-04 2017-09-29 南京矽力杰半导体技术有限公司 Bit level detects circuit and method
CN104485947B (en) * 2014-12-30 2017-10-27 中南民族大学 A kind of digital phase discriminator that crystal oscillator is tamed for GPS
CN104901657A (en) * 2015-05-22 2015-09-09 浙江大学 Full-digital debouncing circuit and method
CN105958972B (en) * 2016-06-07 2018-11-27 矽力杰半导体技术(杭州)有限公司 Pwm control circuit and pwm signal generation method
CN107147379B (en) * 2017-04-26 2020-08-04 烽火通信科技股份有限公司 FPGA-based edge detection method and system and clock data recovery circuit

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050007168A1 (en) * 2003-07-10 2005-01-13 Postech Foundation Digital duty cycle correction circuit and method for multi-phase clock
US20080290920A1 (en) * 2007-05-24 2008-11-27 Nanya Technology Corporation Duty cycle correction circuit and method thereof
CN101789774A (en) * 2009-01-22 2010-07-28 中芯国际集成电路制造(上海)有限公司 All-digital pulse width control circuit
US20110102038A1 (en) * 2009-11-03 2011-05-05 Advantest Corporation Duty ratio control apparatus and duty ratio control method
CN103176059A (en) * 2011-12-21 2013-06-26 北京普源精电科技有限公司 Method, device and frequency meter for measuring pulse width
CN102832913A (en) * 2012-08-21 2012-12-19 上海新进半导体制造有限公司 Method and circuit for eliminating errors and duty ratio detection circuit
CN104158605A (en) * 2014-07-30 2014-11-19 华南理工大学 PWM-code-based method capable of realizing self-adaption simultaneous wireless information and power transfer (SWIPT) frequency
CN105577142A (en) * 2016-02-26 2016-05-11 昆腾微电子股份有限公司 Clock duty cycle adjusting device and method
CN106374890A (en) * 2016-09-08 2017-02-01 电子科技大学 Clock duty ratio correction circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JI-HOON LIM等: "A Delay Locked Loop With a Feedback Edge Combiner of Duty-Cycle Corrector With a 20%–80% Input Duty Cycle for SDRAMs", 《IEEE》 *
徐中林: "基于 Arduino 平台频率、占空比测试仪器的制作", 《CNKI中国知网》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020098557A1 (en) * 2018-11-14 2020-05-22 Changxin Memory Technologies, Inc. Method and apparatus for determining jitter, storage medium and electronic device
US11733293B2 (en) 2018-11-14 2023-08-22 Changxin Memory Technologies, Inc. Method and apparatus for determining jitter, storage medium and electronic device
CN110261673B (en) * 2019-05-14 2021-10-15 哈尔滨工业大学 Virtual pulse power measurement system and method based on voltage and current double-pulse signals
CN110261673A (en) * 2019-05-14 2019-09-20 哈尔滨工业大学 It is a kind of based on voltage, the dummy burst power measuring system of electric current dipulse signal and method
WO2020233250A1 (en) * 2019-05-17 2020-11-26 珠海赛纳三维科技有限公司 Servo motor drive circuit and 3d printing device
US11951685B2 (en) 2019-05-17 2024-04-09 Zhuhai Sailner 3D Technology Co., Ltd. Servo motor drive circuit and 3D printing apparatus
CN112782487A (en) * 2019-11-08 2021-05-11 航天科工惯性技术有限公司 Duty ratio detection system
CN111614345A (en) * 2020-07-16 2020-09-01 杭州瑞盟科技有限公司 Integrated circuit and method for measuring PWM duty ratio
CN113068291A (en) * 2021-03-30 2021-07-02 重庆长安汽车股份有限公司 Welcome and welcome lamp control method and system based on PWM (pulse width modulation) signal and automobile
CN113068291B (en) * 2021-03-30 2023-03-24 重庆长安汽车股份有限公司 Welcome and welcome lamp control method and system based on PWM (pulse width modulation) signal and automobile
CN114157145A (en) * 2021-11-30 2022-03-08 东南大学 Inductive current estimation method of DC-DC switching power supply
CN114157145B (en) * 2021-11-30 2023-03-14 东南大学 Inductive current estimation method of DC-DC switching power supply
CN114785658A (en) * 2022-03-28 2022-07-22 上海峰飞航空科技有限公司 Data synchronization system, method and storage medium

Also Published As

Publication number Publication date
CN113676162A (en) 2021-11-19
CN113676162B (en) 2024-02-23
CN108551336B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN108551336A (en) The computational methods and counting circuit of pulse signal duty ratio
KR101099179B1 (en) Delay time determining method, delay time adjusting method and variable delay circuit
TWI453427B (en) Clock glitch detection circuit
US9222971B2 (en) Functional path failure monitor
JP4269710B2 (en) Frequency measurement circuit and vibration sensor type differential pressure / pressure transmitter using the same
CN107576930B (en) power supply and relay status detection circuit and method
CN116054798B (en) Method and device for eliminating time sequence metastable state in multi-voltage domain power-on and power-off reset
CN105553444B (en) Sef-adapting filter
CN110568750A (en) Timing circuit and timing method
CN107132469B (en) Multipath signal detection method, circuit and control chip
EP1349278A2 (en) Power-on reset circuit
CN102466779A (en) Built-in testing method for delay of trigger and circuit
TW200816638A (en) Data latch circuit with a phase selector
JP5724775B2 (en) Integrated circuit
CN114679158B (en) Periodic signal generating device, signal processing system and periodic signal generating method thereof
TW201502535A (en) Test device and method
TW200846689A (en) Integrated fault output/fault response delay circuit
US9065448B2 (en) Capacitive switch having high accuracy
JP2017126850A (en) Communication interface circuit and semiconductor integrated circuit
KR20060021202A (en) Method and ic for detecting variation of capacitance
CN112286083B (en) Control circuit
CN106911323A (en) Triangular-wave generator and triangular wave generation system
CN107121647B (en) Magnetic core inductance sensitivity measurement method and system
CN105718402B (en) Programmable timing generator
KR100685365B1 (en) Apparatus for detecting variation of capacitance multi channel

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 210042 302, Xuanwu Road, 7, Xuanwu Road, Xuanwu District, Nanjing, Jiangsu, China, 7

Applicant after: Nanjing Sili Microelectronics Technology Co., Ltd

Address before: 210042 302, Xuanwu Road, 7, Xuanwu Road, Xuanwu District, Nanjing, Jiangsu, China, 7

Applicant before: Silergy Semiconductor Technology (Hangzhou) Ltd.

GR01 Patent grant
GR01 Patent grant