An embodiment method of generating an output pulse stream comprises first pulse modulating a first multi-bit input term to generate a first one-bit pulse stream, using a bitwise logic AND to combine the first one-bit pulse stream and a second multi-bit term, thereby generating a multi-bit AND output, and second pulse modulating the multi-bit AND output to generate a one-bit output pulse stream representing a product of the first and second multi-bit input terms.
|
16. A method of generating an output pulse stream, the method comprising:
pulse modulating a first multi-bit input to generate a first one-bit pulse stream;
monitoring the first one-bit pulse stream for idle periods; and
if an idle period is detected to be equal to or greater than a discontinuity threshold, injecting a filler output into a one-bit output pulse stream.
11. A pulse stream generator comprising:
a pulse modulator having a first multi-bit input and having a first one-bit pulse stream output;
a logic OR coupled to the pulse modulator; and
a discontinuity filler having a count reset input coupled to the first one-bit pulse stream output of the pulse modulator, and having a filler output coupled to a first input of the logic OR.
6. A method of generating an output pulse stream, the method comprising:
first pulse modulating a first multi-bit input term to generate a first one-bit pulse stream;
using a bitwise logic AND to combine the first one-bit pulse stream and a second multi-bit term, thereby generating a multi-bit AND output; and
second pulse modulating the multi-bit AND output to generate a one-bit output pulse stream representing a product of the first and second multi-bit input terms.
1. A pulse stream generator comprising:
a first pulse modulator having a first multi-bit term input, and having a first one-bit pulse stream output;
a logic AND block having a first input coupled to the first one-bit pulse stream output of the first pulse modulator, having a second multi-bit term input, and having a multi-bit AND output; and
a second pulse modulator having an input coupled to the multi-bit AND output, and having a second one-bit output pulse stream output representing a product of the first and second multi-bit term inputs.
2. The pulse stream generator of
3. The pulse stream generator of
4. The pulse stream generator of
5. The pulse stream generator of
7. The method of
8. The method of
9. The method of
10. The method of
12. The pulse stream generator of
13. The pulse stream generator of
14. The pulse stream generator of
15. The pulse stream generator of
a counter having the count reset input and having a idle time count output;
a comparison threshold memory containing a maximum idle time count threshold; and
a comparator for comparing the idle time count output with the maximum idle time count, the comparator having the filler output as a comparator output indicating whether the idle time count is equal to or greater than the maximum idle time count.
17. The method of
18. The method of
19. The method of
|
The present invention relates generally to electrical signal control devices and methods, and more particularly to pulse modulation devices and methods.
Generally, many types of electrical devices may utilize analog signals that are continuously-variable, and effectively infinite in resolution in time and magnitude. For example, actuators and transducers, such as light emitting diodes (“LED”s), motors, robotic servos, heating elements, light dimmers, braking systems, and the like, receive analog input control signals to control their operation. That is, an input control signal may control the brightness of an LED or other type of lighting device, the speed of a motor, the heat output of a heating element, etc.
Generally, these types of devices alternatively may be controlled by digital controllers, such as microprocessors, digital signal processors, and microcontrollers, that generate a digitally-encoded version of an analog control signal. Devices such as switching amplifiers (e.g., for use in audio) and switched mode power supplies (e.g., for use in computers) also may utilize such digital control signals.
Generally a digital controller may modulate a digital signal through the use of pulse modulation to generate a digitally-encoded control signal representative of an analog signal. Pulse modulation modifies a parameter of a series of digital pulses in order to encode an analog signal level. By operating at a pulse frequency sufficiently above that which would or appear at have an adverse effect on the load, pulse modulation provides a digital signal appearing to the load as a steady voltage between the low and high values used for the load.
Several different types of modulation have been developed, including pulse amplitude modulation, pulse density modulation, and pulse width modulation. Pulse amplitude modulation generally modifies the amplitude of individual pulses to simulate voltages between a low level and a high level. Pulse density modulation generally modifies the density of the pulses in a pulse stream to represent different signal levels. Pulse width modulation generally modifies the duty cycle, or percentage of time that the signal is on, of a series of pulses by changing the pulse width, or duration of on-time, of individual pulses. Generally, pulse width modulation may be considered a special case of pulse density modulation in which all the pulses corresponding to one sample are contiguous in the digital signal.
These and other problems are generally solved or circumvented, and technical advantages are generally achieved, by embodiments of the present invention which generate a pulse modulation stream of the product of two factors. Other embodiments of the present invention provide a discontinuity filler for a pulse modulation stream.
In accordance with an embodiment of the present invention, a pulse stream generator comprises a first pulse modulator having a first multi-bit teen input, and having a first one-bit pulse stream output, a logic AND block having a first input coupled to the first one-bit pulse stream output of the first pulse modulator, having a second multi-bit term input, and having a multi-bit AND output, and a second pulse modulator having an input coupled to the multi-bit AND output, and having a second one-bit output pulse stream output representing a product of the first and second multi-bit term inputs.
In accordance with another embodiment of the present invention a method of generating an output pulse stream comprises first pulse modulating a first multi-bit input term to generate a first one-bit pulse stream, using a bitwise logic AND to combine the first one-bit pulse stream and a second multi-bit term, thereby generating a multi-bit AND output, and second pulse modulating the multi-bit AND output to generate a one-bit output pulse stream representing a product of the first and second multi-bit input terms.
In accordance with another embodiment of the present invention, a pulse stream generator comprises a pulse modulator having a first multi-bit input and having a first one-bit pulse stream output, a logic OR coupled to the pulse modulator, and a discontinuity filler having a count reset input coupled to the first one-bit pulse stream output of the pulse modulator, and having a filler output coupled to a first input of the logic OR.
In accordance with another embodiment of the present invention, a method of generating an output pulse stream comprises pulse modulating a first multi-bit input to generate a first one-bit pulse stream, monitoring the first one-bit pulse stream for idle periods, and if an idle period is detected to be equal to or greater than a discontinuity threshold, injecting a filler output into a one-bit output pulse stream.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
The making and using of the presently preferred embodiments are discussed in detail below. It should be appreciated, however, that the present invention provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative of specific ways to make and use the invention, and do not limit the scope of the invention.
The present invention will be described with respect to preferred embodiments in a specific context, namely a pulse modulator controlling the intensity of an LED. The invention also may be applied, however, to other applications in which a pulse modulation stream is used to control an actuator or transducer, such as other lighting elements, motors, servos, heating elements, braking systems, and the like.
The pulse modulation of the product between two factors may be done in multiple ways. In one approach, illustrated in
In another approach, illustrated in
For example, it may be that for particular combinations of the input factors, the output pulse stream generally is ‘0’. As shown in
Pulse stream generator 200 has two input terms Term_1 202 and Term_2 204 that are multiplied and converted into an output pulse stream 206. One of the terms of the multiplication, Term_2 204, is converted into 1-bit pulse stream Term_2_mod 210 by a first pulse modulator 208. This pulse modulator may be a pulse width modulator (“PWM”), a pulse density modulator (“PDM”), and the like.
Multiplication of 1-bit Term_2 204 and N-bit Term_1 202 is performed by AND logic block 212 to generate output P_result 214. For this and the other embodiments described herein, the value of N for multi-bit signals may be dependent on the specific application. For example, the value of N may be 4, 8, 12, 16, 24, 32, 48, 64, and the like. The N-bit output of the logic AND is then input to a second pulse modulator 216 that converts P_result 214 into the output pulse stream 206. This pulse modulator also may be a pulse width modulator, a pulse density modulator, and the like. The output of the second pulse modulator 216 thus represents the product between the two starting factors, Term_1 202 and Term_2 204, in the chosen modulation scheme.
In some embodiments, pulse stream generator 200 provides simplicity over prior art approaches. For example, pulse stream generator 200 generally may be implemented using only basic digital blocks. A single source clock may be utilized for all of the blocks of pulse stream generator 200. In some embodiments, pulse stream generator 200 provides an output that exactly represents the product value of the two input factors. Furthermore, pulse stream generator 200 generally does not produce glitches, or experience other types of synchronization problems.
As discussed above, pulse stream generation based on the product of two input factors may have a variety of applications. For example, this type of multiplication may be used in lighting applications, such as in the control of a red-green-blue (“RGB”) LED when the color and the light intensity are independently selected as different input terms.
Intensity level 232 is the first input to LED control system 230, and selects the light intensity of RGB LED 272. Intensity level 232 is input to first pulse modulator 234, which generates 1-bit pulse stream Dim_pulse_stream 236. This pulse modulator may be a pulse width modulator, a pulse density modulator, and the like. This portion of the pulse stream generator is shared between all three pulse stream generators, each of which controls one of the three color channels, red, green and blue. RGB ratio 238 is the other input to LED control system 230, and selects the color intensity to be displayed by RGB LED 272. Using RGB ratio 238 as input, color selection unit 240 generates three N-bit signals, red input 242, green input 244 and blue input 246, each of which represents the color intensity for the respective color, red, green and blue.
Multiplication is performed by AND blocks 248, 250 and 252. N-bit red input 242 and 1-bit dim_pulse_stream 236 are input to a red AND block 248 to generate the N-bit product P_result_R 254 for the red channel. Likewise N-bit green input 244 and 1-bit dim_pulse_stream 236 are input to a green AND block 250 to generate the N-bit product P_result_G 256 for the green channel. Similarly, N-bit blue input 246 and 1-bit dim_pulse_stream 236 are input to a blue AND block 252 to generate the N-bit product P_result_B 258 for the blue channel.
Each of the three signals is then input to a second stage pulse modulator. Red pulse modulator 260 converts N-bit P_result_R 254 into 1-bit output pulse stream, OUT_RED 266. Green pulse modulator 262 converts N-bit P_result_G 256 into 1-bit output pulse stream, OUT_GREEN 268. Lastly, blue pulse modulator 264 converts N-bit P_result_B 258 into 1-bit output pulse stream, OUT_BLUE 270. These pulse modulators may be pulse width modulators, pulse density modulators, and the like. The three 1-bit pulse streams, OUT_RED 266, OUT_GREEN 268 and OUT_BLUE 270 are then used to control the color and light intensity of RGB LED 272.
The LED control system 230 thus enables the selecting of a color (RGB ratio) and an intensity level for an RGB LED, and provides three output pulse streams, one for each channel, red, green and blue. As an example, if pulse density modulators are used, the final pulse density of each channel corresponds to the product between the color pulse density (R/G/B) and the intensity level pulse density. The blocks or functions of the embodiments discussed above (as well as below) may be implemented in hardware, software, firmware, or a combination thereof. That is, the functions may be implemented in the software or firmware of a microprocessor, digital signal processor or microcontroller. When implemented in software or firmware, inputs and outputs of the various elements of the embodiments may be the inputs and outputs of software/firmware code, routines or steps. Alternatively, the embodiments may be implemented in digital logic, either with discrete components or with one or more integrated circuits. Alternatively, the embodiments described herein may be implemented separate from or together with the device being controlled by the output pulse stream. Furthermore, any combination of the above alternatives may be used to implement the embodiments disclosed herein.
Continuing with the LED control embodiment,
Multiplication is performed by AND block 312, only some of which bits are shown in
The 10-bit signal pd_in_red(9:0) is then input to second delta-sigma pulse density modulator 322. Second pulse density modulator 322 converts 10-bit pd_in_red(9:0) into 1-bit output pulse stream, red_out 324. The 1-bit pulse stream, red_out 324 then is used to control the red color intensity and light intensity of the LED. Various blocks or functions of pulse generator 300 also receive reset signal rst_n 326 and clock signal clk 328.
Referring back to
where
To complete a cycle, the pulse density modulator spends exactly 2n*Tclk clock cycles. Therefore, to correctly obtain the pulse density, 2n*Tclk clocks are needed. This assumption is valid for both input terms Term_1 and Term_2.
If this assumption is valid, then the output bit stream of a pulse density modulator, with input Term_2, has the same number of ‘1’s corresponding to Term_2 every 2n*Tclk clock cycles. Hence, P_result is equal to Term_1 when Term_2_mod is ‘1’ and is equal to ‘0’ when Term_2_mod is ‘0’, as shown in
The mean value of P_result may be calculated by using the formula:
where N=2n,
which corresponds to:
P_mean=(1/N)2*Term—1*Term—2 Formula 3.
A specific example is provided below:
Thus, in converting P_result with the second pulse density modulator, the output pulse stream is the same as the pulse density of the product Term_1*Term_2.
As another example,
In the PWM-PDM embodiment timing shown in
In the PWM-PWM embodiment, shown in
Generally, the dim resolution of the PWM-PWM system is the lowest of the three types of systems. This generally is caused by the updating of the input and output of the PWM only after the entire range of the counter has been covered. The PDM, on the other hand, provides a structure that is more prompt in fitting the output to the input. Generally, for this reason, the PDM-PDM system may offer the best performance for dimming and driving an RGB LED.
In some pulse modulator systems, it is possible that the intervals between active pulses are so long that they may cause a discontinuous output stream in the transducer or actuator being controlled. The effect of the discontinuity may depend on the type and sensitivity of the final receiver of the signal. For example, in LED control, the discontinuity may cause flickering of the light output from the LED.
Previous methods of control include analog time-continuous driving, amplitude modulation, and increasing modulation rate, but each of these approaches has disadvantages. Disadvantages of analog techniques and amplitude modulation techniques with respect to digital techniques are well known. For example, analog generally is more complex to implement, more expensive, and is susceptible to heat, drift, and noise. Increasing the modulation rate generally results in higher system complexity and cost.
Embodiments described below generally prevent discontinuities in the output stream from occurring at a perceivable rate. For example, implemented in an LED control system, these embodiments may avoid flickering of the LED even when there are long intervals between active pulses. Any of these embodiments may be implemented together with the embodiments described herein above, for example at the second stage pulse modulator.
One embodiment for avoiding perceivable output stream discontinuities is shown in
Filler pulse 432 additionally resets pulse modulator 422 at the same time. In this way, the receiver of the output pulse stream 426 (e.g., an LED or other transducer) does not perceive the separation between two active pulses as a momentary turn off. In this manner, the resulting limitation in terms of input signal corresponds to less than 1-LSB inaccuracy.
Alternatively, in another embodiment, pulses from the discontinuity filler 424 may be mixed with the pulses from the pulse modulator by logic OR 426, as in
Discontinuity filler 444 generates the injection signal 448 upon detection of a discontinuity in output pulse stream 446. The injection signal 448 is fed into a logic OR 450, which also receives the N-bit Input signal 452. The output 454 of the logic OR 450 provides the input to the pulse modulator 442. Even when the N-bit input signal 452 is null, injection signal 448 is fed into the input of pulse modulator 442. Based on the injection from the discontinuity filler 448, pulse modulator 442 generates an output pulse stream 446 without a discontinuity.
During a counting operation, counter 462 is asynchronously reset by the modulator output pulses such that the discontinuity filler has a frequency-based enable input. That is, when the frequency of the pulse modulator output pulse stream is sufficiently high, the counter value does not reach the threshold value, and idle pulses are not generated, and the final output pulse stream is not modified.
VHDL implementations of different aspects of the discontinuity filler are provided below. In the code, various variables and parameters have the following definitions:
The logic OR between the pdm_out (pulse modulator output) and the pd_out (comparator output) is the final output pulse stream, Out, which may be fed directly the LED driver stage.
The code below provides a model of the comparison threshold register, counter and comparator logic (≧) in the discontinuity filler.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity w_dog is
port(
rst_n
in
std_logic;
--reset
clk_50k:
in
std_logic;
--clock
pd_in:
in
std_logic;
--output of the pulse modulator
pd_out:
out std_logic
--output of the AntiFlickering
);
end w_dog;
architecture behavioral of w_dog is
signal reg:
std_logic_vector(10 downto 0);
-- counter register
signal cmp:
std_logic_vector(10 downto 0);
-- comparison register
begin
cmp <= “10110010100”; --35Hz
--output pulse stream minimum
frequency
process(clk_50k, rst_n)
begin
if (rst_n = ‘0’) then
reg <= “00000000000”;
--reset
else if (clk_50k=‘1’ and clk_50k'event) then
--clock's rising edge
if(pd_in = ‘1’) then
reg <= “00000000000”; --when modulator's output =’1’
--reset the counter register
pd_out <= ‘0’;
--output antiflickering =’ 0’.
elsif (reg >= cmp) then
-- maximum time allowed is reached.
reg <= “00000000000”; -- counter register restart to count.
pd_out <= ‘1’;
-- the antiFl provides the Out pulse
else
reg <= reg + 1;
-- else the counter continues to count
pd_out <= ‘0’;
-- antiFl output is ‘0’
end if;
end if;
end if;
end process;
end behavioral;
The code below provides an implementation of the first order sigma-delta pulse density modulator.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity pdm is
port(
rst_n:
in
std_logic;
--rst or (not(pd_out))
clk:
in
std_logic;
pdm_in:
in
std_logic_vector(9 downto 0);--input register
pdm_out:
out
std_logic
-- equal to w_dog ‘s pd_in
);
end pdm;
architecture behavioral of pdm is
signal sum:
std_logic_vector(11 downto 0);
signal diff:
std_logic_vector(11 downto 0);
signal diff_reg:
std_logic_vector(11 downto 0);
signal deltaB:
std_logic_vector(11 downto 0);
signal adder0:
std_logic_vector(11 downto 0);
begin
deltaB <= diff_reg(11) & diff_reg(11) & “0000000000”;
-- feedback value
adder0(11 downto 0) <= “00” & pdm_in(9 downto 0);
--shifted input
sum <= adder0 + deltaB;
--internal signal
diff <= sum + diff_reg;
process(clk, rst_n)
begin if(rst_n =‘0’) then --if reset =’0’ or pd_out = ‘1‘ reset of the pdm
diff_reg <= “100000000000”;
pdm_out <= ‘0’;
else if (clk=‘1’ and clk'event) then
diff_reg <= diff;
pdm_out <= diff_reg(11); --pdm_out = sign(diff_reg)
end if;
end process;
end behavioral;
Although the present invention and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims. Moreover, the scope of the present application is not intended to be limited to the particular embodiments of the process, machine, manufacture, composition of matter, means, methods and steps described in the specification. As one of ordinary skill in the art will readily appreciate from the disclosure of the present invention, processes, machines, manufacture, compositions of matter, means, methods, or steps, presently existing or later to be developed, that perform substantially the same function or achieve substantially the same result as the corresponding embodiments described herein may be utilized according to the present invention. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or steps.
Logiudice, Andrea, Filippo, Roberto, Munari, Diego Gaetano, Tosato, Federico
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
4660162, | Aug 31 1984 | Raytheon Company | Interpolation pulse duration modulated multiplier |
5311548, | Mar 21 1991 | Mannesmann Rexroth GmbH | Digital control electronic having a pulse width modulated (PWM)-output signal for the control of electric control elements of a hydraulic system |
6586890, | Dec 05 2001 | SIGNIFY HOLDING B V | LED driver circuit with PWM output |
7176948, | Apr 12 2000 | Honeywell International Inc. | Method, apparatus and computer program product for controlling LED backlights and for improved pulse width modulation resolution |
7321203, | Mar 13 2006 | Analog Devices International Unlimited Company | LED dimming control technique for increasing the maximum PWM dimming ratio and avoiding LED flicker |
20020101198, | |||
20070064007, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 28 2010 | Infineon Technologies AG | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
Mar 20 2015 | 4 years fee payment window open |
Sep 20 2015 | 6 months grace period start (w surcharge) |
Mar 20 2016 | patent expiry (for year 4) |
Mar 20 2018 | 2 years to revive unintentionally abandoned end. (for year 4) |
Mar 20 2019 | 8 years fee payment window open |
Sep 20 2019 | 6 months grace period start (w surcharge) |
Mar 20 2020 | patent expiry (for year 8) |
Mar 20 2022 | 2 years to revive unintentionally abandoned end. (for year 8) |
Mar 20 2023 | 12 years fee payment window open |
Sep 20 2023 | 6 months grace period start (w surcharge) |
Mar 20 2024 | patent expiry (for year 12) |
Mar 20 2026 | 2 years to revive unintentionally abandoned end. (for year 12) |