A pulse width modulation (pwm) frequency converter converts an input pwm signal to an output pwm signal having a different frequency while maintaining a substantially equal duty ratio. The pwm frequency converter samples the input pwm signal for a pwm cycle using a sampling clock. A filter module filters the resulting set of one or more pwm parameters to compensate for noise introduced by potential clock mismatch, clock jitter, ambient variations, and other non-deterministic issues, thereby generating filtered pwm parameters. The sampling employed by the filter module compares a difference between the one or more current pwm parameters and previous (or historical) pwm parameters from an earlier sampled pwm cycle to a predetermined change threshold in determining a filtered set of one or more pwm parameters. The filtered set of one or more pwm parameters then is used to generate one or more corresponding pwm cycles of the output signal.
|
15. In a pulse width modulation (pwm) frequency converter that receives a first pwm signal and outputs a second pwm signal having a higher frequency than the first pwm signal, a method comprising:
sampling a first pwm cycle of the first pwm signal to determine a first value and a second value, the first value representative of a number of samples having a select sample value for the first pwm cycle and the second value representative of a′ total number of samples for the first pwm cycle;
sampling a second pwm cycle of the first pwm signal that occurs subsequent to the first pwm cycle to determine a third value and a fourth value, the third value representative of a number of samples having the select sample value for the second pwm cycle and the fourth value representative of a total number of samples for the second pwm cycle;
filtering the third value based on the first value and a predetermined change threshold to generate a fifth value;
filtering the fourth value based on the second value and the predetermined change threshold to generate a sixth value; and
generating a pwm cycle of the second pwm signal based on the fifth value and the sixth value.
1. In a pulse width modulation (pwm) frequency converter that receives a first pwm signal and outputs a second pwm signal having a different frequency than the first pwm signal, a method comprising:
sampling a first pwm cycle of the first pwm signal to generate a first set of one or more pwm parameters, the sampling to determine a first value and a second value of the first set of one or more pwm parameters, the first value representative of a number of samples having a select sample value for the first pwm cycle and the second value representative of a total number of samples for the first pwm cycle;
filtering the first set of one or more pwm parameters based on a predetermined change threshold to generate a second set of one or more pwm parameters, the filtering comprising:
filtering the first value based on a change threshold range defined by the predetermined change threshold to generate a third value of the second set of one or more pwm parameters; and
filtering the second value based on the change threshold range to generate a fourth value of the second set of one or more pwm parameters; and
generating a second pwm cycle for the second pwm signal based on the second set of one or more pwm parameters.
9. A pulse width modulation (pwm) frequency converter having an input to receive a first pwm signal and an output to provide a second pwm signal having a different frequency than the first pwm signal, the pwm frequency converter comprising:
a sampling module to sample a first pwm cycle of the first pwm signal to generate a first set of one or more pwm parameters, the sampling to determine a first value and a second value of the first set of one or more pwm parameters, the first value representative of a number of samples having a select sample value for the first pwm cycle and the second value representative of a total number of samples for the first pwm cycle;
a filter module to filter the first set of one or more pwm parameters based on a predetermined change threshold to generate a second set of one or more pwm parameters by:
filtering the first value based on a change threshold range defined by the predetermined change threshold to generate a third value of the second set of one or more pwm parameters; and
filtering the second value based on the change threshold range to generate a fourth value of the second set of one or more pwm parameters; and
a pwm generator module to generate a second pwm cycle for the second pwm signal based on the second set of one or more pwm parameters.
2. The method of
determining a duty ratio of the first pwm cycle using the second set of one or more pwm parameters; and
generating the second pwm cycle so as to have a duty cycle substantially equal to the duty ratio determined for the first pwm cycle.
3. The method of
determining a duty value based on a pwm step range of the second pwm signal and a ratio of the third value and the fourth value; and
generating the second pwm cycle based on the duty value.
4. The method of
configuring a sampling frequency such that a truncated or rounded product of the pwm step range and a ratio of the predetermined change threshold to the second value is not greater than one least significant bit (LSB) of a pwm step resolution of the second pwm signal.
5. The method of
driving the second pwm signal to a first state for a first duration, the first duration having a number of cycles of a generation clock equal to the duty value; and
driving the second pwm signal to a second state for a second duration, the second duration having a number of cycles of the generation clock equal to a difference between the pwm step range and the duty value, wherein the second duration precedes or follows the first duration.
6. The method of
filtering the first value based on the change threshold range to generate the third value comprises:
setting the third value equal to the first value in response to determining a difference between the first value and a fifth value is greater than or equal to the predetermined change threshold, wherein the fifth value represents a number of samples having the select sample value for a pwm cycle of the first pwm signal occurring prior to the first pwm cycle; and
setting the third value equal to the fifth value in response to determining the difference between the first value and the fifth value is less than the predetermined change threshold; and
filtering the second value based on the change threshold range to generate the fourth value comprises:
setting the fourth value equal to the second value in response to determining a difference between the second value and a sixth value is greater than or equal to the predetermined change threshold, wherein the sixth value represents a total number of samples for a pwm cycle of the first pwm signal occurring prior to the first pwm cycle; and
setting the fourth value equal to the sixth value in response to determining the difference between the second value and the sixth value is less than the predetermined change threshold.
8. The method of
10. The pwm frequency converter of
determining a duty ratio of the first pwm cycle using the second set of one or more pwm parameters; and
generating the second pwm cycle so as to have a duty cycle substantially equal to the duty ratio determined for the first pwm cycle.
11. The pwm frequency converter of
determining a duty value based on a pwm step resolution of the second pwm signal and a ratio of the third value and the fourth value; and
generating the second pwm cycle based on the duty value.
12. The pwm frequency converter of
driving the second pwm signal to a first state for a first duration, the first duration having a number of cycles of a generation clock equal to the duty value; and
driving the second pwm signal to a second state for a second duration, the second duration having a number of cycles of the generation clock equal to a difference between the pwm step resolution and the duty value, wherein the second duration precedes or follows the first duration.
13. The pwm frequency converter of
the filter module is to filter the first value to generate the third value by:
setting the third value equal to the first value in response to determining a difference between the first value and a fifth value is greater than or equal to the predetermined change threshold, wherein the fifth value represents a number of samples having the select sample value for a pwm cycle of the first pwm signal occurring prior to the first pwm cycle; and
setting the third value equal to the fifth value in response to determining the difference between the first value and the fifth value is less than the predetermined change threshold; and
the filter module is to filter the second value based on the change threshold range to generate the fourth value by:
setting the fourth value equal to the second value in response to determining a difference between the second value and a sixth value is greater than or equal to the predetermined change threshold, wherein the sixth value represents a total number of samples for a pwm cycle of the first pwm signal occurring prior to the first pwm cycle; and
setting the fourth value equal to the sixth value in response to determining the difference between the second value and the sixth value is less than the predetermined change threshold.
14. The pwm frequency converter of
16. The method of
determining a duty value based on a pwm step range of the second pwm signal and a ratio of the fifth value and the sixth value; and
generating the pwm cycle for the second pwm signal based on the duty value.
17. The method of
filtering the third value to generate the fifth value comprises:
setting the fifth value equal to the third value in response to determining a difference between the third value and the first value is greater than or equal to the predetermined change threshold; and
setting the fifth value equal to the first value in response to determining the difference between the third value and the first value is less than the predetermined change threshold; and
filtering the fourth value to generate the sixth value comprises:
setting the sixth value equal to the fourth value in response to determining a difference between the fourth value and the second value is greater than or equal to the predetermined change threshold; and
setting the sixth value equal to the second value in response to determining the difference between the fourth value and the second value is less than the predetermined change threshold.
|
The present disclosure relates generally to pulse width modulation (PWM) and more particularly to frequency conversion for PWM signals.
Pulse width modulation (PWM) signals often are used for precise control of electronic devices, such as electric motors, light emitting diode (LED) backlights, switching-mode power sources, and the like. However, in many instances, the PWM signal has a frequency that can introduce undesirable effects such as electromagnetic interference (EMI), or which can result in artifacts perceptible to a user. For example, the PWM signals used to drive the LED backlight in a display device often have a frequency within the human audible range (0-20 kHz), and thus can be audibly discerned by a viewer. Further, it will be appreciated that a lower-frequency PWM signal can introduce significant droop or ripple in an output voltage controlled or otherwise affected by the frequency of the PWM signal. To address these types of issues, electronic systems often employ some form of frequency conversion for the PWM signal so as to increase or decrease the PWM frequency while maintaining the same PWM duty ratio, thereby reducing or eliminating undesired effects such as EMI and audible noise and decreasing the magnitude of any ripple or droop in any output voltage affected by the PWM signal. In one conventional frequency conversion technique, an analog approach is employed whereby an incoming PWM signal is converted to a varying voltage based on the duty ratio of the incoming PWM signal, which is then used along with a ramp signal and a plurality of reference signals to reproduce the original duty ratio of the incoming PWM signal at a different frequency. However, the noise in the representative voltage and the offsets in the comparators used to compare the representative voltage, the reference voltages, and the ramp signal prevent accurate PWM signal generation for duty ratios, particularly near 0% or near 100%. Moreover, the noise in the input PWM signal to voltage conversion and the offsets in the comparators also result in noise and offset in the generated output PWM signal.
The present disclosure may be better understood, and its numerous features and advantages made apparent to those skilled in the art by referencing the accompanying drawings. The use of the same reference symbols in different drawings indicates similar or identical items.
In one embodiment, the input PWM signal 102 is generated by a PWM source 116 and having a frequency f1. The PWM source 116 can include, for example, a video processor for a context whereby the input PWM signal 102 is a backlight control signal, a microcontroller for a context whereby the input PWM signal 102 is a motor control signal, etc. For sampling of the input signal 102 at the PWM frequency converter 100, the clock source 112 generates a sampling clock 122 having a frequency f2 greater than the frequency f1 of the input PWM signal 102. The clock source 114 generates a generation clock 124 having a frequency f3 for generation of the output PWM signal 104 with a frequency f4, where the frequency f4 is a product of the frequency f3 of the clock 124 and the PWM step resolution of the output PWM signal (e.g., 255*f3 for an 8-bit PWM step resolution),
The sampling module 106 includes an input to receive the input PWM signal 102, an input to receive the sampling clock 122, and an output to provide the results of a sampling process of the input PWM signal 102 using the sampling clock 122 as a set of raw PWM parameters 126. The filter module 108 includes an input to receive the raw PWM parameters 126 and an output to provide a set of filtered PWM parameters 128 generated on the basis of filtering of the raw PWM parameters 126. The PWM generator module 110 includes an input to receive the filtered PWM parameters 128, an input to receive the generation clock 124, and an output to provide the output PWM signal 104, whereby the PWM generator module 110 generates the output PWM signal 104 using the generation clock 124 and the filtered PWM parameters 128 as described below with reference to
At block 202, the PWM frequency converter 100 is initialized by initializing the sampling module 106 in preparation for sampling a PWM cycle of the input PWM signal 102. In sampling the input PWM signal 102, the sampling module 106 employs two variables or values: N_total, which represents the total number of samples taken over a PWM cycle being sampled; N_high, which represents the number of samples taken over the PWM cycle that have a select sample value (e.g., logic “high” or “1” for this example). For the filtering, the filter module 108 uses four additional values or variables: N_H0, which represents a historical or baseline number of samples over any thus-far sampled PWM cycle that have the select sample value; and N_T0, which represents a historical or baseline total number of samples over any thus-far sampled PWM cycle; N_H, which represents the number of samples that have the select sample value to be used in calculating the duty ratio for the generated PWM cycle; and N_T, which represents the total number of samples to be used in calculating the duty ratio for the generated PWM cycle. Accordingly, the filter module 108 can be initialized at block 202 before sampling the first PWM cycle to be sampled by setting at least N_T0 and N_H0 to 0 so as to set the baseline for these values to zero for comparison purposes.
At block 204, the sample module 106 samples a PWM cycle of the input PWM signal 102 using the sampling clock 122 to drive the sampling frequency. As illustrated by
At block 210, the filter module 108 determines whether the difference between the value N_high (i.e., the number of “high” samples in the sampled PWM cycle) and the value N_H0 is greater than or equal to a predetermined change threshold. As will be understood from the further description below, the value N_H0 represents a filtered or baseline number of high samples from one or more previous sampled PWM cycles. Thus, at block 210 the filter module 108 determines whether the number of high samples from the PWM cycle most recently sampled is within a change threshold range of a historical number of high PWM samples, where the change threshold range is defined by the predetermined change threshold. If outside the change threshold range (i.e., the difference between these values is greater than or equal to the predetermined change threshold), at block 212 the filter module 108 sets N_H to the value N_high. As discussed below, the value N_H is used to calculate (in combination with a value N_T) the duty ratio for a corresponding PWM cycle of the output PWM signal 104 to be generated, and thus setting the value N_H to the value N_high at block 212 results in the number of high samples determined for most recently sampled PWM cycle acting to control the duty cycle of the corresponding PWM cycle to be generated for the output PWM signal 104. Otherwise, if the number of samples having the select sample value (N_high) is within the change threshold range of the historical value (i.e., if the difference between the values N_high and N_H0 is less than the predetermined change threshold), at block 214 N_H is instead set to the value N_H0, with the result that the duty ratio for the corresponding PWM cycle of the output PWM signal 104 being set based on the historical or baseline number of high samples from a previous PWM cycle.
A similar filtering process is used to set the value N_T based on the value N_total. At block 216, the filter module 108 determines whether the value N_total (i.e., the total number of samples in the sampled PWM cycle) is within a change threshold range of the value N_T0, where the change threshold range for block 216 can be defined by the same predetermined change threshold as at block 210 or by a separate predetermined change threshold. As described below, the value N_T0 represents a historical or baseline total number of samples from one or more previous sampled PWM cycles and the filter module 108 therefore determines whether the total number of samples from the PWM cycle most recently sampled is within the change threshold range (i.e., to what degree the total number of samples differs from the a historical total number of PWM samples). If the difference between these values is greater than or equal to the predetermined change threshold, at block 218 the filter module 108 sets N_T to the value N_total. As such, the total number of samples from the most-recently sampled PWM cycle would act to control the duty cycle of the corresponding PWM cycle to be generated for the output PWM signal 104. Otherwise, if the difference between the values N_total and N_T0 is less than the predetermined change threshold, at block 220 the value N_T is instead set to the value N_T0, with the result that the duty ratio for the corresponding PWM cycle of the output PWM signal 104 being set based on the historical or baseline total number of samples from a previous PWM cycle. At block 222, the value N_H0 is set to the value N_H (thereby setting the historical or baseline number of high samples per PWM cycle to the number of high samples used to determine the duty ratio of the corresponding PWM cycle to be generated) and the value N_T0 is set to the value N_T (thereby setting the historical or baseline total number of samples per PWM cycle to the total number of samples used to determine the duty ratio of the corresponding PWM cycle to be generated).
As discussed above and in greater detail below, the values N_H and N_T are used to determine the duty ratio for a PWM cycle to be generated for the output signal 104. Thus, the filtering provided by changing the values of N_H from its historical value (represented by N_H0) to the value N_high determined for the most-recently sampled PWM cycle only when the difference between the historical value of N_H and the current value N_high is greater than or equal to a change threshold range defined by the predetermined change threshold (and likewise for the value N_T with respect to its historical value N_T0 and the currently determined value N_total) provides a degree of noise filtering, thereby reducing the potential for erroneous and inconsistent calculation of the duty ratio of the PWM cycle being sampled and for the erroneous and inconsistent generation of the duty ratio for the corresponding PWM cycle of the output PWM signal 104.
At block 222, the historical value N_H0 is set to the current value of N_H determined from blocks 210-214 and the historical value N_T0 is set to the current value of N_T determined from blocks 216-220. The sampling process of blocks 204-220 then may be repeated for the next PWM cycle of the input PWM signal 102. In parallel, the current values for N_H and N_T from the sampled PWM cycle are provided to the PWM generator module 110 as the filtered PWM parameters 128.
At block 224 the PWM generator module 110 determines the duty ratio of the sampled PWM cycle (and thus the duty ratio of the PWM cycle to be generated) based on the values N_H and N_T. In one embodiment, the duty ratio is calculated as the ratio of the number of high samples (N_H) to the total number of samples for the sampled PWM cycle (N_T), i.e., N_H/N_T. Alternately, the number of low samples (N_L) in the sampled PWM cycle may be tracked, and the duty ratio therefore may be calculated as (N_T−N_L)/N_T. Further, as described below with reference to
For the filtering process applied at blocks 210, 212, 214, 216, 218, and 220, the predetermined change threshold defines the degree to which the current value must differ from the historical value before the current value is used in place of the historical value. Thus, an appropriate value for the change threshold is selected so as to compensate for potential clock jitter, clock mismatch, ambient variations and other deterministic artifacts or random errors that can introduce noise into the calculation of the current value. Ideally, the change threshold also may be selected so as to further assist the PWM frequency converter 100 to meet specified PWM performance requirements, such as a 1 LSB of the PWM step resolution or the ability to provide a PWM signal with a duty ratio across the full range from 0% to 100%. While the predetermined change threshold can be selected as any value one or greater, the inventors have determined that the circumstances of the sampling process introduce up to two potential sampling discrepancies, and thus a predetermined change threshold greater of three (3) provides an optimal threshold for achieving the PWM performance parameters of a minimum PWM step resolution of 1 LSB and the ability to reproduce a 0% duty ratio in the output PWM signal 104. To illustrate,
As illustrated by PWM signal 302, when the rising and falling edges of the PWM signal occur between sample points (e.g., between sample points S3 and S4 and between sample points S8 and S9), there is little potential for an inconsistent sampling measurement. However, as illustrated by PWM signal 304, when one of the edges of the PWM signal occurs in proximity to a sample point (e.g., the rising edge of the PWM signal 304 occurring at sample point S3), a sampling inconsistency can occur, and thus the determined number of high samples (N_high) for the PWM signal 304 could be either of two values. To illustrate, in
While a change threshold of three (3) is well-suited in view of the characteristics of the sampling process, thresholds other than the value of three may be implemented without departing from the scope of the present disclosure. However, for larger thresholds, a higher number of samples per PWM cycle is needed to achieve certain performance goals, such as a minimum PWM duty of 0% or a minimum PWM resolution step of 1 LSB. To illustrate, for the output PWM signal 104 with, for example, an 8-bit resolution (255 steps) and a total of 450 samples per PWM cycle (N_total=450), the minimum PWM step when the change threshold is 1 LSB (trunc[3/450×255]=1 LSB). However, for a change threshold set to 4 with the same number of samples, the minimum PWM step is 2 LSB (trunc[4/450×255]=2 LSB). To achieve 1 LSB with a change threshold of 4, the total number of samples per PWM cycle would need to be increased to at least 511 samples per PWM cycle. Accordingly, in one embodiment, the sampling clock 122 is configured or selected to provide a sampling frequency for the sampling module 106 such that a truncated or rounded \product of the PWM step range R and a ratio of the predetermined change threshold to the total number of samples N_total is not greater than 1 LSB of the PWM step resolution.
At block 402, the PWM frequency converter 100 is initialized by initializing the sampling module 106 in preparation for sampling a PWM cycle of the input PWM signal 102. In sampling the input PWM signal 102, the sampling module 106 employs the two variables or values, N_total and N_high, discussed above. For the filtering of method 400, the filter module 108 uses three additional values or variables: PWM_Duty0, which represents a historical or baseline PWM duty ratio over any thus-far sampled PWM cycle; and PWM_Duty_Temp, which represents the PWM duty ratio of the PWM cycle currently sampled (and calculated using N_total and N_high); and PWM_Duty_Final, which represents the PWM duty ratio resulting from filtering of PWM_Duty_Temp based on PWM_Duty0 and a preselected change threshold. Accordingly, the filter module 108 can be initialized at block 402 before sampling the first PWM cycle to be sampled by setting at least N_total, N_high, PWM_Duty0, PWM_Duty_Temp, and PWM_Duty_Final to 0 so as to set the baseline for these values to zero for comparison purposes.
At block 404, the sample module 106 samples a PWM cycle of the input PWM signal 102 using the sampling clock 122 to drive the sampling frequency to determine the number (N_high) of samples over the PWM cycle that have the select sample value and the total number of samples taken over the PWM cycle of the input PWM signal 102 (N_total), as discussed above with respect to blocks 204, 206, and 208 of
At block 406, the filter module 108 determines the value for PWM_Duty_Temp using the values for N_high and N_total. To illustrate, in one embodiment the value for PWM_Duty_Temp is calculated as a product of the duty ratio and the PWM step range (R) of the output PWM signal 104, i.e., PWM_Duty_Temp=R*(N_high/N_total). At block 408, the filter module 108 determines whether the difference between the value PWM_Duty_Temp (i.e., measured duty ratio of the sampled PWM cycle) and PWM_Duty0 (i.e., the historical duty ratio from a previous sampled PWM cycle) is greater than or equal to a predetermined change threshold. The predetermined change threshold can be selected to accommodate for the two potential sampling errors described above in
In the event that the difference between PWM_Duty_Temp and PWM_Duty0 exceeds the change threshold, at block 410 the filter module 108 sets PWM_Duty_Final to an integer representation of PWM_Duty_Temp and sets the PWM_Duty0 to PWM_Duty_Temp so that the current PWM_Duty_Temp is used as the historic PWM duty value for the next sampled PWM cycle. Otherwise, if the difference between PWM_Duty_Temp and PWM_Duty0 does not exceed the change threshold, at block 412 the filter module 108 sets PWM_Duty_Final to the integer representation of the historic PWM duty (PWM_Duty0).
The sampling process of blocks 404-412 is be repeated for the next PWM cycle of the input PWM signal 102. In parallel, the value of PWM_Duty_Final from the sampled PWM cycle is provided to the PWM generator module 110 as the filtered PWM parameters 128. At block 414, the PWM generator module 110 generates a corresponding PWM cycle of the output PWM signal 104 using the duty value PWM_Duty_Final to control the duty ratio of the generated PWM cycle, as described in detail below with reference to
The LED driver 604 includes a feedback controller 614 configured to control the voltage source 612 based on the tail voltages at the tail ends of the LED strings 605-608. The LED driver 604, in one embodiment, receives display data representative of which of the LED strings 605-608 are to be activated and at what times during a corresponding pulse width modulation (PWM) cycle, and the LED driver 604 is configured to either collectively or individually activate the LED strings 605-608 at the appropriate times in their respective PWM cycles based on the display data.
The feedback controller 614, in one embodiment, includes a plurality of current regulators (e.g., current regulators 615, 616, 617, and 618), an analog string select module 620, an ADC 622, a code processing module 624, a control digital-to-analog converter (DAC) 626, an error amplifier 628, and a data/timing controller 630. The data/timing controller 630 includes a PWM frequency converter 632 (corresponding to the PWM frequency converter 100,
In the example of
A current regulator typically operates more effectively when the input of the current regulator is a non-zero voltage so as to accommodate the variation in the input voltage that often results from the current regulation process of the current regulator. This buffering voltage often is referred to as the “headroom” of the current regulator. As the current regulators 615-618 are connected to the tail ends of the LED strings 605-608, respectively, the tail voltages of the LED strings 605-608 represent the amounts of headroom available at the corresponding current regulators 615-618. However, headroom in excess of that necessary for current regulation purposes results in unnecessary power consumption by the current regulator. Accordingly, as described in greater detail herein, the LED system 600 employs techniques to provide dynamic headroom control so as to maintain the minimum tail voltage of the active LED strings at or near a predetermined threshold voltage, thus maintaining the lowest headroom of the current regulators 615-618 at or near the predetermined threshold voltage. The threshold voltage can represent a determined balance between the need for sufficient headroom to permit proper current regulation by the current regulators 615-618 and the advantage of reduced power consumption by reducing the excess headroom at the current regulators 615-618.
The data/timing controller 630 receives an input PWM signal 633 provided to control LED strings 605-608. Typically, this input PWM signal 633 has a frequency of less than 20 kHz and therefore would be audible to a viewer if used to directly driver the current regulators 615-618, as well as being more susceptible ripple in the voltage VOUT. Accordingly, the PWM frequency converter 632 converts the input PWM signal 633 to a higher frequency while maintaining the original duty ratio using the process described above. The resulting PWM signal 634 then is provided as control signaling for the current regulators 615-618 to control which of the LED strings 605-608 are active during corresponding portions of their respective PWM cycles.
The analog string select module 620 includes a plurality of tail inputs coupled to the tail ends of the LED strings 605-608 to receive the tail voltages VT1, VT2, VT3, and VT4 of the LED strings 605-608, respectively, and an output to provide an analog signal 632 representative of the minimum tail voltage VTmin of the LED strings 605-608 at any given point over a detection period. In one embodiment, the analog string select module 620 is implemented as a diode-OR circuit having a plurality of inputs connected to the tail ends of the LED strings 605-608 and an output to provide the analog signal 632.
The ADC 622 is configured to generate one or more digital code values COUT representative of the voltage of the analog signal 632 at one or more corresponding sample points. The code processing module 624 includes an input to receive the one or more code values COUT and an output to provide a code value Creg based on the minimum value of the received code values COUT for a given detection period or a previous value for Creg from a previous detection period. As the code value COUT represents the minimum tail voltage that occurred during the detection period (e.g., a PWM cycle, a display frame period, etc.) for all of the LED strings 605-608, the code processing module 624, in one embodiment, compares the code value COUT to a threshold code value, Cthresh, and generates a code value Creg based on the comparison. The code processing module 624 can be implemented as hardware, software executed by one or more processors, or a combination thereof. To illustrate, the code processing module 624 can be implemented as a logic-based hardware state machine, software executed by a processor, and the like.
The control DAC 626 includes an input to receive the code value Creg and an output to provide a regulation voltage Vreg representative of the code value Creg. The regulation voltage Vreg is provided to the error amplifier 628. The error amplifier 628 also receives a feedback voltage Vfb representative of the output voltage VOUT. In the illustrated embodiment, a voltage divider 640 is used to generate the voltage Vfb from the output voltage VOUT. The error amplifier 628 compares the voltage Vfb and the voltage Vreg and configures a signal ADJ based on this comparison. The voltage source 612 receives the signal ADJ and adjusts the output voltage VOUT based on the magnitude of the signal ADJ.
There may be considerable variation between the voltage drops across each of the LED strings 605-608 in the LED systems 600 and 700 due to static variations in forward-voltage biases of the LEDs 609 of each LED string and dynamic variations due to the on/off cycling of the LEDs 609. Thus, there may be significant variance in the bias voltages needed to properly operate the LED strings 605-1108. However, rather than drive a fixed output voltage VOUT that is substantially higher than what is needed for the smallest voltage drop as this is handled in conventional LED drivers, the LED driver 604 illustrated in
In a pulse width modulation (PWM) frequency converter that receives a first PWM signal and outputs a second PWM signal having a different frequency than the first PWM signal, a method is provided. In one aspect, the method includes sampling a first PWM cycle of the first PWM signal to generate a first set of one or more PWM parameters and filtering the first set of one or more PWM parameters based on a predetermined change threshold to generate a second set of one or more PWM parameters. The method further includes generating a second PWM cycle for the second PWM signal based on the second set of one or more PWM parameters. In one embodiment, generating the second PWM cycle comprises determining a duty ratio of the first PWM cycle using the second set of one or more PWM parameters and generating the second PWM cycle so as to have a duty cycle substantially equal to the duty ratio determined for the first PWM cycle.
In accordance with one aspect, sampling the first PWM cycle comprises sampling the first PWM cycle to determine a first value and a second value of the first set of one or more PWM parameters, the first value representative of a number of samples having a select sample value for the first PWM cycle and the second value representative of a total number of samples for the first PWM cycle. In this instance, filtering the first set of one or more PWM parameters to generate the second set of one or more PWM parameters can include filtering the first value based on a change threshold range defined by the predetermined change threshold to generate a third value of the second set of one or more PWM parameters and filtering the second value based on the change threshold range to generate a fourth value of the second set of one or more PWM parameters. Generating the second PWM cycle therefore may include determining a duty value based on a PWM step range of the second PWM signal and a ratio of the third value and the fourth value and generating the second PWM cycle based on the duty value. In one embodiment, the method further includes configuring a sampling frequency such that a truncated or rounded product of the PWM step range and a ratio of the predetermined change threshold to the second value is not greater than one least significant bit (LSB) of a PWM step resolution of the second PWM signal. Further, generating the second PWM cycle based on the duty value can include driving the second PWM signal to a first state for a first duration, the first duration having a number of cycles of a generation clock equal to the duty value and driving the second PWM signal to a second state for a second duration, the second duration having a number of cycles of the generation clock equal to a difference between the PWM step range and the duty value, wherein the second duration precedes or follows the first duration.
In one embodiment, filtering the first value based on the change threshold range to generate the third value includes: setting the third value equal to the first value in response to determining a difference between the first value and a fifth value is greater than or equal to the predetermined change threshold, wherein the fifth value represents a number of samples having the select sample value for a PWM cycle of the first PWM signal occurring prior to the first PWM cycle; and setting the third value equal to the fifth value in response to determining the difference between the first value and the fifth value is less than the predetermined change threshold. In this case, filtering the second value based on the change threshold range to generate the fourth value can include setting the fourth value equal to the second value in response to determining a difference between the second value and a sixth value is greater than or equal to the predetermined change threshold, wherein the sixth value represents a total number of samples for a PWM cycle of the first PWM signal occurring prior to the first PWM cycle and setting the fourth value equal to the sixth value in response to determining the difference between the second value and the sixth value is less than the predetermined change threshold.
In another embodiment, sampling the first PWM cycle includes sampling the first PWM cycle to determine a first value and a second value of the first set of one or more PWM parameters, the first value representative of a number of samples having a select sample value for the first PWM cycle and the second value representative of a total number of samples for the first PWM cycle. In this embodiment, filtering the first set of one or more PWM parameters to generate the second set of one or more PWM parameters can include determining a first duty value based on a ratio of the first value and the second value and filtering the first duty value based on a change threshold range defined by the predetermined change threshold to generate a second duty value of the second set of one or more PWM parameters. Filtering the first duty value based on the change threshold range to generate the second value can include setting the second value equal to the first value in response to determining a difference between the first duty value and a third value is greater than or equal to the predetermined change threshold, wherein the third duty value represents a PWM duty ratio of a PWM cycle of the first PWM signal occurring prior to the first PWM cycle and setting the second duty value equal to the third duty value in response to determining the difference between the first duty value and the third duty value is less than the predetermined change threshold.
In accordance with another aspect, a pulse width modulation (PWM) frequency converter is provided. The PWM frequency converter has an input to receive a first PWM signal and an output to provide a second PWM signal having a different frequency than the first PWM signal. The PWM frequency converter further includes a sampling module to sample a first PWM cycle of the first PWM signal to generate a first set of one or more PWM parameters, a filter module to filter the first set of one or more PWM parameters based on a predetermined change threshold to generate a second set of one or more PWM parameters, and a PWM generator module to generate a second PWM cycle for the second PWM signal based on the second set of one or more PWM parameters.
In a PWM frequency converter that receives a first PWM signal and outputs a second PWM signal having a higher frequency than the first PWM signal, a method is provided in accordance with yet another aspect. The method includes sampling a first PWM cycle of the first PWM signal to determine a first value and a second value, the first value representative of a number of samples having a select sample value for the first PWM cycle and the second value representative of a total number of samples for the first PWM cycle and sampling a second PWM cycle of the first PWM signal that occurs subsequent to the first PWM cycle to determine a third value and a fourth value, the third value representative of a number of samples having the select sample value for the second PWM cycle and the fourth value representative of a total number of samples for the second PWM cycle. The method further includes filtering the third value based on the first value and a predetermined change threshold to generate a fifth value and filtering the fourth value based on the second value and the predetermined change threshold to generate a sixth value. The method additionally includes generating a PWM cycle of the second PWM signal based on the fifth value and the sixth value.
In one embodiment, generating the PWM cycle of the second PWM signal includes determining a duty value based on a PWM step range of the second PWM signal and a ratio of the fifth value and the sixth value and generating the PWM cycle for the second PWM signal based on the duty value. Further, filtering the third value to generate the fifth value can include setting the fifth value equal to the third value in response to determining a difference between the third value and the first value is greater than or equal to the predetermined change threshold and setting the fifth value equal to the first value in response to determining the difference between the third value and the first value is less than the predetermined change threshold. Filtering the fourth value to generate the sixth value can include setting the sixth value equal to the fourth value in response to determining a difference between the fourth value and the second value is greater than or equal to the predetermined change threshold and setting the sixth value equal to the second value in response to determining the difference between the fourth value and the second value is less than the predetermined change threshold.
The term “another”, as used herein, is defined as at least a second or more. The terms “including”, “having”, or any variation thereof, as used herein, are defined as comprising. The term “coupled”, as used herein with reference to electro-optical technology, is defined as connected, although not necessarily directly, and not necessarily mechanically.
Other embodiments, uses, and advantages of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. The specification and drawings should be considered exemplary only, and the scope of the disclosure is accordingly intended to be limited only by the following claims and equivalents thereof.
Zhao, Bin, Lee, Victor K., Kameya, Andrew M.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
4162444, | Jul 08 1977 | Tuscan Corporation | Peak level detector |
4615029, | Dec 03 1984 | Texas Instruments Incorporated | Ring transmission network for interfacing control functions between master and slave devices |
4649432, | Jan 27 1984 | Sony Corporation | Video display system |
4686640, | Dec 12 1984 | Honeywell INC | Programmable digital hysteresis circuit |
5025176, | Jan 31 1989 | Fujitsu Limited | Peak level detection circuit |
5038055, | Dec 02 1988 | Kabushiki Kaisha Toshiba | Peak level detecting device and method |
5508909, | Apr 26 1994 | CHASE MANHATTAN BANK, THE; Patriot Sensors & Controls Corporation | Method and systems for use with an industrial controller |
5723950, | Jun 10 1996 | UNIVERSAL DISPLAY CORPORATION | Pre-charge driver for light emitting devices and method |
5898329, | Dec 31 1996 | STMicroelectronics, Inc | Programmable pulse width modulation circuit |
6281822, | May 28 1999 | Dot Wireless, Inc.; VLSI Technology, Inc.; DOT WIRELESS, INC ; VLSI Technology, Inc | Pulse density modulator with improved pulse distribution |
6864641, | Feb 20 2003 | THE BANK OF NEW YORK MELLON, AS ADMINISTRATIVE AGENT | Method and apparatus for controlling light emitting diodes |
6937084, | Jun 01 2001 | Microchip Technology Incorporated | Processor with dual-deadtime pulse width modulation generator |
6943500, | Oct 19 2001 | Clare Micronix Integrated Systems, Inc. | Matrix element precharge voltage adjusting apparatus and method |
6995592, | Nov 06 2003 | STMICROELECTRONICS PVT LTD | Method and system for generating variable frequency cyclic waveforms using pulse width modulation |
7106294, | Mar 28 2002 | MATSUSHITA ELECTRIC INDUSTRIAL CO , LTD | Liquid crystal display device |
7126397, | Dec 30 2004 | National Semiconductor Corporation | Pulse width modulation carrier frequency technique |
7262724, | Mar 31 2005 | SHENZHEN XINGUODU TECHNOLOGY CO , LTD | System and method for adjusting dynamic range of analog-to-digital converter |
7391280, | Feb 17 2004 | Sunplus Technology Co., Ltd. | Circuit and method for pulse width modulation |
7436378, | Oct 02 2004 | Asahi Kasei Microdevices Corporation | LED-switching controller and LED-switching control method |
7511545, | Sep 13 2007 | DELPHI TECHNOLOGIES IP LIMITED | Analog duty cycle replicating frequency converter for PWM signals |
7593243, | Oct 09 2006 | Honeywell International Inc.; Honeywell International Inc | Intelligent method for DC bus voltage ripple compensation for power conversion units |
7741885, | Mar 04 2009 | Yazaki North America; Yazaki North America, Inc | Frequency multiplier |
7800415, | Dec 18 2008 | Silicon Laboratories, Inc. | Circuit device to produce an output signal including dither |
7843242, | Aug 07 2009 | SHENZHEN XINGUODU TECHNOLOGY CO , LTD | Phase-shifted pulse width modulation signal generation |
20040208011, | |||
20040232964, | |||
20040233144, | |||
20040251942, | |||
20060064609, | |||
20060164142, | |||
20060186830, | |||
20070080911, | |||
20070253330, | |||
20080054815, | |||
20080297067, | |||
20090073735, | |||
20090128045, | |||
20090187925, | |||
20090230874, | |||
20090230891, | |||
20090273288, | |||
20090315481, | |||
20100026203, | |||
20100085295, | |||
JP2003332624, | |||
JP2005116199, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 07 2009 | Freescale Semiconductor, Inc. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
May 29 2015 | 4 years fee payment window open |
Nov 29 2015 | 6 months grace period start (w surcharge) |
May 29 2016 | patent expiry (for year 4) |
May 29 2018 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 29 2019 | 8 years fee payment window open |
Nov 29 2019 | 6 months grace period start (w surcharge) |
May 29 2020 | patent expiry (for year 8) |
May 29 2022 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 29 2023 | 12 years fee payment window open |
Nov 29 2023 | 6 months grace period start (w surcharge) |
May 29 2024 | patent expiry (for year 12) |
May 29 2026 | 2 years to revive unintentionally abandoned end. (for year 12) |